//
// sub_10051C694 from 0x10051c694 to 0x10051c708 (116 bytes)
//
// 3 xrefs:
// > PlatformerControlsPopup::init @ 0x10051bec4
// > PlatformerControlsPopup::onLevelControlsRefreshed @ 0x10051d298
// > PlatformerControlsPopup::uploadActionFinished @ 0x10051d3f4
//
// 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:07:09 +0000
//
__int64 __fastcall sub_10051C694(__int64 a1)
{
__int64 v2; // x9
__int64 v3; // x8
_BOOL8 v4; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 1048);
if ( v2 )
{
v3 = *(char *)(v2 + 1807);
if ( v3 < 0 )
v3 = *(_QWORD *)(v2 + 1792);
v4 = v3 != 0;
}
else
{
v4 = 0;
}
result = *(_QWORD *)(a1 + 1168);
if ( result )
{
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)result + 344LL))(result, v4);
return (*(__int64 (__fastcall **)(_QWORD, _BOOL8))(**(_QWORD **)(a1 + 1168) + 1056LL))(*(_QWORD *)(a1 + 1168), v4);
}
return result;
}