//
// TableViewCell::TableViewCell from 0x3cac14 to 0x3cad92 (382 bytes)
//
// 25 xrefs:
// > ListCell::ListCell @ 0x3c0b64
// > GameCell::GameCell @ 0x3c0c24
// > AchievementCell::AchievementCell @ 0x42516c
// > LevelCell::LevelCell @ 0x42521c
// > MapPackCell::MapPackCell @ 0x42549c
// > StatsCell::StatsCell @ 0x42555c
// > SongCell::SongCell @ 0x425668
// > CustomSongCell::CustomSongCell @ 0x425728
// > CustomSFXCell::CustomSFXCell @ 0x425958
// > OptionsCell::OptionsCell @ 0x425d90
// > ArtistCell::ArtistCell @ 0x425e58
// > CommentCell::CommentCell @ 0x425f18
// > GJScoreCell::GJScoreCell @ 0x4260e8
// > GJLocalLevelScoreCell::GJLocalLevelScoreCell @ 0x4261d0
// > GJLevelScoreCell::GJLevelScoreCell @ 0x4262b0
// > GJCompactUserCell::GJCompactUserCell @ 0x426370
// > GJRequestCell::GJRequestCell @ 0x426430
// > GJThreadCell::GJThreadCell @ 0x4265b0
// > GJNotificationCell::GJNotificationCell @ 0x42667c
// > GJMessageCell::GJMessageCell @ 0x426750
// > SmartTemplateCell::SmartTemplateCell @ 0x4268cc
// > LevelListCell::LevelListCell @ 0x4269c8
// > URLCell::URLCell @ 0x426ae4
// > EditorSoundConfigCell::EditorSoundConfigCell @ 0x783b88
// > FontPreviewCell::FontPreviewCell @ 0x7a17b8
//
// 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 11:46:37 +0000
//
// Alternative name is '_ZN13TableViewCellC1EPKcff'
void __fastcall TableViewCell::TableViewCell(TableViewCell *this, const char *a2, float a3, float a4)
{
cocos2d::CCObject *v8; // r9
cocos2d::CCNode *v9; // r0
cocos2d::CCLayer *v10; // r0
cocos2d::CCNode *v11; // r0
size_t v12; // r0
size_t v13; // r5
char *v14; // r3
unsigned int v15; // r8
char *v16; // r1
size_t v17; // r2
_BYTE v18[4]; // [sp+4h] [bp-14h] BYREF
int v19; // [sp+8h] [bp-10h] BYREF
size_t v20; // [sp+Ch] [bp-Ch]
int v21; // [sp+10h] [bp-8h]
v8 = (TableViewCell *)((char *)this + 324);
cocos2d::CCLayer::CCLayer(this);
*(_DWORD *)this = &off_C86260;
*((_DWORD *)this + 66) = &off_C864A8;
*((_DWORD *)this + 67) = &off_C864E0;
*((_DWORD *)this + 68) = &off_C864EC;
*((_DWORD *)this + 69) = &off_C864FC;
*((_DWORD *)this + 70) = &off_C86510;
cocos2d::CCObject::CCObject(v8);
*((float *)this + 100) = a3;
*((float *)this + 101) = a4;
*((_DWORD *)this + 81) = &off_C85EE0;
*((_DWORD *)this + 94) = 0;
*((_DWORD *)this + 95) = 0;
*((_DWORD *)this + 97) = 0;
*((_DWORD *)this + 98) = 0;
*((_DWORD *)this + 99) = 0;
v18[0] = 0;
v18[1] = 0;
v18[2] = 0;
v18[3] = 0;
v9 = (cocos2d::CCNode *)cocos2d::CCLayerColor::create(v18, LODWORD(a3), LODWORD(a4));
*((_DWORD *)this + 102) = v9;
v10 = (cocos2d::CCLayer *)cocos2d::CCNode::addChild(this, v9, -1);
v11 = (cocos2d::CCNode *)cocos2d::CCLayer::create(v10);
*((_DWORD *)this + 103) = v11;
cocos2d::CCNode::addChild(this, v11);
v19 = 0;
v20 = 0;
v21 = 0;
v12 = strlen(a2);
v13 = v12;
if ( v12 > 0xFFFFFFEF )
sub_3871F8();
if ( v12 > 0xA )
{
v15 = (v12 + 16) & 0xFFFFFFF0;
v14 = (char *)operator new(v15);
v21 = (int)v14;
v19 = v15 | 1;
v20 = v13;
}
else
{
LOBYTE(v19) = 2 * v12;
v14 = (char *)&v19 + 1;
if ( !v12 )
goto LABEL_8;
}
v14 = (char *)memcpy(v14, a2, v13);
LABEL_8:
v14[v13] = 0;
if ( (int *)((char *)this + 388) != &v19 )
{
if ( (v19 & 1) != 0 )
{
v16 = (char *)v21;
v17 = v20;
}
else
{
v17 = (int)(unsigned __int8)v19 >> 1;
v16 = (char *)&v19 + 1;
}
std::string::assign((_DWORD *)this + 97, v16, v17);
}
*((_BYTE *)this + 384) = 0;
*((_DWORD *)this + 80) = 0;
std::string::~string((int)&v19);
}