// // ParentalOptionsLayer::applyPrivacyPushEdge from 0x8f3c20 to 0x8f3d4c (300 bytes) // // 2 xrefs: // > ParentalOptionsLayer::onToggle @ 0x8f3dc0 // > @ 0xe62f0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:56:59 +0000 // __int64 __fastcall ParentalOptionsLayer::applyPrivacyPushEdge(ParentalOptionsLayer *this, unsigned __int8 a2) { unsigned int v2; // w21 GameManager *v3; // x0 GameManager *v4; // x0 unsigned int v5; // w22 GameManager *v6; // x0 __int64 result; // x0 GameManager *v8; // x0 GJAccountManager *v9; // x0 __int64 v10; // x0 __int64 v11; // x0 unsigned __int64 v12; // x0 GameManager *v13; // x0 unsigned int v14; // w2 GameManager *v15; // x0 GJAccountManager *v16; // x0 __int64 v17; // x0 __int64 v18; // x0 v2 = a2; v3 = (GameManager *)GameManager::sharedState(this); v4 = (GameManager *)GameManager::privacyPushWanted(v3); v5 = (unsigned __int8)v4; v6 = (GameManager *)GameManager::sharedState(v4); result = GameManager::getIntGameVariable(v6, "0227"); if ( v5 > v2 ) { if ( (_DWORD)result != 3 ) { if ( (_DWORD)result != 2 ) { v8 = (GameManager *)GameManager::sharedState((GameManager *)result); v9 = (GJAccountManager *)GameManager::setIntGameVariable(v8, "0227", 1u); v10 = GJAccountManager::sharedState(v9); result = (unsigned int)(*(_DWORD *)(v10 + 352) - *(_DWORD *)(v10 + 356)); if ( (int)result > 0 ) { v11 = ParentalPrivacyPopup::create(nullptr); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 1312LL))(v11); } } return result; } v13 = (GameManager *)GameManager::sharedState((GameManager *)result); v14 = 2; return GameManager::setIntGameVariable(v13, "0227", v14); } if ( v5 >= v2 ) return result; v12 = (unsigned int)(result - 2); if ( (v12 & 0xFFFFFFFD) != 0 || (v12 = ParentalPrivacyPopup::snapshotIsForOtherAccount((ParentalPrivacyPopup *)v12), (_BYTE)v12) ) { v13 = (GameManager *)GameManager::sharedState((GameManager *)v12); v14 = 0; return GameManager::setIntGameVariable(v13, "0227", v14); } v15 = (GameManager *)GameManager::sharedState((GameManager *)v12); v16 = (GJAccountManager *)GameManager::setIntGameVariable(v15, "0227", 3u); v17 = GJAccountManager::sharedState(v16); result = (unsigned int)(*(_DWORD *)(v17 + 352) - *(_DWORD *)(v17 + 356)); if ( (int)result > 0 ) { v18 = ParentalPrivacyPopup::create((ParentalPrivacyPopup *)((char *)&dword_0 + 1)); return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v18 + 1312LL))(v18); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source