//
// PlayLayer::isJumpHeldForPlayer from 0x401e20 to 0x401e9a (122 bytes)
//
// 2 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x4119d4
// > PlayLayer::loadFromCheckpoint @ 0x411a04
//
// 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:47:24 +0000
//
int __fastcall PlayLayer::isJumpHeldForPlayer(PlayLayer *this, int a2)
{
int v2; // r4
int v5; // r7
GameManager *v6; // r0
int GameVariable; // r8
int isJumpButtonPressed; // r6
int v9; // r11
int v10; // r0
v2 = *((unsigned __int8 *)this + 10614);
if ( *((_BYTE *)this + 10614) )
return 0;
v5 = *(unsigned __int8 *)(*((_DWORD *)this + 521) + 280);
if ( *((_BYTE *)this + 10728) )
{
GameVariable = *((unsigned __int8 *)this + 10614);
}
else
{
v6 = (GameManager *)GameManager::sharedState(this);
GameVariable = GameManager::getGameVariable(v6, "0010");
}
isJumpButtonPressed = UILayer::isJumpButtonPressed(*((UILayer **)this + 2810), 1);
v9 = isJumpButtonPressed;
v10 = UILayer::isJumpButtonPressed(*((UILayer **)this + 2810), 0);
if ( GameVariable )
{
isJumpButtonPressed = v10;
v10 = v9;
}
if ( a2 )
{
if ( !isJumpButtonPressed )
{
if ( v10 )
return v5 ^ 1;
return v2;
}
return 1;
}
if ( v10 )
return 1;
if ( isJumpButtonPressed )
return v5 ^ 1;
return v2;
}