//
// TableViewCell::TableViewCell from 0x100626e10 to 0x100626ff7 (487 bytes)
//
// 74 xrefs:
// > CustomListView::getListCell @ 0x10024080d
// > CustomListView::getListCell @ 0x1002408d6
// > CustomListView::getListCell @ 0x100240993
// > CustomListView::getListCell @ 0x100240a22
// > CustomListView::getListCell @ 0x100240aca
// > CustomListView::getListCell @ 0x100240b75
// > CustomListView::getListCell @ 0x100240bf6
// > CustomListView::getListCell @ 0x100240cbd
// > CustomListView::getListCell @ 0x100240d4b
// > CustomListView::getListCell @ 0x100240dde
// > CustomListView::getListCell @ 0x100240e96
// > CustomListView::getListCell @ 0x100240f43
// > CustomListView::getListCell @ 0x100240fd8
// > CustomListView::getListCell @ 0x100241081
// > CustomListView::getListCell @ 0x1002410fd
// > CustomListView::getListCell @ 0x100241187
// > CustomListView::getListCell @ 0x1002411ba
// > CustomListView::getListCell @ 0x100241256
// > CustomListView::getListCell @ 0x1002412f9
// > CustomListView::getListCell @ 0x100241379
// > CustomListView::getListCell @ 0x100241431
// > CustomListView::getListCell @ 0x1002414b4
// > CustomListView::getListCell @ 0x100241530
// > CustomListView::getListCell @ 0x1002415a9
// > CustomListView::getListCell @ 0x10024163d
// > sub_100241850 @ 0x100241859
// > sub_1002418C0 @ 0x1002418c9
// > sub_100241930 @ 0x100241939
// > sub_1002419B0 @ 0x1002419b9
// > sub_100241A30 @ 0x100241a3a
// > sub_100241AC0 @ 0x100241ac9
// > sub_100241B50 @ 0x100241b5a
// > sub_100241BF0 @ 0x100241bf9
// > sub_100241C60 @ 0x100241c69
// > sub_100241CD0 @ 0x100241cd9
// > sub_100241D40 @ 0x100241d49
// > sub_100241DE0 @ 0x100241de9
// > sub_100241E60 @ 0x100241e69
// > sub_100241ED0 @ 0x100241ed9
// > sub_100241F40 @ 0x100241f49
// > sub_100241FE0 @ 0x100241fe9
// > sub_100242090 @ 0x100242099
// > sub_100242140 @ 0x10024214a
// > sub_100242200 @ 0x100242209
// > sub_100242270 @ 0x100242279
// > AchievementCell::AchievementCell @ 0x10024e879
// > LevelCell::create @ 0x10024ea86
// > LevelCell::LevelCell @ 0x10024eb6a
// > MapPackCell::MapPackCell @ 0x10025267a
// > StatsCell::StatsCell @ 0x100252e49
// > SongCell::SongCell @ 0x100253b69
// > CustomSongCell::CustomSongCell @ 0x100253d79
// > CustomSFXCell::CustomSFXCell @ 0x100254169
// > CustomMusicCell::CustomMusicCell @ 0x100254459
// > OptionsCell::OptionsCell @ 0x10025456a
// > ArtistCell::ArtistCell @ 0x1002546e9
// > CommentCell::CommentCell @ 0x100254d19
// > GJScoreCell::GJScoreCell @ 0x100255739
// > GJLocalLevelScoreCell::GJLocalLevelScoreCell @ 0x100255bd9
// > GJLevelScoreCell::GJLevelScoreCell @ 0x100255dc9
// > GJUserCell::GJUserCell @ 0x100256359
// > GJRequestCell::GJRequestCell @ 0x100257679
// > GJMessageCell::GJMessageCell @ 0x100258439
// > SmartTemplateCell::SmartTemplateCell @ 0x100258e79
// > LevelListCell::create @ 0x100259356
// > LevelListCell::LevelListCell @ 0x1002593f9
// > URLCell::URLCell @ 0x100259689
// > BoomListView::getListCell @ 0x10030cc41
// > BoomListView::getListCell @ 0x10030cccd
// > sub_10030CD50 @ 0x10030cd59
// > sub_10030CDD0 @ 0x10030cdd9
// > ListCell::ListCell @ 0x10030d2d9
// > GameCell::GameCell @ 0x10030d3f9
// > sub_100627060 @ 0x100627065
//
// 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
//
TableViewCell *__fastcall TableViewCell::TableViewCell(TableViewCell *a1, const char *a2, float a3, float a4)
{
std::string *p_m_cellIdentifier; // r15
float v6; // xmm1_4
cocos2d::CCLayerColor *v7; // rax
cocos2d::CCLayer *v8; // rax
size_t v9; // rax
std::string::size_type v10; // r13
char *data; // r14
size_t v12; // r15
TableViewCell *result; // rax
std::string __dst; // [rsp+18h] [rbp-48h] BYREF
std::string *v15; // [rsp+30h] [rbp-30h]
*(float *)&v15 = a4;
cocos2d::CCLayer::CCLayer((__int64)a1);
a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (TableViewCell_vtbl *)off_100983828;
a1->cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)off_100983CA8;
a1->cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&off_100983D18;
a1->cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)off_100983D30;
a1->cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)off_100983D50;
a1->cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)off_100983D70;
cocos2d::CCObject::CCObject((__int64)&a1->m_indexPath);
a1->m_indexPath.__vftable = (CCIndexPath_vtbl *)off_1009829A8;
*(_QWORD *)&a1->m_indexPath.m_row = 0;
p_m_cellIdentifier = (std::string *)&a1->m_cellIdentifier;
*(_OWORD *)&a1->m_cellIdentifier.m_data.m_short.sizex2 = 0;
a1->m_cellIdentifier.m_data.m_long.longStorage = nullptr;
a1->m_width = a3;
v6 = *(float *)&v15;
LODWORD(a1->m_height) = (_DWORD)v15;
*(_DWORD *)&__dst.__r_.__value_.__l.0 = 0;
v7 = cocos2d::CCLayerColor::create((const cocos2d::ccColor4B *)&__dst, a3, v6);
a1->m_backgroundLayer = v7;
((void (__fastcall *)(TableViewCell *, cocos2d::CCLayerColor *, __int64))a1->addChild_0)(a1, v7, 0xFFFFFFFFLL);
v8 = cocos2d::CCLayer::create();
a1->m_mainLayer = v8;
((void (__fastcall *)(TableViewCell *, cocos2d::CCLayer *))a1->addChild)(a1, v8);
v9 = strlen(a2);
if ( v9 >= 0xFFFFFFFFFFFFFFF8LL )
{
v15 = &a1->m_cellIdentifier;
sub_100006BF0(COERCE_DOUBLE((unsigned __int64)LODWORD(a3)));
}
v10 = v9;
if ( v9 >= 0x17 )
{
v15 = &a1->m_cellIdentifier;
v12 = 26;
if ( (v9 | 7) != 0x17 )
v12 = (v9 | 7) + 1;
data = (char *)operator new(v12);
__dst.__r_.__value_.__r.__words[2] = (std::string::size_type)data;
__dst.__r_.__value_.__r.__words[0] = v12 | 1;
__dst.__r_.__value_.__l.__size_ = v10;
p_m_cellIdentifier = (std::string *)v15;
goto LABEL_8;
}
__dst.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)(2 * v9);
data = __dst.__r_.__value_.__s.__data_;
if ( v9 )
LABEL_8:
memcpy(data, a2, v10);
data[v10] = 0;
result = (TableViewCell *)std::string::operator=(p_m_cellIdentifier, &__dst);
LOBYTE(a1->m_unknown2) = 0;
a1->m_tableView = nullptr;
if ( (*(_BYTE *)&__dst.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__dst.__r_.__value_.__l.__data_);
return result;
}