// // ArtistCell::loadFromObject from 0x1002471e0 to 0x100247515 (821 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x1002425e5 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall ArtistCell::loadFromObject(ArtistCell *a1, SongInfoObject *a2) { double v2; // xmm0_8 const char *v4; // rdi cocos2d::CCLabelBMFont *v5; // r14 int v6; // edx int v7; // ecx int v8; // r8d int v9; // r9d const cocos2d::CCPoint *v10; // r14 ButtonSprite *v11; // r15 CCMenuItemSpriteExtra *v12; // r15 SongInfoObject *m_songInfo; // rax std::string *p_m_youtubeChannel; // rax char v15; // al __int64 v16; // r12 cocos2d::CCSprite *v17; // r12 CCMenuItemSpriteExtra *v18; // rbx __int64 v19; // r14 _BYTE v20[8]; // [rsp+8h] [rbp-48h] BYREF __int128 v21; // [rsp+10h] [rbp-40h] BYREF void *__p; // [rsp+20h] [rbp-30h] double v23; // 0:xmm0_8.8 ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1); a1->m_songInfo = a2; if ( (a2->m_artistName.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v21, a2->m_artistName.m_data.m_long.longStorage, a2->m_artistName.m_data.m_long.size, v2); if ( (v21 & 1) == 0 ) goto LABEL_3; } else { __p = a2->m_artistName.m_data.m_long.longStorage; v21 = *(_OWORD *)&a2->m_artistName.m_data.m_short.sizex2; if ( (v21 & 1) == 0 ) { LABEL_3: v4 = (char *)&v21 + 1; goto LABEL_6; } } v4 = (const char *)__p; LABEL_6: v5 = cocos2d::CCLabelBMFont::create_3(v4, "bigFont.fnt"); if ( (v21 & 1) != 0 ) operator delete(__p); cocos2d::CCLabelBMFont::limitLabelWidth(v5, 200.0, 0.80000001, 0.0); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v5); sub_10028CBE0(&v21, 0.0, 0.5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v5->setAnchorPoint)(v5, &v21); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float, float))v5->setPosition_0)(v5, 15.0, a1->m_height * 0.5); v10 = (const cocos2d::CCPoint *)sub_100792C50(0, (unsigned int)&v21, v6, v7, v8, v9); ((void (__fastcall *)(cocos2d::CCLayer *, const cocos2d::CCPoint *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v10, 3); v11 = ButtonSprite::create_1("View", 100, 0, 0.60000002, 0, "bigFont.fnt", "GJ_button_01.png", 30.0); ((void (__fastcall *)(ButtonSprite *, float))v11->setScale)(v11, 0.89999998); v12 = CCMenuItemSpriteExtra::create( v11, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)ArtistCell::onNewgrounds); CCMenuItemSpriteExtra::setSizeMult(v12, 1.2); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v10 + 440LL))(v10, v12); sub_10028CBE0(v20, a1->m_width + -38.0, 0.5 * a1->m_height); *(cocos2d::CCPoint *)&v23 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v21, v10); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, double))v12->setPosition)(v12, &v21, v23); m_songInfo = a1->m_songInfo; if ( (m_songInfo->m_youtubeChannel.m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70( &v21, m_songInfo->m_youtubeChannel.m_data.m_long.longStorage, m_songInfo->m_youtubeChannel.m_data.m_long.size, v23); v15 = v21; if ( (v21 & 1) != 0 ) { LABEL_10: v16 = *((_QWORD *)&v21 + 1); operator delete(__p); if ( !v16 ) return; goto LABEL_11; } } else { p_m_youtubeChannel = &m_songInfo->m_youtubeChannel; __p = p_m_youtubeChannel->m_data.m_long.longStorage; v21 = *(_OWORD *)&p_m_youtubeChannel->m_data.m_short.sizex2; v15 = v21; if ( (v21 & 1) != 0 ) goto LABEL_10; } if ( !v15 ) return; LABEL_11: v17 = cocos2d::CCSprite::createWithSpriteFrameName("gj_ytIcon_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, float))v17->setScale)(v17, 0.89999998); v18 = CCMenuItemSpriteExtra::create( v17, nullptr, a1, (cocos2d::SEL_MenuHandler)(unsigned __int64)ArtistCell::onYouTube); CCMenuItemSpriteExtra::setSizeMult(v18, 1.2); (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v10 + 440LL))(v10, v18); v19 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v12->getPosition)(v12); sub_10028CBE0(v20, -52.0, 0.0); sub_10028CCE0(&v21, v19); ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *))v18->setPosition)(v18, &v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source