//
// sub_1004F1170 from 0x1004f1170 to 0x1004f11a4 (52 bytes)
//
// 4 xrefs:
// > PlatformerControlsPopup::init @ 0x10051b73c
// > sub_10051C560 @ 0x10051c5c8
// > sub_10051CF84 @ 0x10051cfa8
// > PlatformerControlsPopup::update @ 0x10051d15c
//
// 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 11:06:45 +0000
//
__int64 __fastcall sub_1004F1170(_QWORD *a1)
{
__int64 v1; // x8
bool v2; // zf
_BOOL4 v3; // w8
int v4; // w11
v1 = a1[12];
v2 = v1 == 0;
v3 = v1 != 0;
if ( v2 )
v4 = 2;
else
v4 = 3;
if ( a1[19] != a1[20] )
v3 = v4;
if ( a1[17] )
return v3 | 4u;
else
return v3;
}