package aicg.wipf.rxcp

import aicg.wipf.vzuj.Kmqp.string
import aicg.wipf.vzuj.Qqmq
import android.content.Context
import android.telephony.TelephonyManager
import android.util.Log
import com.blankj.utilcode.util.SPUtils
import com.test.basd.smartjunkcleaner.R

object Mjsr {

    fun l(i2: Int, isHasSim: Boolean, isOrganic: Boolean): Boolean {
        Log.d("ކޗލވސމޝވ", "ކޗލވސމޝވ")
        return ޥހޡޑސރރޓ(i2, isHasSim, isOrganic)
    }

     private fun ހޚމގޥޟކޚ(): Boolean {
        val source: String = SPUtils.getInstance().getString(R.string.ޚގމތޔ_D.string(),"")
        return !(source.contains(R.string.ފޏޥޑޚ_D.string()) || source.contains(R.string.ޠޕކވޣ_D.string()))
    }

     private fun ސކވޒފވޛޤ(): Boolean {
        fun ކޡގޕހޜޤޑ(ޡޝޗތޓމޙޣ: Int, ޤސވވޒޔޜޙ: Int): Int {
            return ޡޝޗތޓމޙޣ + ޤސވވޒޔޜޙ
        }
        println(ކޡގޕހޜޤޑ(3375, 5755))
        val telephonyManager = Qqmq.context.getSystemService(Context.TELEPHONY_SERVICE) as TelephonyManager
        return telephonyManager.simState != TelephonyManager.SIM_STATE_ABSENT
    }

     private fun ޙޚޓފޝޙޔޞ(): Boolean {
         return ސކވޒފވޛޤ()
     }

    fun getUserChancelSwitch(int: Int): Boolean {
        class ގޣގޝތޝޞޏ {
            inner class ނޅޗޏޔޚހނ {
                fun މޏތޑޕޖގލ() {
                    println("ޛކޣޚޛޡޥއ")
                }
            }
        }
        val ކވޙޜނބށގ = ގޣގޝތޝޞޏ().ނޅޗޏޔޚހނ()
        ކވޙޜނބށގ.މޏތޑޕޖގލ()
        val isOrganic = isOrganicUser()
        val isHasSim = isSimCardAvailable()
        return l(int, isHasSim, isOrganic)
    }

     private fun ޘހފޅޝޥޥތ(): Boolean {
         return ހޚމގޥޟކޚ()
     }

    private fun ޥހޡޑސރރޓ(i2: Int, isHasSim: Boolean, isOrganic: Boolean): Boolean {
        return ޅޘޘޡޞށގޢ(i2, isHasSim, isOrganic)
    }

     private fun ޜހޝޘޝޝމޝ(): Boolean {
         return ޘހފޅޝޥޥތ()
     }

    fun k(i2: Int, i3: Int): Boolean {
        fun ނމހޑހހސޙ(ޝޏޅޡސޔޥޥ: Int, ޛޖޣސޗޕޒޔ: Int): Int {
            return ޝޏޅޡސޔޥޥ + ޛޖޣސޗޕޒޔ
        }
        println(ނމހޑހހސޙ(2147, 6221))
        return i2 shr i3 and 1 == 1
    }

    private fun ތގޅޙޙޟމވ(i2: Int, isHasSim: Boolean, isOrganic: Boolean): Boolean {
        fun ޞޒޕދށޚޘރ(ޔކޞޅތޘކކ: String) {
            println("tag, $ޔކޞޅތޘކކ!")
        }
        ޞޒޕދށޚޘރ("ޗޓޕޝޅއހއ")
        return if (!isOrganic && !k(i2, 3)) {
            class ޥޝރތޚޠރޛ<T>(val ދތޖދރމޗބ: T, val މސޖޏކޞޟޏ: Int) {
                constructor(ދތޖދރމޗބ: T) : this(ދތޖދރމޗބ, 917) {
                    println("މސޖޏކޞޟޏ")
                }
            }
            println(ޥޝރތޚޠރޛ("އޏށވހމހޏ"))
            false
        } else if (isOrganic && !k(i2, 2)) {
            false
        } else if (!isHasSim && !k(i2, 1)) {
            fun ޣޔމޠމޕޖރ(ތޢޔޝޏޣޗޘ: Int, ޒޙޖވޥޢޑޤ: Int): Int {
                return ތޢޔޝޏޣޗޘ + ޒޙޖވޥޢޑޤ
            }
            val ޟދޔޅޖޓރޑ = ޣޔމޠމޕޖރ(2663, 8825)
            println(ޟދޔޅޖޓރޑ)
            false
        } else if (isHasSim && !k(i2, 0)) {
            class ޕސޔޚށށޟމ {
                fun ޡޚޒޑވޚޖޒ() {
                    println("އއރޤޥލޢޢ")
                }
            }
            ޕސޔޚށށޟމ().ޡޚޒޑވޚޖޒ()
            false
        } else k(i2, 4)
    }

     private fun ޑފފޥހޠޅޢ(): Boolean {
         return ޙޚޓފޝޙޔޞ()
     }

     fun isSimCardAvailable(): Boolean {
         return ޑފފޥހޠޅޢ()
     }

    private fun ޅޘޘޡޞށގޢ(i2: Int, isHasSim: Boolean, isOrganic: Boolean): Boolean {
        return ތގޅޙޙޟމވ(i2, isHasSim, isOrganic)
    }

     fun isOrganicUser(): Boolean {
         return ޝޖޛކޕޘޞޚ()
     }

     private fun ޝޖޛކޕޘޞޚ(): Boolean {
         return ޜހޝޘޝޝމޝ()
     }
}