// // SetupInstantCountPopup::onCountType from 0x1405b8ca0 to 0x1405b8d69 (201 bytes) // // 6 xrefs: // > SetupInstantCountPopup::init @ 0x1405b83ad // > SetupInstantCountPopup::init @ 0x1405b8455 // > SetupInstantCountPopup::init @ 0x1405b8509 // > @ 0x1408dfd20 // > @ 0x1408dfd30 // > @ 0x14092de24 // // 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:34:45 +0000 // unsigned int __fastcall SetupInstantCountPopup::onCountType(__int64 a1, __int64 a2) { int v3; // eax __int64 v4; // rcx __int64 v5; // rdx __int64 v6; // rdx __int64 v7; // rdx unsigned int result; // eax __int64 v9; // rcx cocos2d::CCArray *v10; // rcx unsigned int v11; // edi struct cocos2d::CCObject *v12; // rax v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2); v4 = *(_QWORD *)(a1 + 1048); *(_DWORD *)(a1 + 1040) = v3; LOBYTE(v5) = v3 == 0; CCMenuItemToggler::toggle(v4, v5); LOBYTE(v6) = *(_DWORD *)(a1 + 1040) == 1; CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1056), v6); LOBYTE(v7) = *(_DWORD *)(a1 + 1040) == 2; result = CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 1064), v7); v9 = *(_QWORD *)(a1 + 680); if ( v9 ) { result = *(_DWORD *)(a1 + 1040); *(_DWORD *)(v9 + 1860) = result; } else { v10 = *(cocos2d::CCArray **)(a1 + 688); if ( v10 ) { v11 = 0; result = cocos2d::CCArray::count(v10); if ( result ) { do { v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 688), v11++); *((_DWORD *)v12 + 465) = *(_DWORD *)(a1 + 1040); result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 688)); } while ( v11 < result ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source