// // SetupObjectOptionsPopup::onDisableObject from 0x140596a10 to 0x140596b34 (292 bytes) // // 2 xrefs: // > SetupObjectOptionsPopup::init @ 0x1405957e9 // > @ 0x14092d08c // // 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 // // Hidden C++ exception states: #wind=1 unsigned int __fastcall SetupObjectOptionsPopup::onDisableObject(__int64 a1) { struct cocos2d::CCObject *v2; // rcx cocos2d::CCArray *v3; // rbp __int64 v4; // rdi __int64 v5; // rdi unsigned int v6; // esi unsigned int result; // eax struct cocos2d::CCObject *v8; // rax struct cocos2d::CCObject *v9; // rbx void *v10; // [rsp+40h] [rbp+8h] *(_BYTE *)(a1 + 685) = *(_BYTE *)(a1 + 685) == 0; v2 = *(struct cocos2d::CCObject **)(a1 + 664); if ( v2 ) v3 = cocos2d::CCArray::createWithObject(v2); else v3 = *(cocos2d::CCArray **)(a1 + 672); v4 = qword_14090BFD0; if ( !qword_14090BFD0 ) { v10 = operator new(0x6E8u); qword_14090BFD0 = GameManager::GameManager((__int64)v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0); v4 = qword_14090BFD0; } v5 = *(_QWORD *)(v4 + 568); v6 = 0; result = cocos2d::CCArray::count(v3); if ( result ) { do { v8 = cocos2d::CCArray::objectAtIndex(v3, v6); v9 = v8; if ( v5 ) GJBaseGameLayer::removeObjectFromSection(v5, (__int64)v8); *((_BYTE *)v9 + 1222) = *(_BYTE *)(a1 + 685); (*(void (__fastcall **)(struct cocos2d::CCObject *, _QWORD))(*(_QWORD *)v9 + 1656LL))( v9, *((unsigned int *)v9 + 233)); (*(void (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v9 + 1464LL))(v9); if ( v5 ) (*(void (__fastcall **)(__int64, struct cocos2d::CCObject *))(*(_QWORD *)v5 + 1192LL))(v5, v9); ++v6; result = cocos2d::CCArray::count(v3); } while ( v6 < result ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source