//
// sub_10051C130 from 0x10051c130 to 0x10051c188 (88 bytes)
//
// 1 xrefs:
// > PlatformerControlsPopup::init @ 0x10051ba3c
//
// 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_10051C130(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x0
__int64 v4; // x1
__int64 v5; // x0
v2 = *(_QWORD *)(a1 + 1048);
if ( v2 && *(_DWORD *)(v2 + 1840) == 1 )
{
sub_10051CC94(a1);
v3 = *(unsigned __int8 *)(a1 + 1057);
v4 = *(_QWORD *)(a1 + 1064);
}
else
{
v3 = *(unsigned __int8 *)(a1 + 1057);
v4 = 0;
}
v5 = sub_10052CBE8(v3, v4);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}