//
// TableViewCell::TableViewCell from 0x140076b00 to 0x140076d13 (531 bytes)
//
// 24 xrefs:
// > BoomListView::getListCell @ 0x14003c52a
// > BoomListView::getListCell @ 0x14003c5e5
// > CustomListView::getListCell @ 0x1400aa8c8
// > CustomListView::getListCell @ 0x1400aa944
// > CustomListView::getListCell @ 0x1400aaa86
// > CustomListView::getListCell @ 0x1400aabcc
// > CustomListView::getListCell @ 0x1400aac48
// > CustomListView::getListCell @ 0x1400aaccd
// > CustomListView::getListCell @ 0x1400aadd7
// > CustomListView::getListCell @ 0x1400aae6a
// > CustomListView::getListCell @ 0x1400aaeef
// > CustomListView::getListCell @ 0x1400aaf74
// > CustomListView::getListCell @ 0x1400ab02a
// > CustomListView::getListCell @ 0x1400ab0e7
// > CustomListView::getListCell @ 0x1400ab1a4
// > CustomListView::getListCell @ 0x1400ab264
// > CustomListView::getListCell @ 0x1400ab353
// > CustomListView::getListCell @ 0x1400ab3fc
// > LevelCell::LevelCell @ 0x1400adf8d
// > sub_1400B4600 @ 0x1400b4609
// > CustomSFXCell::CustomSFXCell @ 0x1400b4b09
// > CommentCell::CommentCell @ 0x1400b5b49
// > LevelListCell::LevelListCell @ 0x1400bec39
// > ??> @ 0x1406c64bc
//
// 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=4
TableViewCell *TableViewCell::TableViewCell(TableViewCell *a1, const char *a2, float a3, float a4)
{
cocos2d::CCLayerColor *v6; // rax
size_t v7; // rbx
cocos2d::CCLayer *v8; // rax
void **v9; // rdx
void *v10; // rcx
_QWORD v12[2]; // [rsp+20h] [rbp-78h] BYREF
void *Block[2]; // [rsp+30h] [rbp-68h] BYREF
size_t Size; // [rsp+40h] [rbp-58h]
unsigned __int64 v15; // [rsp+48h] [rbp-50h]
v12[1] = a1;
cocos2d::CCLayer::CCLayer(a1);
a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (TableViewCell_vtbl *)&TableViewCell::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&TableViewCell::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&TableViewCell::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&TableViewCell::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&TableViewCell::`vftable';
a1->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&TableViewCell::`vftable';
v12[0] = &a1->m_indexPath;
cocos2d::CCObject::CCObject(&a1->m_indexPath);
a1->m_indexPath.__vftable = (CCIndexPath_vtbl *)&CCIndexPath::`vftable';
*(_QWORD *)&a1->m_indexPath.m_row = 0;
a1->m_cellIdentifier.m_data.0 = 0;
a1->m_cellIdentifier.m_data.m_size = 0;
a1->m_cellIdentifier.m_data.m_capacity = 15;
a1->m_cellIdentifier.m_data.m_smallStorage._Elems[0] = 0;
a1->m_width = a3;
a1->m_height = a4;
LODWORD(v12[0]) = 0;
v6 = cocos2d::CCLayerColor::create((const struct cocos2d::_ccColor4B *)v12, a3, a4);
a1->m_backgroundLayer = v6;
v7 = -1;
cocos2d::CCNode::addChild(a1, v6, -1);
v8 = (cocos2d::CCLayer *)cocos2d::CCLayer::create();
a1->m_mainLayer = v8;
cocos2d::CCNode::addChild(a1, v8);
*(_OWORD *)Block = 0;
Size = 0;
v15 = 0;
do
++v7;
while ( a2[v7] );
sub_14003A930(Block, a2, v7);
if ( &a1->m_cellIdentifier != (std::string *)Block )
{
v9 = Block;
if ( v15 > 0xF )
v9 = (void **)Block[0];
sub_14003CCE0((void **)&a1->m_cellIdentifier, v9, Size);
}
LOBYTE(a1->m_unknown2) = 0;
a1->m_tableView = nullptr;
if ( v15 > 0xF )
{
v10 = Block[0];
if ( v15 + 1 >= 0x1000 )
{
v10 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v10 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v10);
}
return a1;
}