//
// sub_1006AB440 from 0x1006ab440 to 0x1006ab4f3 (179 bytes)
//
// 2 xrefs:
// > ??> @ 0x100b6ab98
// > ??> @ 0x100b870f8
//
// 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:35:22 +0000
//
__int64 __fastcall sub_1006AB440(__int64 a1, unsigned __int16 *a2)
{
__int64 result; // rax
void *v3; // rax
void *v4; // rbx
__int64 v5; // rax
__int16 v6; // [rsp-1Ch] [rbp-1Ch] BYREF
char v7; // [rsp-1Ah] [rbp-1Ah]
*(_BYTE *)(a1 + 119) = *((_BYTE *)a2 + 2);
*(_WORD *)(a1 + 117) = *a2;
result = *a2;
*(_BYTE *)(a1 + 116) = *((_BYTE *)a2 + 2);
*(_WORD *)(a1 + 114) = result;
if ( *(_BYTE *)(a1 + 120) == 1 )
{
v7 = -1;
v6 = -1;
if ( *(_QWORD *)(a1 - 152) )
{
v3 = __dynamic_cast(
*(const void **)(a1 - 152),
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,
(const struct __class_type_info *)&`typeinfo for'cocos2d::CCRGBAProtocol,
-2);
if ( v3 )
{
v4 = v3;
if ( (*(unsigned __int8 (__fastcall **)(void *))(*(_QWORD *)v3 + 64LL))(v3) )
{
v5 = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v4 + 16LL))(v4);
v6 = *(_WORD *)v5;
v7 = *(_BYTE *)(v5 + 2);
}
}
}
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)(a1 - 368) + 1080LL))(a1 - 368, &v6);
}
return result;
}