//
// sub_18000EB10 from 0x18000eb10 to 0x18000ebbe (174 bytes)
//
// 4 xrefs:
// > sub_18000EB10 @ 0x18000eb8c
// > sub_18000EB10 @ 0x18000eb9e
// > cocos2d::CCSet::CCSet @ 0x18000ed2d
// > ??> @ 0x1801adf84
//
// 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
//
// Hidden C++ exception states: #wind=1
_QWORD *__fastcall sub_18000EB10(_QWORD *a1, __int64 a2, __int64 a3)
{
_QWORD *v6; // rsi
_QWORD *v7; // rbx
__int64 v9; // rax
v6 = (_QWORD *)*a1;
if ( !*(_BYTE *)(a2 + 25) )
{
v7 = operator new(0x28u);
v7[4] = *(_QWORD *)(a2 + 32);
*v7 = v6;
v7[2] = v6;
*((_WORD *)v7 + 12) = 0;
v7[1] = a3;
*((_BYTE *)v7 + 24) = *(_BYTE *)(a2 + 24);
if ( *((_BYTE *)v6 + 25) )
v6 = v7;
try
{
*v7 = sub_18000EB10(a1, *(_QWORD *)a2);
v7[2] = sub_18000EB10(a1, *(_QWORD *)(a2 + 16));
}
catch ( ... )
{
v9 = kmVec4Lerp((__int64)a1);
sub_18000EC40(a1, v9, v6);
throw;
}
}
return v6;
}