{"type": "func", "start": 5369450096, "end": 5369450716, "name": "CustomMusicCell::loadFromObject", "pseudocode": "// \n// CustomMusicCell::loadFromObject from 0x1400b4e70 to 0x1400b50dc (620 bytes)\n// \n// 4 xrefs:\n// > CustomListView::loadCell @ 0x1400ab72d\n// > <???> @ 0x14066b510\n// > <???> @ 0x14066b520\n// > <???> @ 0x1406c7b78\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 CustomMusicCell::loadFromObject(CustomMusicCell *a1, SongInfoObject *a2)\n{\n  SongInfoObject *m_songInfoObject; // rbx\n  TableView *m_tableView; // rax\n  TableViewCellDelegate *m_cellDelegate; // rcx\n  int v6; // eax\n  int v7; // ecx\n  CustomSongDelegate *v8; // rdx\n  CustomSongWidget *v9; // r15\n  CustomSongWidget_vtbl *v10; // rbx\n  const cocos2d::CCPoint *v11; // rax\n  SongInfoObject *v12; // rax\n  int m_libraryOrder; // ebp\n  const char *v14; // rcx\n  struct cocos2d::CCSprite *v15; // rdi\n  cocos2d::CCSprite_vtbl *v16; // rbx\n  const cocos2d::CCPoint *v17; // rax\n  struct cocos2d::CCRect *v18; // rax\n  struct cocos2d::extension::CCScale9Sprite *v19; // rax\n  cocos2d::CCNode *v20; // rdi\n  cocos2d::CCNode_vtbl *v21; // rbx\n  const cocos2d::CCSize *v22; // rax\n  cocos2d::CCRect v23; // [rsp+50h] [rbp-28h] BYREF\n  cocos2d::CCPoint v24; // [rsp+80h] [rbp+8h] BYREF\n\n  m_songInfoObject = a2;\n  LOBYTE(a2) = 1;\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2);\n  m_tableView = a1->m_tableView;\n  a1->m_songInfoObject = m_songInfoObject;\n  m_cellDelegate = m_tableView->m_cellDelegate;\n  if ( m_cellDelegate )\n  {\n    v6 = m_cellDelegate->getCellDelegateType(m_cellDelegate);\n    m_songInfoObject = a1->m_songInfoObject;\n    v7 = v6;\n  }\n  else\n  {\n    v7 = 1;\n  }\n  v8 = &a1->CustomSongDelegate;\n  if ( !a1 )\n    v8 = nullptr;\n  v9 = CustomSongWidget::create(m_songInfoObject, v8, 1, 1, 1, 0, 0, 1, v7 == 1);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v9, 2);\n  v10 = v9->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v24, a1->m_width * 0.5, a1->m_height * 0.5);\n  v10->setPosition_0(v9, v11);\n  v9->m_isInCell = 1;\n  v12 = a1->m_songInfoObject;\n  m_libraryOrder = v12->m_libraryOrder;\n  if ( v12->m_isNew || m_libraryOrder > 0 )\n  {\n    v14 = \"newMusicIcon_001.png\";\n    if ( m_libraryOrder > 0 )\n      v14 = \"newMusicIcon2_001.png\";\n    v15 = cocos2d::CCSprite::createWithSpriteFrameName(v14);\n    v9->addChild_0(v9, v15, 4);\n    v16 = v15->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    cocos2d::CCPoint::CCPoint(&v24, -157.0, 20.0);\n    v16->setPosition_0(v15, v17);\n    if ( m_libraryOrder > 0 )\n    {\n      cocos2d::CCRect::CCRect(&v23, 0.0, 0.0, 80.0, 80.0);\n      v19 = cocos2d::extension::CCScale9Sprite::create(\"GJ_square07.png\", v18);\n      LOWORD(v24.x) = -256;\n      v20 = v19;\n      BYTE2(v24.x) = -1;\n      v19->setColor(&v19->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&v24);\n      v21 = v20->__vftable;\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v24, 320.0, 50.0);\n      v21->setContentSize(v20, v22);\n      v9->addChild_0(v9, v20, -1);\n    }\n  }\n  a1->m_selected = a1->m_songInfoObject->m_songID == a1->getActiveSongID(&a1->CustomSongDelegate);\n}", "assembly": "; \n; CustomMusicCell::loadFromObject from 0x1400b4e70 to 0x1400b50dc (620 bytes)\n; \n; 4 xrefs:\n; > CustomListView::loadCell @ 0x1400ab72d\n; > <???> @ 0x14066b510\n; > <???> @ 0x14066b520\n; > <???> @ 0x1406c7b78\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\nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400b4e70\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x1400b4e75\npush    rsi                                                            ; +0xa, 0x1400b4e7a\npush    r14                                                            ; +0xb, 0x1400b4e7b\npush    r15                                                            ; +0xd, 0x1400b4e7d\nsub     rsp, 60h                                                       ; +0xf, 0x1400b4e7f\nmov     rsi, rcx                                                       ; +0x13, 0x1400b4e83\nmov     rbx, rdx                                                       ; +0x16, 0x1400b4e86\nmov     rcx, [rcx+220h]                                                ; +0x19, 0x1400b4e89\nmov     dl, 1                                                          ; +0x20, 0x1400b4e90\nmov     rax, [rcx]                                                     ; +0x22, 0x1400b4e92\ncall    qword ptr [rax+230h]                                           ; +0x25, 0x1400b4e95\nmov     rax, [rsi+1A0h]                                                ; +0x2b, 0x1400b4e9b\nmov     [rsi+238h], rbx                                                ; +0x32, 0x1400b4ea2\nmov     rcx, [rax+260h]                                                ; +0x39, 0x1400b4ea9\ntest    rcx, rcx                                                       ; +0x40, 0x1400b4eb0\njz      short loc_1400B4EC6                                            ; +0x43, 0x1400b4eb3\nmov     rax, [rcx]                                                     ; +0x45, 0x1400b4eb5\ncall    qword ptr [rax+18h]                                            ; +0x48, 0x1400b4eb8\nmov     rbx, [rsi+238h]                                                ; +0x4b, 0x1400b4ebb\nmov     ecx, eax                                                       ; +0x52, 0x1400b4ec2\njmp     short loc_1400B4ECB                                            ; +0x54, 0x1400b4ec4\nmov     ecx, 1                                                         ; +0x56, 0x1400b4ec6\nxor     r8d, r8d                                                       ; +0x5b, 0x1400b4ecb\nlea     rdx, [rsi+230h]                                                ; +0x5e, 0x1400b4ece\ncmp     ecx, 1                                                         ; +0x65, 0x1400b4ed5\nmov     eax, r8d                                                       ; +0x68, 0x1400b4ed8\nmov     r9b, 1                                                         ; +0x6b, 0x1400b4edb\nmov     rcx, rbx                                                       ; +0x6e, 0x1400b4ede\nsetz    al                                                             ; +0x71, 0x1400b4ee1\ntest    rsi, rsi                                                       ; +0x74, 0x1400b4ee4\nmov     [rsp+78h+var_38], eax                                          ; +0x77, 0x1400b4ee7\nmov     [rsp+78h+var_40], 1                                            ; +0x7b, 0x1400b4eeb\ncmovz   rdx, r8                                                        ; +0x80, 0x1400b4ef0\nmov     [rsp+78h+var_48], r8b                                          ; +0x84, 0x1400b4ef4\nmov     [rsp+78h+var_50], r8b                                          ; +0x89, 0x1400b4ef9\nmovzx   r8d, r9b                                                       ; +0x8e, 0x1400b4efe\nmov     byte ptr [rsp+78h+var_58], 1                                   ; +0x92, 0x1400b4f02\ncall    CustomSongWidget__create                                       ; +0x97, 0x1400b4f07\nmov     rcx, [rsi+220h]                                                ; +0x9c, 0x1400b4f0c\nmov     r8d, 2                                                         ; +0xa3, 0x1400b4f13\nmov     rdx, rax                                                       ; +0xa9, 0x1400b4f19\nmov     r15, rax                                                       ; +0xac, 0x1400b4f1c\nmov     r9, [rcx]                                                      ; +0xaf, 0x1400b4f1f\ncall    qword ptr [r9+1B8h]                                            ; +0xb2, 0x1400b4f22\nmovss   xmm2, dword ptr [rsi+214h]                                     ; +0xb9, 0x1400b4f29\nlea     rcx, [rsp+78h+arg_0]                                           ; +0xc1, 0x1400b4f31\nmovss   xmm1, dword ptr [rsi+210h]                                     ; +0xc9, 0x1400b4f39\nmulss   xmm2, cs:dword_140622B08                                       ; +0xd1, 0x1400b4f41\nmov     rbx, [r15]                                                     ; +0xd9, 0x1400b4f49\nmulss   xmm1, cs:dword_140622B08                                       ; +0xdc, 0x1400b4f4c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe4, 0x1400b4f54\nmov     rdx, rax                                                       ; +0xea, 0x1400b4f5a\nmov     rcx, r15                                                       ; +0xed, 0x1400b4f5d\ncall    qword ptr [rbx+0B8h]                                           ; +0xf0, 0x1400b4f60\nmov     byte ptr [r15+1F8h], 1                                         ; +0xf6, 0x1400b4f66\nmov     rax, [rsi+238h]                                                ; +0xfe, 0x1400b4f6e\ncmp     byte ptr [rax+248h], 0                                         ; +0x105, 0x1400b4f75\nmov     ebp, [rax+24Ch]                                                ; +0x10c, 0x1400b4f7c\njnz     short loc_1400B4F8C                                            ; +0x112, 0x1400b4f82\ntest    ebp, ebp                                                       ; +0x114, 0x1400b4f84\njle     loc_1400B509F                                                  ; +0x116, 0x1400b4f86\nlea     rax, aNewmusicicon20; \"newMusicIcon2_001.png\"                  ; +0x11c, 0x1400b4f8c\nmov     [rsp+78h+arg_8], rdi                                           ; +0x123, 0x1400b4f93\ntest    ebp, ebp                                                       ; +0x12b, 0x1400b4f9b\nlea     rcx, aNewmusicicon00; \"newMusicIcon_001.png\"                   ; +0x12d, 0x1400b4f9d\ncmovg   rcx, rax                                                       ; +0x134, 0x1400b4fa4\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x138, 0x1400b4fa8\nmov     r9, [r15]                                                      ; +0x13e, 0x1400b4fae\nmov     r8d, 4                                                         ; +0x141, 0x1400b4fb1\nmov     rdx, rax                                                       ; +0x147, 0x1400b4fb7\nmov     rcx, r15                                                       ; +0x14a, 0x1400b4fba\nmov     rdi, rax                                                       ; +0x14d, 0x1400b4fbd\ncall    qword ptr [r9+1B8h]                                            ; +0x150, 0x1400b4fc0\nmovss   xmm2, cs:dword_140623120                                       ; +0x157, 0x1400b4fc7\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x15f, 0x1400b4fcf\nmovss   xmm1, cs:dword_140623A68                                       ; +0x167, 0x1400b4fd7\nmov     rbx, [rdi]                                                     ; +0x16f, 0x1400b4fdf\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x172, 0x1400b4fe2\nmov     rdx, rax                                                       ; +0x178, 0x1400b4fe8\nmov     rcx, rdi                                                       ; +0x17b, 0x1400b4feb\ncall    qword ptr [rbx+0B8h]                                           ; +0x17e, 0x1400b4fee\ntest    ebp, ebp                                                       ; +0x184, 0x1400b4ff4\njle     loc_1400B5097                                                  ; +0x186, 0x1400b4ff6\nmovss   xmm3, cs:dword_14062326C                                       ; +0x18c, 0x1400b4ffc\nlea     rcx, [rsp+78h+var_28]                                          ; +0x194, 0x1400b5004\nxorps   xmm2, xmm2                                                     ; +0x199, 0x1400b5009\nmovss   [rsp+78h+var_58], xmm3                                         ; +0x19c, 0x1400b500c\nxorps   xmm1, xmm1                                                     ; +0x1a2, 0x1400b5012\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x1a5, 0x1400b5015\nmov     rdx, rax                                                       ; +0x1ab, 0x1400b501b\nlea     rcx, aGjSquare07Png; \"GJ_square07.png\"                         ; +0x1ae, 0x1400b501e\ncall    cs:?create@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEBDVCCRect@3@@Z; cocos2d::extension::CCScale9Sprite::create(char const *,cocos2d::CCRect) ; +0x1b5, 0x1400b5025\nlea     rdx, [rsp+78h+arg_0]                                           ; +0x1bb, 0x1400b502b\nmov     [rsp+78h+arg_0], 0FF00h                                        ; +0x1c3, 0x1400b5033\nmov     rdi, rax                                                       ; +0x1cd, 0x1400b503d\nmov     [rsp+78h+arg_2], 0FFh                                          ; +0x1d0, 0x1400b5040\nlea     rcx, [rax+140h]                                                ; +0x1d8, 0x1400b5048\nmov     r8, [rcx]                                                      ; +0x1df, 0x1400b504f\ncall    qword ptr [r8]                                                 ; +0x1e2, 0x1400b5052\nmovss   xmm2, cs:dword_1406231E0                                       ; +0x1e5, 0x1400b5055\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x1ed, 0x1400b505d\nmovss   xmm1, cs:dword_140623450                                       ; +0x1f5, 0x1400b5065\nmov     rbx, [rdi]                                                     ; +0x1fd, 0x1400b506d\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x200, 0x1400b5070\nmov     rdx, rax                                                       ; +0x206, 0x1400b5076\nmov     rcx, rdi                                                       ; +0x209, 0x1400b5079\ncall    qword ptr [rbx+128h]                                           ; +0x20c, 0x1400b507c\nmov     rax, [r15]                                                     ; +0x212, 0x1400b5082\nmov     r8d, 0FFFFFFFFh                                                ; +0x215, 0x1400b5085\nmov     rdx, rdi                                                       ; +0x21b, 0x1400b508b\nmov     rcx, r15                                                       ; +0x21e, 0x1400b508e\ncall    qword ptr [rax+1B8h]                                           ; +0x221, 0x1400b5091\nmov     rdi, [rsp+78h+arg_8]                                           ; +0x227, 0x1400b5097\nmov     rax, [rsi+230h]                                                ; +0x22f, 0x1400b509f\nlea     rcx, [rsi+230h]                                                ; +0x236, 0x1400b50a6\ncall    qword ptr [rax+8]                                              ; +0x23d, 0x1400b50ad\nmov     rcx, [rsi+238h]                                                ; +0x240, 0x1400b50b0\nlea     r11, [rsp+78h+var_18]                                          ; +0x247, 0x1400b50b7\nmov     rbx, [r11+30h]                                                 ; +0x24c, 0x1400b50bc\nmov     rbp, [r11+38h]                                                 ; +0x250, 0x1400b50c0\ncmp     [rcx+140h], eax                                                ; +0x254, 0x1400b50c4\nsetz    al                                                             ; +0x25a, 0x1400b50ca\nmov     [rsi+240h], al                                                 ; +0x25d, 0x1400b50cd\nmov     rsp, r11                                                       ; +0x263, 0x1400b50d3\npop     r15                                                            ; +0x266, 0x1400b50d6\npop     r14                                                            ; +0x268, 0x1400b50d8\npop     rsi                                                            ; +0x26a, 0x1400b50da\nretn                                                                   ; +0x26b, 0x1400b50db", "xrefs": ["CustomListView::loadCell @ 0x1400ab72d", "<???> @ 0x14066b510", "<???> @ 0x14066b520", "<???> @ 0x1406c7b78"], "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"}