//
// sub_10043A110 from 0x10043a110 to 0x10043a1b8 (168 bytes)
//
// 1 xrefs:
// > sub_100439970 @ 0x1004399a0
//
// 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
//
__int64 (__fastcall **__fastcall sub_10043A110(__int64 a1, cocos2d::CCObject *a2))()
{
__int64 (__fastcall **result)(); // rax
bool v3; // zf
cocos2d::CCObject::CCObject(a1);
result = off_100937F00;
*(_QWORD *)a1 = off_100937F00;
*(_OWORD *)(a1 + 128) = 0;
*(_QWORD *)(a1 + 144) = 0;
*(_OWORD *)(a1 + 72) = 0;
*(_OWORD *)(a1 + 88) = 0;
*(_OWORD *)(a1 + 104) = 0;
*(_QWORD *)(a1 + 56) = a2;
if ( a2 )
{
cocos2d::CCObject::retain(a2);
result = *(__int64 (__fastcall ***)())(a1 + 72);
v3 = (*(_BYTE *)(a1 + 128) & 1) == 0;
*(_BYTE *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 80) = result;
if ( !v3 )
{
result = *(__int64 (__fastcall ***)())(a1 + 144);
*(_BYTE *)result = 0;
*(_QWORD *)(a1 + 136) = 0;
return result;
}
}
else
{
*(_BYTE *)(a1 + 64) = 0;
*(_QWORD *)(a1 + 80) = 0;
}
*(_WORD *)(a1 + 128) = 0;
return result;
}