//
// sub_10008B550 from 0x10008b550 to 0x10008b609 (185 bytes)
//
// 0 xrefs:
//
// 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:20:06 +0000
//
char __fastcall sub_10008B550(__int64 a1, __int64 a2, __int64 a3)
{
char result; // al
char v4; // bl
char v5; // r13
char GameVariable; // r15
__int64 v7; // rax
char isJumpButtonPressed; // si
char v9; // cl
char v10; // dl
if ( *(_BYTE *)(a1 + 12238) )
return 0;
v4 = a2;
v5 = *(_BYTE *)(*(_QWORD *)(a1 + 3272) + 340LL);
if ( *(_BYTE *)(a1 + 12448) )
{
GameVariable = 0;
}
else
{
GameManager::sharedState(a1, a2, a3);
GameVariable = GameManager::getGameVariable(v7, "0010");
}
isJumpButtonPressed = UILayer::isJumpButtonPressed(*(_QWORD *)(a1 + 13288), 1);
v9 = UILayer::isJumpButtonPressed(*(_QWORD *)(a1 + 13288), 0);
v10 = isJumpButtonPressed;
if ( (GameVariable & 1) != 0 )
{
v10 = v9;
v9 = isJumpButtonPressed;
}
result = 1;
if ( v4 )
{
if ( !v10 )
return (v5 ^ 1) & v9;
}
else if ( !v9 )
{
return (v5 ^ 1) & v10;
}
return result;
}