{"type": "func", "start": 3363600, "end": 3363774, "name": "CustomSFXCell::loadFromObject", "pseudocode": "// \n// CustomSFXCell::loadFromObject from 0x335310 to 0x3353be (174 bytes)\n// \n// 2 xrefs:\n// > CustomListView::reloadAll @ 0x33a65a\n// > CustomListView::loadCell @ 0x33bbb2\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  bool m_compactMode; // r3\n  CustomSFXWidget *v5; // r7\n  void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8\n  int m_sfxID; // r6\n  cocos2d::CCPoint v8; // [sp+14h] [bp-Ch] BYREF\n\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1);\n  m_compactMode = a1->m_compactMode;\n  a1->m_sfxObject = a2;\n  v5 = 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         m_compactMode);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 2);\n  setPosition = v5->setPosition;\n  cocos2d::CCPoint::CCPoint(&v8, a1->m_width * 0.5, a1->m_height * 0.5);\n  setPosition(v5, &v8);\n  m_sfxID = a1->m_sfxObject->m_sfxID;\n  a1->m_selected = m_sfxID == a1->getActiveSFXID(a1);\n}", "assembly": "; \n; CustomSFXCell::loadFromObject from 0x335310 to 0x3353be (174 bytes)\n; \n; 2 xrefs:\n; > CustomListView::reloadAll @ 0x33a65a\n; > CustomListView::loadCell @ 0x33bbb2\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-R8,LR}                                             ; +0x0, 0x335310\nMOV             R4, R0                                                 ; +0x4, 0x335314\nLDR             R5, =(__stack_chk_guard_ptr - 0x335324)                ; +0x6, 0x335316\nSUB             SP, SP, #0x20; bool                                    ; +0x8, 0x335318\nLDR.W           R0, [R0,#0x194]                                        ; +0xa, 0x33531a\nMOV             R6, R1                                                 ; +0xe, 0x33531e\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x335320\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x335322\nMOVS            R1, #1                                                 ; +0x14, 0x335324\nLDR             R3, [R5]                                               ; +0x16, 0x335326\nSTR             R3, [SP,#0x20+var_4]                                   ; +0x18, 0x335328\nLDR             R3, [R0]                                               ; +0x1a, 0x33532a\nLDR.W           R3, [R3,#0x11C]                                        ; +0x1c, 0x33532c\nBLX             R3                                                     ; +0x20, 0x335330\nMOVS            R2, #(dword_0+1); CustomSFXDelegate *                  ; +0x22, 0x335332\nMOVS            R3, #0                                                 ; +0x24, 0x335334\nSTMEA.W         SP, {R2,R3}                                            ; +0x26, 0x335336\nLDRB.W          R3, [R4,#0x1A5]                                        ; +0x2a, 0x33533a\nMOV             R0, R6; this                                           ; +0x2e, 0x33533e\nSTR.W           R6, [R4,#0x1A0]                                        ; +0x30, 0x335340\nADD.W           R1, R4, #0x19C; SFXInfoObject *                        ; +0x34, 0x335344\nADD             R6, SP, #0x20+var_C                                    ; +0x38, 0x335348\nSTR             R3, [SP,#0x20+var_18]; bool                            ; +0x3a, 0x33534a\nMOV             R3, R2; bool                                           ; +0x3c, 0x33534c\nBL              _ZN15CustomSFXWidget6createEP13SFXInfoObjectP17CustomSFXDelegatebbbbb; CustomSFXWidget::create(SFXInfoObject *,CustomSFXDelegate *,bool,bool,bool,bool,bool) ; +0x3e, 0x33534e\nMOVS            R2, #2                                                 ; +0x42, 0x335352\nMOV             R7, R0                                                 ; +0x44, 0x335354\nLDR.W           R0, [R4,#0x194]                                        ; +0x46, 0x335356\nMOV             R1, R7                                                 ; +0x4a, 0x33535a\nLDR             R3, [R0]                                               ; +0x4c, 0x33535c\nLDR.W           R3, [R3,#0xE0]                                         ; +0x4e, 0x33535e\nBLX             R3                                                     ; +0x52, 0x335362\nVMOV.F32        S15, #0.5                                              ; +0x54, 0x335364\nVLDR            S14, [R4,#0x18C]                                       ; +0x58, 0x335368\nMOV             R0, R6; this                                           ; +0x5c, 0x33536c\nLDR             R3, [R7]                                               ; +0x5e, 0x33536e\nVLDR            S13, [R4,#0x188]                                       ; +0x60, 0x335370\nLDR.W           R8, [R3,#0x5C]                                         ; +0x64, 0x335374\nVMUL.F32        S13, S13, S15                                          ; +0x68, 0x335378\nVMUL.F32        S15, S14, S15                                          ; +0x6c, 0x33537c\nVMOV            R1, S13; float                                         ; +0x70, 0x335380\nVMOV            R2, S15; float                                         ; +0x74, 0x335384\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x78, 0x335388\nMOV             R1, R6                                                 ; +0x7c, 0x33538c\nMOV             R0, R7                                                 ; +0x7e, 0x33538e\nBLX             R8                                                     ; +0x80, 0x335390\nLDR.W           R3, [R4,#0x1A0]                                        ; +0x82, 0x335392\nMOV             R0, R4                                                 ; +0x86, 0x335396\nLDR             R6, [R3,#0x34]                                         ; +0x88, 0x335398\nLDR             R3, [R4]                                               ; +0x8a, 0x33539a\nLDR.W           R3, [R3,#0x23C]                                        ; +0x8c, 0x33539c\nBLX             R3                                                     ; +0x90, 0x3353a0\nLDR             R2, [SP,#0x20+var_4]                                   ; +0x92, 0x3353a2\nSUBS            R3, R6, R0                                             ; +0x94, 0x3353a4\nNEGS            R0, R3                                                 ; +0x96, 0x3353a6\nADCS            R0, R3                                                 ; +0x98, 0x3353a8\nLDR             R3, [R5]                                               ; +0x9a, 0x3353aa\nSTRB.W          R0, [R4,#0x1A4]                                        ; +0x9c, 0x3353ac\nCMP             R2, R3                                                 ; +0xa0, 0x3353b0\nBEQ             loc_3353B8                                             ; +0xa2, 0x3353b2\nBLX             __stack_chk_fail                                       ; +0xa4, 0x3353b4\nADD             SP, SP, #0x20 ; ' '                                    ; +0xa8, 0x3353b8\nPOP.W           {R4-R8,PC}                                             ; +0xaa, 0x3353ba", "xrefs": ["CustomListView::reloadAll @ 0x33a65a", "CustomListView::loadCell @ 0x33bbb2"], "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"}