//
// sub_1004B1250 from 0x1004b1250 to 0x1004b128b (59 bytes)
//
// 80 xrefs:
// > ??> @ 0x1008b74b0
// > ??> @ 0x1008c07f0
// > ??> @ 0x1008c0e60
// > ??> @ 0x1008c1a18
// > ??> @ 0x1008c1fb0
// > ??> @ 0x1008c2688
// > ??> @ 0x1008da860
// > ??> @ 0x1008e3390
// > ??> @ 0x1008e3900
// > ??> @ 0x1008e3e70
// > ??> @ 0x1008e43e0
// > ??> @ 0x1008e4950
// > ??> @ 0x1008e4ee0
// > ??> @ 0x1008e5490
// > ??> @ 0x1008e5a48
// > ??> @ 0x1008e5fe8
// > ??> @ 0x1008e6558
// > ??> @ 0x1008e6ad8
// > ??> @ 0x1008e7080
// > ??> @ 0x1008e7608
// > ??> @ 0x1008e7b78
// > ??> @ 0x1008e8108
// > ??> @ 0x1008e86e8
// > ??> @ 0x1008e8cc8
// > ??> @ 0x1008e9288
// > ??> @ 0x1008e97f8
// > ??> @ 0x1008e9d68
// > ??> @ 0x1008ea330
// > ??> @ 0x1008efc30
// > ??> @ 0x1008f01f8
// > ??> @ 0x1008f7d50
// > ??> @ 0x1008f9290
// > ??> @ 0x100906d28
// > ??> @ 0x10090f158
// > ??> @ 0x10090f740
// > ??> @ 0x10090fcb0
// > ??> @ 0x100915ab0
// > ??> @ 0x1009169b8
// > ??> @ 0x1009170a8
// > ??> @ 0x10091b510
// > ??> @ 0x10091bb68
// > ??> @ 0x10091fb20
// > ??> @ 0x100920128
// > ??> @ 0x100922a58
// > ??> @ 0x1009269c0
// > ??> @ 0x100927be8
// > ??> @ 0x1009296f0
// > ??> @ 0x10092de78
// > ??> @ 0x10092f3a0
// > ??> @ 0x100932288
// > ??> @ 0x1009376e8
// > ??> @ 0x100939e00
// > ??> @ 0x10093ac80
// > ??> @ 0x10093b748
// > ??> @ 0x10093bd50
// > ??> @ 0x10093c338
// > ??> @ 0x100943cf0
// > ??> @ 0x100945ae0
// > ??> @ 0x1009460d0
// > ??> @ 0x1009466b0
// > ??> @ 0x100948a98
// > ??> @ 0x1009490c0
// > ??> @ 0x1009496a0
// > ??> @ 0x100949d28
// > ??> @ 0x10094a338
// > ??> @ 0x10094aaa8
// > ??> @ 0x10095ecf0
// > ??> @ 0x100964eb8
// > ??> @ 0x100973100
// > ??> @ 0x100976c08
// > ??> @ 0x100979518
// > ??> @ 0x100979ab8
// > ??> @ 0x10097a048
// > ??> @ 0x10097d288
// > ??> @ 0x100983cc8
// > ??> @ 0x100984278
// > ??> @ 0x100985c80
// > ??> @ 0x100990f00
// > ??> @ 0x100991548
// > ??> @ 0x100995920
//
// 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
//
void __fastcall sub_1004B1250(__int64 a1, __int64 a2)
{
cocos2d::CCScriptEngineManager *v2; // rax
if ( *(_DWORD *)(a1 - 20) )
{
v2 = cocos2d::CCScriptEngineManager::sharedManager();
(*(void (__fastcall **)(_QWORD, __int64, __int64, __int64))(**(_QWORD **)v2 + 120LL))(
*(_QWORD *)v2,
a1 - 320,
2,
a2);
}
}