{"type": "func", "start": 4296176344, "end": 4296176768, "name": "CustomSongCell::loadFromObject", "pseudocode": "// \n// CustomSongCell::loadFromObject from 0x1001272d8 to 0x100127480 (424 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x100126248\n// > CustomListView::reloadAll @ 0x100132510\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 10:59:18 +0000\n// \n\n__int64 __fastcall CustomSongCell::loadFromObject(__int64 a1, __int64 a2)\n{\n  _BYTE *v4; // x20\n  __int64 v5; // x20\n  __int64 v6; // x20\n  __int64 v7; // x20\n  __int64 result; // x0\n  float v9; // [xsp+8h] [xbp-38h] BYREF\n\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);\n  *(_QWORD *)(a1 + 560) = a2;\n  v4 = CustomSongWidget::create(a2, a1 + 552, 1, 1, 0, 0, 0, 0, 0, 0);\n  (*(void (__fastcall **)(_QWORD, _BYTE *, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v4, 2);\n  sub_1000262BC(&v9, *(float *)(a1 + 520) * 0.5, *(float *)(a1 + 524) * 0.5);\n  (*(void (__fastcall **)(_BYTE *, float *))(*(_QWORD *)v4 + 184LL))(v4, &v9);\n  v4[512] = 1;\n  v5 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_trashBtn_001.png\");\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.6);\n  v6 = CCMenuItemSpriteExtra::create(v5, 0, a1, CustomSongCell::onDelete, 0);\n  CCMenuItemSpriteExtra::setSizeMult(1.5);\n  v7 = sub_100270434(v6);\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v7, 3);\n  sub_1000262BC(&v9, (float)(*(float *)(a1 + 520) * 0.5) + 90.0, (float)(*(float *)(a1 + 524) * 0.5) + -24.0);\n  (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v9);\n  LODWORD(v7) = *(_DWORD *)(*(_QWORD *)(a1 + 560) + 316LL);\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1160LL))(a1);\n  *(_BYTE *)(a1 + 568) = (_DWORD)v7 == (_DWORD)result;\n  return result;\n}", "assembly": "; \n; CustomSongCell::loadFromObject from 0x1001272d8 to 0x100127480 (424 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x100126248\n; > CustomListView::reloadAll @ 0x100132510\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 10:59:18 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x1001272d8\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x4, 0x1001272dc\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x8, 0x1001272e0\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0xc, 0x1001272e4\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x10, 0x1001272e8\nADD             X29, SP, #0x40                                         ; +0x14, 0x1001272ec\nMOV             X20, X1                                                ; +0x18, 0x1001272f0\nMOV             X19, X0                                                ; +0x1c, 0x1001272f4\nLDR             X0, [X0,#0x218]                                        ; +0x20, 0x1001272f8\nLDR             X8, [X0]                                               ; +0x24, 0x1001272fc\nLDR             X8, [X8,#0x248]                                        ; +0x28, 0x100127300\nMOV             W21, #1                                                ; +0x2c, 0x100127304\nMOV             W1, #1                                                 ; +0x30, 0x100127308\nBLR             X8                                                     ; +0x34, 0x10012730c\nSTR             X20, [X19,#0x230]                                      ; +0x38, 0x100127310\nSTRH            WZR, [SP,#0x40+var_40+4]                               ; +0x3c, 0x100127314\nSTR             WZR, [SP,#0x40+var_40]                                 ; +0x40, 0x100127318\nADD             X1, X19, #0x228                                        ; +0x44, 0x10012731c\nMOV             X0, X20                                                ; +0x48, 0x100127320\nMOV             W2, #1                                                 ; +0x4c, 0x100127324\nMOV             W3, #1                                                 ; +0x50, 0x100127328\nMOV             W4, #0                                                 ; +0x54, 0x10012732c\nMOV             W5, #0                                                 ; +0x58, 0x100127330\nMOV             W6, #0                                                 ; +0x5c, 0x100127334\nMOV             W7, #0                                                 ; +0x60, 0x100127338\nBL              CustomSongWidget__create                               ; +0x64, 0x10012733c\nMOV             X20, X0                                                ; +0x68, 0x100127340\nLDR             X0, [X19,#0x218]                                       ; +0x6c, 0x100127344\nLDR             X8, [X0]                                               ; +0x70, 0x100127348\nLDR             X8, [X8,#0x1D0]                                        ; +0x74, 0x10012734c\nMOV             X1, X20                                                ; +0x78, 0x100127350\nMOV             W2, #2                                                 ; +0x7c, 0x100127354\nBLR             X8                                                     ; +0x80, 0x100127358\nLDR             S0, [X19,#0x208]                                       ; +0x84, 0x10012735c\nFMOV            S8, #0.5                                               ; +0x88, 0x100127360\nFMUL            S0, S0, S8                                             ; +0x8c, 0x100127364\nLDR             S1, [X19,#0x20C]                                       ; +0x90, 0x100127368\nFMUL            S1, S1, S8                                             ; +0x94, 0x10012736c\nADD             X0, SP, #0x40+var_38                                   ; +0x98, 0x100127370\nBL              sub_1000262BC                                          ; +0x9c, 0x100127374\nLDR             X8, [X20]                                              ; +0xa0, 0x100127378\nLDR             X8, [X8,#0xB8]                                         ; +0xa4, 0x10012737c\nADD             X1, SP, #0x40+var_38                                   ; +0xa8, 0x100127380\nMOV             X0, X20                                                ; +0xac, 0x100127384\nBLR             X8                                                     ; +0xb0, 0x100127388\nSTRB            W21, [X20,#0x200]                                      ; +0xb4, 0x10012738c\nADRL            X0, aGjTrashbtn001P; \"GJ_trashBtn_001.png\"             ; +0xb8, 0x100127390\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0xc0, 0x100127398\nMOV             X20, X0                                                ; +0xc4, 0x10012739c\nLDR             X8, [X0]                                               ; +0xc8, 0x1001273a0\nLDR             X8, [X8,#0xA0]                                         ; +0xcc, 0x1001273a4\nADRP            X9, #dword_10075BCDC@PAGE                              ; +0xd0, 0x1001273a8\nLDR             S0, [X9,#dword_10075BCDC@PAGEOFF]                      ; +0xd4, 0x1001273ac\nBLR             X8                                                     ; +0xd8, 0x1001273b0\nADRL            X3, CustomSongCell__onDelete                           ; +0xdc, 0x1001273b4\nMOV             X0, X20                                                ; +0xe4, 0x1001273bc\nMOV             X1, #0                                                 ; +0xe8, 0x1001273c0\nMOV             X2, X19                                                ; +0xec, 0x1001273c4\nMOV             X4, #0                                                 ; +0xf0, 0x1001273c8\nBL              CCMenuItemSpriteExtra__create                          ; +0xf4, 0x1001273cc\nMOV             X20, X0                                                ; +0xf8, 0x1001273d0\nFMOV            S0, #1.5                                               ; +0xfc, 0x1001273d4\nBL              CCMenuItemSpriteExtra__setSizeMult                     ; +0x100, 0x1001273d8\nSTR             XZR, [SP,#0x40+var_40]                                 ; +0x104, 0x1001273dc\nMOV             X0, X20                                                ; +0x108, 0x1001273e0\nBL              sub_100270434                                          ; +0x10c, 0x1001273e4\nMOV             X20, X0                                                ; +0x110, 0x1001273e8\nLDR             X0, [X19,#0x218]                                       ; +0x114, 0x1001273ec\nLDR             X8, [X0]                                               ; +0x118, 0x1001273f0\nLDR             X8, [X8,#0x1D0]                                        ; +0x11c, 0x1001273f4\nMOV             X1, X20                                                ; +0x120, 0x1001273f8\nMOV             W2, #3                                                 ; +0x124, 0x1001273fc\nBLR             X8                                                     ; +0x128, 0x100127400\nLDR             S0, [X19,#0x208]                                       ; +0x12c, 0x100127404\nFMUL            S0, S0, S8                                             ; +0x130, 0x100127408\nMOV             W8, #0x42B40000                                        ; +0x134, 0x10012740c\nFMOV            S1, W8                                                 ; +0x138, 0x100127410\nFADD            S0, S0, S1                                             ; +0x13c, 0x100127414\nLDR             S1, [X19,#0x20C]                                       ; +0x140, 0x100127418\nFMUL            S1, S1, S8                                             ; +0x144, 0x10012741c\nFMOV            S2, #-24.0                                             ; +0x148, 0x100127420\nFADD            S1, S1, S2                                             ; +0x14c, 0x100127424\nADD             X0, SP, #0x40+var_38                                   ; +0x150, 0x100127428\nBL              sub_1000262BC                                          ; +0x154, 0x10012742c\nLDR             X8, [X20]                                              ; +0x158, 0x100127430\nLDR             X8, [X8,#0xB8]                                         ; +0x15c, 0x100127434\nADD             X1, SP, #0x40+var_38                                   ; +0x160, 0x100127438\nMOV             X0, X20                                                ; +0x164, 0x10012743c\nBLR             X8                                                     ; +0x168, 0x100127440\nLDR             X8, [X19,#0x230]                                       ; +0x16c, 0x100127444\nLDR             W20, [X8,#0x13C]                                       ; +0x170, 0x100127448\nLDR             X8, [X19]                                              ; +0x174, 0x10012744c\nLDR             X8, [X8,#0x488]                                        ; +0x178, 0x100127450\nMOV             X0, X19                                                ; +0x17c, 0x100127454\nBLR             X8                                                     ; +0x180, 0x100127458\nCMP             W20, W0                                                ; +0x184, 0x10012745c\nCSET            W8, EQ                                                 ; +0x188, 0x100127460\nSTRB            W8, [X19,#0x238]                                       ; +0x18c, 0x100127464\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x190, 0x100127468\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x194, 0x10012746c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x198, 0x100127470\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0x19c, 0x100127474\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x1a0, 0x100127478\nRET                                                                    ; +0x1a4, 0x10012747c", "xrefs": ["CustomListView::loadCell @ 0x100126248", "CustomListView::reloadAll @ 0x100132510"], "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"}