//
// sub_10051C188 from 0x10051c188 to 0x10051c1d8 (80 bytes)
//
// 1 xrefs:
// > PlatformerControlsPopup::init @ 0x10051ba98
//
// 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_10051C188(__int64 result)
{
__int64 v1; // x8
__int64 v2; // x19
void *v3; // x0
v1 = *(_QWORD *)(result + 1048);
if ( v1 )
{
if ( *(_DWORD *)(v1 + 1840) == 1 )
{
v2 = result;
sub_10051CC94(result);
v3 = LevelBindingsLayer::create(*(_QWORD *)(v2 + 1064) + 112LL, 1);
return (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v3 + 1312LL))(v3);
}
}
return result;
}