//
// ArtistCell::loadFromObject from 0x42c288 to 0x42c496 (526 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x434120
//
// 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:48:10 +0000
//
int __fastcall ArtistCell::loadFromObject(ArtistCell *this, SongInfoObject *a2)
{
const char *v4; // r2
cocos2d::CCLabelBMFont *v5; // r0
cocos2d::CCLabelBMFont *v6; // r6
void (__fastcall *v7)(cocos2d::CCLabelBMFont *, _DWORD *); // r8
cocos2d::CCMenuItem *v8; // r1
const cocos2d::CCPoint *v9; // r6
ButtonSprite *v10; // r10
int v11; // r8
void (__fastcall *v12)(int, _DWORD *); // r11
int v13; // r3
int v14; // r9
int result; // r0
const char *v16; // r1
int v17; // r7
int v18; // r4
int (__fastcall *v19)(int, _BYTE *); // r7
int v20; // r8
float v21[2]; // [sp+10h] [bp-20h] BYREF
_BYTE v22[8]; // [sp+18h] [bp-18h] BYREF
_DWORD (*v23)(ArtistCell *__hidden, cocos2d::CCObject *); // [sp+20h] [bp-10h]
int v24; // [sp+24h] [bp-Ch]
_DWORD v25[2]; // [sp+28h] [bp-8h] BYREF
int v26[3]; // [sp+30h] [bp+0h] BYREF
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);
*((_DWORD *)this + 105) = a2;
std::string::basic_string(v26, (int)a2 + 280);
if ( (v26[0] & 1) != 0 )
v5 = (cocos2d::CCLabelBMFont *)v26[2];
else
v5 = (cocos2d::CCLabelBMFont *)((char *)v26 + 1);
v6 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v5, "bigFont.fnt", v4);
std::string::~string((int)v26);
cocos2d::CCLabelBMFont::limitLabelWidth(v6, 200.0, 0.8, 0.0);
(*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))(
*((_DWORD *)this + 103),
v6);
v7 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v6 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, 0.5);
v7(v6, v25);
(*(void (__fastcall **)(cocos2d::CCLabelBMFont *, int, _DWORD))(*(_DWORD *)v6 + 100))(
v6,
1097859072,
*((float *)this + 101) * 0.5);
v9 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(nullptr, v8);
(*(void (__fastcall **)(_DWORD, const cocos2d::CCPoint *, int))(**((_DWORD **)this + 103) + 232))(
*((_DWORD *)this + 103),
v9,
3);
v10 = ButtonSprite::create(
(ButtonSprite *)"View",
(const char *)&dword_64,
0,
0.6,
0,
"bigFont.fnt",
"GJ_button_01.png",
(const char *)0x41F00000,
v21[0]);
(*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v10 + 80))(v10, 1063675494);
v23 = ArtistCell::onNewgrounds;
v24 = 0;
v11 = CCMenuItemSpriteExtra::create((int)v10, 0, (int)this, (int)ArtistCell::onNewgrounds, 0);
CCMenuItemSpriteExtra::setSizeMult(v11, 1.2);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v9 + 228))(v9, v11);
v12 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, *((float *)this + 100) - 38.0, *((float *)this + 101) * 0.5);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v25, v9);
v12(v11, v25);
sub_42C208(v26, *((_DWORD *)this + 105), 1, v13);
if ( (v26[0] & 1) != 0 )
v14 = v26[1];
else
v14 = (int)LOBYTE(v26[0]) >> 1;
result = std::string::~string((int)v26);
if ( v14 )
{
v17 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"gj_ytIcon_001.png", v16);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 80))(v17, 1063675494);
v25[0] = ArtistCell::onYouTube;
v25[1] = 0;
v18 = CCMenuItemSpriteExtra::create(v17, 0, (int)this, (int)ArtistCell::onYouTube, 0);
CCMenuItemSpriteExtra::setSizeMult(v18, 1.2);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v9 + 228))(v9, v18);
v19 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92);
v20 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 96))(v11);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -52.0, 0.0);
cocos2d::CCPoint::operator+(v22, v20, v21);
return v19(v18, v22);
}
return result;
}