// // SetupObjectOptionsPopup::onDisableObject from 0x100305410 to 0x10030553e (302 bytes) // // 1 xrefs: // > SetupObjectOptionsPopup::init @ 0x100303ea0 // // 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 12:28:34 +0000 // __int64 __fastcall SetupObjectOptionsPopup::onDisableObject(__int64 a1, __int64 a2, __int64 a3) { __int64 v4; // rdi __int64 v5; // r14 double v6; // xmm0_8 __int64 v7; // rax __int64 v8; // r15 __int64 result; // rax unsigned int v10; // r12d __int64 v11; // r13 unsigned int v12; // r15d __int64 v13; // r12 *(_BYTE *)(a1 + 685) ^= 1u; v4 = *(_QWORD *)(a1 + 664); if ( v4 ) v5 = sub_1007FE9A0(v4); else v5 = *(_QWORD *)(a1 + 672); *(_QWORD *)&v6 = GameManager::sharedState(v4, a2, a3).u64[0]; v8 = *(_QWORD *)(v7 + 552); result = sub_1007FEF90(v5); if ( (_DWORD)result ) { if ( v8 ) { v10 = 0; do { v11 = sub_1007FEFE0(v5, v10); GJBaseGameLayer::removeObjectFromSection(v8, v11); *(_BYTE *)(v11 + 1214) = *(_BYTE *)(a1 + 685); (*(void (__fastcall **)(__int64, _QWORD, double))(*(_QWORD *)v11 + 1808LL))( v11, *(unsigned int *)(v11 + 924), v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)v11 + 1616LL))(v11); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 1344LL))(v8, v11); ++v10; result = sub_1007FEF90(v5); } while ( v10 < (unsigned int)result ); } else { v12 = 0; do { v13 = sub_1007FEFE0(v5, v12); *(_BYTE *)(v13 + 1214) = *(_BYTE *)(a1 + 685); (*(void (__fastcall **)(__int64, _QWORD, double))(*(_QWORD *)v13 + 1808LL))( v13, *(unsigned int *)(v13 + 924), v6); (*(void (__fastcall **)(__int64))(*(_QWORD *)v13 + 1616LL))(v13); ++v12; result = sub_1007FEF90(v5); } while ( v12 < (unsigned int)result ); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source