//
// sub_1004AA4B0 from 0x1004aa4b0 to 0x1004aa4eb (59 bytes)
//
// 91 xrefs:
// > ??> @ 0x100abaa08
// > ??> @ 0x100abb198
// > ??> @ 0x100ac3fa0
// > ??> @ 0x100ac4638
// > ??> @ 0x100ac5248
// > ??> @ 0x100ac5808
// > ??> @ 0x100ac5f00
// > ??> @ 0x100ade9e8
// > ??> @ 0x100ae7ae8
// > ??> @ 0x100ae8078
// > ??> @ 0x100ae8608
// > ??> @ 0x100ae8b98
// > ??> @ 0x100ae9128
// > ??> @ 0x100ae96d8
// > ??> @ 0x100ae9ce0
// > ??> @ 0x100aea2f0
// > ??> @ 0x100aea8b0
// > ??> @ 0x100aeae40
// > ??> @ 0x100aeb3e0
// > ??> @ 0x100aeb9a8
// > ??> @ 0x100aebf50
// > ??> @ 0x100aec4e0
// > ??> @ 0x100aeca70
// > ??> @ 0x100aed000
// > ??> @ 0x100aed590
// > ??> @ 0x100aedb28
// > ??> @ 0x100aee0f0
// > ??> @ 0x100aee6d0
// > ??> @ 0x100aeec60
// > ??> @ 0x100aef1f0
// > ??> @ 0x100aef7d8
// > ??> @ 0x100af6128
// > ??> @ 0x100af6710
// > ??> @ 0x100afe760
// > ??> @ 0x100affdb0
// > ??> @ 0x100b0e370
// > ??> @ 0x100b13ab8
// > ??> @ 0x100b16c88
// > ??> @ 0x100b17290
// > ??> @ 0x100b17820
// > ??> @ 0x100b1d908
// > ??> @ 0x100b1e850
// > ??> @ 0x100b1ef60
// > ??> @ 0x100b1fef8
// > ??> @ 0x100b236b8
// > ??> @ 0x100b23d30
// > ??> @ 0x100b27e78
// > ??> @ 0x100b28520
// > ??> @ 0x100b2af30
// > ??> @ 0x100b2d1a0
// > ??> @ 0x100b2f040
// > ??> @ 0x100b2f6f8
// > ??> @ 0x100b30318
// > ??> @ 0x100b31ea0
// > ??> @ 0x100b36750
// > ??> @ 0x100b37cd8
// > ??> @ 0x100b3be00
// > ??> @ 0x100b41500
// > ??> @ 0x100b43f60
// > ??> @ 0x100b44e20
// > ??> @ 0x100b45918
// > ??> @ 0x100b45f40
// > ??> @ 0x100b46548
// > ??> @ 0x100b4e0e8
// > ??> @ 0x100b50858
// > ??> @ 0x100b50e68
// > ??> @ 0x100b51468
// > ??> @ 0x100b53900
// > ??> @ 0x100b53f48
// > ??> @ 0x100b54548
// > ??> @ 0x100b54bf0
// > ??> @ 0x100b55220
// > ??> @ 0x100b559b0
// > ??> @ 0x100b6b840
// > ??> @ 0x100b714e0
// > ??> @ 0x100b72420
// > ??> @ 0x100b85bd0
// > ??> @ 0x100b89870
// > ??> @ 0x100b8c918
// > ??> @ 0x100b8ced8
// > ??> @ 0x100b8d488
// > ??> @ 0x100b90870
// > ??> @ 0x100b97968
// > ??> @ 0x100b97f38
// > ??> @ 0x100b99a08
// > ??> @ 0x100ba6600
// > ??> @ 0x100ba6c68
// > ??> @ 0x100babb60
// > ??> @ 0x100bb59a8
// > ??> @ 0x100bcddc8
// > ??> @ 0x100bceea0
//
// 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_1004AA4B0(__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, 3, a2);
}
}