// // SetupObjectOptionsPopup::onClose from 0x1405976e0 to 0x140597802 (290 bytes) // // 2 xrefs: // > @ 0x1407e4cf0 // > @ 0x14092d1c4 // // 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:34 +0000 // __int64 __fastcall SetupObjectOptionsPopup::onClose(__int64 a1) { __int64 v2; // rdi __int64 v3; // rdi struct cocos2d::CCObject *v4; // rbx __int64 v5; // rbp struct cocos2d::CCObject *v6; // rdx cocos2d::CCArray *v7; // rcx __int64 v8; // rdx void *v10; // [rsp+30h] [rbp+8h] v2 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v2 = qword_14090BFD0; } v3 = *(_QWORD *)(v2 + 568); if ( v3 ) { if ( *(_BYTE *)(a1 + 703) ) { v4 = *(struct cocos2d::CCObject **)(a1 + 664); if ( v4 ) { v5 = *(_QWORD *)(v3 + 14944); v6 = *(struct cocos2d::CCObject **)(a1 + 664); v7 = *(cocos2d::CCArray **)(v5 + 592); if ( *((_BYTE *)v4 + 1796) ) { if ( !cocos2d::CCArray::containsObject(v7, v6) ) { cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v5 + 592), v4); *(_BYTE *)(v5 + 633) = 1; EffectGameObject::updateSpeedModType(v4); } } else if ( cocos2d::CCArray::containsObject(v7, v6) ) { cocos2d::CCArray::removeObject(*(cocos2d::CCArray **)(v5 + 592), v4, 1); *(_BYTE *)(v5 + 633) = 1; } *(_BYTE *)(v3 + 14840) = 1; } } *(_BYTE *)(v3 + 15666) = 1; } (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0); LOBYTE(v8) = 1; return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v8); }
GD Web Decomp Icon

GD Web Decomp

Raw Source