//
// sub_1004F6690 from 0x1004f6690 to 0x1004f671d (141 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b63550
//
// 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:31:26 +0000
//
void __fastcall sub_1004F6690(__int64 a1, __int64 a2)
{
_OWORD *v2; // r14
__int64 v3; // rax
__int64 v4; // r14
__int64 v5; // rax
__int64 v6; // rax
if ( *(_QWORD *)(a1 + 64) != a2 )
{
*(_BYTE *)(a1 + 56) = 0;
if ( !*(_QWORD *)(a1 + 48) )
return;
goto LABEL_3;
}
*(_QWORD *)(a1 + 64) = 0;
*(_BYTE *)(a1 + 56) = 0;
if ( *(_QWORD *)(a1 + 48) )
{
LABEL_3:
*(_BYTE *)(a1 + 56) = 1;
v2 = cocos2d::CCDelayTime::create((__m128)0LL);
v3 = cocos2d::CCCallFunc::create(a1 - 320, sub_1004F6720, 0);
v4 = sub_10039EB60((__int64)v2, v3, 0);
v5 = cocos2d::CCDirector::sharedDirector();
v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 144LL))(v5);
cocos2d::CCActionManager::addAction(v6, v4, a1 - 320, 0);
}
}