// // ParentalOptionsLayer::applyToggleLock from 0x8f0020 to 0x8f0128 (264 bytes) // // 3 xrefs: // > ParentalOptionsLayer::updateToggleStates @ 0x8f0180 // > ParentalOptionsLayer::updateToggleStates @ 0x8f019c // > @ 0x5e978 // // 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:57 +0000 // __int64 __fastcall ParentalOptionsLayer::applyToggleLock( ParentalOptionsLayer *this, cocos2d::CCArray *a2, unsigned __int8 a3) { unsigned int v4; // w19 unsigned int v5; // w24 unsigned int v6; // w1 __int64 v7; // x20 __int64 v8; // x22 unsigned int v9; // w22 char v11; // [xsp+50h] [xbp+50h] BYREF char v12; // [xsp+51h] [xbp+51h] char v13; // [xsp+52h] [xbp+52h] if ( a2 ) { if ( a3 ) { v11 = -106; v12 = -106; v13 = -106; } else { v11 = -1; v12 = -1; v13 = -1; } v4 = 0; v5 = a3 ^ 1; while ( 1 ) { v9 = v4 + 1; if ( (unsigned int)cocos2d::CCArray::count(a2) <= v4 + 1 ) break; v6 = v4; v4 += 2; v7 = cocos2d::CCArray::objectAtIndex(a2, v6); v8 = cocos2d::CCArray::objectAtIndex(a2, v9); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1056LL))(v7, v5); CCMenuItemToggler::setSpriteColor(v7, (__int64)&v11); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)v8 + 1072LL))(v8, &v11); } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source