//
// sub_1008DB7F0 from 0x1008db7f0 to 0x1008db88c (156 bytes)
//
// 2 xrefs:
// > sub_1008DAF70 @ 0x1008db0a4
// > sub_1008DAF70 @ 0x1008db335
//
// 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:37:43 +0000
//
void __fastcall sub_1008DB7F0(_QWORD *a1, __int64 a2)
{
__int64 v3; // rdi
char *v4; // rax
_QWORD *v5; // rdi
void (__fastcall ***v6)(_QWORD, _QWORD *); // rdi
if ( a2 )
{
cocos2d::CCObject::retain(a2);
cocos2d::CCObject::autorelease(a2);
v3 = a1[114];
if ( v3 )
{
v4 = (char *)a1[115];
if ( v4 )
{
v5 = (_QWORD *)(a1[116] + v3);
if ( ((unsigned __int8)v4 & 1) != 0 )
v4 = *(char **)&v4[*v5 - 1];
((void (__fastcall *)(_QWORD *, __int64))v4)(v5, a2);
}
}
v6 = (void (__fastcall ***)(_QWORD, _QWORD *))a1[113];
if ( v6 )
{
a1[113] = 0;
(**v6)(v6, a1);
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
(*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 528LL))(a1, 1);
}
}