//
// isRelevantForPlayer from 0x9a7540 to 0x9a75b0 (112 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::buttonIsRelevant @ 0x9a7690
// > GJBaseGameLayer::buttonIsRelevant @ 0x9a76a8
// > GJBaseGameLayer::buttonIsRelevant @ 0x9a76e0
// > ??> @ 0xa0018
//
// 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 12:58:10 +0000
//
__int64 __fastcall isRelevantForPlayer(cocos2d::CCArray **this, __int64 a2)
{
unsigned int v3; // w19
unsigned __int8 isFlying; // w0
unsigned int v5; // w19
int v7; // w0
__int64 v8; // [xsp+28h] [xbp+28h]
__int64 v9; // [xsp+28h] [xbp+28h]
v3 = *(unsigned __int8 *)(a2 + 4);
if ( *(_BYTE *)(a2 + 4) )
{
v9 = a2;
v7 = cocos2d::CCArray::count(*(this + 318));
a2 = v9;
if ( v7 )
return v3;
}
v8 = a2;
isFlying = PlayerObject::isFlying((PlayerObject *)this);
v5 = isFlying;
if ( !isFlying )
{
v5 = *(unsigned __int8 *)(v8 + 4);
if ( *(_BYTE *)(v8 + 4) )
return *((unsigned __int8 *)this + 2425);
}
return v5;
}