//
// cocos2d::extension::CCTableView::initWithViewSize from 0x180014cd0 to 0x180014de2 (274 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x180014c8e
// > ??> @ 0x18002fdf8
// > ??> @ 0x18004a71c
//
// 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=3
char __fastcall cocos2d::extension::CCTableView::initWithViewSize(
__int64 a1,
const struct cocos2d::CCSize *a2,
__int64 a3)
{
const struct cocos2d::CCSize *v5; // rax
cocos2d::CCArray *v6; // rbx
cocos2d::CCArray *v7; // rbx
cocos2d::CCArray *v8; // rbx
_QWORD *v9; // rax
cocos2d::CCArray *v11; // [rsp+48h] [rbp+20h] BYREF
v5 = (const struct cocos2d::CCSize *)cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v11, a2);
if ( !cocos2d::extension::CCScrollView::initWithViewSize(a1, v5, a3) )
return 0;
v6 = (cocos2d::CCArray *)operator new(0x40u);
v11 = v6;
cocos2d::CCArray::CCArray(v6);
*(_QWORD *)v6 = &cocos2d::extension::CCArrayForObjectSorting::`vftable';
*(_QWORD *)(a1 + 624) = v6;
v7 = (cocos2d::CCArray *)operator new(0x40u);
v11 = v7;
cocos2d::CCArray::CCArray(v7);
*(_QWORD *)v7 = &cocos2d::extension::CCArrayForObjectSorting::`vftable';
*(_QWORD *)(a1 + 632) = v7;
v8 = (cocos2d::CCArray *)operator new(0x10u);
v11 = v8;
*(_QWORD *)v8 = 0;
*((_QWORD *)v8 + 1) = 0;
v9 = operator new(0x20u);
*v9 = v9;
v9[1] = v9;
v9[2] = v9;
*((_WORD *)v9 + 12) = 257;
*(_QWORD *)v8 = v9;
*(_QWORD *)(a1 + 592) = v8;
*(_DWORD *)(a1 + 584) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1016LL))(a1, 1);
*(_QWORD *)(a1 + 424) = a1 + 568;
return 1;
}