//
// GJMultiplayerManager::handleItDelayed from 0x100738b30 to 0x100738c2d (253 bytes)
//
// 0 xrefs:
//
// 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:36:25 +0000
//
__int64 __fastcall GJMultiplayerManager::handleItDelayed(__int64 a1, __int64 a2, std::string *a3, __int64 a4, int a5)
{
char *v7; // r14
_OWORD *v8; // r15
__int64 v9; // rax
__int64 v10; // rax
std::string v12; // [rsp+0h] [rbp-50h] BYREF
std::string v13[2]; // [rsp+20h] [rbp-30h] BYREF
if ( (*(_BYTE *)&a3->__r_.__value_.__s.0 & 1) != 0 )
{
sub_10001AD30(&v12, a3->__r_.__value_.__l.__data_, a3->__r_.__value_.__l.__size_);
if ( (*(_BYTE *)a4 & 1) != 0 )
goto LABEL_3;
}
else
{
v12 = *a3;
if ( (*(_BYTE *)a4 & 1) != 0 )
{
LABEL_3:
sub_10001AD30(v13, *(const void **)(a4 + 16), *(_QWORD *)(a4 + 8));
goto LABEL_6;
}
}
v13[0] = *(std::string *)a4;
LABEL_6:
v7 = GJHttpResult::create(1, &v12, v13, a5);
if ( (*(_BYTE *)&v13[0].__r_.__value_.__s.0 & 1) != 0 )
operator delete(v13[0].__r_.__value_.__l.__data_);
if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v12.__r_.__value_.__l.__data_);
cocos2d::CCObject::retain((__int64)v7);
v8 = cocos2d::CCDelayTime::create((__m128)0x3DCCCCCDu);
v9 = cocos2d::CCCallFuncND::create(a1, GJMultiplayerManager::handleItND, 0, v7);
v10 = sub_10039EB60((__int64)v8, v9, 0);
return cocos2d::CCActionManager::addAction(*(_QWORD *)(a1 + 264), v10, a1, 0);
}