{"type": "func", "start": 6380408, "end": 6380772, "name": "CustomMusicCell::loadFromObject", "pseudocode": "// \n// CustomMusicCell::loadFromObject from 0x615b78 to 0x615ce4 (364 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x6204d0\n// > <???> @ 0x78e10\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  TableViewCellDelegate *m_cellDelegate; // x0\n  bool v5; // zf\n  SongInfoObject *m_songInfoObject; // x0\n  int v7; // w8\n  CustomSongWidget *v8; // x20\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x22\n  SongInfoObject *v10; // x1\n  cocos2d::CCPoint v11; // [xsp+50h] [xbp+40h] BYREF\n\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);\n  a1->m_songInfoObject = a2;\n  m_cellDelegate = a1->m_tableView->m_cellDelegate;\n  if ( m_cellDelegate )\n  {\n    v5 = m_cellDelegate->getCellDelegateType(m_cellDelegate) == 1;\n    m_songInfoObject = a1->m_songInfoObject;\n    v7 = v5;\n  }\n  else\n  {\n    m_songInfoObject = a2;\n    v7 = 1;\n  }\n  v8 = CustomSongWidget::create(\n         m_songInfoObject,\n         &a1->CustomSongDelegate,\n         (bool)&dword_0 + 1,\n         (bool)&dword_0 + 1,\n         (bool)&dword_0 + 1,\n         0,\n         0,\n         (bool)&dword_0 + 1,\n         v7);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v8, 2);\n  setPosition = v8->setPosition;\n  cocos2d::CCPoint::CCPoint(&v11, a1->m_width * 0.5, a1->m_height * 0.5);\n  setPosition(v8, &v11);\n  v10 = a1->m_songInfoObject;\n  v8->m_isInCell = 1;\n  CustomSongWidget::addExtraVisuals(v8, v10->m_isNew, v10->m_libraryOrder > 0);\n  LODWORD(v8) = a1->m_songInfoObject->m_songID;\n  a1->m_selected = (_DWORD)v8 == a1->getActiveSongID(a1);\n}", "assembly": "; \n; CustomMusicCell::loadFromObject from 0x615b78 to 0x615ce4 (364 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x6204d0\n; > <???> @ 0x78e10\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\nSUB             SP, SP, #0x60                                          ; +0x0, 0x615b78\nSTP             X29, X30, [SP,#0x60+var_50]                            ; +0x4, 0x615b7c\nADD             X29, SP, #0x10                                         ; +0x8, 0x615b80\nLDR             X2, [X0,#0x208]                                        ; +0xc, 0x615b84\nSTP             X21, X22, [SP,#0x60+var_30]                            ; +0x10, 0x615b88\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x615b8c\nSTP             X19, X20, [SP,#0x60+var_40]                            ; +0x18, 0x615b90\nMOV             X19, X0                                                ; +0x1c, 0x615b94\nMOV             X0, X2                                                 ; +0x20, 0x615b98\nLDR             X3, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x615b9c\nMOV             X20, X1                                                ; +0x28, 0x615ba0\nLDR             X2, [X2]                                               ; +0x2c, 0x615ba4\nMOV             W1, #1                                                 ; +0x30, 0x615ba8\nLDR             X3, [X3]                                               ; +0x34, 0x615bac\nLDR             X2, [X2,#0x238]                                        ; +0x38, 0x615bb0\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x3c, 0x615bb4\nBLR             X2                                                     ; +0x40, 0x615bb8\nSTR             X20, [X19,#0x220]                                      ; +0x44, 0x615bbc\nLDR             X0, [X19,#0x1A0]                                       ; +0x48, 0x615bc0\nLDR             X0, [X0,#0x268]                                        ; +0x4c, 0x615bc4\nCBZ             X0, loc_615CD4                                         ; +0x50, 0x615bc8\nLDR             X1, [X0]                                               ; +0x54, 0x615bcc\nLDR             X1, [X1,#0x18]                                         ; +0x58, 0x615bd0\nBLR             X1                                                     ; +0x5c, 0x615bd4\nCMP             W0, #1                                                 ; +0x60, 0x615bd8\nLDR             X0, [X19,#0x220]; this                                 ; +0x64, 0x615bdc\nCSET            W8, EQ                                                 ; +0x68, 0x615be0\nMOV             W2, #(dword_0+1); CustomSongDelegate *                 ; +0x6c, 0x615be4\nMOV             W5, #0; bool                                           ; +0x70, 0x615be8\nMOV             W4, W2; bool                                           ; +0x74, 0x615bec\nMOV             W7, W2; bool                                           ; +0x78, 0x615bf0\nMOV             W6, #0; bool                                           ; +0x7c, 0x615bf4\nSTR             W8, [SP,#0x60+var_60]; bool                            ; +0x80, 0x615bf8\nMOV             W3, W2; bool                                           ; +0x84, 0x615bfc\nADD             X1, X19, #0x218; SongInfoObject *                      ; +0x88, 0x615c00\nADD             X22, X29, #0x50+var_10                                 ; +0x8c, 0x615c04\nBL              _ZN16CustomSongWidget6createEP14SongInfoObjectP18CustomSongDelegatebbbbbbi; CustomSongWidget::create(SongInfoObject *,CustomSongDelegate *,bool,bool,bool,bool,bool,bool,int) ; +0x90, 0x615c08\nMOV             X20, X0                                                ; +0x94, 0x615c0c\nLDR             X3, [X19,#0x208]                                       ; +0x98, 0x615c10\nMOV             X1, X0                                                 ; +0x9c, 0x615c14\nMOV             W2, #2                                                 ; +0xa0, 0x615c18\nMOV             X0, X3                                                 ; +0xa4, 0x615c1c\nLDR             X3, [X3]                                               ; +0xa8, 0x615c20\nLDR             X3, [X3,#0x1C0]                                        ; +0xac, 0x615c24\nBLR             X3                                                     ; +0xb0, 0x615c28\nSTR             X22, [X29,#0x50+var_18]                                ; +0xb4, 0x615c2c\nLDR             S2, [X19,#0x1FC]                                       ; +0xb8, 0x615c30\nLDR             X2, [X20]                                              ; +0xbc, 0x615c34\nLDR             S0, [X19,#0x1F8]                                       ; +0xc0, 0x615c38\nMOV             X0, X22; this                                          ; +0xc4, 0x615c3c\nFMOV            S1, #0.5                                               ; +0xc8, 0x615c40\nLDR             X22, [X2,#0xB8]                                        ; +0xcc, 0x615c44\nFMUL            S0, S0, S1; float                                      ; +0xd0, 0x615c48\nFMUL            S1, S2, S1; float                                      ; +0xd4, 0x615c4c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd8, 0x615c50\nLDR             X1, [X29,#0x50+var_18]                                 ; +0xdc, 0x615c54\nMOV             X0, X20                                                ; +0xe0, 0x615c58\nBLR             X22                                                    ; +0xe4, 0x615c5c\nLDR             X1, [X19,#0x220]                                       ; +0xe8, 0x615c60\nMOV             W0, #1                                                 ; +0xec, 0x615c64\nSTRB            W0, [X20,#0x1F8]                                       ; +0xf0, 0x615c68\nMOV             X0, X20; this                                          ; +0xf4, 0x615c6c\nLDR             W2, [X1,#0x19C]                                        ; +0xf8, 0x615c70\nLDRB            W1, [X1,#0x198]; bool                                  ; +0xfc, 0x615c74\nCMP             W2, WZR                                                ; +0x100, 0x615c78\nCSET            W2, GT; bool                                           ; +0x104, 0x615c7c\nBL              _ZN16CustomSongWidget15addExtraVisualsEbb; CustomSongWidget::addExtraVisuals(bool,bool) ; +0x108, 0x615c80\nLDR             X1, [X19]                                              ; +0x10c, 0x615c84\nMOV             X0, X19                                                ; +0x110, 0x615c88\nLDR             X2, [X19,#0x220]                                       ; +0x114, 0x615c8c\nLDR             X1, [X1,#0x478]                                        ; +0x118, 0x615c90\nLDR             W20, [X2,#0x13C]                                       ; +0x11c, 0x615c94\nBLR             X1                                                     ; +0x120, 0x615c98\nCMP             W20, W0                                                ; +0x124, 0x615c9c\nCSET            W0, EQ                                                 ; +0x128, 0x615ca0\nSTRB            W0, [X19,#0x228]                                       ; +0x12c, 0x615ca4\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x130, 0x615ca8\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x134, 0x615cac\nLDR             X0, [X21]                                              ; +0x138, 0x615cb0\nCMP             X1, X0                                                 ; +0x13c, 0x615cb4\nB.NE            loc_615CE0                                             ; +0x140, 0x615cb8\nSUB             SP, X29, #0x10                                         ; +0x144, 0x615cbc\nLDP             X19, X20, [SP,#0x60+var_40]                            ; +0x148, 0x615cc0\nLDP             X21, X22, [SP,#0x60+var_30]                            ; +0x14c, 0x615cc4\nLDP             X29, X30, [SP,#0x60+var_50]                            ; +0x150, 0x615cc8\nADD             SP, SP, #0x60 ; '`'                                    ; +0x154, 0x615ccc\nRET                                                                    ; +0x158, 0x615cd0\nMOV             X0, X20                                                ; +0x15c, 0x615cd4\nMOV             W8, #1                                                 ; +0x160, 0x615cd8\nB               loc_615BE4                                             ; +0x164, 0x615cdc\nBL              .__stack_chk_fail                                      ; +0x168, 0x615ce0", "xrefs": ["CustomListView::loadCell @ 0x6204d0", "<???> @ 0x78e10"], "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"}