{"type": "func", "start": 6379688, "end": 6379948, "name": "CustomSFXCell::loadFromObject", "pseudocode": "// \n// CustomSFXCell::loadFromObject from 0x6158a8 to 0x6159ac (260 bytes)\n// \n// 3 xrefs:\n// > CustomListView::reloadAll @ 0x61e1a8\n// > CustomListView::loadCell @ 0x620500\n// > <???> @ 0x33288\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 CustomSFXCell::loadFromObject(CustomSFXCell *a1, SFXInfoObject *a2)\n{\n  CustomSFXWidget *v4; // x22\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x21\n  cocos2d::CCPoint v6; // [xsp+40h] [xbp+40h] BYREF\n\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);\n  a1->m_sfxObject = a2;\n  v4 = CustomSFXWidget::create(\n         a2,\n         &a1->CustomSFXDelegate,\n         (bool)&dword_0 + 1,\n         (bool)&dword_0 + 1,\n         (bool)&dword_0 + 1,\n         0,\n         a1->m_compactMode);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v4, 2);\n  setPosition = v4->setPosition;\n  cocos2d::CCPoint::CCPoint(&v6, a1->m_width * 0.5, a1->m_height * 0.5);\n  setPosition(v4, &v6);\n  LODWORD(setPosition) = a1->m_sfxObject->m_sfxID;\n  a1->m_selected = (_DWORD)setPosition == a1->getActiveSFXID(a1);\n}", "assembly": "; \n; CustomSFXCell::loadFromObject from 0x6158a8 to 0x6159ac (260 bytes)\n; \n; 3 xrefs:\n; > CustomListView::reloadAll @ 0x61e1a8\n; > CustomListView::loadCell @ 0x620500\n; > <???> @ 0x33288\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\nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6158a8\nMOV             X29, SP                                                ; +0x4, 0x6158ac\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6158b0\nLDR             X2, [X0,#0x208]                                        ; +0xc, 0x6158b4\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x6158b8\nMOV             X19, X0                                                ; +0x14, 0x6158bc\nMOV             X0, X2                                                 ; +0x18, 0x6158c0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6158c4\nLDR             X2, [X2]                                               ; +0x20, 0x6158c8\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x24, 0x6158cc\nLDR             X3, [X20]                                              ; +0x28, 0x6158d0\nMOV             X22, X1                                                ; +0x2c, 0x6158d4\nLDR             X2, [X2,#0x238]                                        ; +0x30, 0x6158d8\nMOV             W1, #1                                                 ; +0x34, 0x6158dc\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x38, 0x6158e0\nADD             X21, X29, #0x50+var_10                                 ; +0x3c, 0x6158e4\nBLR             X2                                                     ; +0x40, 0x6158e8\nSTR             X22, [X19,#0x220]                                      ; +0x44, 0x6158ec\nLDRB            W6, [X19,#0x229]; bool                                 ; +0x48, 0x6158f0\nMOV             W2, #(dword_0+1); CustomSFXDelegate *                  ; +0x4c, 0x6158f4\nMOV             W4, W2; bool                                           ; +0x50, 0x6158f8\nMOV             W5, #0; bool                                           ; +0x54, 0x6158fc\nMOV             W3, W2; bool                                           ; +0x58, 0x615900\nADD             X1, X19, #0x218; SFXInfoObject *                       ; +0x5c, 0x615904\nMOV             X0, X22; this                                          ; +0x60, 0x615908\nBL              _ZN15CustomSFXWidget6createEP13SFXInfoObjectP17CustomSFXDelegatebbbbb; CustomSFXWidget::create(SFXInfoObject *,CustomSFXDelegate *,bool,bool,bool,bool,bool) ; +0x64, 0x61590c\nMOV             X1, X0                                                 ; +0x68, 0x615910\nLDR             X3, [X19,#0x208]                                       ; +0x6c, 0x615914\nMOV             X22, X0                                                ; +0x70, 0x615918\nMOV             W2, #2                                                 ; +0x74, 0x61591c\nMOV             X0, X3                                                 ; +0x78, 0x615920\nLDR             X3, [X3]                                               ; +0x7c, 0x615924\nLDR             X3, [X3,#0x1C0]                                        ; +0x80, 0x615928\nBLR             X3                                                     ; +0x84, 0x61592c\nSTR             X21, [X29,#0x50+var_18]                                ; +0x88, 0x615930\nLDR             S2, [X19,#0x1FC]                                       ; +0x8c, 0x615934\nLDR             X2, [X22]                                              ; +0x90, 0x615938\nLDR             S0, [X19,#0x1F8]                                       ; +0x94, 0x61593c\nMOV             X0, X21; this                                          ; +0x98, 0x615940\nFMOV            S1, #0.5                                               ; +0x9c, 0x615944\nLDR             X21, [X2,#0xB8]                                        ; +0xa0, 0x615948\nFMUL            S0, S0, S1; float                                      ; +0xa4, 0x61594c\nFMUL            S1, S2, S1; float                                      ; +0xa8, 0x615950\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xac, 0x615954\nLDR             X1, [X29,#0x50+var_18]                                 ; +0xb0, 0x615958\nMOV             X0, X22                                                ; +0xb4, 0x61595c\nBLR             X21                                                    ; +0xb8, 0x615960\nLDR             X1, [X19]                                              ; +0xbc, 0x615964\nMOV             X0, X19                                                ; +0xc0, 0x615968\nLDR             X2, [X19,#0x220]                                       ; +0xc4, 0x61596c\nLDR             X1, [X1,#0x478]                                        ; +0xc8, 0x615970\nLDR             W21, [X2,#0x38]                                        ; +0xcc, 0x615974\nBLR             X1                                                     ; +0xd0, 0x615978\nCMP             W21, W0                                                ; +0xd4, 0x61597c\nLDR             X2, [X29,#0x50+var_8]                                  ; +0xd8, 0x615980\nCSET            W0, EQ                                                 ; +0xdc, 0x615984\nLDR             X1, [X20]                                              ; +0xe0, 0x615988\nSTRB            W0, [X19,#0x228]                                       ; +0xe4, 0x61598c\nCMP             X2, X1                                                 ; +0xe8, 0x615990\nB.NE            loc_6159A8                                             ; +0xec, 0x615994\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xf0, 0x615998\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xf4, 0x61599c\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xf8, 0x6159a0\nRET                                                                    ; +0xfc, 0x6159a4\nBL              .__stack_chk_fail                                      ; +0x100, 0x6159a8", "xrefs": ["CustomListView::reloadAll @ 0x61e1a8", "CustomListView::loadCell @ 0x620500", "<???> @ 0x33288"], "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"}