{"type": "func", "start": 4348984, "end": 4349232, "name": "CustomMusicCell::loadFromObject", "pseudocode": "// \n// CustomMusicCell::loadFromObject from 0x425c38 to 0x425d30 (248 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x434030\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\nbool __fastcall CustomMusicCell::loadFromObject(CustomMusicCell *this, SongInfoObject *a2)\n{\n  int v4; // r3\n  int v5; // r0\n  char v6; // r0\n  CustomSongWidget *v7; // r6\n  void (__fastcall *v8)(CustomSongWidget *, _BYTE *); // r9\n  int v9; // r5\n  _BOOL4 result; // r0\n  bool v11; // [sp+1Ch] [bp-18h]\n  _BYTE v12[8]; // [sp+24h] [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    v6 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 32))(v5) == 1;\n  else\n    v6 = 1;\n  v7 = (CustomSongWidget *)CustomSongWidget::create(\n                             *((CustomSongWidget **)this + 106),\n                             (CustomMusicCell *)((char *)this + 420),\n                             (CustomSongDelegate *)((char *)&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                             (bool)&dword_0 + 1,\n                             0,\n                             v11);\n  (*(void (__fastcall **)(_DWORD, CustomSongWidget *, int))(**((_DWORD **)this + 103) + 232))(\n    *((_DWORD *)this + 103),\n    v7,\n    2);\n  v8 = *(void (__fastcall **)(CustomSongWidget *, _BYTE *))(*(_DWORD *)v7 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, *((float *)this + 100) * 0.5, *((float *)this + 101) * 0.5);\n  v8(v7, v12);\n  *((_BYTE *)v7 + 368) = (unsigned __int8)&dword_0 + 1;\n  CustomSongWidget::addExtraVisuals(\n    v7,\n    *(_BYTE *)(*((_DWORD *)this + 106) + 344),\n    *(_DWORD *)(*((_DWORD *)this + 106) + 348) > 0);\n  v9 = *(_DWORD *)(*((_DWORD *)this + 106) + 264);\n  result = v9 == (*(int (__fastcall **)(CustomMusicCell *))(*(_DWORD *)this + 580))(this);\n  *((_BYTE *)this + 428) = result;\n  return result;\n}", "assembly": "; \n; CustomMusicCell::loadFromObject from 0x425c38 to 0x425d30 (248 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x434030\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, 0x425c38\nMOV             R4, R0                                                 ; +0x4, 0x425c3c\nLDR.W           R8, =(__stack_chk_guard_ptr - 0x425C4E)                ; +0x6, 0x425c3e\nSUB             SP, SP, #0x34                                          ; +0xa, 0x425c42\nLDR.W           R0, [R0,#0x19C]                                        ; +0xc, 0x425c44\nMOV             R5, R1                                                 ; +0x10, 0x425c48\nADD             R8, PC; __stack_chk_guard_ptr                          ; +0x12, 0x425c4a\nLDR.W           R8, [R8]; __stack_chk_guard                            ; +0x14, 0x425c4c\nMOVS            R1, #1                                                 ; +0x18, 0x425c50\nLDR.W           R3, [R8]                                               ; +0x1a, 0x425c52\nSTR             R3, [SP,#0x34+var_8]                                   ; +0x1e, 0x425c56\nLDR             R3, [R0]                                               ; +0x20, 0x425c58\nLDR.W           R3, [R3,#0x124]                                        ; +0x22, 0x425c5a\nBLX             R3                                                     ; +0x26, 0x425c5e\nLDR.W           R3, [R4,#0x140]                                        ; +0x28, 0x425c60\nSTR.W           R5, [R4,#0x1A8]                                        ; +0x2c, 0x425c64\nLDR.W           R0, [R3,#0x1D0]                                        ; +0x30, 0x425c68\nCBZ             R0, loc_425C7C                                         ; +0x34, 0x425c6c\nLDR             R3, [R0]                                               ; +0x36, 0x425c6e\nLDR             R3, [R3,#0x20]                                         ; +0x38, 0x425c70\nBLX             R3                                                     ; +0x3a, 0x425c72\nSUBS            R2, R0, #1                                             ; +0x3c, 0x425c74\nNEGS            R0, R2                                                 ; +0x3e, 0x425c76\nADCS            R0, R2                                                 ; +0x40, 0x425c78\nB               loc_425C7E                                             ; +0x42, 0x425c7a\nMOVS            R0, #1                                                 ; +0x44, 0x425c7c\nMOVS            R5, #(dword_0+1)                                       ; +0x46, 0x425c7e\nMOVS            R3, #0                                                 ; +0x48, 0x425c80\nMOV             R2, R5; CustomSongDelegate *                           ; +0x4a, 0x425c82\nSTR             R5, [SP,#0x34+var_34]; bool                            ; +0x4c, 0x425c84\nSTR             R3, [SP,#0x34+var_30]; bool                            ; +0x4e, 0x425c86\nADD.W           R1, R4, #0x1A4; SongInfoObject *                       ; +0x50, 0x425c88\nSTR             R3, [SP,#0x34+var_2C]; bool                            ; +0x54, 0x425c8c\nADD             R7, SP, #0x34+var_10                                   ; +0x56, 0x425c8e\nSTR             R5, [SP,#0x34+var_28]; bool                            ; +0x58, 0x425c90\nSTR             R0, [SP,#0x34+var_24]; bool                            ; +0x5a, 0x425c92\nSTR             R5, [SP,#0x34+var_20]; bool                            ; +0x5c, 0x425c94\nSTR             R3, [SP,#0x34+var_1C]; bool                            ; +0x5e, 0x425c96\nMOV             R3, R5; bool                                           ; +0x60, 0x425c98\nLDR.W           R0, [R4,#0x1A8]; this                                  ; +0x62, 0x425c9a\nBL              _ZN16CustomSongWidget6createEP14SongInfoObjectP18CustomSongDelegatebbbbbbibb; CustomSongWidget::create(SongInfoObject *,CustomSongDelegate *,bool,bool,bool,bool,bool,bool,int,bool,bool) ; +0x66, 0x425c9e\nMOVS            R2, #2                                                 ; +0x6a, 0x425ca2\nMOV             R6, R0                                                 ; +0x6c, 0x425ca4\nLDR.W           R0, [R4,#0x19C]                                        ; +0x6e, 0x425ca6\nMOV             R1, R6                                                 ; +0x72, 0x425caa\nLDR             R3, [R0]                                               ; +0x74, 0x425cac\nLDR.W           R3, [R3,#0xE8]                                         ; +0x76, 0x425cae\nBLX             R3                                                     ; +0x7a, 0x425cb2\nVMOV.F32        S15, #0.5                                              ; +0x7c, 0x425cb4\nVLDR            S14, [R4,#0x194]                                       ; +0x80, 0x425cb8\nMOV             R0, R7; this                                           ; +0x84, 0x425cbc\nLDR             R3, [R6]                                               ; +0x86, 0x425cbe\nVLDR            S13, [R4,#0x190]                                       ; +0x88, 0x425cc0\nLDR.W           R9, [R3,#0x5C]                                         ; +0x8c, 0x425cc4\nVMUL.F32        S13, S13, S15                                          ; +0x90, 0x425cc8\nVMUL.F32        S15, S14, S15                                          ; +0x94, 0x425ccc\nVMOV            R1, S13; float                                         ; +0x98, 0x425cd0\nVMOV            R2, S15; float                                         ; +0x9c, 0x425cd4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xa0, 0x425cd8\nMOV             R0, R6                                                 ; +0xa4, 0x425cdc\nMOV             R1, R7                                                 ; +0xa6, 0x425cde\nBLX             R9                                                     ; +0xa8, 0x425ce0\nSTRB.W          R5, [R6,#0x170]                                        ; +0xaa, 0x425ce2\nLDR.W           R3, [R4,#0x1A8]                                        ; +0xae, 0x425ce6\nMOV             R0, R6; this                                           ; +0xb2, 0x425cea\nLDR.W           R2, [R3,#0x15C]                                        ; +0xb4, 0x425cec\nLDRB.W          R1, [R3,#0x158]; bool                                  ; +0xb8, 0x425cf0\nCMP             R2, #0                                                 ; +0xbc, 0x425cf4\nITE LE                                                                 ; +0xbe, 0x425cf6\nMOVLE           R2, #0                                                 ; +0xc0, 0x425cf8\nMOVGT           R2, #1; bool                                           ; +0xc2, 0x425cfa\nBL              _ZN16CustomSongWidget15addExtraVisualsEbb; CustomSongWidget::addExtraVisuals(bool,bool) ; +0xc4, 0x425cfc\nLDR.W           R3, [R4,#0x1A8]                                        ; +0xc8, 0x425d00\nMOV             R0, R4                                                 ; +0xcc, 0x425d04\nLDR.W           R5, [R3,#0x108]                                        ; +0xce, 0x425d06\nLDR             R3, [R4]                                               ; +0xd2, 0x425d0a\nLDR.W           R3, [R3,#0x244]                                        ; +0xd4, 0x425d0c\nBLX             R3                                                     ; +0xd8, 0x425d10\nLDR             R2, [SP,#0x34+var_8]                                   ; +0xda, 0x425d12\nSUBS            R3, R5, R0                                             ; +0xdc, 0x425d14\nNEGS            R0, R3                                                 ; +0xde, 0x425d16\nADCS            R0, R3                                                 ; +0xe0, 0x425d18\nLDR.W           R3, [R8]                                               ; +0xe2, 0x425d1a\nSTRB.W          R0, [R4,#0x1AC]                                        ; +0xe6, 0x425d1e\nCMP             R2, R3                                                 ; +0xea, 0x425d22\nBEQ             loc_425D2A                                             ; +0xec, 0x425d24\nBLX             __stack_chk_fail                                       ; +0xee, 0x425d26\nADD             SP, SP, #0x34 ; '4'                                    ; +0xf2, 0x425d2a\nPOP.W           {R4-R9,PC}                                             ; +0xf4, 0x425d2c", "xrefs": ["CustomListView::loadCell @ 0x434030"], "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"}