// // GJItemIcon::toggleEnabledState from 0x140383fb0 to 0x14038406f (191 bytes) // // 5 xrefs: // > GJGarageLayer::setupSpecialPage @ 0x14037f98a // > GJGarageLayer::onToggleItem @ 0x1403803d3 // > @ 0x1408bd650 // > @ 0x1408bd660 // > @ 0x140922a48 // // This function is hookable on this platform (idp: pc, 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 11:31:06 +0000 // void __fastcall GJItemIcon::toggleEnabledState(__int64 a1, char a2) { void (__fastcall ***v2)(_QWORD, _QWORD); // rbx __int16 *v3; // rdx cocos2d::CCArray *v4; // rax cocos2d::CCArray *v5; // rdi unsigned int v6; // ebx struct cocos2d::CCObject *v7; // rax __int64 v8; // rdx _BYTE v9[3]; // [rsp+30h] [rbp+8h] BYREF __int16 v10; // [rsp+40h] [rbp+18h] BYREF char v11; // [rsp+42h] [rbp+1Ah] if ( !*(_BYTE *)(a1 + 620) ) { v2 = *(void (__fastcall ****)(_QWORD, _QWORD))(a1 + 600); if ( a2 ) { v3 = &v10; v10 = -1; v11 = -1; } else { memset(v9, 100, sizeof(v9)); v3 = (__int16 *)v9; } (*v2[40])(v2 + 40, v3); v4 = (cocos2d::CCArray *)((__int64 (__fastcall *)(void (__fastcall ***)(_QWORD, _QWORD)))(*v2)[60])(v2); v5 = v4; if ( v4 ) { v6 = 0; if ( cocos2d::CCArray::count(v4) ) { do { v7 = cocos2d::CCArray::objectAtIndex(v5, v6); LOBYTE(v8) = 1; (*(void (__fastcall **)(struct cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 336LL))(v7, v8); ++v6; } while ( v6 < cocos2d::CCArray::count(v5) ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source