//
// sub_10045F9E8 from 0x10045f9e8 to 0x10045fabc (212 bytes)
//
// 2 xrefs:
// > sub_10043FA1C @ 0x100440088
// > sub_10045F7F8 @ 0x10045f9a4
//
// 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_10045F9E8(__int64 a1)
{
__int64 result; // x0
__int64 v3; // x0
_QWORD v4[2]; // [xsp+8h] [xbp-58h] BYREF
__int128 v5; // [xsp+18h] [xbp-48h]
_BYTE v6[28]; // [xsp+28h] [xbp-38h] BYREF
__int16 v7; // [xsp+44h] [xbp-1Ch]
int v8; // [xsp+48h] [xbp-18h]
v4[0] = v4;
v4[1] = v4;
v5 = 0u;
memset(v6, 0, sizeof(v6));
v7 = 1;
v8 = 0;
result = *(_QWORD *)(a1 + 368);
if ( result )
{
result = (*(__int64 (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)result + 16LL))(result, v4);
if ( !(_DWORD)result )
{
v3 = *(_QWORD *)(a1 + 360);
if ( !v3 )
{
v3 = sub_1004B11FC(
*((_QWORD *)off_1008524C8 + 54),
72,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec.cpp",
254,
0,
0,
1);
if ( !v3 )
{
*(_QWORD *)(a1 + 360) = 0;
return 38;
}
*(_QWORD *)v3 = v3;
*(_QWORD *)(v3 + 8) = v3;
*(_OWORD *)(v3 + 16) = 0u;
*(_OWORD *)(v3 + 32) = 0u;
*(_OWORD *)(v3 + 44) = 0u;
*(_WORD *)(v3 + 60) = 1;
*(_DWORD *)(v3 + 64) = 0;
*(_QWORD *)(a1 + 360) = v3;
}
return sub_1004B2828(v3, v4);
}
}
return result;
}