{"type": "func", "start": 4348336, "end": 4348586, "name": "CustomSFXCell::loadFromObject", "pseudocode": "// \n// CustomSFXCell::loadFromObject from 0x4259b0 to 0x425aaa (250 bytes)\n// \n// 2 xrefs:\n// > CustomListView::reloadAll @ 0x43132c\n// > CustomListView::loadCell @ 0x43406c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:48:04 +0000\n// \n\nint __fastcall CustomSFXCell::loadFromObject(CustomSFXCell *this, SFXInfoObject *a2)\n{\n  int v4; // r3\n  int v5; // r0\n  int v6; // r8\n  void (__fastcall *v7)(int, _BYTE *); // r9\n  int v8; // r6\n  int v9; // r5\n  bool v10; // r0\n  int v11; // r3\n  int result; // r0\n  bool v13; // [sp+14h] [bp-18h]\n  _BYTE v14[8]; // [sp+1Ch] [bp-10h] BYREF\n\n  (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);\n  v4 = *((_DWORD *)this + 80);\n  *((_DWORD *)this + 106) = a2;\n  v5 = *(_DWORD *)(v4 + 464);\n  if ( v5 )\n    LOBYTE(v5) = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 12))(v5);\n  v6 = CustomSFXWidget::create(\n         *((CustomSFXWidget **)this + 106),\n         (CustomSFXCell *)((char *)this + 420),\n         (CustomSFXDelegate *)((char *)&dword_0 + 1),\n         (bool)&dword_0 + 1,\n         (bool)&dword_0 + 1,\n         0,\n         *((_BYTE *)this + 430),\n         (bool)&dword_0 + 1,\n         v5,\n         v13);\n  (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v6, 2);\n  v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, *((float *)this + 100) * 0.5, *((float *)this + 101) * 0.5);\n  v7(v6, v14);\n  v8 = *(_DWORD *)(*((_DWORD *)this + 106) + 52);\n  if ( v8 == (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 580))(this) )\n  {\n    v9 = *(_DWORD *)(*((_DWORD *)this + 106) + 72);\n    v10 = v9 == (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 584))(this);\n  }\n  else\n  {\n    v10 = 0;\n  }\n  v11 = *((_DWORD *)this + 106);\n  *((_BYTE *)this + 428) = v10;\n  if ( *(int *)(v11 + 72) <= 0 )\n    result = 0;\n  else\n    result = (*(int (__fastcall **)(CustomSFXCell *))(*(_DWORD *)this + 600))(this);\n  *((_BYTE *)this + 429) = result;\n  return result;\n}", "assembly": "; \n; CustomSFXCell::loadFromObject from 0x4259b0 to 0x425aaa (250 bytes)\n; \n; 2 xrefs:\n; > CustomListView::reloadAll @ 0x43132c\n; > CustomListView::loadCell @ 0x43406c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:48:04 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x4259b0\nMOV             R4, R0                                                 ; +0x4, 0x4259b4\nLDR             R7, =(__stack_chk_guard_ptr - 0x4259C4)                ; +0x6, 0x4259b6\nSUB             SP, SP, #0x2C; bool                                    ; +0x8, 0x4259b8\nLDR.W           R0, [R0,#0x19C]                                        ; +0xa, 0x4259ba\nMOV             R5, R1                                                 ; +0xe, 0x4259be\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0x10, 0x4259c0\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x12, 0x4259c2\nMOVS            R1, #1                                                 ; +0x14, 0x4259c4\nLDR             R3, [R7]                                               ; +0x16, 0x4259c6\nSTR             R3, [SP,#0x2C+var_8]                                   ; +0x18, 0x4259c8\nLDR             R3, [R0]                                               ; +0x1a, 0x4259ca\nLDR.W           R3, [R3,#0x124]                                        ; +0x1c, 0x4259cc\nBLX             R3                                                     ; +0x20, 0x4259d0\nLDR.W           R3, [R4,#0x140]                                        ; +0x22, 0x4259d2\nSTR.W           R5, [R4,#0x1A8]                                        ; +0x26, 0x4259d6\nLDR.W           R0, [R3,#0x1D0]                                        ; +0x2a, 0x4259da\nCBZ             R0, loc_4259E6                                         ; +0x2e, 0x4259de\nLDR             R3, [R0]                                               ; +0x30, 0x4259e0\nLDR             R3, [R3,#0xC]                                          ; +0x32, 0x4259e2\nBLX             R3                                                     ; +0x34, 0x4259e4\nLDRB.W          R3, [R4,#0x1AE]                                        ; +0x36, 0x4259e6\nMOVS            R2, #(dword_0+1); CustomSFXDelegate *                  ; +0x3a, 0x4259ea\nSTR             R0, [SP,#0x2C+var_1C]; bool                            ; +0x3c, 0x4259ec\nADD.W           R1, R4, #0x1A4; SFXInfoObject *                        ; +0x3e, 0x4259ee\nSTR             R2, [SP,#0x2C+var_20]; bool                            ; +0x42, 0x4259f2\nMOVS            R5, #0                                                 ; +0x44, 0x4259f4\nSTR             R3, [SP,#0x2C+var_24]; bool                            ; +0x46, 0x4259f6\nMOV             R3, R2; bool                                           ; +0x48, 0x4259f8\nSTMEA.W         SP, {R2,R5}                                            ; +0x4a, 0x4259fa\nADD             R6, SP, #0x2C+var_10                                   ; +0x4e, 0x4259fe\nLDR.W           R0, [R4,#0x1A8]; this                                  ; +0x50, 0x425a00\nBL              _ZN15CustomSFXWidget6createEP13SFXInfoObjectP17CustomSFXDelegatebbbbbbb; CustomSFXWidget::create(SFXInfoObject *,CustomSFXDelegate *,bool,bool,bool,bool,bool,bool,bool) ; +0x54, 0x425a04\nMOVS            R2, #2                                                 ; +0x58, 0x425a08\nMOV             R8, R0                                                 ; +0x5a, 0x425a0a\nLDR.W           R0, [R4,#0x19C]                                        ; +0x5c, 0x425a0c\nMOV             R1, R8                                                 ; +0x60, 0x425a10\nLDR             R3, [R0]                                               ; +0x62, 0x425a12\nLDR.W           R3, [R3,#0xE8]                                         ; +0x64, 0x425a14\nBLX             R3                                                     ; +0x68, 0x425a18\nVMOV.F32        S15, #0.5                                              ; +0x6a, 0x425a1a\nVLDR            S14, [R4,#0x194]                                       ; +0x6e, 0x425a1e\nMOV             R0, R6; this                                           ; +0x72, 0x425a22\nLDR.W           R3, [R8]                                               ; +0x74, 0x425a24\nVLDR            S13, [R4,#0x190]                                       ; +0x78, 0x425a28\nLDR.W           R9, [R3,#0x5C]                                         ; +0x7c, 0x425a2c\nVMUL.F32        S13, S13, S15                                          ; +0x80, 0x425a30\nVMUL.F32        S15, S14, S15                                          ; +0x84, 0x425a34\nVMOV            R1, S13; float                                         ; +0x88, 0x425a38\nVMOV            R2, S15; float                                         ; +0x8c, 0x425a3c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x90, 0x425a40\nMOV             R1, R6                                                 ; +0x94, 0x425a44\nMOV             R0, R8                                                 ; +0x96, 0x425a46\nBLX             R9                                                     ; +0x98, 0x425a48\nLDR.W           R3, [R4,#0x1A8]                                        ; +0x9a, 0x425a4a\nMOV             R0, R4                                                 ; +0x9e, 0x425a4e\nLDR             R6, [R3,#0x34]                                         ; +0xa0, 0x425a50\nLDR             R3, [R4]                                               ; +0xa2, 0x425a52\nLDR.W           R3, [R3,#0x244]                                        ; +0xa4, 0x425a54\nBLX             R3                                                     ; +0xa8, 0x425a58\nCMP             R6, R0                                                 ; +0xaa, 0x425a5a\nBNE             loc_425A76                                             ; +0xac, 0x425a5c\nLDR.W           R3, [R4,#0x1A8]                                        ; +0xae, 0x425a5e\nMOV             R0, R4                                                 ; +0xb2, 0x425a62\nLDR             R5, [R3,#0x48]                                         ; +0xb4, 0x425a64\nLDR             R3, [R4]                                               ; +0xb6, 0x425a66\nLDR.W           R3, [R3,#0x248]                                        ; +0xb8, 0x425a68\nBLX             R3                                                     ; +0xbc, 0x425a6c\nSUBS            R3, R5, R0                                             ; +0xbe, 0x425a6e\nNEGS            R0, R3                                                 ; +0xc0, 0x425a70\nADCS            R0, R3                                                 ; +0xc2, 0x425a72\nB               loc_425A78                                             ; +0xc4, 0x425a74\nMOV             R0, R5                                                 ; +0xc6, 0x425a76\nLDR.W           R3, [R4,#0x1A8]                                        ; +0xc8, 0x425a78\nSTRB.W          R0, [R4,#0x1AC]                                        ; +0xcc, 0x425a7c\nLDR             R1, [R3,#0x48]                                         ; +0xd0, 0x425a80\nCMP             R1, #0                                                 ; +0xd2, 0x425a82\nBLE             loc_425A92                                             ; +0xd4, 0x425a84\nLDR             R3, [R4]                                               ; +0xd6, 0x425a86\nMOV             R0, R4                                                 ; +0xd8, 0x425a88\nLDR.W           R3, [R3,#0x258]                                        ; +0xda, 0x425a8a\nBLX             R3                                                     ; +0xde, 0x425a8e\nB               loc_425A94                                             ; +0xe0, 0x425a90\nMOVS            R0, #0                                                 ; +0xe2, 0x425a92\nLDR             R2, [SP,#0x2C+var_8]                                   ; +0xe4, 0x425a94\nLDR             R3, [R7]                                               ; +0xe6, 0x425a96\nSTRB.W          R0, [R4,#0x1AD]                                        ; +0xe8, 0x425a98\nCMP             R2, R3                                                 ; +0xec, 0x425a9c\nBEQ             loc_425AA4                                             ; +0xee, 0x425a9e\nBLX             __stack_chk_fail                                       ; +0xf0, 0x425aa0\nADD             SP, SP, #0x2C ; ','                                    ; +0xf4, 0x425aa4\nPOP.W           {R4-R9,PC}                                             ; +0xf6, 0x425aa6", "xrefs": ["CustomListView::reloadAll @ 0x43132c", "CustomListView::loadCell @ 0x43406c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}