//
// cocos2d::extension::CCTableView::initWithViewSize from 0x7af450 to 0x7af4f8 (168 bytes)
//
// 1 xrefs:
// > cocos2d::extension::CCTableView::create @ 0x7afb64
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:00:05 +0000
//
cocos2d::CCLayer *__fastcall cocos2d::extension::CCTableView::initWithViewSize(
int *a1,
const cocos2d::CCSize *a2,
int a3,
int a4)
{
cocos2d::CCLayer *v6; // r7
cocos2d::CCArray *v7; // r8
cocos2d::CCArray *v8; // r8
_DWORD *v9; // r0
int v10; // r3
_DWORD v12[3]; // [sp+4h] [bp-Ch] BYREF
v12[0] = a2;
v12[1] = a3;
v12[2] = a4;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v12, a2);
v6 = cocos2d::extension::CCScrollView::initWithViewSize(a1, (const cocos2d::CCSize *)v12, a3);
if ( v6 )
{
v7 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v7);
*(_DWORD *)v7 = &off_D015C8;
a1[119] = (int)v7;
v8 = (cocos2d::CCArray *)operator new(0x38u);
cocos2d::CCArray::CCArray(v8);
*(_DWORD *)v8 = &off_D015C8;
a1[120] = (int)v8;
v9 = (_DWORD *)operator new(0xCu);
v9[1] = 0;
v9[2] = 0;
*v9 = v9 + 1;
v10 = *a1;
a1[115] = (int)v9;
a1[114] = 1;
(*(void (__fastcall **)(int *))(v10 + 576))(a1);
a1[82] = (int)(a1 + 112);
}
return v6;
}