//
// isRelevantForPlayer from 0x5952c0 to 0x5952ea (42 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::buttonIsRelevant @ 0x59536e
// > GJBaseGameLayer::buttonIsRelevant @ 0x59537c
//
// 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:08 +0000
//
int __fastcall isRelevantForPlayer(cocos2d::CCArray **this, int a2)
{
int isFlying; // r4
isFlying = *(unsigned __int8 *)(a2 + 4);
if ( !*(_BYTE *)(a2 + 4) || !cocos2d::CCArray::count(*(this + 519)) )
{
isFlying = PlayerObject::isFlying((PlayerObject *)this);
if ( !isFlying )
{
isFlying = *(unsigned __int8 *)(a2 + 4);
if ( *(_BYTE *)(a2 + 4) )
return *((unsigned __int8 *)this + 1961);
}
}
return isFlying;
}