// // ArtistCell::loadFromObject from 0x140151620 to 0x140151a32 (1042 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x140145c8b // > @ 0x140917858 // // 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 11:27:17 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall ArtistCell::loadFromObject(__int64 a1, __int64 a2) { __int64 v2; // rbx void **v4; // rcx cocos2d::CCLabelBMFont *v5; // rdi __int64 v6; // rbx __int64 v7; // rax struct cocos2d::CCMenu *v8; // r14 cocos2d::CCObject *v9; // rbx cocos2d::CCObject *v10; // rsi __int64 v11; // rbx __int64 v12; // rax __int64 v13; // rax unsigned __int64 v14; // r8 unsigned __int64 v15; // rdx _DWORD *v16; // rax __int64 v17; // rdi unsigned __int64 v18; // rbx bool v19; // di void *v20; // rcx struct cocos2d::CCSprite *v21; // rax int v22; // ebx cocos2d::CCObject *v23; // rdi __int64 v24; // rax __int64 v25; // rbx __int64 v26; // rax void *v27; // [rsp+50h] [rbp-68h] BYREF _BYTE v28[8]; // [rsp+58h] [rbp-60h] BYREF _QWORD v29[3]; // [rsp+60h] [rbp-58h] BYREF void *Block[2]; // [rsp+78h] [rbp-40h] BYREF __int64 v31; // [rsp+88h] [rbp-30h] unsigned __int64 v32; // [rsp+90h] [rbp-28h] v2 = a2; LOBYTE(a2) = 1; (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 576LL))(*(_QWORD *)(a1 + 544), a2); *(_QWORD *)(a1 + 560) = v2; sub_14003F4F0((__int64)Block, v2 + 360); v4 = Block; if ( v32 > 0xF ) v4 = (void **)Block[0]; v5 = cocos2d::CCLabelBMFont::create((const char *)v4, (const char *)&qword_140704F78); sub_14003D310((__int64)Block); cocos2d::CCLabelBMFont::limitLabelWidth(v5, 200.0, 0.80000001, 0.0); (*(void (__fastcall **)(_QWORD, cocos2d::CCLabelBMFont *))(**(_QWORD **)(a1 + 544) + 464LL))( *(_QWORD *)(a1 + 544), v5); v6 = *(_QWORD *)v5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, 0.0, 0.5); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *, __int64))(v6 + 288))(v5, v7); (*(void (__fastcall **)(cocos2d::CCLabelBMFont *))(*(_QWORD *)v5 + 176LL))(v5); v8 = cocos2d::CCMenu::create(nullptr); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))( *(_QWORD *)(a1 + 544), v8, 3); v27 = operator new(0x2C8u); v9 = (cocos2d::CCObject *)ButtonSprite::ButtonSprite((__int64)v27); if ( v9 ) { if ( ButtonSprite::init_1( (__int64)v9, (__int64)"View", 100, 0, 1058642330, 0, &qword_140704F78, (__int64)"GJ_button_01.png", 1106247680) ) { cocos2d::CCObject::autorelease(v9); } else { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1); v9 = nullptr; } } (*(void (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v9 + 160LL))(v9); v10 = CCMenuItemSpriteExtra::create((int)v9, 0, a1, (__int64)ArtistCell::onNewgrounds); *((_DWORD *)v10 + 93) = 1067030938; (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v8 + 464LL))(v8, v10); v11 = *(_QWORD *)v10; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v27, *(float *)(a1 + 528) - 38.0, *(float *)(a1 + 532) * 0.5); cocos2d::CCNode::convertToNodeSpace(v8, v28, v12); (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(v11 + 184))(v10, v13); SongInfoObject::getArtistLinks(*(_QWORD *)(a1 + 560), v29); v14 = 0; v15 = (v29[1] - v29[0]) / 72LL; if ( v15 ) { v16 = (_DWORD *)(v29[0] + 4LL); while ( *v16 != 1 ) { ++v14; v16 += 18; if ( v14 >= v15 ) goto LABEL_11; } sub_14003F4F0((__int64)Block, v29[0] + 8 * (v14 + 8 * v14 + 5)); v18 = v32; v17 = v31; } else { LABEL_11: *(_OWORD *)Block = 0; v17 = 0; v18 = 15; LOBYTE(Block[0]) = 0; } sub_1401226A0(v29); v19 = v17 != 0; if ( v18 > 0xF ) { v20 = Block[0]; if ( v18 + 1 >= 0x1000 ) { v20 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v20 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v20); } if ( v19 ) { v21 = cocos2d::CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png"); v22 = (int)v21; (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v21 + 160LL))(v21); v23 = CCMenuItemSpriteExtra::create(v22, 0, a1, (__int64)ArtistCell::onYouTube); *((_DWORD *)v23 + 93) = 1067030938; (*(void (__fastcall **)(struct cocos2d::CCMenu *, cocos2d::CCObject *))(*(_QWORD *)v8 + 464LL))(v8, v23); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v28, -52.0, 0.0); v25 = v24; v26 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v10 + 200LL))(v10); cocos2d::CCPoint::operator+(v26, &v27, v25); (*(void (__fastcall **)(cocos2d::CCObject *, void **))(*(_QWORD *)v23 + 184LL))(v23, &v27); } }