//
// sub_1004FAF38 from 0x1004faf38 to 0x1004fafd4 (156 bytes)
//
// 1 xrefs:
// > sub_1004FAFD4 @ 0x1004fb38c
//
// 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_1004FAF38(__int64 a1, __int64 a2, int8x8_t **a3)
{
int v4; // w1
int8x8_t *v7; // x0
int8x8_t *v8; // x22
__int64 result; // x0
*a3 = nullptr;
v4 = *(_DWORD *)(a2 + 16);
if ( !v4 )
return 0;
v7 = (int8x8_t *)sub_1004B11FC(
*((__int64 **)off_1008524C8 + 54),
v4,
(char)"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec_fsb5.cpp",
563,
0,
0);
if ( !v7 )
return 38;
v8 = v7;
result = sub_1004AA0BC(a1, v7, 1u, *(_DWORD *)(a2 + 16), nullptr);
if ( !(_DWORD)result )
*a3 = v8;
return result;
}