//
// sub_10063BB70 from 0x10063bb70 to 0x10063bc40 (208 bytes)
//
// 0 xrefs:
//
// 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_10063BB70(__int64 **a1, const char *a2)
{
__int64 *v2; // rax
__int64 v5; // rax
__int64 v6; // rcx
unsigned __int64 v7; // rax
__int64 **v8; // rdi
__int64 v9; // rcx
__int64 v10; // rsi
__int64 *v11; // rax
__int64 result; // rax
__int64 v13; // r15
__int64 *v14; // rcx
__int64 v15; // rdx
__int64 *v16; // rsi
__int64 *v17; // [rsp-28h] [rbp-28h] BYREF
v2 = *a1;
if ( !*a1 )
return 0;
v17 = *a1;
v5 = *v2;
v6 = v5 & 7;
if ( v6 != 6 && (_DWORD)v6 != 1 )
return 0;
v7 = v5 & 0xFFFFFFFFFFFFFFE0LL;
v8 = *(__int64 ***)v7;
v9 = *(_QWORD *)(*(_QWORD *)v7 + 8LL);
if ( (unsigned __int64)(v9 + 40) < 0x8001 )
{
v11 = *v8;
v10 = (__int64)*v8 + v9 + 48;
v8[1] = (__int64 *)(v9 + 40);
}
else
{
v10 = sub_100647FA0(v8, 40, &v17);
v11 = v17;
}
*(_QWORD *)v10 = v11;
*(_OWORD *)(v10 + 8) = 0;
*(_OWORD *)(v10 + 24) = 0;
v13 = v10;
sub_10063B180((const char **)(v10 + 8), (__int64 *)v10, 16, a2);
v14 = *a1;
v15 = (*a1)[7];
if ( v15 )
{
v16 = (__int64 *)(v15 + 24);
result = v13;
*(_QWORD *)(v13 + 24) = *(_QWORD *)(v15 + 24);
}
else
{
result = v10;
v16 = (__int64 *)(v10 + 24);
}
*v16 = result;
*(_QWORD *)(result + 32) = v15;
v14[7] = result;
return result;
}