//
// SetupObjectOptionsPopup::onExtendedCollision from 0x100305780 to 0x100305830 (176 bytes)
//
// 1 xrefs:
// > SetupObjectOptionsPopup::init @ 0x10030437e
//
// 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
//
void __fastcall SetupObjectOptionsPopup::onExtendedCollision(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
__int64 v4; // r14
char v5; // al
__int64 v6; // rsi
unsigned int v7; // r15d
__int64 v8; // rax
GameManager::sharedState(a1, a2, a3);
v4 = *(_QWORD *)(v3 + 552);
if ( v4 )
{
v5 = *(_BYTE *)(a1 + 701) ^ 1;
*(_BYTE *)(a1 + 701) = v5;
v6 = *(_QWORD *)(a1 + 664);
if ( v6 )
{
GJBaseGameLayer::updateExtendedCollision(v4, v6, v5);
}
else if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 672)) )
{
v7 = 0;
do
{
v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 672), v7);
GJBaseGameLayer::updateExtendedCollision(v4, v8, *(_BYTE *)(a1 + 701));
++v7;
}
while ( v7 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 672)) );
}
}
}