//
// sub_1004F0398 from 0x1004f0398 to 0x1004f04c0 (296 bytes)
//
// 2 xrefs:
// > sub_1004EFE78 @ 0x1004eff0c
// > sub_1004EFE78 @ 0x1004f02ec
//
// 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:06:45 +0000
//
void __fastcall sub_1004F0398(__int64 *a1, __int64 a2)
{
__int64 v4; // x25
char v5; // w27
__int64 v6; // x24
unsigned int *v7; // x23
unsigned int *v8; // x27
__int64 v9; // x24
int v10; // w0
unsigned int *v11; // [xsp+0h] [xbp-70h] BYREF
unsigned int *v12; // [xsp+8h] [xbp-68h]
int v13; // [xsp+1Ch] [xbp-54h] BYREF
v4 = 0;
v5 = 1;
do
{
v6 = *(unsigned int *)((char *)&unk_10077007C + v4);
(*(void (__fastcall **)(unsigned int **__return_ptr, __int64, __int64))(*(_QWORD *)a2 + 16LL))(&v11, a2, v6);
v7 = v11;
if ( v11 == v12 )
goto LABEL_8;
if ( (v5 & 1) == 0 )
sub_10000CB50(a1, ";", 0);
v13 = v6;
sub_100009A40((int)a1, v6, (int)&v13);
v7 = v11;
v8 = v12;
if ( v11 != v12 )
{
do
{
v9 = *v7;
v10 = (unsigned int)sub_10000CB50(a1, ",", 0);
v13 = v9;
sub_100009A40(v10, v9, (int)&v13);
++v7;
}
while ( v7 != v8 );
v5 = 0;
v7 = v11;
LABEL_8:
if ( !v7 )
goto LABEL_10;
LABEL_9:
v12 = v7;
operator delete(v7);
goto LABEL_10;
}
v5 = 0;
if ( v11 )
goto LABEL_9;
LABEL_10:
v4 += 4;
}
while ( v4 != 24 );
}