//
// sub_100427B80 from 0x100427b80 to 0x100427c28 (168 bytes)
//
// 1 xrefs:
// > sub_1004273E0 @ 0x100427410
//
// 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:30:18 +0000
//
__int64 (__fastcall **__fastcall sub_100427B80(__int64 a1, __int64 a2))()
{
__int64 (__fastcall **result)(); // rax
bool v3; // zf
cocos2d::CCObject::CCObject(a1);
result = off_100B41D30;
*(_QWORD *)a1 = off_100B41D30;
*(_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;
}