{"type": "func", "start": 5370088944, "end": 5370089583, "name": "CustomMusicCell::loadFromObject", "pseudocode": "// \n// CustomMusicCell::loadFromObject from 0x140150df0 to 0x14015106f (639 bytes)\n// \n// 4 xrefs:\n// > CustomListView::loadCell @ 0x140145b61\n// > <???> @ 0x14089aa90\n// > <???> @ 0x14089aaa0\n// > <???> @ 0x140917804\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 CustomMusicCell::loadFromObject(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rbx\n  int v4; // r9d\n  __int64 v5; // rax\n  __int64 v6; // rcx\n  int v7; // eax\n  int v8; // ecx\n  int v9; // edx\n  _BYTE *v10; // r15\n  __int64 v11; // rbx\n  __int64 v12; // rax\n  __int64 v13; // rax\n  int v14; // ebp\n  const char *v15; // rcx\n  struct cocos2d::CCSprite *v16; // rdi\n  __int64 v17; // rbx\n  __int64 v18; // rax\n  __int64 v19; // rax\n  __int64 v20; // rdi\n  __int64 v21; // rbx\n  __int64 v22; // rax\n  bool result; // al\n  _BYTE v24[16]; // [rsp+60h] [rbp-28h] BYREF\n  __int16 v25; // [rsp+90h] [rbp+8h] BYREF\n  char v26; // [rsp+92h] [rbp+Ah]\n\n  v3 = a2;\n  LOBYTE(a2) = 1;\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 576LL))(*(_QWORD *)(a1 + 544), a2);\n  v5 = *(_QWORD *)(a1 + 416);\n  *(_QWORD *)(a1 + 568) = v3;\n  v6 = *(_QWORD *)(v5 + 624);\n  if ( v6 )\n  {\n    v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 64LL))(v6);\n    v3 = *(_QWORD *)(a1 + 568);\n    v8 = v7;\n  }\n  else\n  {\n    v8 = 1;\n  }\n  v9 = a1 + 560;\n  LOBYTE(v4) = 1;\n  if ( !a1 )\n    v9 = 0;\n  v10 = (_BYTE *)CustomSongWidget::create(v3, v9, 1, v4, 1, 0, 0, 1, v8 == 1, 1, 0);\n  (*(void (__fastcall **)(_QWORD, _BYTE *, __int64))(**(_QWORD **)(a1 + 544) + 456LL))(*(_QWORD *)(a1 + 544), v10, 2);\n  v11 = *(_QWORD *)v10;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, *(float *)(a1 + 528) * 0.5, *(float *)(a1 + 532) * 0.5);\n  (*(void (__fastcall **)(_BYTE *, __int64))(v11 + 184))(v10, v12);\n  v10[512] = 1;\n  v13 = *(_QWORD *)(a1 + 568);\n  v14 = *(_DWORD *)(v13 + 492);\n  if ( *(_BYTE *)(v13 + 488) || v14 > 0 )\n  {\n    v15 = \"newMusicIcon_001.png\";\n    if ( v14 > 0 )\n      v15 = \"newMusicIcon2_001.png\";\n    v16 = cocos2d::CCSprite::createWithSpriteFrameName(v15);\n    (*(void (__fastcall **)(_BYTE *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)v10 + 456LL))(v10, v16, 4);\n    v17 = *(_QWORD *)v16;\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v25, -157.0, 20.0);\n    (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v17 + 184))(v16, v18);\n    if ( v14 > 0 )\n    {\n      cocos2d::CCRect::CCRect((cocos2d::CCRect *)v24, 0.0, 0.0, 80.0, 80.0);\n      v20 = cocos2d::extension::CCScale9Sprite::create(\"GJ_square07.png\", v19);\n      v25 = -256;\n      v26 = -1;\n      (**(void (__fastcall ***)(__int64, __int16 *))(v20 + 320))(v20 + 320, &v25);\n      v21 = *(_QWORD *)v20;\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v25, 320.0, 50.0);\n      (*(void (__fastcall **)(__int64, __int64))(v21 + 312))(v20, v22);\n      (*(void (__fastcall **)(_BYTE *, __int64, __int64))(*(_QWORD *)v10 + 456LL))(v10, v20, 0xFFFFFFFFLL);\n    }\n  }\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; CustomMusicCell::loadFromObject from 0x140150df0 to 0x14015106f (639 bytes)\n; \n; 4 xrefs:\n; > CustomListView::loadCell @ 0x140145b61\n; > <???> @ 0x14089aa90\n; > <???> @ 0x14089aaa0\n; > <???> @ 0x140917804\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_10], rbx                                              ; +0x0, 0x140150df0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x140150df5\npush    rsi                                                            ; +0xa, 0x140150dfa\npush    r14                                                            ; +0xb, 0x140150dfb\npush    r15                                                            ; +0xd, 0x140150dfd\nsub     rsp, 70h                                                       ; +0xf, 0x140150dff\nmov     rsi, rcx                                                       ; +0x13, 0x140150e03\nmov     rbx, rdx                                                       ; +0x16, 0x140150e06\nmov     rcx, [rcx+220h]                                                ; +0x19, 0x140150e09\nmov     dl, 1                                                          ; +0x20, 0x140150e10\nmov     rax, [rcx]                                                     ; +0x22, 0x140150e12\ncall    qword ptr [rax+240h]                                           ; +0x25, 0x140150e15\nmov     rax, [rsi+1A0h]                                                ; +0x2b, 0x140150e1b\nmov     [rsi+238h], rbx                                                ; +0x32, 0x140150e22\nmov     rcx, [rax+270h]                                                ; +0x39, 0x140150e29\ntest    rcx, rcx                                                       ; +0x40, 0x140150e30\njz      short loc_140150E46                                            ; +0x43, 0x140150e33\nmov     rax, [rcx]                                                     ; +0x45, 0x140150e35\ncall    qword ptr [rax+40h]                                            ; +0x48, 0x140150e38\nmov     rbx, [rsi+238h]                                                ; +0x4b, 0x140150e3b\nmov     ecx, eax                                                       ; +0x52, 0x140150e42\njmp     short loc_140150E4B                                            ; +0x54, 0x140150e44\nmov     ecx, 1                                                         ; +0x56, 0x140150e46\nxor     r8d, r8d                                                       ; +0x5b, 0x140150e4b\nlea     rdx, [rsi+230h]                                                ; +0x5e, 0x140150e4e\nmov     [rsp+88h+var_38], r8b                                          ; +0x65, 0x140150e55\ncmp     ecx, 1                                                         ; +0x6a, 0x140150e5a\nmov     [rsp+88h+var_40], 1                                            ; +0x6d, 0x140150e5d\nmov     eax, r8d                                                       ; +0x72, 0x140150e62\nsetz    al                                                             ; +0x75, 0x140150e65\nmov     r9b, 1                                                         ; +0x78, 0x140150e68\nmov     [rsp+88h+var_48], eax                                          ; +0x7b, 0x140150e6b\ntest    rsi, rsi                                                       ; +0x7f, 0x140150e6f\nmov     [rsp+88h+var_50], 1                                            ; +0x82, 0x140150e72\nmov     rcx, rbx                                                       ; +0x87, 0x140150e77\nmov     [rsp+88h+var_58], r8b                                          ; +0x8a, 0x140150e7a\ncmovz   rdx, r8                                                        ; +0x8f, 0x140150e7f\nmov     [rsp+88h+var_60], r8b                                          ; +0x93, 0x140150e83\nmovzx   r8d, r9b                                                       ; +0x98, 0x140150e88\nmov     byte ptr [rsp+88h+var_68], 1                                   ; +0x9c, 0x140150e8c\ncall    CustomSongWidget__create                                       ; +0xa1, 0x140150e91\nmov     rcx, [rsi+220h]                                                ; +0xa6, 0x140150e96\nmov     r8d, 2                                                         ; +0xad, 0x140150e9d\nmov     r15, rax                                                       ; +0xb3, 0x140150ea3\nmov     rdx, [rcx]                                                     ; +0xb6, 0x140150ea6\nmov     r9, [rdx+1C8h]                                                 ; +0xb9, 0x140150ea9\nmov     rdx, rax                                                       ; +0xc0, 0x140150eb0\ncall    r9                                                             ; +0xc3, 0x140150eb3\nmovss   xmm2, dword ptr [rsi+214h]                                     ; +0xc6, 0x140150eb6\nlea     rcx, [rsp+88h+arg_0]                                           ; +0xce, 0x140150ebe\nmovss   xmm1, dword ptr [rsi+210h]                                     ; +0xd6, 0x140150ec6\nmulss   xmm2, cs:dword_140834F20                                       ; +0xde, 0x140150ece\nmov     rbx, [r15]                                                     ; +0xe6, 0x140150ed6\nmulss   xmm1, cs:dword_140834F20                                       ; +0xe9, 0x140150ed9\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xf1, 0x140150ee1\nmov     rdx, rax                                                       ; +0xf7, 0x140150ee7\nmov     rcx, r15                                                       ; +0xfa, 0x140150eea\ncall    qword ptr [rbx+0B8h]                                           ; +0xfd, 0x140150eed\nmov     byte ptr [r15+200h], 1                                         ; +0x103, 0x140150ef3\nmov     rax, [rsi+238h]                                                ; +0x10b, 0x140150efb\ncmp     byte ptr [rax+1E8h], 0                                         ; +0x112, 0x140150f02\nmov     ebp, [rax+1ECh]                                                ; +0x119, 0x140150f09\njnz     short loc_140150F19                                            ; +0x11f, 0x140150f0f\ntest    ebp, ebp                                                       ; +0x121, 0x140150f11\njle     loc_140151032                                                  ; +0x123, 0x140150f13\nlea     rax, aNewmusicicon20; \"newMusicIcon2_001.png\"                  ; +0x129, 0x140150f19\nmov     [rsp+88h+arg_8], rdi                                           ; +0x130, 0x140150f20\ntest    ebp, ebp                                                       ; +0x138, 0x140150f28\nlea     rcx, aNewmusicicon00; \"newMusicIcon_001.png\"                   ; +0x13a, 0x140150f2a\ncmovg   rcx, rax                                                       ; +0x141, 0x140150f31\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0x145, 0x140150f35\nmov     rcx, [r15]                                                     ; +0x14b, 0x140150f3b\nmov     r8d, 4                                                         ; +0x14e, 0x140150f3e\nmov     rdx, rax                                                       ; +0x154, 0x140150f44\nmov     rdi, rax                                                       ; +0x157, 0x140150f47\nmov     r9, [rcx+1C8h]                                                 ; +0x15a, 0x140150f4a\nmov     rcx, r15                                                       ; +0x161, 0x140150f51\ncall    r9                                                             ; +0x164, 0x140150f54\nmovss   xmm2, cs:dword_1408355B4                                       ; +0x167, 0x140150f57\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x16f, 0x140150f5f\nmovss   xmm1, cs:dword_140836034                                       ; +0x177, 0x140150f67\nmov     rbx, [rdi]                                                     ; +0x17f, 0x140150f6f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x182, 0x140150f72\nmov     rdx, rax                                                       ; +0x188, 0x140150f78\nmov     rcx, rdi                                                       ; +0x18b, 0x140150f7b\ncall    qword ptr [rbx+0B8h]                                           ; +0x18e, 0x140150f7e\ntest    ebp, ebp                                                       ; +0x194, 0x140150f84\njle     loc_14015102A                                                  ; +0x196, 0x140150f86\nmovss   xmm3, cs:dword_14083574C                                       ; +0x19c, 0x140150f8c\nlea     rcx, [rsp+88h+var_28]                                          ; +0x1a4, 0x140150f94\nxorps   xmm2, xmm2                                                     ; +0x1a9, 0x140150f99\nmovss   [rsp+88h+var_68], xmm3                                         ; +0x1ac, 0x140150f9c\nxorps   xmm1, xmm1                                                     ; +0x1b2, 0x140150fa2\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x1b5, 0x140150fa5\nmov     rdx, rax                                                       ; +0x1bb, 0x140150fab\nlea     rcx, aGjSquare07Png; \"GJ_square07.png\"                         ; +0x1be, 0x140150fae\ncall    cs:?create@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEBDVCCRect@3@@Z; cocos2d::extension::CCScale9Sprite::create(char const *,cocos2d::CCRect) ; +0x1c5, 0x140150fb5\nmov     rdi, rax                                                       ; +0x1cb, 0x140150fbb\nmov     [rsp+88h+arg_0], 0FF00h                                        ; +0x1ce, 0x140150fbe\nmov     [rsp+88h+arg_2], 0FFh                                          ; +0x1d8, 0x140150fc8\nlea     rcx, [rax+140h]                                                ; +0x1e0, 0x140150fd0\nmov     rdx, [rcx]                                                     ; +0x1e7, 0x140150fd7\nmov     r8, [rdx]                                                      ; +0x1ea, 0x140150fda\nlea     rdx, [rsp+88h+arg_0]                                           ; +0x1ed, 0x140150fdd\ncall    r8                                                             ; +0x1f5, 0x140150fe5\nmovss   xmm2, cs:dword_1408356B0                                       ; +0x1f8, 0x140150fe8\nlea     rcx, [rsp+88h+arg_0]                                           ; +0x200, 0x140150ff0\nmovss   xmm1, cs:dword_1408359C0                                       ; +0x208, 0x140150ff8\nmov     rbx, [rdi]                                                     ; +0x210, 0x140151000\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x213, 0x140151003\nmov     rdx, rax                                                       ; +0x219, 0x140151009\nmov     rcx, rdi                                                       ; +0x21c, 0x14015100c\ncall    qword ptr [rbx+138h]                                           ; +0x21f, 0x14015100f\nmov     rax, [r15]                                                     ; +0x225, 0x140151015\nmov     r8d, 0FFFFFFFFh                                                ; +0x228, 0x140151018\nmov     rdx, rdi                                                       ; +0x22e, 0x14015101e\nmov     rcx, r15                                                       ; +0x231, 0x140151021\ncall    qword ptr [rax+1C8h]                                           ; +0x234, 0x140151024\nmov     rdi, [rsp+88h+arg_8]                                           ; +0x23a, 0x14015102a\nmov     rax, [rsi+230h]                                                ; +0x242, 0x140151032\nlea     rcx, [rsi+230h]                                                ; +0x249, 0x140151039\ncall    qword ptr [rax+8]                                              ; +0x250, 0x140151040\nmov     rcx, [rsi+238h]                                                ; +0x253, 0x140151043\nlea     r11, [rsp+88h+var_18]                                          ; +0x25a, 0x14015104a\nmov     rbx, [r11+30h]                                                 ; +0x25f, 0x14015104f\nmov     rbp, [r11+38h]                                                 ; +0x263, 0x140151053\ncmp     [rcx+140h], eax                                                ; +0x267, 0x140151057\nsetz    al                                                             ; +0x26d, 0x14015105d\nmov     [rsi+240h], al                                                 ; +0x270, 0x140151060\nmov     rsp, r11                                                       ; +0x276, 0x140151066\npop     r15                                                            ; +0x279, 0x140151069\npop     r14                                                            ; +0x27b, 0x14015106b\npop     rsi                                                            ; +0x27d, 0x14015106d\nretn                                                                   ; +0x27e, 0x14015106e", "xrefs": ["CustomListView::loadCell @ 0x140145b61", "<???> @ 0x14089aa90", "<???> @ 0x14089aaa0", "<???> @ 0x140917804"], "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"}