//
// sub_10059EDD4 from 0x10059edd4 to 0x10059ee34 (96 bytes)
//
// 24 xrefs:
// > sub_100552B78 @ 0x100552bb8
// > sub_100552B78 @ 0x100552bec
// > sub_100552F80 @ 0x10055318c
// > sub_100552F80 @ 0x1005531a4
// > sub_100554414 @ 0x100554500
// > sub_100554414 @ 0x100554594
// > sub_100554414 @ 0x100554710
// > sub_1005FF778 @ 0x1005ff7e4
// > sub_1005FF778 @ 0x1005ff7f8
// > sub_1005FF778 @ 0x1005ff80c
// > sub_1005FFB68 @ 0x1005ffc18
// > sub_100609F38 @ 0x100609f7c
// > sub_100609F38 @ 0x100609f90
// > sub_10060BF4C @ 0x10060c138
// > sub_10060BF4C @ 0x10060c178
// > sub_10060CAB8 @ 0x10060caf8
// > sub_10060D2A8 @ 0x10060d4cc
// > sub_10060D2A8 @ 0x10060d598
// > sub_10060D2A8 @ 0x10060d5f4
// > sub_1006156D0 @ 0x1006157c8
// > sub_100615D20 @ 0x100616084
// > sub_100615D20 @ 0x1006160d8
// > sub_100615D20 @ 0x1006160f0
// > sub_100615D20 @ 0x100616108
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:09:00 +0000
//
__int64 __fastcall sub_10059EDD4(__int64 a1, __int64 a2)
{
int v2; // w20
__int64 result; // x0
v2 = a2;
result = sub_1005D7364(
*((_QWORD *)off_1009DA5E8 + 54),
a2,
"/opt/teamcity-agent/work/570ad728b1678096/core_api/src/fmod_codec_oggvorbis.cpp",
21,
0,
0,
1);
if ( a1 )
{
if ( result )
*(_DWORD *)(a1 + 1264) += v2;
}
return result;
}