//
// sub_100620004 from 0x100620004 to 0x1006200dc (216 bytes)
//
// 1 xrefs:
// > sub_10061F258 @ 0x10061f338
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100620004(__int64 a1, __int64 a2, __int64 a3, __int64 a4)
{
_BYTE *v4; // x0
__int64 v5; // x19
__int64 v6; // x21
__int64 v7; // x0
int v8; // w0
v4 = sub_10061FC3C(a1, a2, a3, a4);
v5 = (__int64)v4;
if ( !v4 )
return 0;
if ( *(_DWORD *)v4 != 6 )
{
v8 = dword_100885AA4;
if ( !dword_100885AA4 )
{
v8 = sub_1005E197C();
dword_100885AA4 = v8;
}
sub_1005E0E48(v8, 106, 103, (__int64)"e_chil.c", 892);
sub_1005E9A8C(v5);
return 0;
}
sub_100588190(9, 10, (__int64)"e_chil.c", 878);
v6 = *(_QWORD *)(v5 + 32);
v7 = sub_1005C798C();
*(_QWORD *)(v5 + 32) = v7;
*(_QWORD *)(v7 + 32) = *(_QWORD *)(v6 + 32);
*(_QWORD *)(*(_QWORD *)(v5 + 32) + 40LL) = *(_QWORD *)(v6 + 40);
*(_QWORD *)(v6 + 32) = 0;
*(_QWORD *)(v6 + 40) = 0;
sub_100588190(10, 10, (__int64)"e_chil.c", 885);
sub_1005C7B3C(v6);
return v5;
}