//
// UILayer::isJumpButtonPressed from 0x1004c4fa0 to 0x1004c4fd0 (48 bytes)
//
// 8 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x10008b0c2
// > PlayLayer::loadFromCheckpoint @ 0x10008b0d6
// > PlayLayer::loadFromCheckpoint @ 0x10008b18a
// > PlayLayer::loadFromCheckpoint @ 0x10008b19e
// > sub_10008B550 @ 0x10008b5af
// > sub_10008B550 @ 0x10008b5c0
// > PlayLayer::resetLevel @ 0x10008d37f
// > PlayLayer::resetLevel @ 0x10008d3a2
//
// This function is hookable on this platform (idp: pc, 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:31:07 +0000
//
char __fastcall UILayer::isJumpButtonPressed(__int64 a1, int a2)
{
char result; // al
result = 1;
if ( a2 )
{
if ( *(_DWORD *)(a1 + 584) == -1 )
return *(_BYTE *)(a1 + 578);
}
else if ( *(_DWORD *)(a1 + 588) == -1 )
{
return *(_BYTE *)(a1 + 579);
}
return result;
}