// // LevelSettingsLayer::onSelectMode from 0xb62750 to 0xb6280c (188 bytes) // // 1 xrefs: // > @ 0x9a9a8 // // 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 13:02:13 +0000 // __int64 __fastcall LevelSettingsLayer::onSelectMode(LevelSettingsLayer *this, cocos2d::CCObject *a2) { __int64 v3; // x19 unsigned int v4; // w20 int v5; // w22 CCMenuItemToggler *v6; // x19 unsigned __int8 v7; // w1 void (__fastcall *v8)(CCMenuItemToggler *, _BOOL8); // x23 _BOOL8 v9; // x1 __int64 result; // x0 bool v11; // cf unsigned int v12; // w1 if ( a2 ) { v3 = *((_QWORD *)this + 102); *(_DWORD *)(v3 + 328) = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); } v4 = 0; v5 = *(_DWORD *)(*((_QWORD *)this + 102) + 328LL); while ( 1 ) { result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 104)); v11 = v4 >= (unsigned int)result; v12 = v4++; if ( v11 ) break; v6 = (CCMenuItemToggler *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 104), v12); v7 = v5 == (*(unsigned int (__fastcall **)(CCMenuItemToggler *))(*(_QWORD *)v6 + 64LL))(v6); CCMenuItemToggler::toggle(v6, v7); v8 = *(void (__fastcall **)(CCMenuItemToggler *, _BOOL8))(*(_QWORD *)v6 + 1056LL); v9 = v5 != (*(unsigned int (__fastcall **)(CCMenuItemToggler *))(*(_QWORD *)v6 + 64LL))(v6); v8(v6, v9); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source