//
// TableViewCell::TableViewCell from 0x698718 to 0x698a9c (900 bytes)
//
// 27 xrefs:
// > ListCell::ListCell @ 0x688760
// > GameCell::GameCell @ 0x6887e0
// > AchievementCell::AchievementCell @ 0x737128
// > LevelCell::LevelCell @ 0x73723c
// > MapPackCell::MapPackCell @ 0x73764c
// > StatsCell::StatsCell @ 0x73798c
// > SongCell::SongCell @ 0x737b78
// > CustomSongCell::CustomSongCell @ 0x7380fc
// > CustomSFXCell::CustomSFXCell @ 0x738428
// > OptionsCell::OptionsCell @ 0x738aa0
// > ArtistCell::ArtistCell @ 0x738bd8
// > CommentCell::CommentCell @ 0x738d0c
// > GJScoreCell::GJScoreCell @ 0x738fd0
// > GJLocalLevelScoreCell::GJLocalLevelScoreCell @ 0x739140
// > GJLevelScoreCell::GJLevelScoreCell @ 0x7392b8
// > GJCompactUserCell::GJCompactUserCell @ 0x7393ec
// > GJRequestCell::GJRequestCell @ 0x7398ac
// > GJThreadCell::GJThreadCell @ 0x739b24
// > GJNotificationCell::GJNotificationCell @ 0x739e50
// > GJMessageCell::GJMessageCell @ 0x73a134
// > SmartTemplateCell::SmartTemplateCell @ 0x73a38c
// > LevelListCell::LevelListCell @ 0x73a52c
// > URLCell::URLCell @ 0x73a708
// > EditorSoundConfigCell::EditorSoundConfigCell @ 0xccaf20
// > FontPreviewCell::FontPreviewCell @ 0xd02b48
// > ??> @ 0x8c7a0
// > ??> @ 0xd7c68
//
// This function is hookable on this platform (idp: arm, 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:50:38 +0000
//
// Alternative name is '_ZN13TableViewCellC1EPKcff'
void __fastcall TableViewCell::TableViewCell(TableViewCell *this, const char *a2, float a3, float a4)
{
cocos2d::CCObject *v7; // x23
__int64 *v9; // x21
cocos2d::CCNode *v10; // x0
cocos2d::CCLayer *v11; // x0
cocos2d::CCNode *v12; // x0
size_t v13; // x0
size_t v14; // x25
char *v15; // x3
int v16; // w25
size_t v17; // x20
char *v18; // x28
unsigned __int64 v19; // x0
unsigned __int64 v20; // x26
char *v21; // x3
unsigned __int64 v22; // x0
__int64 v23; // x24
_BYTE *v24; // x0
_BYTE *v25; // x23
unsigned __int64 v26; // x26
char *v27; // [xsp+78h] [xbp+78h]
_BYTE v28[8]; // [xsp+88h] [xbp+88h] BYREF
__int64 v29; // [xsp+90h] [xbp+90h] BYREF
size_t v30; // [xsp+98h] [xbp+98h]
void *v31; // [xsp+A0h] [xbp+A0h]
v7 = (TableViewCell *)((char *)this + 424);
cocos2d::CCLayer::CCLayer(this);
*(_QWORD *)this = &off_1419030;
*((_QWORD *)this + 40) = off_14194C0;
*((_QWORD *)this + 41) = &off_1419530;
*((_QWORD *)this + 42) = off_1419548;
*((_QWORD *)this + 43) = off_1419568;
*((_QWORD *)this + 44) = off_1419590;
cocos2d::CCObject::CCObject(v7);
v9 = (__int64 *)((char *)this + 496);
v28[0] = 0;
v28[1] = 0;
*((_QWORD *)this + 53) = &off_1418970;
*((_DWORD *)v7 + 14) = 0;
*((_DWORD *)v7 + 15) = 0;
*((_QWORD *)this + 62) = 0;
*((_QWORD *)this + 63) = 0;
*((_QWORD *)this + 64) = 0;
v28[2] = 0;
*((float *)this + 130) = a3;
v28[3] = 0;
*((float *)this + 131) = a4;
v10 = (cocos2d::CCNode *)cocos2d::CCLayerColor::create(v28, a3, a4);
*((_QWORD *)this + 66) = v10;
v11 = (cocos2d::CCLayer *)cocos2d::CCNode::addChild(this, v10, -1);
v12 = (cocos2d::CCNode *)cocos2d::CCLayer::create(v11);
*((_QWORD *)this + 67) = v12;
cocos2d::CCNode::addChild(this, v12);
v29 = 0;
v30 = 0;
v31 = nullptr;
v13 = strlen(a2);
v14 = v13;
if ( v13 > 0xFFFFFFFFFFFFFFEFLL )
sub_62B360();
if ( v13 > 0x16 )
{
v26 = (v13 + 16) & 0xFFFFFFFFFFFFFFF0LL;
v15 = (char *)operator new(v26);
v31 = v15;
v30 = v14;
v29 = v26 | 1;
}
else
{
LOBYTE(v29) = 2 * v13;
v15 = (char *)&v29 + 1;
if ( !v13 )
{
BYTE1(v29) = 0;
if ( &v29 != v9 )
goto LABEL_5;
LABEL_29:
v16 = v29 & 1;
goto LABEL_11;
}
}
*((_BYTE *)memcpy(v15, a2, v14) + v14) = 0;
if ( &v29 == v9 )
goto LABEL_29;
LABEL_5:
v16 = v29 & 1;
if ( !v16 )
{
v17 = (unsigned __int8)v29 >> 1;
v18 = (char *)&v29 + 1;
if ( (*((_BYTE *)this + 496) & 1) != 0 )
goto LABEL_7;
LABEL_15:
if ( v17 <= 0x16 )
{
v21 = (char *)this + 497;
if ( !v17 )
{
LABEL_9:
v21[v17] = 0;
if ( (*((_BYTE *)this + 496) & 1) != 0 )
{
LABEL_10:
*((_QWORD *)this + 63) = v17;
goto LABEL_11;
}
goto LABEL_32;
}
LABEL_31:
*((_BYTE *)memmove(v21, v18, v17) + v17) = 0;
if ( (*((_BYTE *)this + 496) & 1) != 0 )
goto LABEL_10;
LABEL_32:
*((_BYTE *)this + 496) = 2 * v17;
goto LABEL_11;
}
if ( v17 - 22 <= 0xFFFFFFFFFFFFFFD8LL )
{
v20 = 22;
v27 = (char *)this + 497;
LABEL_18:
v22 = 2 * v20;
v23 = 23;
if ( 2 * v20 < v17 )
v22 = v17;
if ( v22 > 0x16 )
v23 = (v22 + 16) & 0xFFFFFFFFFFFFFFF0LL;
goto LABEL_22;
}
LABEL_37:
sub_62B360();
}
v18 = (char *)v31;
v17 = v30;
if ( (*((_BYTE *)this + 496) & 1) == 0 )
goto LABEL_15;
LABEL_7:
v19 = *((_QWORD *)this + 62) & 0xFFFFFFFFFFFFFFFELL;
v20 = v19 - 1;
if ( v17 <= v19 - 1 )
{
v21 = *((char **)this + 64);
if ( !v17 )
goto LABEL_9;
goto LABEL_31;
}
v23 = -17;
if ( v17 - v20 > -17LL - v19 )
goto LABEL_37;
v27 = *((char **)this + 64);
if ( v20 <= 0x7FFFFFFFFFFFFFE6LL )
goto LABEL_18;
LABEL_22:
v24 = (_BYTE *)operator new(v23);
v25 = v24;
if ( v17 )
memcpy(v24, v18, v17);
if ( v20 != 22 )
operator delete(v27);
*((_QWORD *)this + 64) = v25;
*((_QWORD *)this + 62) = v23 | 1;
*((_QWORD *)this + 63) = v17;
v25[v17] = 0;
LABEL_11:
*((_BYTE *)this + 488) = 0;
*((_QWORD *)this + 52) = 0;
if ( v16 )
operator delete(v31);
}