//
// sub_1000808C0 from 0x1000808c0 to 0x100080938 (120 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:20:02 +0000
//
__int64 __fastcall sub_1000808C0(_QWORD **a1)
{
unsigned __int8 v1; // r14
__int64 result; // rax
v1 = 1;
if ( !((unsigned __int8 (__fastcall *)(_QWORD **))(*a1)[164])(a1) )
v1 = ((__int64 (__fastcall *)(_QWORD **))(*a1)[165])(a1);
result = (*(__int64 (__fastcall **)(_QWORD *))(*a1[1727] + 352LL))(a1[1727]);
if ( v1 != (_BYTE)result )
{
cocos2d::CCDrawNode::clear(a1[1727]);
result = (*(__int64 (__fastcall **)(_QWORD *, _QWORD))(*a1[1727] + 344LL))(a1[1727], v1);
if ( v1 )
return ((__int64 (__fastcall *)(_QWORD **))(*a1)[163])(a1);
}
return result;
}