//
// sub_1004A9A20 from 0x1004a9a20 to 0x1004a9ac0 (160 bytes)
//
// 1 xrefs:
// > sub_10043FA1C @ 0x1004411b4
//
// 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_1004A9A20(__int64 a1)
{
__int64 v2; // x19
const void *v3; // x20
void *v4; // x0
v3 = *(const void **)(a1 + 480);
v2 = *(_QWORD *)(a1 + 488);
v4 = (void *)sub_1004B14F8(
*((_QWORD *)off_1008524C8 + 54),
(unsigned int)(*(_DWORD *)(a1 + 348) + 1),
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_file.cpp",
1744,
0);
*(_QWORD *)(a1 + 488) = v4;
if ( !v4 )
return 38;
*(_QWORD *)(a1 + 480) = v4;
if ( v3 )
memcpy(v4, v3, *(unsigned int *)(a1 + 348));
if ( v2 )
sub_1004B1970(
*((_QWORD *)off_1008524C8 + 54),
v2,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_file.cpp",
1759,
1);
return 0;
}