// // ParentalOptionsLayer::applyPrivacyPushEdge from 0x530250 to 0x5302fe (174 bytes) // // 1 xrefs: // > ParentalOptionsLayer::onToggle @ 0x53034c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:52:03 +0000 // int __fastcall ParentalOptionsLayer::applyPrivacyPushEdge(ParentalOptionsLayer *this, int a2) { GameManager *v3; // r0 GameManager *v4; // r6 GameManager *v5; // r0 int result; // r0 GameManager *v7; // r0 int v8; // r3 const char *v9; // r2 GameManager *v10; // r0 int v11; // r3 GJAccountManager *v12; // r0 bool v13; // r1 ParentalPrivacyPopup *v14; // r0 GameManager *v15; // r0 int v16; // r3 GJAccountManager *v17; // r0 FLAlertLayer *v18; // r0 v3 = (GameManager *)GameManager::sharedState(this); v4 = (GameManager *)GameManager::privacyPushWanted(v3); v5 = (GameManager *)GameManager::sharedState(v4); result = GameManager::getIntGameVariable(v5, "0227"); if ( v4 ) { if ( a2 ) return result; if ( result == 3 ) { v7 = (GameManager *)GameManager::sharedState((GameManager *)((char *)&dword_0 + 3)); v9 = (_BYTE *)(&dword_0 + 2); return GameManager::setIntGameVariable(v7, "0227", v9, v8); } if ( result != 2 ) { v10 = (GameManager *)GameManager::sharedState((GameManager *)result); v12 = (GJAccountManager *)GameManager::setIntGameVariable(v10, "0227", (_BYTE *)&dword_0 + 1, v11); result = GJAccountManager::sharedState(v12); if ( *(_DWORD *)(result + 280) - *(_DWORD *)(result + 284) > 0 ) { v14 = nullptr; LABEL_14: v18 = ParentalPrivacyPopup::create(v14, v13); return (*(int (__fastcall **)(FLAlertLayer *))(*(_DWORD *)v18 + 656))(v18); } } } else { if ( !a2 ) return result; if ( result != 2 && result != 4 || (result = ParentalPrivacyPopup::snapshotIsForOtherAccount((ParentalPrivacyPopup *)result)) != 0 ) { v7 = (GameManager *)GameManager::sharedState((GameManager *)result); v9 = nullptr; return GameManager::setIntGameVariable(v7, "0227", v9, v8); } v15 = (GameManager *)GameManager::sharedState(nullptr); v17 = (GJAccountManager *)GameManager::setIntGameVariable(v15, "0227", (_BYTE *)&dword_0 + 3, v16); result = GJAccountManager::sharedState(v17); if ( *(_DWORD *)(result + 280) - *(_DWORD *)(result + 284) > 0 ) { v14 = (ParentalPrivacyPopup *)((char *)&dword_0 + 1); goto LABEL_14; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source