//
// sub_100058414 from 0x100058414 to 0x100058468 (84 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x100056e0c
//
// 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 10:57:46 +0000
//
__int64 __fastcall sub_100058414(__int64 a1)
{
__int64 ActiveMode; // x0
int v3; // w20
__int64 v4; // x0
double v5; // d0
double v6; // d1
_WORD *v7; // x0
_QWORD *v8; // x0
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
v3 = ActiveMode;
v4 = GameManager::sharedState(ActiveMode);
v7 = sub_10000F52C(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v4 + 552) + 3272LL) + 320LL), v3, v5, v6);
v8 = (_QWORD *)sub_10049E428(v7);
v8[140] = a1 + 672;
return (*(__int64 (__fastcall **)(_QWORD *))(*v8 + 1312LL))(v8);
}