{"type": "func", "start": 4297355744, "end": 4297356565, "name": "ArtistCell::loadFromObject", "pseudocode": "// \n// ArtistCell::loadFromObject from 0x1002471e0 to 0x100247515 (821 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x1002425e5\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall ArtistCell::loadFromObject(ArtistCell *a1, SongInfoObject *a2)\n{\n  double v2; // xmm0_8\n  const char *v4; // rdi\n  cocos2d::CCLabelBMFont *v5; // r14\n  int v6; // edx\n  int v7; // ecx\n  int v8; // r8d\n  int v9; // r9d\n  const cocos2d::CCPoint *v10; // r14\n  ButtonSprite *v11; // r15\n  CCMenuItemSpriteExtra *v12; // r15\n  SongInfoObject *m_songInfo; // rax\n  std::string *p_m_youtubeChannel; // rax\n  char v15; // al\n  __int64 v16; // r12\n  cocos2d::CCSprite *v17; // r12\n  CCMenuItemSpriteExtra *v18; // rbx\n  __int64 v19; // r14\n  _BYTE v20[8]; // [rsp+8h] [rbp-48h] BYREF\n  __int128 v21; // [rsp+10h] [rbp-40h] BYREF\n  void *__p; // [rsp+20h] [rbp-30h]\n  double v23; // 0:xmm0_8.8\n\n  ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1);\n  a1->m_songInfo = a2;\n  if ( (a2->m_artistName.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    sub_100006B70(&v21, a2->m_artistName.m_data.m_long.longStorage, a2->m_artistName.m_data.m_long.size, v2);\n    if ( (v21 & 1) == 0 )\n      goto LABEL_3;\n  }\n  else\n  {\n    __p = a2->m_artistName.m_data.m_long.longStorage;\n    v21 = *(_OWORD *)&a2->m_artistName.m_data.m_short.sizex2;\n    if ( (v21 & 1) == 0 )\n    {\nLABEL_3:\n      v4 = (char *)&v21 + 1;\n      goto LABEL_6;\n    }\n  }\n  v4 = (const char *)__p;\nLABEL_6:\n  v5 = cocos2d::CCLabelBMFont::create_3(v4, \"bigFont.fnt\");\n  if ( (v21 & 1) != 0 )\n    operator delete(__p);\n  cocos2d::CCLabelBMFont::limitLabelWidth(v5, 200.0, 0.80000001, 0.0);\n  ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild)(a1->m_mainLayer, v5);\n  sub_10028CBE0(&v21, 0.0, 0.5);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, __int128 *))v5->setAnchorPoint)(v5, &v21);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float, float))v5->setPosition_0)(v5, 15.0, a1->m_height * 0.5);\n  v10 = (const cocos2d::CCPoint *)sub_100792C50(0, (unsigned int)&v21, v6, v7, v8, v9);\n  ((void (__fastcall *)(cocos2d::CCLayer *, const cocos2d::CCPoint *, __int64))a1->m_mainLayer->addChild_0)(\n    a1->m_mainLayer,\n    v10,\n    3);\n  v11 = ButtonSprite::create_1(\"View\", 100, 0, 0.60000002, 0, \"bigFont.fnt\", \"GJ_button_01.png\", 30.0);\n  ((void (__fastcall *)(ButtonSprite *, float))v11->setScale)(v11, 0.89999998);\n  v12 = CCMenuItemSpriteExtra::create(\n          v11,\n          nullptr,\n          a1,\n          (cocos2d::SEL_MenuHandler)(unsigned __int64)ArtistCell::onNewgrounds);\n  CCMenuItemSpriteExtra::setSizeMult(v12, 1.2);\n  (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v10 + 440LL))(v10, v12);\n  sub_10028CBE0(v20, a1->m_width + -38.0, 0.5 * a1->m_height);\n  *(cocos2d::CCPoint *)&v23 = cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v21, v10);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *, double))v12->setPosition)(v12, &v21, v23);\n  m_songInfo = a1->m_songInfo;\n  if ( (m_songInfo->m_youtubeChannel.m_data.m_short.sizex2 & 1) != 0 )\n  {\n    sub_100006B70(\n      &v21,\n      m_songInfo->m_youtubeChannel.m_data.m_long.longStorage,\n      m_songInfo->m_youtubeChannel.m_data.m_long.size,\n      v23);\n    v15 = v21;\n    if ( (v21 & 1) != 0 )\n    {\nLABEL_10:\n      v16 = *((_QWORD *)&v21 + 1);\n      operator delete(__p);\n      if ( !v16 )\n        return;\n      goto LABEL_11;\n    }\n  }\n  else\n  {\n    p_m_youtubeChannel = &m_songInfo->m_youtubeChannel;\n    __p = p_m_youtubeChannel->m_data.m_long.longStorage;\n    v21 = *(_OWORD *)&p_m_youtubeChannel->m_data.m_short.sizex2;\n    v15 = v21;\n    if ( (v21 & 1) != 0 )\n      goto LABEL_10;\n  }\n  if ( !v15 )\n    return;\nLABEL_11:\n  v17 = cocos2d::CCSprite::createWithSpriteFrameName(\"gj_ytIcon_001.png\");\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))v17->setScale)(v17, 0.89999998);\n  v18 = CCMenuItemSpriteExtra::create(\n          v17,\n          nullptr,\n          a1,\n          (cocos2d::SEL_MenuHandler)(unsigned __int64)ArtistCell::onYouTube);\n  CCMenuItemSpriteExtra::setSizeMult(v18, 1.2);\n  (*(void (__fastcall **)(const cocos2d::CCPoint *, CCMenuItemSpriteExtra *))(*(_QWORD *)v10 + 440LL))(v10, v18);\n  v19 = ((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))v12->getPosition)(v12);\n  sub_10028CBE0(v20, -52.0, 0.0);\n  sub_10028CCE0(&v21, v19);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, __int128 *))v18->setPosition)(v18, &v21);\n}", "assembly": "; \n; ArtistCell::loadFromObject from 0x1002471e0 to 0x100247515 (821 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x1002425e5\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1002471e0\nmov     rbp, rsp                                                       ; +0x1, 0x1002471e1\npush    r15                                                            ; +0x4, 0x1002471e4\npush    r14                                                            ; +0x6, 0x1002471e6\npush    r13                                                            ; +0x8, 0x1002471e8\npush    r12                                                            ; +0xa, 0x1002471ea\npush    rbx                                                            ; +0xc, 0x1002471ec\nsub     rsp, 28h                                                       ; +0xd, 0x1002471ed\nmov     r14, rsi                                                       ; +0x11, 0x1002471f1\nmov     rbx, rdi                                                       ; +0x14, 0x1002471f4\nmov     rdi, [rdi+218h]                                                ; +0x17, 0x1002471f7\nmov     rax, [rdi]                                                     ; +0x1e, 0x1002471fe\nmov     esi, 1                                                         ; +0x21, 0x100247201\ncall    qword ptr [rax+238h]                                           ; +0x26, 0x100247206\nmov     [rbx+228h], r14                                                ; +0x2c, 0x10024720c\ntest    byte ptr [r14+158h], 1                                         ; +0x33, 0x100247213\njnz     short loc_100247240                                            ; +0x3b, 0x10024721b\nadd     r14, 158h                                                      ; +0x3d, 0x10024721d\nmov     rax, [r14+10h]                                                 ; +0x44, 0x100247224\nmov     [rbp+__p], rax                                                 ; +0x48, 0x100247228\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x4c, 0x10024722c\nmovaps  [rbp+var_40], xmm0                                             ; +0x50, 0x100247230\ntest    byte ptr [rbp+var_40], 1                                       ; +0x54, 0x100247234\njnz     short loc_10024725D                                            ; +0x58, 0x100247238\nlea     rdi, [rbp+var_40+1]                                            ; +0x5a, 0x10024723a\njmp     short loc_100247261                                            ; +0x5e, 0x10024723e\nmov     rdx, [r14+160h]                                                ; +0x60, 0x100247240\nmov     rsi, [r14+168h]                                                ; +0x67, 0x100247247\nlea     rdi, [rbp+var_40]                                              ; +0x6e, 0x10024724e\ncall    sub_100006B70                                                  ; +0x72, 0x100247252\ntest    byte ptr [rbp+var_40], 1                                       ; +0x77, 0x100247257\njz      short loc_10024723A                                            ; +0x7b, 0x10024725b\nmov     rdi, [rbp+__p]                                                 ; +0x7d, 0x10024725d\nlea     rsi, aBigfontFnt; \"bigFont.fnt\"                                ; +0x81, 0x100247261\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x88, 0x100247268\nmov     r14, rax                                                       ; +0x8d, 0x10024726d\ntest    byte ptr [rbp+var_40], 1                                       ; +0x90, 0x100247270\njz      short loc_10024727F                                            ; +0x94, 0x100247274\nmov     rdi, [rbp+__p]; __p                                            ; +0x96, 0x100247276\ncall    __ZdlPv; operator delete(void *)                               ; +0x9a, 0x10024727a\nmovss   xmm0, cs:dword_100814FE0                                       ; +0x9f, 0x10024727f\nmovss   xmm1, cs:dword_100814FE4                                       ; +0xa7, 0x100247287\nxorps   xmm2, xmm2                                                     ; +0xaf, 0x10024728f\nmov     rdi, r14                                                       ; +0xb2, 0x100247292\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0xb5, 0x100247295\nmov     rdi, [rbx+218h]                                                ; +0xba, 0x10024729a\nmov     rax, [rdi]                                                     ; +0xc1, 0x1002472a1\nmov     rsi, r14                                                       ; +0xc4, 0x1002472a4\ncall    qword ptr [rax+1B8h]                                           ; +0xc7, 0x1002472a7\nlea     r15, [rbp+var_40]                                              ; +0xcd, 0x1002472ad\nmovss   xmm1, cs:dword_100814FA8                                       ; +0xd1, 0x1002472b1\nxorps   xmm0, xmm0                                                     ; +0xd9, 0x1002472b9\nmov     rdi, r15                                                       ; +0xdc, 0x1002472bc\ncall    sub_10028CBE0                                                  ; +0xdf, 0x1002472bf\nmov     rax, [r14]                                                     ; +0xe4, 0x1002472c4\nmov     rdi, r14                                                       ; +0xe7, 0x1002472c7\nmov     rsi, r15                                                       ; +0xea, 0x1002472ca\ncall    qword ptr [rax+118h]                                           ; +0xed, 0x1002472cd\nmovss   xmm1, dword ptr [rbx+20Ch]                                     ; +0xf3, 0x1002472d3\nmulss   xmm1, cs:dword_100814FA8                                       ; +0xfb, 0x1002472db\nmov     rax, [r14]                                                     ; +0x103, 0x1002472e3\nmovss   xmm0, cs:dword_100815090                                       ; +0x106, 0x1002472e6\nmov     rdi, r14                                                       ; +0x10e, 0x1002472ee\ncall    qword ptr [rax+0C8h]                                           ; +0x111, 0x1002472f1\nxor     edi, edi                                                       ; +0x117, 0x1002472f7\nxor     eax, eax                                                       ; +0x119, 0x1002472f9\ncall    sub_100792C50                                                  ; +0x11b, 0x1002472fb\nmov     r14, rax                                                       ; +0x120, 0x100247300\nmov     rdi, [rbx+218h]                                                ; +0x123, 0x100247303\nmov     rax, [rdi]                                                     ; +0x12a, 0x10024730a\nmov     rsi, r14                                                       ; +0x12d, 0x10024730d\nmov     edx, 3                                                         ; +0x130, 0x100247310\ncall    qword ptr [rax+1C0h]                                           ; +0x135, 0x100247315\nlea     rdi, aView; \"View\"                                             ; +0x13b, 0x10024731b\nlea     r8, aBigfontFnt; \"bigFont.fnt\"                                 ; +0x142, 0x100247322\nlea     r9, aGjButton01Png; \"GJ_button_01.png\"                         ; +0x149, 0x100247329\nmovss   xmm0, cs:dword_100814FB0                                       ; +0x150, 0x100247330\nmovss   xmm1, cs:dword_100814FD0                                       ; +0x158, 0x100247338\nmov     esi, 64h ; 'd'                                                 ; +0x160, 0x100247340\nxor     edx, edx                                                       ; +0x165, 0x100247345\nxor     ecx, ecx                                                       ; +0x167, 0x100247347\ncall    ButtonSprite__create_1                                         ; +0x169, 0x100247349\nmov     r15, rax                                                       ; +0x16e, 0x10024734e\nmov     rax, [rax]                                                     ; +0x171, 0x100247351\nmovss   xmm0, cs:dword_100815210                                       ; +0x174, 0x100247354\nmov     rdi, r15                                                       ; +0x17c, 0x10024735c\ncall    qword ptr [rax+0A0h]                                           ; +0x17f, 0x10024735f\nlea     rcx, ArtistCell__onNewgrounds                                  ; +0x185, 0x100247365\nmov     rdi, r15                                                       ; +0x18c, 0x10024736c\nxor     esi, esi                                                       ; +0x18f, 0x10024736f\nmov     rdx, rbx                                                       ; +0x191, 0x100247371\nxor     r8d, r8d                                                       ; +0x194, 0x100247374\ncall    CCMenuItemSpriteExtra__create                                  ; +0x197, 0x100247377\nmov     r15, rax                                                       ; +0x19c, 0x10024737c\nmovss   xmm0, cs:dword_100815010                                       ; +0x19f, 0x10024737f\nmov     rdi, rax                                                       ; +0x1a7, 0x100247387\ncall    CCMenuItemSpriteExtra__setSizeMult                             ; +0x1aa, 0x10024738a\nmov     rax, [r14]                                                     ; +0x1af, 0x10024738f\nmov     rdi, r14                                                       ; +0x1b2, 0x100247392\nmov     rsi, r15                                                       ; +0x1b5, 0x100247395\ncall    qword ptr [rax+1B8h]                                           ; +0x1b8, 0x100247398\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0x1be, 0x10024739e\naddss   xmm0, cs:dword_100815258                                       ; +0x1c6, 0x1002473a6\nmovss   xmm1, cs:dword_100814FA8                                       ; +0x1ce, 0x1002473ae\nmulss   xmm1, dword ptr [rbx+20Ch]                                     ; +0x1d6, 0x1002473b6\nlea     r12, [rbp+var_48]                                              ; +0x1de, 0x1002473be\nmov     rdi, r12                                                       ; +0x1e2, 0x1002473c2\ncall    sub_10028CBE0                                                  ; +0x1e5, 0x1002473c5\nlea     r13, [rbp+var_40]                                              ; +0x1ea, 0x1002473ca\nmov     rdi, r13                                                       ; +0x1ee, 0x1002473ce\nmov     rsi, r14                                                       ; +0x1f1, 0x1002473d1\nmov     rdx, r12                                                       ; +0x1f4, 0x1002473d4\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x1f7, 0x1002473d7\nmov     rax, [r15]                                                     ; +0x1fc, 0x1002473dc\nmov     rdi, r15                                                       ; +0x1ff, 0x1002473df\nmov     rsi, r13                                                       ; +0x202, 0x1002473e2\ncall    qword ptr [rax+0B8h]                                           ; +0x205, 0x1002473e5\nmov     rax, [rbx+228h]                                                ; +0x20b, 0x1002473eb\ntest    byte ptr [rax+188h], 1                                         ; +0x212, 0x1002473f2\njnz     loc_1002474E8                                                  ; +0x219, 0x1002473f9\nadd     rax, 188h                                                      ; +0x21f, 0x1002473ff\nmov     rcx, [rax+10h]                                                 ; +0x225, 0x100247405\nmov     [rbp+__p], rcx                                                 ; +0x229, 0x100247409\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x22d, 0x10024740d\nmovaps  [rbp+var_40], xmm0                                             ; +0x230, 0x100247410\nmovzx   eax, byte ptr [rbp+var_40]                                     ; +0x234, 0x100247414\ntest    al, 1                                                          ; +0x238, 0x100247418\njz      loc_10024750B                                                  ; +0x23a, 0x10024741a\nmov     r12, qword ptr [rbp+var_40+8]                                  ; +0x240, 0x100247420\nmov     rdi, [rbp+__p]; __p                                            ; +0x244, 0x100247424\ncall    __ZdlPv; operator delete(void *)                               ; +0x248, 0x100247428\ntest    r12, r12                                                       ; +0x24d, 0x10024742d\njz      loc_1002474D9                                                  ; +0x250, 0x100247430\nlea     rdi, aGjYticon001Png; \"gj_ytIcon_001.png\"                      ; +0x256, 0x100247436\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x25d, 0x10024743d\nmov     r12, rax                                                       ; +0x262, 0x100247442\nmov     rax, [rax]                                                     ; +0x265, 0x100247445\nmovss   xmm0, cs:dword_100815210                                       ; +0x268, 0x100247448\nmov     rdi, r12                                                       ; +0x270, 0x100247450\ncall    qword ptr [rax+0A0h]                                           ; +0x273, 0x100247453\nlea     rcx, ArtistCell__onYouTube                                     ; +0x279, 0x100247459\nmov     rdi, r12                                                       ; +0x280, 0x100247460\nxor     esi, esi                                                       ; +0x283, 0x100247463\nmov     rdx, rbx                                                       ; +0x285, 0x100247465\nxor     r8d, r8d                                                       ; +0x288, 0x100247468\ncall    CCMenuItemSpriteExtra__create                                  ; +0x28b, 0x10024746b\nmov     rbx, rax                                                       ; +0x290, 0x100247470\nmovss   xmm0, cs:dword_100815010                                       ; +0x293, 0x100247473\nmov     rdi, rax                                                       ; +0x29b, 0x10024747b\ncall    CCMenuItemSpriteExtra__setSizeMult                             ; +0x29e, 0x10024747e\nmov     rax, [r14]                                                     ; +0x2a3, 0x100247483\nmov     rdi, r14                                                       ; +0x2a6, 0x100247486\nmov     rsi, rbx                                                       ; +0x2a9, 0x100247489\ncall    qword ptr [rax+1B8h]                                           ; +0x2ac, 0x10024748c\nmov     rax, [r15]                                                     ; +0x2b2, 0x100247492\nmov     rdi, r15                                                       ; +0x2b5, 0x100247495\ncall    qword ptr [rax+0C0h]                                           ; +0x2b8, 0x100247498\nmov     r14, rax                                                       ; +0x2be, 0x10024749e\nlea     r15, [rbp+var_48]                                              ; +0x2c1, 0x1002474a1\nmovss   xmm0, cs:dword_100817B18                                       ; +0x2c5, 0x1002474a5\nxorps   xmm1, xmm1                                                     ; +0x2cd, 0x1002474ad\nmov     rdi, r15                                                       ; +0x2d0, 0x1002474b0\ncall    sub_10028CBE0                                                  ; +0x2d3, 0x1002474b3\nlea     r12, [rbp+var_40]                                              ; +0x2d8, 0x1002474b8\nmov     rdi, r12                                                       ; +0x2dc, 0x1002474bc\nmov     rsi, r14                                                       ; +0x2df, 0x1002474bf\nmov     rdx, r15                                                       ; +0x2e2, 0x1002474c2\ncall    sub_10028CCE0                                                  ; +0x2e5, 0x1002474c5\nmov     rax, [rbx]                                                     ; +0x2ea, 0x1002474ca\nmov     rdi, rbx                                                       ; +0x2ed, 0x1002474cd\nmov     rsi, r12                                                       ; +0x2f0, 0x1002474d0\ncall    qword ptr [rax+0B8h]                                           ; +0x2f3, 0x1002474d3\nadd     rsp, 28h                                                       ; +0x2f9, 0x1002474d9\npop     rbx                                                            ; +0x2fd, 0x1002474dd\npop     r12                                                            ; +0x2fe, 0x1002474de\npop     r13                                                            ; +0x300, 0x1002474e0\npop     r14                                                            ; +0x302, 0x1002474e2\npop     r15                                                            ; +0x304, 0x1002474e4\npop     rbp                                                            ; +0x306, 0x1002474e6\nretn                                                                   ; +0x307, 0x1002474e7\nmov     rdx, [rax+190h]                                                ; +0x308, 0x1002474e8\nmov     rsi, [rax+198h]                                                ; +0x30f, 0x1002474ef\nlea     rdi, [rbp+var_40]                                              ; +0x316, 0x1002474f6\ncall    sub_100006B70                                                  ; +0x31a, 0x1002474fa\nmovzx   eax, byte ptr [rbp+var_40]                                     ; +0x31f, 0x1002474ff\ntest    al, 1                                                          ; +0x323, 0x100247503\njnz     loc_100247420                                                  ; +0x325, 0x100247505\ntest    al, al                                                         ; +0x32b, 0x10024750b\njnz     loc_100247436                                                  ; +0x32d, 0x10024750d\njmp     short loc_1002474D9                                            ; +0x333, 0x100247513", "xrefs": ["CustomListView::loadCell @ 0x1002425e5"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}