//
// sub_10047CB4C from 0x10047cb4c to 0x10047cbcc (128 bytes)
//
// 2 xrefs:
// > sub_10020CAFC @ 0x10020cb3c
// > sub_10047CAC8 @ 0x10047cb00
//
// 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:05:44 +0000
//
__int64 __fastcall sub_10047CB4C(__int64 a1, int a2)
{
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
double v7; // d0
double v8; // d1
_WORD *v9; // x0
_QWORD *v10; // x0
v4 = *(_QWORD *)(a1 + 1544);
if ( v4 )
{
ColorSelectLiveOverlay::closeColorSelect(v4, 0);
*(_QWORD *)(a1 + 1544) = 0;
}
v5 = *(_QWORD *)(a1 + 1552);
if ( v5 )
{
HSVLiveOverlay::closeColorSelect(v5, 0);
*(_QWORD *)(a1 + 1552) = 0;
}
v6 = GameManager::sharedState();
v9 = sub_10000F52C(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v6 + 552) + 3272LL) + 320LL), a2, v7, v8);
v10 = sub_100119878((__int64)v9, 0);
*(_QWORD *)(a1 + 1544) = v10;
v10[92] = a1 + 416;
v10[71] = a1;
return (*(__int64 (__fastcall **)(_QWORD *))(*v10 + 1312LL))(v10);
}