//
// sub_1004AA3B0 from 0x1004aa3b0 to 0x1004aa3eb (59 bytes)
//
// 84 xrefs:
// > ??> @ 0x100aba9f8
// > ??> @ 0x100abb188
// > ??> @ 0x100ac3f90
// > ??> @ 0x100ac4628
// > ??> @ 0x100ac5238
// > ??> @ 0x100ac57f8
// > ??> @ 0x100ac5ef0
// > ??> @ 0x100ade9d8
// > ??> @ 0x100ae7ad8
// > ??> @ 0x100ae8068
// > ??> @ 0x100ae85f8
// > ??> @ 0x100ae8b88
// > ??> @ 0x100ae9118
// > ??> @ 0x100ae96c8
// > ??> @ 0x100ae9cd0
// > ??> @ 0x100aea2e0
// > ??> @ 0x100aea8a0
// > ??> @ 0x100aeae30
// > ??> @ 0x100aeb3d0
// > ??> @ 0x100aeb998
// > ??> @ 0x100aebf40
// > ??> @ 0x100aec4d0
// > ??> @ 0x100aeca60
// > ??> @ 0x100aecff0
// > ??> @ 0x100aed580
// > ??> @ 0x100aedb18
// > ??> @ 0x100aee0e0
// > ??> @ 0x100aee6c0
// > ??> @ 0x100aeec50
// > ??> @ 0x100aef1e0
// > ??> @ 0x100aef7c8
// > ??> @ 0x100af6118
// > ??> @ 0x100af6700
// > ??> @ 0x100afe750
// > ??> @ 0x100affda0
// > ??> @ 0x100b0e360
// > ??> @ 0x100b16c78
// > ??> @ 0x100b17280
// > ??> @ 0x100b17810
// > ??> @ 0x100b1d8f8
// > ??> @ 0x100b1e840
// > ??> @ 0x100b23d20
// > ??> @ 0x100b27e68
// > ??> @ 0x100b28510
// > ??> @ 0x100b2af20
// > ??> @ 0x100b2f030
// > ??> @ 0x100b30308
// > ??> @ 0x100b31e90
// > ??> @ 0x100b36740
// > ??> @ 0x100b37cc8
// > ??> @ 0x100b3bdf0
// > ??> @ 0x100b414f0
// > ??> @ 0x100b43f50
// > ??> @ 0x100b44e10
// > ??> @ 0x100b45908
// > ??> @ 0x100b45f30
// > ??> @ 0x100b46538
// > ??> @ 0x100b4e0d8
// > ??> @ 0x100b50848
// > ??> @ 0x100b50e58
// > ??> @ 0x100b51458
// > ??> @ 0x100b538f0
// > ??> @ 0x100b53f38
// > ??> @ 0x100b54538
// > ??> @ 0x100b54be0
// > ??> @ 0x100b55210
// > ??> @ 0x100b559a0
// > ??> @ 0x100b6b830
// > ??> @ 0x100b72410
// > ??> @ 0x100b85bc0
// > ??> @ 0x100b89860
// > ??> @ 0x100b8c908
// > ??> @ 0x100b8cec8
// > ??> @ 0x100b8d478
// > ??> @ 0x100b90860
// > ??> @ 0x100b97958
// > ??> @ 0x100b97f28
// > ??> @ 0x100b999f8
// > ??> @ 0x100ba65f0
// > ??> @ 0x100ba6c58
// > ??> @ 0x100babb50
// > ??> @ 0x100bb5998
// > ??> @ 0x100bcddb8
// > ??> @ 0x100bcee90
//
// 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 12:30:56 +0000
//
void __fastcall sub_1004AA3B0(__int64 a1, __int64 a2)
{
_QWORD *v2; // rax
if ( *(_DWORD *)(a1 - 20) )
{
v2 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, __int64, __int64, __int64))(*(_QWORD *)*v2 + 120LL))(*v2, a1 - 320, 1, a2);
}
}