//
// sub_10051C06C from 0x10051c06c to 0x10051c0d8 (108 bytes)
//
// 1 xrefs:
// > PlatformerControlsPopup::init @ 0x10051b7bc
//
// 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_10051C06C(__int64 result)
{
__int64 v1; // x9
__int64 v2; // x19
int v3; // w8
__int64 v4; // x0
const char *v5; // x1
__int64 v6; // x0
v1 = *(_QWORD *)(result + 1048);
if ( v1 )
{
v2 = result;
v3 = *(_DWORD *)(v1 + 1840);
*(_DWORD *)(v1 + 1840) = v3 != 1;
v4 = *(_QWORD *)(result + 1112);
if ( v4 )
{
if ( v3 == 1 )
v5 = "Edit Global Controls";
else
v5 = "Edit Custom Controls";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v4 + 928LL))(v4, v5);
}
v6 = sub_10051C7A4(v2);
return sub_10051CEC4(v6);
}
return result;
}