{"type": "func", "start": 3364096, "end": 3364340, "name": "CustomMusicCell::loadFromObject", "pseudocode": "// \n// CustomMusicCell::loadFromObject from 0x335500 to 0x3355f4 (244 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x33bb76\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  TableView *m_tableView; // r3\n  TableViewCellDelegate *m_cellDelegate; // r0\n  _BOOL4 v6; // r0\n  CustomSongWidget *v7; // r5\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9\n  SongInfoObject *m_songInfoObject; // r3\n  int m_songID; // r5\n  cocos2d::CCPoint v11; // [sp+1Ch] [bp-10h] BYREF\n\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);\n  m_tableView = a1->m_tableView;\n  a1->m_songInfoObject = a2;\n  m_cellDelegate = m_tableView->m_cellDelegate;\n  if ( m_cellDelegate )\n    v6 = m_cellDelegate->getCellDelegateType(m_cellDelegate) == 1;\n  else\n    v6 = 1;\n  v7 = CustomSongWidget::create(\n         a1->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         v6);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 2);\n  setPosition = v7->setPosition;\n  cocos2d::CCPoint::CCPoint(&v11, a1->m_width * 0.5, a1->m_height * 0.5);\n  setPosition(v7, &v11);\n  m_songInfoObject = a1->m_songInfoObject;\n  v7->m_isInCell = (unsigned __int8)&dword_0 + 1;\n  CustomSongWidget::addExtraVisuals(v7, m_songInfoObject->m_isNew, m_songInfoObject->m_libraryOrder > 0);\n  m_songID = a1->m_songInfoObject->m_songID;\n  a1->m_selected = m_songID == a1->getActiveSongID(a1);\n}", "assembly": "; \n; CustomMusicCell::loadFromObject from 0x335500 to 0x3355f4 (244 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x33bb76\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.W          {R4-R9,LR}                                             ; +0x0, 0x335500\nMOV             R4, R0                                                 ; +0x4, 0x335504\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x335516)                ; +0x6, 0x335506\nSUB             SP, SP, #0x2C                                          ; +0xa, 0x33550a\nLDR.W           R0, [R0,#0x194]                                        ; +0xc, 0x33550c\nMOV             R5, R1                                                 ; +0x10, 0x335510\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x12, 0x335512\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x14, 0x335514\nMOVS            R1, #1                                                 ; +0x18, 0x335518\nLDR.W           R3, [R8]                                               ; +0x1a, 0x33551a\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x1e, 0x33551e\nLDR             R3, [R0]                                               ; +0x20, 0x335520\nLDR.W           R3, [R3,#0x11C]                                        ; +0x22, 0x335522\nBLX             R3                                                     ; +0x26, 0x335526\nLDR.W           R3, [R4,#0x140]                                        ; +0x28, 0x335528\nSTR.W           R5, [R4,#0x1A0]                                        ; +0x2c, 0x33552c\nLDR.W           R0, [R3,#0x1C4]                                        ; +0x30, 0x335530\nCBZ             R0, loc_335544                                         ; +0x34, 0x335534\nLDR             R3, [R0]                                               ; +0x36, 0x335536\nLDR             R3, [R3,#0xC]                                          ; +0x38, 0x335538\nBLX             R3                                                     ; +0x3a, 0x33553a\nSUBS            R2, R0, #1                                             ; +0x3c, 0x33553c\nNEGS            R0, R2                                                 ; +0x3e, 0x33553e\nADCS            R0, R2                                                 ; +0x40, 0x335540\nB               loc_335546                                             ; +0x42, 0x335542\nMOVS            R0, #1                                                 ; +0x44, 0x335544\nMOVS            R6, #(dword_0+1)                                       ; +0x46, 0x335546\nMOVS            R3, #0                                                 ; +0x48, 0x335548\nSTR             R0, [SP,#0x2C+var_1C]; bool                            ; +0x4a, 0x33554a\nADD.W           R1, R4, #0x19C; SongInfoObject *                       ; +0x4c, 0x33554c\nSTR             R3, [SP,#0x2C+var_28]; bool                            ; +0x50, 0x335550\nMOV             R2, R6; CustomSongDelegate *                           ; +0x52, 0x335552\nSTR             R3, [SP,#0x2C+var_24]; bool                            ; +0x54, 0x335554\nMOV             R3, R6; bool                                           ; +0x56, 0x335556\nSTR             R6, [SP,#0x2C+var_2C]; bool                            ; +0x58, 0x335558\nADD             R7, SP, #0x2C+var_10                                   ; +0x5a, 0x33555a\nSTR             R6, [SP,#0x2C+var_20]; bool                            ; +0x5c, 0x33555c\nLDR.W           R0, [R4,#0x1A0]; this                                  ; +0x5e, 0x33555e\nBL              _ZN16CustomSongWidget6createEP14SongInfoObjectP18CustomSongDelegatebbbbbbi; CustomSongWidget::create(SongInfoObject *,CustomSongDelegate *,bool,bool,bool,bool,bool,bool,int) ; +0x62, 0x335562\nMOVS            R2, #2                                                 ; +0x66, 0x335566\nMOV             R5, R0                                                 ; +0x68, 0x335568\nLDR.W           R0, [R4,#0x194]                                        ; +0x6a, 0x33556a\nMOV             R1, R5                                                 ; +0x6e, 0x33556e\nLDR             R3, [R0]                                               ; +0x70, 0x335570\nLDR.W           R3, [R3,#0xE0]                                         ; +0x72, 0x335572\nBLX             R3                                                     ; +0x76, 0x335576\nVMOV.F32        S15, #0.5                                              ; +0x78, 0x335578\nVLDR            S14, [R4,#0x18C]                                       ; +0x7c, 0x33557c\nMOV             R0, R7; this                                           ; +0x80, 0x335580\nLDR             R3, [R5]                                               ; +0x82, 0x335582\nVLDR            S13, [R4,#0x188]                                       ; +0x84, 0x335584\nLDR.W           R9, [R3,#0x5C]                                         ; +0x88, 0x335588\nVMUL.F32        S13, S13, S15                                          ; +0x8c, 0x33558c\nVMUL.F32        S15, S14, S15                                          ; +0x90, 0x335590\nVMOV            R1, S13; float                                         ; +0x94, 0x335594\nVMOV            R2, S15; float                                         ; +0x98, 0x335598\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x9c, 0x33559c\nMOV             R0, R5                                                 ; +0xa0, 0x3355a0\nMOV             R1, R7                                                 ; +0xa2, 0x3355a2\nBLX             R9                                                     ; +0xa4, 0x3355a4\nLDR.W           R3, [R4,#0x1A0]                                        ; +0xa6, 0x3355a6\nSTRB.W          R6, [R5,#0x16C]                                        ; +0xaa, 0x3355aa\nMOV             R0, R5; this                                           ; +0xae, 0x3355ae\nLDR.W           R2, [R3,#0x148]                                        ; +0xb0, 0x3355b0\nLDRB.W          R1, [R3,#0x144]; bool                                  ; +0xb4, 0x3355b4\nCMP             R2, #0                                                 ; +0xb8, 0x3355b8\nITE LE                                                                 ; +0xba, 0x3355ba\nMOVLE           R2, #0                                                 ; +0xbc, 0x3355bc\nMOVGT           R2, #1; bool                                           ; +0xbe, 0x3355be\nBL              _ZN16CustomSongWidget15addExtraVisualsEbb; CustomSongWidget::addExtraVisuals(bool,bool) ; +0xc0, 0x3355c0\nLDR.W           R3, [R4,#0x1A0]                                        ; +0xc4, 0x3355c4\nMOV             R0, R4                                                 ; +0xc8, 0x3355c8\nLDR.W           R5, [R3,#0x108]                                        ; +0xca, 0x3355ca\nLDR             R3, [R4]                                               ; +0xce, 0x3355ce\nLDR.W           R3, [R3,#0x23C]                                        ; +0xd0, 0x3355d0\nBLX             R3                                                     ; +0xd4, 0x3355d4\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xd6, 0x3355d6\nSUBS            R3, R5, R0                                             ; +0xd8, 0x3355d8\nNEGS            R0, R3                                                 ; +0xda, 0x3355da\nADCS            R0, R3                                                 ; +0xdc, 0x3355dc\nLDR.W           R3, [R8]                                               ; +0xde, 0x3355de\nSTRB.W          R0, [R4,#0x1A4]                                        ; +0xe2, 0x3355e2\nCMP             R2, R3                                                 ; +0xe6, 0x3355e6\nBEQ             loc_3355EE                                             ; +0xe8, 0x3355e8\nBLX             __stack_chk_fail                                       ; +0xea, 0x3355ea\nADD             SP, SP, #0x2C ; ','                                    ; +0xee, 0x3355ee\nPOP.W           {R4-R9,PC}                                             ; +0xf0, 0x3355f0", "xrefs": ["CustomListView::loadCell @ 0x33bb76"], "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"}