//
// sub_10014A688 from 0x10014a688 to 0x10014a74c (196 bytes)
//
// 2 xrefs:
// > PlayLayer::loadFromCheckpoint @ 0x10014a40c
// > PlayLayer::loadFromCheckpoint @ 0x10014a44c
//
// 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 10:59:36 +0000
//
__int64 __fastcall sub_10014A688(__int64 a1, int a2)
{
int v5; // w23
char v6; // w21
__int64 v7; // x0
char v8; // w0
int isJumpButtonPressed; // w22
int v10; // w0
int v11; // w8
int v12; // w9
if ( (*(_BYTE *)(a1 + 12238) & 1) != 0 )
return 0;
v5 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 3272) + 340LL);
if ( (*(_BYTE *)(a1 + 12448) & 1) != 0 )
{
v6 = 0;
}
else
{
v7 = GameManager::sharedState(a1);
GameManager::getGameVariable(v7, "0010");
v6 = v8;
}
isJumpButtonPressed = UILayer::isJumpButtonPressed(*(_QWORD *)(a1 + 13288), 1);
v10 = UILayer::isJumpButtonPressed(*(_QWORD *)(a1 + 13288), 0);
if ( (v6 & 1) != 0 )
v11 = v10;
else
v11 = isJumpButtonPressed;
if ( (v6 & 1) != 0 )
v12 = isJumpButtonPressed;
else
v12 = v10;
if ( a2 )
{
if ( (v11 & 1) == 0 )
return v12 & (v5 ^ 1u);
return 1;
}
if ( (v12 & 1) != 0 )
return 1;
return v11 & (v5 ^ 1u);
}