{"type": "func", "start": 5370086256, "end": 5370086718, "name": "CustomSongCell::loadFromObject", "pseudocode": "// \n// CustomSongCell::loadFromObject from 0x140150370 to 0x14015053e (462 bytes)\n// \n// 3 xrefs:\n// > CustomListView::loadCell @ 0x140145af9\n// > CustomListView::reloadAll @ 0x140146f7b\n// > <???> @ 0x140917738\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:17 +0000\n// \n\nbool __fastcall CustomSongCell::loadFromObject(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rbx\n  int v4; // edx\n  int v5; // r9d\n  __int64 v6; // rdi\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  struct cocos2d::CCSprite *v9; // rax\n  cocos2d::CCObject *v10; // rax\n  struct cocos2d::CCMenu *v11; // rdi\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  bool result; // al\n  char v15; // [rsp+80h] [rbp+8h] BYREF\n\n  v3 = a2;\n  LOBYTE(a2) = 1;\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 576LL))(*(_QWORD *)(a1 + 544), a2);\n  *(_QWORD *)(a1 + 568) = v3;\n  v4 = a1 + 560;\n  LOBYTE(v5) = 1;\n  if ( !a1 )\n    v4 = 0;\n  v6 = CustomSongWidget::create(v3, v4, 1, v5, 0, 0, 0, 0, 0, 0, 0);\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(*(_QWORD *)(a1 + 544), v6, 2);\n  v7 = *(_QWORD *)v6;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, *(float *)(a1 + 528) * 0.5, *(float *)(a1 + 532) * 0.5);\n  (*(void (__fastcall **)(__int64, __int64))(v7 + 184))(v6, v8);\n  *(_BYTE *)(v6 + 512) = 1;\n  v9 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_trashBtn_001.png\");\n  LODWORD(v7) = (_DWORD)v9;\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v9 + 160LL))(v9);\n  v10 = CCMenuItemSpriteExtra::create(v7, 0, a1, (__int64)CustomSongCell::onDelete);\n  *((_DWORD *)v10 + 93) = 1069547520;\n  v11 = cocos2d::CCMenu::create(v10, 0);\n  (*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(\n    *(_QWORD *)(a1 + 544),\n    v11,\n    3);\n  v12 = *(_QWORD *)v11;\n  cocos2d::CCPoint::CCPoint(\n    (cocos2d::CCPoint *)&v15,\n    (float)(*(float *)(a1 + 528) * 0.5) + 90.0,\n    (float)(*(float *)(a1 + 532) * 0.5) - 24.0);\n  (*(void (__fastcall **)(struct cocos2d::CCMenu *, __int64))(v12 + 184))(v11, v13);\n  result = *(_DWORD *)(*(_QWORD *)(a1 + 568) + 320LL) == (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)(a1 + 560)\n                                                                                                 + 8LL))(a1 + 560);\n  *(_BYTE *)(a1 + 576) = result;\n  return result;\n}", "assembly": "; \n; CustomSongCell::loadFromObject from 0x140150370 to 0x14015053e (462 bytes)\n; \n; 3 xrefs:\n; > CustomListView::loadCell @ 0x140145af9\n; > CustomListView::reloadAll @ 0x140146f7b\n; > <???> @ 0x140917738\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:17 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140150370\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140150375\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x14015037a\npush    rdi                                                            ; +0xf, 0x14015037f\nsub     rsp, 70h                                                       ; +0x10, 0x140150380\nmov     rbp, rcx                                                       ; +0x14, 0x140150384\nmovaps  [rsp+78h+var_18], xmm6                                         ; +0x17, 0x140150387\nmov     rcx, [rcx+220h]                                                ; +0x1c, 0x14015038c\nmov     rbx, rdx                                                       ; +0x23, 0x140150393\nmov     dl, 1                                                          ; +0x26, 0x140150396\nmov     rax, [rcx]                                                     ; +0x28, 0x140150398\ncall    qword ptr [rax+240h]                                           ; +0x2b, 0x14015039b\nxor     eax, eax                                                       ; +0x31, 0x1401503a1\nmov     [rbp+238h], rbx                                                ; +0x33, 0x1401503a3\nmov     [rsp+78h+var_28], al                                           ; +0x3a, 0x1401503aa\nlea     rdx, [rbp+230h]                                                ; +0x3e, 0x1401503ae\nmov     [rsp+78h+var_30], al                                           ; +0x45, 0x1401503b5\nmov     r9b, 1                                                         ; +0x49, 0x1401503b9\nmov     [rsp+78h+var_38], eax                                          ; +0x4c, 0x1401503bc\ntest    rbp, rbp                                                       ; +0x50, 0x1401503c0\nmov     [rsp+78h+var_40], al                                           ; +0x53, 0x1401503c3\nmovzx   r8d, r9b                                                       ; +0x57, 0x1401503c7\nmov     [rsp+78h+var_48], al                                           ; +0x5b, 0x1401503cb\ncmovz   rdx, rax                                                       ; +0x5f, 0x1401503cf\nmov     [rsp+78h+var_50], al                                           ; +0x63, 0x1401503d3\nmov     rcx, rbx                                                       ; +0x67, 0x1401503d7\nmov     [rsp+78h+var_58], al                                           ; +0x6a, 0x1401503da\ncall    CustomSongWidget__create                                       ; +0x6e, 0x1401503de\nmov     rcx, [rbp+220h]                                                ; +0x73, 0x1401503e3\nmov     r8d, 2                                                         ; +0x7a, 0x1401503ea\nmov     rdi, rax                                                       ; +0x80, 0x1401503f0\nmov     rdx, [rcx]                                                     ; +0x83, 0x1401503f3\nmov     r9, [rdx+1C8h]                                                 ; +0x86, 0x1401503f6\nmov     rdx, rax                                                       ; +0x8d, 0x1401503fd\ncall    r9                                                             ; +0x90, 0x140150400\nmovss   xmm2, dword ptr [rbp+214h]                                     ; +0x93, 0x140150403\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x9b, 0x14015040b\nmovss   xmm1, dword ptr [rbp+210h]                                     ; +0xa3, 0x140150413\nmovss   xmm6, cs:dword_140834F20                                       ; +0xab, 0x14015041b\nmov     rbx, [rdi]                                                     ; +0xb3, 0x140150423\nmulss   xmm2, xmm6                                                     ; +0xb6, 0x140150426\nmulss   xmm1, xmm6                                                     ; +0xba, 0x14015042a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xbe, 0x14015042e\nmov     rdx, rax                                                       ; +0xc4, 0x140150434\nmov     rcx, rdi                                                       ; +0xc7, 0x140150437\ncall    qword ptr [rbx+0B8h]                                           ; +0xca, 0x14015043a\nlea     rcx, aGjTrashbtn001P; \"GJ_trashBtn_001.png\"                    ; +0xd0, 0x140150440\nmov     byte ptr [rdi+200h], 1                                         ; +0xd7, 0x140150447\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xde, 0x14015044e\nmovss   xmm1, cs:dword_140834F64                                       ; +0xe4, 0x140150454\nmov     rbx, rax                                                       ; +0xec, 0x14015045c\nmov     rcx, [rax]                                                     ; +0xef, 0x14015045f\nmov     rdx, [rcx+0A0h]                                                ; +0xf2, 0x140150462\nmov     rcx, rax                                                       ; +0xf9, 0x140150469\ncall    rdx                                                            ; +0xfc, 0x14015046c\nlea     r9, CustomSongCell__onDelete                                   ; +0xfe, 0x14015046e\nmov     r8, rbp                                                        ; +0x105, 0x140150475\nxor     edx, edx                                                       ; +0x108, 0x140150478\nmov     rcx, rbx                                                       ; +0x10a, 0x14015047a\ncall    CCMenuItemSpriteExtra__create                                  ; +0x10d, 0x14015047d\nxor     edx, edx                                                       ; +0x112, 0x140150482\nmov     rcx, rax                                                       ; +0x114, 0x140150484\nmov     dword ptr [rax+174h], 3FC00000h                                ; +0x117, 0x140150487\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@PEAVCCMenuItem@2@ZZ; cocos2d::CCMenu::create(cocos2d::CCMenuItem *,...) ; +0x121, 0x140150491\nmov     rcx, [rbp+220h]                                                ; +0x127, 0x140150497\nmov     r8d, 3                                                         ; +0x12e, 0x14015049e\nmov     rdi, rax                                                       ; +0x134, 0x1401504a4\nmov     rdx, [rcx]                                                     ; +0x137, 0x1401504a7\nmov     r9, [rdx+1C8h]                                                 ; +0x13a, 0x1401504aa\nmov     rdx, rax                                                       ; +0x141, 0x1401504b1\ncall    r9                                                             ; +0x144, 0x1401504b4\nmovss   xmm2, dword ptr [rbp+214h]                                     ; +0x147, 0x1401504b7\nlea     rcx, [rsp+78h+arg_0]                                           ; +0x14f, 0x1401504bf\nmovss   xmm1, dword ptr [rbp+210h]                                     ; +0x157, 0x1401504c7\nmov     rbx, [rdi]                                                     ; +0x15f, 0x1401504cf\nmulss   xmm2, xmm6                                                     ; +0x162, 0x1401504d2\nmulss   xmm1, xmm6                                                     ; +0x166, 0x1401504d6\nsubss   xmm2, cs:dword_1408355E4                                       ; +0x16a, 0x1401504da\naddss   xmm1, cs:flt_140835780                                         ; +0x172, 0x1401504e2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x17a, 0x1401504ea\nmov     rdx, rax                                                       ; +0x180, 0x1401504f0\nmov     rcx, rdi                                                       ; +0x183, 0x1401504f3\ncall    qword ptr [rbx+0B8h]                                           ; +0x186, 0x1401504f6\nmov     rax, [rbp+230h]                                                ; +0x18c, 0x1401504fc\nlea     rcx, [rbp+230h]                                                ; +0x193, 0x140150503\ncall    qword ptr [rax+8]                                              ; +0x19a, 0x14015050a\nmov     rcx, [rbp+238h]                                                ; +0x19d, 0x14015050d\nlea     r11, [rsp+78h+var_8]                                           ; +0x1a4, 0x140150514\nmov     rbx, [r11+18h]                                                 ; +0x1a9, 0x140150519\nmov     rsi, [r11+28h]                                                 ; +0x1ad, 0x14015051d\nmovaps  xmm6, [rsp+78h+var_18]                                         ; +0x1b1, 0x140150521\ncmp     [rcx+140h], eax                                                ; +0x1b6, 0x140150526\nsetz    al                                                             ; +0x1bc, 0x14015052c\nmov     [rbp+240h], al                                                 ; +0x1bf, 0x14015052f\nmov     rbp, [r11+20h]                                                 ; +0x1c5, 0x140150535\nmov     rsp, r11                                                       ; +0x1c9, 0x140150539\npop     rdi                                                            ; +0x1cc, 0x14015053c\nretn                                                                   ; +0x1cd, 0x14015053d", "xrefs": ["CustomListView::loadCell @ 0x140145af9", "CustomListView::reloadAll @ 0x140146f7b", "<???> @ 0x140917738"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}