//
// sub_1800A3520 from 0x1800a3520 to 0x1800a354f (47 bytes)
//
// 17 xrefs:
// > sub_1800A3760 @ 0x1800a3796
// > sub_1800A3990 @ 0x1800a39fc
// > sub_1800A3990 @ 0x1800a3c2a
// > sub_1800A3990 @ 0x1800a3ce3
// > sub_1800A3990 @ 0x1800a3e41
// > sub_1800A3990 @ 0x1800a3ea6
// > sub_1800A3F70 @ 0x1800a3f95
// > sub_1800A3F70 @ 0x1800a4021
// > sub_1800A3F70 @ 0x1800a40c8
// > sub_1800A3F70 @ 0x1800a4147
// > cocos2d::unzGetGlobalComment @ 0x1800a4982
// > cocos2d::unzGetLocalExtrafield @ 0x1800a4aa3
// > sub_1800A5760 @ 0x1800a5841
// > sub_1800A5760 @ 0x1800a5984
// > sub_1800A5760 @ 0x1800a5a04
// > sub_1800A5760 @ 0x1800a5ab0
// > cocos2d::unzReadCurrentFile @ 0x1800a5dd7
//
// This function is hookable on this platform (idp: pc, 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:22:14 +0000
//
__int64 __fastcall sub_1800A3520(__int64 a1, __int64 a2, __int64 a3)
{
__int64 (__fastcall *v3)(_QWORD); // rax
v3 = *(__int64 (__fastcall **)(_QWORD))(a1 + 32);
if ( v3 )
return v3(*(_QWORD *)(a1 + 56));
if ( (unsigned int)a3 == a3 )
return (*(__int64 (__fastcall **)(_QWORD, __int64, _QWORD))(a1 + 80))(*(_QWORD *)(a1 + 56), a2, (unsigned int)a3);
return 0xFFFFFFFFLL;
}