{"type": "func", "start": 7569768, "end": 7570244, "name": "CustomSongCell::loadFromObject", "pseudocode": "// \n// CustomSongCell::loadFromObject from 0x738168 to 0x738344 (476 bytes)\n// \n// 3 xrefs:\n// > CustomListView::reloadAll @ 0x7490dc\n// > CustomListView::loadCell @ 0x74d44c\n// > <???> @ 0x8a220\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:52:40 +0000\n// \n\nbool __fastcall CustomSongCell::loadFromObject(CustomSongCell *this, SongInfoObject *a2)\n{\n  _BYTE *v4; // x22\n  void (__fastcall *v5)(_BYTE *, _BYTE *); // x23\n  __int64 v6; // x22\n  cocos2d::CCMenu *v7; // x22\n  __int64 v8; // x22\n  void (__fastcall *v9)(__int64, _BYTE *); // x23\n  int v10; // w20\n  _BOOL8 result; // x0\n  bool v12; // [xsp+18h] [xbp-8h]\n  _BYTE v13[8]; // [xsp+60h] [xbp+40h] BYREF\n\n  (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 67) + 584LL))(*((_QWORD *)this + 67), 1);\n  *((_QWORD *)this + 70) = a2;\n  v4 = (_BYTE *)CustomSongWidget::create(\n                  a2,\n                  (CustomSongCell *)((char *)this + 552),\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                  v12);\n  (*(void (__fastcall **)(_QWORD, _BYTE *, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v4, 2);\n  v5 = *(void (__fastcall **)(_BYTE *, _BYTE *))(*(_QWORD *)v4 + 184LL);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, *((float *)this + 130) * 0.5, *((float *)this + 131) * 0.5);\n  v5(v4, v13);\n  v4[512] = (unsigned __int8)&dword_0 + 1;\n  v6 = cocos2d::CCSprite::createWithSpriteFrameName(\n         (cocos2d::CCSprite *)\"GJ_trashBtn_001.png\",\n         (const char *)&dword_0 + 1);\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v6 + 160LL))(v6, 0.6);\n  v7 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v6, 0, (__int64)this, (__int64)CustomSongCell::onDelete, 0);\n  CCMenuItemSpriteExtra::setSizeMult((__int64)v7, 1.5);\n  v8 = cocos2d::CCMenu::create(v7, nullptr);\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 67) + 464LL))(*((_QWORD *)this + 67), v8, 3);\n  v9 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v8 + 184LL);\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)v13,\n    (float)(*((float *)this + 130) * 0.5) + 90.0,\n    (float)(*((float *)this + 131) * 0.5) + -24.0);\n  v9(v8, v13);\n  v10 = *(_DWORD *)(*((_QWORD *)this + 70) + 316LL);\n  result = v10 == (*(unsigned int (__fastcall **)(CustomSongCell *))(*(_QWORD *)this + 1160LL))(this);\n  *((_BYTE *)this + 568) = result;\n  return result;\n}", "assembly": "; \n; CustomSongCell::loadFromObject from 0x738168 to 0x738344 (476 bytes)\n; \n; 3 xrefs:\n; > CustomListView::reloadAll @ 0x7490dc\n; > CustomListView::loadCell @ 0x74d44c\n; > <???> @ 0x8a220\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:52:40 +0000\n; \nSUB             SP, SP, #0x70                                          ; +0x0, 0x738168\nSTP             X29, X30, [SP,#0x70+var_50]                            ; +0x4, 0x73816c\nADD             X29, SP, #0x20                                         ; +0x8, 0x738170\nSTP             X19, X20, [SP,#0x70+var_40]                            ; +0xc, 0x738174\nSTP             X21, X22, [SP,#0x70+var_30]                            ; +0x10, 0x738178\nSTR             X23, [SP,#0x70+var_20]                                 ; +0x14, 0x73817c\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0x18, 0x738180\nSTR             D8, [SP,#0x70+var_18]                                  ; +0x1c, 0x738184\nMOV             X19, X0                                                ; +0x20, 0x738188\nLDR             X2, [X0,#0x218]                                        ; +0x24, 0x73818c\nMOV             X22, X1                                                ; +0x28, 0x738190\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0x738194\nMOV             W1, #1                                                 ; +0x30, 0x738198\nMOV             X0, X2                                                 ; +0x34, 0x73819c\nADD             X20, X29, #0x50+var_10                                 ; +0x38, 0x7381a0\nLDR             X2, [X2]                                               ; +0x3c, 0x7381a4\nLDR             X3, [X21]                                              ; +0x40, 0x7381a8\nFMOV            S8, #0.5                                               ; +0x44, 0x7381ac\nSTR             X3, [X29,#0x50+var_8]                                  ; +0x48, 0x7381b0\nLDR             X2, [X2,#0x248]                                        ; +0x4c, 0x7381b4\nBLR             X2                                                     ; +0x50, 0x7381b8\nSTR             X22, [X19,#0x230]                                      ; +0x54, 0x7381bc\nMOV             W2, #(dword_0+1); CustomSongDelegate *                 ; +0x58, 0x7381c0\nMOV             W5, #0; bool                                           ; +0x5c, 0x7381c4\nMOV             W6, #0; bool                                           ; +0x60, 0x7381c8\nMOV             W7, #0; bool                                           ; +0x64, 0x7381cc\nMOV             W4, #0; bool                                           ; +0x68, 0x7381d0\nMOV             W3, W2; bool                                           ; +0x6c, 0x7381d4\nADD             X1, X19, #0x228; SongInfoObject *                      ; +0x70, 0x7381d8\nMOV             X0, X22; this                                          ; +0x74, 0x7381dc\nSTR             WZR, [SP,#0x70+var_70]; bool                           ; +0x78, 0x7381e0\nSTRB            WZR, [SP,#0x70+var_68]; bool                           ; +0x7c, 0x7381e4\nSTRB            WZR, [SP,#0x70+var_60]; bool                           ; +0x80, 0x7381e8\nBL              _ZN16CustomSongWidget6createEP14SongInfoObjectP18CustomSongDelegatebbbbbbibb; CustomSongWidget::create(SongInfoObject *,CustomSongDelegate *,bool,bool,bool,bool,bool,bool,int,bool,bool) ; +0x84, 0x7381ec\nMOV             X22, X0                                                ; +0x88, 0x7381f0\nLDR             X3, [X19,#0x218]                                       ; +0x8c, 0x7381f4\nMOV             X1, X0                                                 ; +0x90, 0x7381f8\nMOV             W2, #2                                                 ; +0x94, 0x7381fc\nMOV             X0, X3                                                 ; +0x98, 0x738200\nLDR             X3, [X3]                                               ; +0x9c, 0x738204\nLDR             X3, [X3,#0x1D0]                                        ; +0xa0, 0x738208\nBLR             X3                                                     ; +0xa4, 0x73820c\nLDR             S0, [X19,#0x208]                                       ; +0xa8, 0x738210\nLDR             X1, [X22]                                              ; +0xac, 0x738214\nLDR             S1, [X19,#0x20C]                                       ; +0xb0, 0x738218\nMOV             X0, X20; this                                          ; +0xb4, 0x73821c\nFMUL            S0, S0, S8; float                                      ; +0xb8, 0x738220\nFMUL            S1, S1, S8; float                                      ; +0xbc, 0x738224\nLDR             X23, [X1,#0xB8]                                        ; +0xc0, 0x738228\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc4, 0x73822c\nMOV             X0, X22                                                ; +0xc8, 0x738230\nMOV             X1, X20                                                ; +0xcc, 0x738234\nBLR             X23                                                    ; +0xd0, 0x738238\nADRP            X0, #aGjTrashbtn001P@PAGE; \"GJ_trashBtn_001.png\"       ; +0xd4, 0x73823c\nMOV             W1, #(dword_0+1); char *                               ; +0xd8, 0x738240\nADD             X0, X0, #aGjTrashbtn001P@PAGEOFF; \"GJ_trashBtn_001.png\" ; +0xdc, 0x738244\nSTRB            W1, [X22,#0x200]                                       ; +0xe0, 0x738248\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0xe4, 0x73824c\nLDR             X1, [X0]                                               ; +0xe8, 0x738250\nLDR             S0, =0x3F19999A                                        ; +0xec, 0x738254\nMOV             X22, X0                                                ; +0xf0, 0x738258\nLDR             X1, [X1,#0xA0]                                         ; +0xf4, 0x73825c\nBLR             X1                                                     ; +0xf8, 0x738260\nADRP            X3, #_ZN14CustomSongCell8onDeleteEPN7cocos2d8CCObjectE_ptr@PAGE ; +0xfc, 0x738264\nMOV             X4, #0                                                 ; +0x100, 0x738268\nMOV             X2, X19                                                ; +0x104, 0x73826c\nMOV             X1, #0                                                 ; +0x108, 0x738270\nMOV             X0, X22                                                ; +0x10c, 0x738274\nLDR             X3, [X3,#_ZN14CustomSongCell8onDeleteEPN7cocos2d8CCObjectE_ptr@PAGEOFF]; CustomSongCell::onDelete(cocos2d::CCObject *) ... ; +0x110, 0x738278\nBL              _ZN21CCMenuItemSpriteExtra6createEPN7cocos2d6CCNodeES2_PNS0_8CCObjectEMS3_FvS4_E; CCMenuItemSpriteExtra::create(cocos2d::CCNode *,cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x114, 0x73827c\nMOV             X22, X0                                                ; +0x118, 0x738280\nFMOV            S0, #1.5; float                                        ; +0x11c, 0x738284\nBL              _ZN21CCMenuItemSpriteExtra11setSizeMultEf; CCMenuItemSpriteExtra::setSizeMult(float) ; +0x120, 0x738288\nMOV             X0, X22; this                                          ; +0x124, 0x73828c\nMOV             X1, #0; cocos2d::CCMenuItem *                          ; +0x128, 0x738290\nBL              _ZN7cocos2d6CCMenu6createEPNS_10CCMenuItemEz; cocos2d::CCMenu::create(cocos2d::CCMenuItem *,...) ; +0x12c, 0x738294\nMOV             X22, X0                                                ; +0x130, 0x738298\nLDR             X3, [X19,#0x218]                                       ; +0x134, 0x73829c\nMOV             X1, X0                                                 ; +0x138, 0x7382a0\nMOV             W2, #3                                                 ; +0x13c, 0x7382a4\nMOV             X0, X3                                                 ; +0x140, 0x7382a8\nLDR             X3, [X3]                                               ; +0x144, 0x7382ac\nLDR             X3, [X3,#0x1D0]                                        ; +0x148, 0x7382b0\nBLR             X3                                                     ; +0x14c, 0x7382b4\nLDR             S1, [X19,#0x208]                                       ; +0x150, 0x7382b8\nLDR             X1, [X22]                                              ; +0x154, 0x7382bc\nLDR             S0, =0x42B40000                                        ; +0x158, 0x7382c0\nMOV             X0, X20; this                                          ; +0x15c, 0x7382c4\nLDR             S2, [X19,#0x20C]                                       ; +0x160, 0x7382c8\nFMADD           S0, S1, S8, S0; float                                  ; +0x164, 0x7382cc\nLDR             X23, [X1,#0xB8]                                        ; +0x168, 0x7382d0\nFMOV            S1, #-24.0                                             ; +0x16c, 0x7382d4\nFMADD           S1, S2, S8, S1; float                                  ; +0x170, 0x7382d8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x174, 0x7382dc\nMOV             X1, X20                                                ; +0x178, 0x7382e0\nMOV             X0, X22                                                ; +0x17c, 0x7382e4\nBLR             X23                                                    ; +0x180, 0x7382e8\nLDR             X1, [X19]                                              ; +0x184, 0x7382ec\nMOV             X0, X19                                                ; +0x188, 0x7382f0\nLDR             X2, [X19,#0x230]                                       ; +0x18c, 0x7382f4\nLDR             X1, [X1,#0x488]                                        ; +0x190, 0x7382f8\nLDR             W20, [X2,#0x13C]                                       ; +0x194, 0x7382fc\nBLR             X1                                                     ; +0x198, 0x738300\nCMP             W20, W0                                                ; +0x19c, 0x738304\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x1a0, 0x738308\nCSET            W0, EQ                                                 ; +0x1a4, 0x73830c\nLDR             X1, [X21]                                              ; +0x1a8, 0x738310\nSTRB            W0, [X19,#0x238]                                       ; +0x1ac, 0x738314\nCMP             X2, X1                                                 ; +0x1b0, 0x738318\nB.NE            loc_738340                                             ; +0x1b4, 0x73831c\nSUB             SP, X29, #0x20 ; ' '                                   ; +0x1b8, 0x738320\nLDR             D8, [SP,#0x70+var_18]                                  ; +0x1bc, 0x738324\nLDP             X19, X20, [SP,#0x70+var_40]                            ; +0x1c0, 0x738328\nLDP             X21, X22, [SP,#0x70+var_30]                            ; +0x1c4, 0x73832c\nLDR             X23, [SP,#0x70+var_20]                                 ; +0x1c8, 0x738330\nLDP             X29, X30, [SP,#0x70+var_50]                            ; +0x1cc, 0x738334\nADD             SP, SP, #0x70 ; 'p'                                    ; +0x1d0, 0x738338\nRET                                                                    ; +0x1d4, 0x73833c\nBL              .__stack_chk_fail                                      ; +0x1d8, 0x738340", "xrefs": ["CustomListView::reloadAll @ 0x7490dc", "CustomListView::loadCell @ 0x74d44c", "<???> @ 0x8a220"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}