//
// cocos2d::extension::CCTableView::initWithViewSize from 0x1800148a0 to 0x1800149b4 (276 bytes)
//
// 3 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x18001485e
// > ??> @ 0x180032408
// > ??> @ 0x18004c638
//
// 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:41 +0000
//
// 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
__int64 *v8; // rbx
__int64 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 *)sub_18001F040(0x40u);
v11 = v6;
cocos2d::CCArray::CCArray(v6);
*(_QWORD *)v6 = &cocos2d::extension::CCArrayForObjectSorting::`vftable';
*(_QWORD *)(a1 + 624) = v6;
v7 = (cocos2d::CCArray *)sub_18001F040(0x40u);
v11 = v7;
cocos2d::CCArray::CCArray(v7);
*(_QWORD *)v7 = &cocos2d::extension::CCArrayForObjectSorting::`vftable';
*(_QWORD *)(a1 + 632) = v7;
v8 = (__int64 *)sub_18001F040(0x10u);
v11 = (cocos2d::CCArray *)v8;
*v8 = 0;
v8[1] = 0;
v9 = sub_18001F040(0x20u);
*(_QWORD *)v9 = v9;
*(_QWORD *)(v9 + 8) = v9;
*(_QWORD *)(v9 + 16) = v9;
*(_WORD *)(v9 + 24) = 257;
*v8 = v9;
*(_QWORD *)(a1 + 592) = v8;
*(_DWORD *)(a1 + 584) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1032LL))(a1, 1);
*(_QWORD *)(a1 + 424) = a1 + 568;
return 1;
}