//
// sub_100628444 from 0x100628444 to 0x10062853c (248 bytes)
//
// 2 xrefs:
// > sub_100628044 @ 0x1006280b4
// > sub_100628044 @ 0x100628148
//
// 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_100628444(__int64 a1, unsigned int *a2)
{
unsigned int v4; // w0
char **v5; // x20
__int64 v6; // x21
int v7; // w0
__int64 v8; // x0
__int64 v9; // x0
__int64 v11; // x0
void *v12; // x22
int v13; // w23
__int64 v14; // [xsp+8h] [xbp-38h] BYREF
v4 = sub_1005E9A40(a2);
v5 = sub_10058AB9C(v4);
v6 = sub_1006298EC(a2);
v14 = 0;
if ( !v6 )
return 0;
v7 = sub_1005E9A40(a2);
if ( v7 == 811 )
{
v8 = sub_1005E9848((__int64)a2);
if ( v8 )
v9 = sub_1005BFB24(v8);
else
v9 = 0;
}
else if ( v7 == 812 )
{
v11 = sub_1005E9848((__int64)a2);
if ( v11 )
v9 = *(_QWORD *)(v11 + 56);
else
v9 = 0;
}
else
{
v9 = 0;
}
v12 = sub_1005F00A0(v9, nullptr);
v13 = sub_1005F8E9C((__int64)v12, &v14);
sub_1005F8EB4((__int64)v12);
return sub_1005FC4BC(a1, (__int64)v5, 0, 16, v6, v14, v13);
}