{"type": "func", "start": 4297234752, "end": 4297235169, "name": "CustomSongCell::loadFromObject", "pseudocode": "// \n// CustomSongCell::loadFromObject from 0x100229940 to 0x100229ae1 (417 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x10022817e\n// > CustomListView::reloadAll @ 0x100235d13\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 12:27:06 +0000\n// \n\n__int64 __fastcall CustomSongCell::loadFromObject(__int64 a1, __int64 a2)\n{\n  __int64 v2; // rax\n  _BYTE *v4; // r14\n  __int64 v5; // r14\n  __int64 v6; // rax\n  int v7; // edx\n  int v8; // ecx\n  int v9; // r8d\n  int v10; // r9d\n  __int64 v11; // r14\n  __int64 result; // rax\n  _QWORD v13[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v13[0] = v2;\n  (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 536) + 584LL))(*(_QWORD *)(a1 + 536), 1);\n  *(_QWORD *)(a1 + 560) = a2;\n  v4 = (_BYTE *)CustomSongWidget::create(a2, (int)a1 + 552, 1, 1, 0, 0, 0, 0, 0, 0, 0);\n  (*(void (__fastcall **)(_QWORD, _BYTE *, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v4, 2);\n  sub_100278250(v13, *(float *)(a1 + 520) * 0.5, *(float *)(a1 + 524) * 0.5);\n  (*(void (__fastcall **)(_BYTE *, _QWORD *))(*(_QWORD *)v4 + 184LL))(v4, v13);\n  v4[512] = 1;\n  v5 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_trashBtn_001.png\");\n  (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v5 + 160LL))(v5, 0.60000002);\n  v6 = CCMenuItemSpriteExtra::create(v5, 0, a1, CustomSongCell::onDelete, 0);\n  LODWORD(v5) = v6;\n  CCMenuItemSpriteExtra::setSizeMult(v6, 1.5);\n  v11 = sub_1008735E0(v5, 0, v7, v8, v9, v10);\n  (*(void (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(a1 + 536) + 464LL))(*(_QWORD *)(a1 + 536), v11, 3);\n  sub_100278250(v13, (float)(*(float *)(a1 + 520) * 0.5) + 90.0, (float)(0.5 * *(float *)(a1 + 524)) + -24.0);\n  (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v11 + 184LL))(v11, v13);\n  LODWORD(v11) = *(_DWORD *)(*(_QWORD *)(a1 + 560) + 316LL);\n  result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 1160LL))(a1);\n  *(_BYTE *)(a1 + 568) = (_DWORD)v11 == (_DWORD)result;\n  return result;\n}", "assembly": "; \n; CustomSongCell::loadFromObject from 0x100229940 to 0x100229ae1 (417 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x10022817e\n; > CustomListView::reloadAll @ 0x100235d13\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 12:27:06 +0000\n; \npush    rbp                                                            ; +0x0, 0x100229940\nmov     rbp, rsp                                                       ; +0x1, 0x100229941\npush    r15                                                            ; +0x4, 0x100229944\npush    r14                                                            ; +0x6, 0x100229946\npush    rbx                                                            ; +0x8, 0x100229948\npush    rax                                                            ; +0x9, 0x100229949\nmov     r14, rsi                                                       ; +0xa, 0x10022994a\nmov     rbx, rdi                                                       ; +0xd, 0x10022994d\nmov     rdi, [rdi+218h]                                                ; +0x10, 0x100229950\nmov     rax, [rdi]                                                     ; +0x17, 0x100229957\nmov     esi, 1                                                         ; +0x1a, 0x10022995a\ncall    qword ptr [rax+248h]                                           ; +0x1f, 0x10022995f\nmov     [rbx+230h], r14                                                ; +0x25, 0x100229965\nlea     rsi, [rbx+228h]                                                ; +0x2c, 0x10022996c\nsub     rsp, 8                                                         ; +0x33, 0x100229973\nmov     rdi, r14                                                       ; +0x37, 0x100229977\nmov     edx, 1                                                         ; +0x3a, 0x10022997a\nmov     ecx, 1                                                         ; +0x3f, 0x10022997f\nxor     r8d, r8d                                                       ; +0x44, 0x100229984\nxor     r9d, r9d                                                       ; +0x47, 0x100229987\npush    0                                                              ; +0x4a, 0x10022998a\npush    0                                                              ; +0x4c, 0x10022998c\npush    0                                                              ; +0x4e, 0x10022998e\npush    0                                                              ; +0x50, 0x100229990\npush    0                                                              ; +0x52, 0x100229992\ncall    CustomSongWidget__create                                       ; +0x54, 0x100229994\nadd     rsp, 30h                                                       ; +0x59, 0x100229999\nmov     r14, rax                                                       ; +0x5d, 0x10022999d\nmov     rdi, [rbx+218h]                                                ; +0x60, 0x1002299a0\nmov     rax, [rdi]                                                     ; +0x67, 0x1002299a7\nmov     rsi, r14                                                       ; +0x6a, 0x1002299aa\nmov     edx, 2                                                         ; +0x6d, 0x1002299ad\ncall    qword ptr [rax+1D0h]                                           ; +0x72, 0x1002299b2\nmovss   xmm2, cs:dword_100A03578                                       ; +0x78, 0x1002299b8\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0x80, 0x1002299c0\nmulss   xmm0, xmm2                                                     ; +0x88, 0x1002299c8\nmovss   xmm1, dword ptr [rbx+20Ch]                                     ; +0x8c, 0x1002299cc\nmulss   xmm1, xmm2                                                     ; +0x94, 0x1002299d4\nlea     r15, [rbp+var_20]                                              ; +0x98, 0x1002299d8\nmov     rdi, r15                                                       ; +0x9c, 0x1002299dc\ncall    sub_100278250                                                  ; +0x9f, 0x1002299df\nmov     rax, [r14]                                                     ; +0xa4, 0x1002299e4\nmov     rdi, r14                                                       ; +0xa7, 0x1002299e7\nmov     rsi, r15                                                       ; +0xaa, 0x1002299ea\ncall    qword ptr [rax+0B8h]                                           ; +0xad, 0x1002299ed\nmov     byte ptr [r14+200h], 1                                         ; +0xb3, 0x1002299f3\nlea     rdi, aGjTrashbtn001P; \"GJ_trashBtn_001.png\"                    ; +0xbb, 0x1002299fb\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0xc2, 0x100229a02\nmov     r14, rax                                                       ; +0xc7, 0x100229a07\nmov     rax, [rax]                                                     ; +0xca, 0x100229a0a\nmovss   xmm0, cs:dword_100A037D4                                       ; +0xcd, 0x100229a0d\nmov     rdi, r14                                                       ; +0xd5, 0x100229a15\ncall    qword ptr [rax+0A0h]                                           ; +0xd8, 0x100229a18\nlea     rcx, CustomSongCell__onDelete                                  ; +0xde, 0x100229a1e\nmov     rdi, r14                                                       ; +0xe5, 0x100229a25\nxor     esi, esi                                                       ; +0xe8, 0x100229a28\nmov     rdx, rbx                                                       ; +0xea, 0x100229a2a\nxor     r8d, r8d                                                       ; +0xed, 0x100229a2d\ncall    CCMenuItemSpriteExtra__create                                  ; +0xf0, 0x100229a30\nmov     r14, rax                                                       ; +0xf5, 0x100229a35\nmovss   xmm0, cs:dword_100A04168                                       ; +0xf8, 0x100229a38\nmov     rdi, rax                                                       ; +0x100, 0x100229a40\ncall    CCMenuItemSpriteExtra__setSizeMult                             ; +0x103, 0x100229a43\nmov     rdi, r14                                                       ; +0x108, 0x100229a48\nxor     esi, esi                                                       ; +0x10b, 0x100229a4b\nxor     eax, eax                                                       ; +0x10d, 0x100229a4d\ncall    sub_1008735E0                                                  ; +0x10f, 0x100229a4f\nmov     r14, rax                                                       ; +0x114, 0x100229a54\nmov     rdi, [rbx+218h]                                                ; +0x117, 0x100229a57\nmov     rax, [rdi]                                                     ; +0x11e, 0x100229a5e\nmov     rsi, r14                                                       ; +0x121, 0x100229a61\nmov     edx, 3                                                         ; +0x124, 0x100229a64\ncall    qword ptr [rax+1D0h]                                           ; +0x129, 0x100229a69\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0x12f, 0x100229a6f\nmovss   xmm1, cs:dword_100A03578                                       ; +0x137, 0x100229a77\nmulss   xmm0, xmm1                                                     ; +0x13f, 0x100229a7f\naddss   xmm0, cs:flt_100A035A4                                         ; +0x143, 0x100229a83\nmulss   xmm1, dword ptr [rbx+20Ch]                                     ; +0x14b, 0x100229a8b\naddss   xmm1, cs:dword_100A037B0                                       ; +0x153, 0x100229a93\nmov     rdi, r15                                                       ; +0x15b, 0x100229a9b\ncall    sub_100278250                                                  ; +0x15e, 0x100229a9e\nmov     rax, [r14]                                                     ; +0x163, 0x100229aa3\nmov     rdi, r14                                                       ; +0x166, 0x100229aa6\nmov     rsi, r15                                                       ; +0x169, 0x100229aa9\ncall    qword ptr [rax+0B8h]                                           ; +0x16c, 0x100229aac\nmov     rax, [rbx+230h]                                                ; +0x172, 0x100229ab2\nmov     r14d, [rax+13Ch]                                               ; +0x179, 0x100229ab9\nmov     rax, [rbx]                                                     ; +0x180, 0x100229ac0\nmov     rdi, rbx                                                       ; +0x183, 0x100229ac3\ncall    qword ptr [rax+488h]                                           ; +0x186, 0x100229ac6\ncmp     r14d, eax                                                      ; +0x18c, 0x100229acc\nsetz    byte ptr [rbx+238h]                                            ; +0x18f, 0x100229acf\nadd     rsp, 8                                                         ; +0x196, 0x100229ad6\npop     rbx                                                            ; +0x19a, 0x100229ada\npop     r14                                                            ; +0x19b, 0x100229adb\npop     r15                                                            ; +0x19d, 0x100229add\npop     rbp                                                            ; +0x19f, 0x100229adf\nretn                                                                   ; +0x1a0, 0x100229ae0", "xrefs": ["CustomListView::loadCell @ 0x10022817e", "CustomListView::reloadAll @ 0x100235d13"], "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"}