//
// sub_63864 from 0x63864 to 0x63968 (260 bytes)
//
// 1 xrefs:
// > ??> @ 0x10c8e0
//
// 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_63864(__int64 a1, unsigned __int16 a2, const char *a3, unsigned int a4)
{
unsigned int v4; // w21
unsigned __int16 v7; // w21
__int64 v8; // x0
__int64 v9; // x20
__int64 v10; // x0
_QWORD *v11; // x19
_QWORD *v12; // x22
__int64 *v13; // x8
_QWORD *v14; // x0
unsigned int v15; // w0
__int64 v17; // [xsp+18h] [xbp-28h] BYREF
if ( *(_BYTE *)(a1 + 80) )
{
return 28;
}
else
{
if ( a2 )
v7 = a2;
else
v7 = 9264;
v17 = 0;
sub_E3930(a4);
v4 = sub_618D4(a3, v7, 0, &v17);
if ( !v4 )
{
sub_64318(*(_QWORD *)(a1 + 64));
v8 = sub_64298(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), 1392, "../../src/fmod_profile.cpp", 96);
if ( v8 )
{
v9 = v8;
v10 = sub_82E94();
v4 = sub_642B8(v10, v17);
if ( !v4 )
{
sub_64280();
v11 = (_QWORD *)(a1 + 40);
v12 = v11;
*v13 = v9;
while ( 1 )
{
v12 = (_QWORD *)*v12;
if ( v12 == v11 )
break;
if ( v12 )
v14 = v12 - 1;
else
v14 = nullptr;
v15 = sub_64270(v14);
if ( v15 )
{
v4 = v15;
goto LABEL_18;
}
}
v4 = 0;
}
}
else
{
v4 = 38;
}
LABEL_18:
sub_64258();
}
}
return v4;
}