// // SelectEventLayer::onCustomToggleTriggerValue from 0x6bbd98 to 0x6bbede (326 bytes) // // 0 xrefs: // // 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:56:46 +0000 // void __fastcall SelectEventLayer::onCustomToggleTriggerValue(SelectEventLayer *this, cocos2d::CCObject *a2, int a3) { _DWORD *v5; // r0 int (__fastcall *v6)(cocos2d::CCObject *); // r3 int v7; // r0 int *v8; // r8 int *v9; // r6 int *v10; // r5 int *v11; // r2 _DWORD *v12; // r0 int *v13; // r3 int v14; // r0 int *v15; // r5 int v16; // r9 int v17; // r3 int *v18; // r3 _DWORD *v19; // r0 int v20; // r3 int v21; // r3 int v22; // r5 _DWORD *v23; // r4 CCMenuItemToggler *v24; // r6 _BOOL4 v25; // r1 int v26; // r2 int v27[3]; // [sp+0h] [bp-Ch] BYREF v27[0] = (int)this; v27[1] = (int)a2; v27[2] = a3; if ( a2 ) { *((_BYTE *)this + 716) = 1; v27[0] = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2); v5 = std::__tree::__count_unique((_DWORD *)this + 186, v27); v6 = *(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32); if ( v5 ) { v7 = v6(a2); v8 = *((int **)this + 187); v9 = v8; v10 = (int *)((char *)this + 748); while ( v9 ) { if ( v9[4] >= v7 ) { v11 = (int *)*v9; } else { v11 = (int *)v9[1]; v9 = v10; } v10 = v9; v9 = v11; } if ( v10 != (int *)((char *)this + 748) && v7 >= v10[4] ) { v12 = std::__tree_next *>(v10); v13 = *((int **)this + 186); --*((_DWORD *)this + 188); if ( v13 == v10 ) *((_DWORD *)this + 186) = v12; std::__tree_remove *>(v8, v10); operator delete(v10); } } else { v14 = v6(a2); v15 = *((int **)this + 187); v16 = v14; if ( v15 ) { while ( 1 ) { v17 = v15[4]; if ( v14 >= v17 ) { if ( v17 >= v14 ) { v27[0] = (int)v15; v15 = v27; goto LABEL_24; } v18 = (int *)v15[1]; if ( !v18 ) { v27[0] = (int)v15++; goto LABEL_24; } } else { v18 = (int *)*v15; if ( !*v15 ) goto LABEL_23; } v15 = v18; } } v15 = (int *)((char *)this + 748); LABEL_23: v27[0] = (int)v15; LABEL_24: if ( !*v15 ) { v19 = (_DWORD *)operator new(0x14u); v19[4] = v16; std::__tree::__insert_node_at((int **)this + 186, v27[0], (_DWORD **)v15, v19); } } } v20 = *((_DWORD *)this + 146); if ( v20 ) { v21 = *(_DWORD *)(v20 + 52); if ( v21 ) v22 = *(_DWORD *)(v21 + 272); else v22 = 0; v23 = (_DWORD *)((char *)this + 744); while ( v21 ) { v24 = *(CCMenuItemToggler **)(v21 + 260); v27[0] = (*(int (__fastcall **)(CCMenuItemToggler *))(*(_DWORD *)v24 + 32))(v24); v25 = std::__tree::__count_unique(v23, v27) != nullptr; CCMenuItemToggler::toggle(v24, v25); if ( v22 ) v26 = *(_DWORD *)(v22 + 272); else v26 = 0; v21 = v22; v22 = v26; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source