//
// SetupObjectOptionsPopup::onExtendedCollision from 0xab9574 to 0xab9604 (144 bytes)
//
// 3 xrefs:
// > ??> @ 0xd4158
// > SetupObjectOptionsPopup::init @ 0xabd504
// > ??> @ 0x15464d0
//
// This function is hookable on this platform (idp: arm, 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 13:01:01 +0000
//
unsigned __int64 __fastcall SetupObjectOptionsPopup::onExtendedCollision(
SetupObjectOptionsPopup *this,
cocos2d::CCObject *a2)
{
unsigned __int64 result; // x0
unsigned __int64 v4; // x21
GameObject *v5; // x1
unsigned __int8 v6; // w2
unsigned int v7; // w19
GameObject *v8; // x0
bool v9; // cf
unsigned int v10; // w1
result = GameManager::sharedState(this);
v4 = *(_QWORD *)(result + 552);
if ( v4 )
{
v5 = *((GameObject **)this + 83);
v6 = *((_BYTE *)this + 701) ^ 1;
*((_BYTE *)this + 701) = v6;
if ( v5 )
{
return GJBaseGameLayer::updateExtendedCollision(v4, v5, v6);
}
else
{
v7 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 84));
v9 = v7 >= (unsigned int)result;
v10 = v7++;
if ( v9 )
break;
v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 84), v10);
GJBaseGameLayer::updateExtendedCollision(v4, v8, *((_BYTE *)this + 701));
}
}
}
return result;
}