//
// SetupObjectOptionsPopup::onExtendedCollision from 0x6398d2 to 0x639926 (84 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:55:23 +0000
//
_DWORD *__fastcall SetupObjectOptionsPopup::onExtendedCollision(cocos2d::CCArray **this, cocos2d::CCObject *a2)
{
_DWORD *result; // r0
_DWORD *v4; // r6
GameObject *v5; // r1
int v6; // r2
unsigned int i; // r4
GameObject *v8; // r0
result = (_DWORD *)GameManager::sharedState((GameManager *)this);
v4 = (_DWORD *)result[102];
if ( v4 )
{
v5 = *(this + 130);
v6 = *((unsigned __int8 *)this + 549) ^ 1;
*((_BYTE *)this + 549) = v6;
if ( v5 )
{
return GJBaseGameLayer::updateExtendedCollision(v4, v5, v6);
}
else
{
for ( i = 0; ; ++i )
{
result = (_DWORD *)cocos2d::CCArray::count(*(this + 131));
if ( i >= (unsigned int)result )
break;
v8 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 131), i);
GJBaseGameLayer::updateExtendedCollision(v4, v8, *((unsigned __int8 *)this + 549));
}
}
}
return result;
}