//
// ArtistCell::loadFromObject from 0x10022ce90 to 0x10022d189 (761 bytes)
//
// 1 xrefs:
// > CustomListView::loadCell @ 0x1002281b8
//
// This function is hookable on this platform (idp: pc, 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:27:07 +0000
//
void __fastcall ArtistCell::loadFromObject(__int64 a1, __int64 a2)
{
char *v3; // rdi
__int64 v4; // r14
int v5; // edx
int v6; // ecx
int v7; // r8d
int v8; // r9d
__int64 v9; // r14
char *v10; // r15
__int64 v11; // r15
__int64 v12; // r12
__int64 v13; // r12
__int64 v14; // rbx
__int64 v15; // r14
_BYTE v16[8]; // [rsp+8h] [rbp-48h] BYREF
__int128 v17; // [rsp+10h] [rbp-40h] BYREF
void *__p; // [rsp+20h] [rbp-30h]
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);
*(_QWORD *)(a1 + 552) = a2;
if ( (*(_BYTE *)(a2 + 344) & 1) != 0 )
{
sub_10001AD30(&v17, *(const void **)(a2 + 360), *(_QWORD *)(a2 + 352));
if ( (v17 & 1) == 0 )
goto LABEL_3;
}
else
{
__p = *(void **)(a2 + 360);
v17 = *(_OWORD *)(a2 + 344);
if ( (v17 & 1) == 0 )
{
LABEL_3:
v3 = (char *)&v17 + 1;
goto LABEL_6;
}
}
v3 = (char *)__p;
LABEL_6:
v4 = cocos2d::CCLabelBMFont::create_3(v3, "bigFont.fnt");
if ( (v17 & 1) != 0 )
operator delete(__p);
cocos2d::CCLabelBMFont::limitLabelWidth(v4, 200.0, 0.80000001, 0.0);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 456LL))(*(_QWORD *)(a1 + 536), v4);
sub_100278250(&v17, 0.0, 0.5);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v4 + 296LL))(v4, &v17);
(*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v4 + 200LL))(v4, 15.0, *(float *)(a1 + 524) * 0.5);
v9 = sub_1008735E0(0, (unsigned int)&v17, v5, v6, v7, v8);
(*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v9, 3);
v10 = ButtonSprite::create_1(
(__int64)"View",
0x64u,
0,
0,
(__int64)"bigFont.fnt",
(__int64)"GJ_button_01.png",
0.60000002,
30.0);
(*(void (__fastcall **)(char *, float))(*(_QWORD *)v10 + 160LL))(v10, 0.89999998);
v11 = CCMenuItemSpriteExtra::create(v10, 0, a1, ArtistCell::onNewgrounds, 0);
CCMenuItemSpriteExtra::setSizeMult(v11, 1.2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 456LL))(v9, v11);
sub_100278250(v16, *(float *)(a1 + 520) + -38.0, 0.5 * *(float *)(a1 + 524));
cocos2d::CCNode::convertToNodeSpace(&v17, v9, v16);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v11 + 184LL))(v11, &v17);
sub_10023D740(&v17, *(_QWORD *)(a1 + 552), 1);
if ( (v17 & 1) != 0 )
{
v12 = *((_QWORD *)&v17 + 1);
operator delete(__p);
if ( !v12 )
return;
goto LABEL_12;
}
if ( (_BYTE)v17 )
{
LABEL_12:
v13 = cocos2d::CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.89999998);
v14 = CCMenuItemSpriteExtra::create(v13, 0, a1, ArtistCell::onYouTube, 0);
CCMenuItemSpriteExtra::setSizeMult(v14, 1.2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 456LL))(v9, v14);
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 192LL))(v11);
sub_100278250(v16, -52.0, 0.0);
sub_100278350(&v17, v15, v16);
(*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)v14 + 184LL))(v14, &v17);
}
}