//
// sub_624CC from 0x624cc to 0x62584 (184 bytes)
//
// 4 xrefs:
// > sub_6202C @ 0x622e8
// > sub_6202C @ 0x623c4
// > sub_6C5EC @ 0x6c638
// > sub_70138 @ 0x70144
//
// 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 12:13:54 +0000
//
__int64 __fastcall sub_624CC(__int64 a1, _DWORD *a2)
{
_DWORD *v2; // x19
__int64 v3; // x20
int v5; // w4
int v6; // w21
__int64 v7; // x3
__int64 v8; // x22
__int64 v9; // x8
_QWORD *v10; // x0
_QWORD *v11; // x24
void *v12; // x0
__int64 result; // x0
int v14; // w8
__int64 v15; // x9
__int64 v16; // x10
if ( !a2 )
return 31;
if ( *a2 != 5 )
return 56;
sub_634DC();
v6 = v5;
v8 = v7;
v10 = (_QWORD *)sub_6348C(*(_QWORD *)(v9 + 432));
if ( !v10 )
return 38;
v11 = v10;
*v10 = v10;
v10[1] = v10;
v10[2] = 0;
v12 = memcpy(v10 + 3, a2, 0x98u);
v11[34] = v8;
*((_DWORD *)v11 + 44) = v6;
*((_DWORD *)v11 + 45) = 1048;
result = sub_63558(v12);
*((_DWORD *)v11 + 48) = v14;
v15 = *(_QWORD *)(v3 + 656);
*v11 = v16;
v11[1] = v15;
*(_QWORD *)(v3 + 656) = v11;
*(_QWORD *)v11[1] = v11;
if ( v2 )
*v2 = v14;
return result;
}