//
// GJMultiplayerManager::handleItDelayed from 0x1006594d0 to 0x1006595cd (253 bytes)
//
// 0 xrefs:
//
// 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 GJMultiplayerManager::handleItDelayed(
cocos2d::CCNode *a1,
__m128 a2,
__int64 a3,
__int64 a4,
__int64 a5,
int a6)
{
char *v8; // r14
cocos2d::CCDelayTime *v9; // r15
cocos2d::CCCallFuncND *v10; // rax
cocos2d::CCSequence *v11; // rax
__m128 v12; // [rsp+0h] [rbp-50h] BYREF
void *v13; // [rsp+10h] [rbp-40h]
std::string v14[2]; // [rsp+20h] [rbp-30h] BYREF
if ( (*(_BYTE *)a4 & 1) != 0 )
{
sub_100006B70(&v12, *(const void **)(a4 + 16), *(_QWORD *)(a4 + 8), *(double *)a2.i64);
if ( (*(_BYTE *)a5 & 1) != 0 )
goto LABEL_3;
}
else
{
v13 = *(void **)(a4 + 16);
a2 = *(__m128 *)a4;
v12 = *(__m128 *)a4;
if ( (*(_BYTE *)a5 & 1) != 0 )
{
LABEL_3:
sub_100006B70(v14, *(const void **)(a5 + 16), *(_QWORD *)(a5 + 8), *(double *)a2.i64);
goto LABEL_6;
}
}
v14[0] = *(std::string *)a5;
LABEL_6:
v8 = GJHttpResult::create(1, (__int128 *)&v12, v14, a6);
if ( (*(_BYTE *)&v14[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v14[0].__r_.__value_.__l.__data_);
if ( (v12.i8[0] & 1) != 0 )
operator delete(v13);
cocos2d::CCObject::retain((cocos2d::CCObject *)v8);
v9 = cocos2d::CCDelayTime::create(0.1);
v10 = cocos2d::CCCallFuncND::create(
a1,
(cocos2d::SEL_CallFuncND)(unsigned __int64)GJMultiplayerManager::handleItND,
v8);
v11 = sub_1003B5760(v9, v10, 0);
cocos2d::CCActionManager::addAction(a1->m_pActionManager, v11, a1, 0);
}