//
// GJBaseGameLayer::canTouchObject from 0x58f780 to 0x58f7a0 (32 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::collisionCheckObjects @ 0x5ba3be
//
// 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:53:04 +0000
//
int __fastcall GJBaseGameLayer::canTouchObject(GJBaseGameLayer *this, GameObject *a2)
{
int v2; // r3
int result; // r0
int v4; // r2
v2 = *((_DWORD *)this + 183);
if ( !v2 )
return 1;
result = *((_DWORD *)a2 + 271);
if ( result != 1 )
return 1;
v4 = *((_DWORD *)a2 + 398);
if ( v4 )
return v4 == v2;
return result;
}