//
// sub_180016C00 from 0x180016c00 to 0x180016c89 (137 bytes)
//
// 3 xrefs:
// > ??> @ 0x18002b368
// > ??> @ 0x18002b740
// > ??> @ 0x18004c8fc
//
// 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:15:42 +0000
//
_QWORD *__fastcall sub_180016C00(_QWORD *a1, char a2)
{
int v3; // esi
v3 = a2 & 1;
if ( (a2 & 2) != 0 )
{
sub_18001F0B0(a1, 8, *(a1 - 1), cocos2d::extension::CCTableViewDelegate::~CCTableViewDelegate);
if ( v3 )
j_j_j_free(a1 - 1);
return a1 - 1;
}
else
{
*a1 = &cocos2d::extension::CCScrollViewDelegate::`vftable';
if ( (a2 & 1) != 0 )
j_j_free(a1);
return a1;
}
}