{"type": "func", "start": 4347776, "end": 4348100, "name": "CustomSongCell::loadFromObject", "pseudocode": "// \n// CustomSongCell::loadFromObject from 0x425780 to 0x4258c4 (324 bytes)\n// \n// 2 xrefs:\n// > CustomListView::reloadAll @ 0x43134a\n// > CustomListView::loadCell @ 0x434012\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 CustomSongCell::loadFromObject(CustomSongCell *this, SongInfoObject *a2)\n{\n  _BYTE *v4; // r7\n  void (__fastcall *v5)(_BYTE *, _DWORD *); // r9\n  const char *v6; // r1\n  int v7; // r7\n  cocos2d::CCMenu *v8; // r7\n  int v9; // r7\n  void (__fastcall *v10)(int, _BYTE *); // r8\n  int v11; // r5\n  _BOOL4 result; // r0\n  bool v13; // [sp+1Ch] [bp-20h]\n  _BYTE v14[8]; // [sp+24h] [bp-18h] BYREF\n  _DWORD v15[2]; // [sp+2Ch] [bp-10h] BYREF\n\n  (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1);\n  *((_DWORD *)this + 106) = a2;\n  v4 = (_BYTE *)CustomSongWidget::create(\n                  a2,\n                  (CustomSongCell *)((char *)this + 420),\n                  (CustomSongDelegate *)((char *)&dword_0 + 1),\n                  (bool)&dword_0 + 1,\n                  0,\n                  0,\n                  0,\n                  0,\n                  0,\n                  0,\n                  0,\n                  v13);\n  (*(void (__fastcall **)(_DWORD, _BYTE *, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v4, 2);\n  v5 = *(void (__fastcall **)(_BYTE *, _DWORD *))(*(_DWORD *)v4 + 92);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, *((float *)this + 100) * 0.5, *((float *)this + 101) * 0.5);\n  v5(v4, v15);\n  v4[368] = 1;\n  v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)\"GJ_trashBtn_001.png\", v6);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1058642330);\n  v15[0] = CustomSongCell::onDelete;\n  v15[1] = 0;\n  v8 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v7, 0, (int)this, (int)CustomSongCell::onDelete, 0);\n  CCMenuItemSpriteExtra::setSizeMult((int)v8, 1.5);\n  v9 = cocos2d::CCMenu::create(v8, nullptr);\n  (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 103) + 232))(*((_DWORD *)this + 103), v9, 3);\n  v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v9 + 92);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)v14,\n    (float)(*((float *)this + 100) * 0.5) + 90.0,\n    (float)(*((float *)this + 101) * 0.5) - 24.0);\n  v10(v9, v14);\n  v11 = *(_DWORD *)(*((_DWORD *)this + 106) + 264);\n  result = v11 == (*(int (__fastcall **)(CustomSongCell *))(*(_DWORD *)this + 580))(this);\n  *((_BYTE *)this + 428) = result;\n  return result;\n}", "assembly": "; \n; CustomSongCell::loadFromObject from 0x425780 to 0x4258c4 (324 bytes)\n; \n; 2 xrefs:\n; > CustomListView::reloadAll @ 0x43134a\n; > CustomListView::loadCell @ 0x434012\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, 0x425780\nMOV             R4, R0                                                 ; +0x4, 0x425784\nVPUSH           {D8}                                                   ; +0x6, 0x425786\nMOV             R7, R1                                                 ; +0xa, 0x42578a\nLDR             R6, =(__stack_chk_guard_ptr - 0x425796)                ; +0xc, 0x42578c\nMOVS            R1, #1                                                 ; +0xe, 0x42578e\nMOVS            R5, #0                                                 ; +0x10, 0x425790\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0x12, 0x425792\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x14, 0x425794\nVMOV.F32        S16, #0.5                                              ; +0x16, 0x425796\nLDR.W           R0, [R0,#0x19C]                                        ; +0x1a, 0x42579a\nSUB             SP, SP, #0x3C                                          ; +0x1e, 0x42579e\nLDR             R3, [R6]                                               ; +0x20, 0x4257a0\nADD.W           R8, SP, #0x3C+var_10                                   ; +0x22, 0x4257a2\nSTR             R3, [SP,#0x3C+var_8]                                   ; +0x26, 0x4257a6\nLDR             R3, [R0]                                               ; +0x28, 0x4257a8\nLDR.W           R3, [R3,#0x124]                                        ; +0x2a, 0x4257aa\nBLX             R3                                                     ; +0x2e, 0x4257ae\nMOVS            R2, #(dword_0+1); CustomSongDelegate *                 ; +0x30, 0x4257b0\nMOV             R3, R2; bool                                           ; +0x32, 0x4257b2\nSTR.W           R7, [R4,#0x1A8]                                        ; +0x34, 0x4257b4\nSTR             R5, [SP,#0x3C+var_3C]; bool                            ; +0x38, 0x4257b8\nMOV             R0, R7; this                                           ; +0x3a, 0x4257ba\nSTR             R5, [SP,#0x3C+var_38]; bool                            ; +0x3c, 0x4257bc\nADD.W           R1, R4, #0x1A4; SongInfoObject *                       ; +0x3e, 0x4257be\nSTR             R5, [SP,#0x3C+var_34]; bool                            ; +0x42, 0x4257c2\nSTR             R5, [SP,#0x3C+var_30]; bool                            ; +0x44, 0x4257c4\nSTR             R5, [SP,#0x3C+var_2C]; bool                            ; +0x46, 0x4257c6\nSTR             R5, [SP,#0x3C+var_28]; bool                            ; +0x48, 0x4257c8\nSTR             R5, [SP,#0x3C+var_24]; bool                            ; +0x4a, 0x4257ca\nBL              _ZN16CustomSongWidget6createEP14SongInfoObjectP18CustomSongDelegatebbbbbbibb; CustomSongWidget::create(SongInfoObject *,CustomSongDelegate *,bool,bool,bool,bool,bool,bool,int,bool,bool) ; +0x4c, 0x4257cc\nMOVS            R2, #2                                                 ; +0x50, 0x4257d0\nMOV             R7, R0                                                 ; +0x52, 0x4257d2\nLDR.W           R0, [R4,#0x19C]                                        ; +0x54, 0x4257d4\nMOV             R1, R7                                                 ; +0x58, 0x4257d8\nLDR             R3, [R0]                                               ; +0x5a, 0x4257da\nLDR.W           R3, [R3,#0xE8]                                         ; +0x5c, 0x4257dc\nBLX             R3                                                     ; +0x60, 0x4257e0\nVLDR            S14, [R4,#0x190]                                       ; +0x62, 0x4257e2\nLDR             R3, [R7]                                               ; +0x66, 0x4257e6\nMOV             R0, R8; this                                           ; +0x68, 0x4257e8\nVLDR            S15, [R4,#0x194]                                       ; +0x6a, 0x4257ea\nLDR.W           R9, [R3,#0x5C]                                         ; +0x6e, 0x4257ee\nVMUL.F32        S14, S14, S16                                          ; +0x72, 0x4257f2\nVMUL.F32        S15, S15, S16                                          ; +0x76, 0x4257f6\nVMOV            R1, S14; float                                         ; +0x7a, 0x4257fa\nVMOV            R2, S15; float                                         ; +0x7e, 0x4257fe\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x82, 0x425802\nMOV             R1, R8                                                 ; +0x86, 0x425806\nMOV             R0, R7                                                 ; +0x88, 0x425808\nBLX             R9                                                     ; +0x8a, 0x42580a\nLDR             R0, =(aGjTrashbtn001P - 0x425818); \"GJ_trashBtn_001.png\" ; +0x8c, 0x42580c\nMOVS            R3, #1                                                 ; +0x8e, 0x42580e\nSTRB.W          R3, [R7,#0x170]                                        ; +0x90, 0x425810\nADD             R0, PC; \"GJ_trashBtn_001.png\"                          ; +0x94, 0x425814\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x96, 0x425816\nLDR             R1, =0x3F19999A                                        ; +0x9a, 0x42581a\nLDR             R3, [R0]                                               ; +0x9c, 0x42581c\nMOV             R7, R0                                                 ; +0x9e, 0x42581e\nLDR             R3, [R3,#0x50]                                         ; +0xa0, 0x425820\nBLX             R3                                                     ; +0xa2, 0x425822\nLDR             R3, =(_ZN14CustomSongCell8onDeleteEPN7cocos2d8CCObjectE_ptr - 0x42582E) ; +0xa4, 0x425824\nMOV             R2, R4                                                 ; +0xa6, 0x425826\nMOV             R1, R5                                                 ; +0xa8, 0x425828\nADD             R3, PC; _ZN14CustomSongCell8onDeleteEPN7cocos2d8CCObjectE_ptr ; +0xaa, 0x42582a\nLDR             R3, [R3]; CustomSongCell::onDelete(cocos2d::CCObject *) ; +0xac, 0x42582c\nSTR             R5, [SP,#0x3C+var_3C]                                  ; +0xae, 0x42582e\nMOV             R0, R7                                                 ; +0xb0, 0x425830\nSTR             R3, [SP,#0x3C+var_10]                                  ; +0xb2, 0x425832\nSTR             R5, [SP,#0x3C+var_C]                                   ; +0xb4, 0x425834\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0xb6, 0x425836\nMOV.W           R1, #0x3FC00000; float                                 ; +0xba, 0x42583a\nMOV             R7, R0                                                 ; +0xbe, 0x42583e\nBL              _ZN21CCMenuItemSpriteExtra11setSizeMultEf; CCMenuItemSpriteExtra::setSizeMult(float) ; +0xc0, 0x425840\nMOV             R1, R5; cocos2d::CCMenuItem *                          ; +0xc4, 0x425844\nMOV             R0, R7; this                                           ; +0xc6, 0x425846\nBL              _ZN7cocos2d6CCMenu6createEPNS_10CCMenuItemEz; cocos2d::CCMenu::create(cocos2d::CCMenuItem *,...) ; +0xc8, 0x425848\nMOVS            R2, #3                                                 ; +0xcc, 0x42584c\nADD             R5, SP, #0x3C+var_18                                   ; +0xce, 0x42584e\nMOV             R7, R0                                                 ; +0xd0, 0x425850\nLDR.W           R0, [R4,#0x19C]                                        ; +0xd2, 0x425852\nMOV             R1, R7                                                 ; +0xd6, 0x425856\nLDR             R3, [R0]                                               ; +0xd8, 0x425858\nLDR.W           R3, [R3,#0xE8]                                         ; +0xda, 0x42585a\nBLX             R3                                                     ; +0xde, 0x42585e\nVLDR            S13, [R4,#0x190]                                       ; +0xe0, 0x425860\nLDR             R3, [R7]                                               ; +0xe4, 0x425864\nMOV             R0, R5; this                                           ; +0xe6, 0x425866\nVLDR            S15, =90.0                                             ; +0xe8, 0x425868\nLDR.W           R8, [R3,#0x5C]                                         ; +0xec, 0x42586c\nVLDR            S14, [R4,#0x194]                                       ; +0xf0, 0x425870\nVMLA.F32        S15, S13, S16                                          ; +0xf4, 0x425874\nVMOV            R1, S15; float                                         ; +0xf8, 0x425878\nVMOV.F32        S15, #24.0                                             ; +0xfc, 0x42587c\nVNMLS.F32       S15, S14, S16                                          ; +0x100, 0x425880\nVMOV            R2, S15; float                                         ; +0x104, 0x425884\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x108, 0x425888\nMOV             R1, R5                                                 ; +0x10c, 0x42588c\nMOV             R0, R7                                                 ; +0x10e, 0x42588e\nBLX             R8                                                     ; +0x110, 0x425890\nLDR.W           R3, [R4,#0x1A8]                                        ; +0x112, 0x425892\nMOV             R0, R4                                                 ; +0x116, 0x425896\nLDR.W           R5, [R3,#0x108]                                        ; +0x118, 0x425898\nLDR             R3, [R4]                                               ; +0x11c, 0x42589c\nLDR.W           R3, [R3,#0x244]                                        ; +0x11e, 0x42589e\nBLX             R3                                                     ; +0x122, 0x4258a2\nLDR             R2, [SP,#0x3C+var_8]                                   ; +0x124, 0x4258a4\nSUBS            R3, R5, R0                                             ; +0x126, 0x4258a6\nNEGS            R0, R3                                                 ; +0x128, 0x4258a8\nADCS            R0, R3                                                 ; +0x12a, 0x4258aa\nLDR             R3, [R6]                                               ; +0x12c, 0x4258ac\nSTRB.W          R0, [R4,#0x1AC]                                        ; +0x12e, 0x4258ae\nCMP             R2, R3                                                 ; +0x132, 0x4258b2\nBEQ             loc_4258BA                                             ; +0x134, 0x4258b4\nBLX             __stack_chk_fail                                       ; +0x136, 0x4258b6\nADD             SP, SP, #0x3C ; '<'                                    ; +0x13a, 0x4258ba\nVPOP            {D8}                                                   ; +0x13c, 0x4258bc\nPOP.W           {R4-R9,PC}                                             ; +0x140, 0x4258c0", "xrefs": ["CustomListView::reloadAll @ 0x43134a", "CustomListView::loadCell @ 0x434012"], "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"}