//
// sub_10012394C from 0x10012394c to 0x1001239f8 (172 bytes)
//
// 3 xrefs:
// > HSVWidgetPopup::keyBackClicked @ 0x100123c7c
// > sub_100123C80 @ 0x100123c84
// > HSVWidgetPopup::init @ 0x100123848
//
// 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:59:16 +0000
//
__int64 __fastcall sub_10012394C(_QWORD *a1)
{
__int64 v2; // x8
__int64 v3; // x9
__int64 v4; // x9
__int64 v5; // x21
_QWORD *v6; // x20
void (__fastcall ***v7)(_QWORD, _QWORD *, _QWORD, _QWORD); // x0
v2 = a1[83];
v3 = *(_QWORD *)(v2 + 416);
if ( v3 )
{
v4 = *(_QWORD *)(v3 + 56);
if ( v4 )
{
do
{
v5 = *(_QWORD *)(v4 + 288);
v6 = *(_QWORD **)(v4 + 264);
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v6 + 1160LL))(v6, 0);
v6[73] = 0;
v4 = v5;
}
while ( v5 );
v2 = a1[83];
}
}
if ( (*(_BYTE *)(v2 + 392) & 1) == 0 )
{
v7 = (void (__fastcall ***)(_QWORD, _QWORD *, _QWORD, _QWORD))a1[84];
if ( v7 )
(**v7)(v7, a1, *(_QWORD *)(v2 + 376), *(_QWORD *)(v2 + 384));
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 528LL))(a1, 1);
}