{"type": "func", "start": 4297342480, "end": 4297342893, "name": "CustomSongCell::loadFromObject", "pseudocode": "// \n// CustomSongCell::loadFromObject from 0x100243e10 to 0x100243fad (413 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x10024270f\n// > CustomListView::reloadAll @ 0x10024e279\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall CustomSongCell::loadFromObject(CustomSongCell *a1, SongInfoObject *a2)\n{\n  __int64 v2; // rax\n  CustomSongWidget *v4; // r14\n  cocos2d::CCSprite *v5; // r14\n  CCMenuItemSpriteExtra *v6; // rax\n  int v7; // edx\n  int v8; // ecx\n  int v9; // r8d\n  int v10; // r9d\n  __int64 v11; // r14\n  _QWORD v12[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v12[0] = v2;\n  ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1);\n  a1->m_songInfoObject = a2;\n  v4 = CustomSongWidget::create(a2, &a1->CustomSongDelegate, 1, 1, 0, 0, 0, 0, 0);\n  ((void (__fastcall *)(cocos2d::CCLayer *, CustomSongWidget *, __int64))a1->m_mainLayer->addChild_0)(\n    a1->m_mainLayer,\n    v4,\n    2);\n  sub_10028CBE0(v12, a1->m_width * 0.5, a1->m_height * 0.5);\n  ((void (__fastcall *)(CustomSongWidget *, _QWORD *))v4->setPosition)(v4, v12);\n  v4->m_isInCell = 1;\n  v5 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_trashBtn_001.png\");\n  ((void (__fastcall *)(cocos2d::CCSprite *, float))v5->setScale)(v5, 0.60000002);\n  v6 = CCMenuItemSpriteExtra::create(\n         v5,\n         nullptr,\n         a1,\n         (cocos2d::SEL_MenuHandler)(unsigned __int64)CustomSongCell::onDelete);\n  LODWORD(v5) = (_DWORD)v6;\n  CCMenuItemSpriteExtra::setSizeMult(v6, 1.5);\n  v11 = sub_100792C50((_DWORD)v5, 0, v7, v8, v9, v10);\n  ((void (__fastcall *)(cocos2d::CCLayer *, __int64, __int64))a1->m_mainLayer->addChild_0)(a1->m_mainLayer, v11, 3);\n  sub_10028CBE0(v12, (float)(a1->m_width * 0.5) + 90.0, (float)(0.5 * a1->m_height) + -24.0);\n  (*(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v11 + 184LL))(v11, v12);\n  LODWORD(v11) = a1->m_songInfoObject->m_songID;\n  a1->m_selected = (_DWORD)v11 == ((unsigned int (__fastcall *)(CustomSongCell *))a1->getActiveSongID)(a1);\n}", "assembly": "; \n; CustomSongCell::loadFromObject from 0x100243e10 to 0x100243fad (413 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x10024270f\n; > CustomListView::reloadAll @ 0x10024e279\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x100243e10\nmov     rbp, rsp                                                       ; +0x1, 0x100243e11\npush    r15                                                            ; +0x4, 0x100243e14\npush    r14                                                            ; +0x6, 0x100243e16\npush    rbx                                                            ; +0x8, 0x100243e18\npush    rax                                                            ; +0x9, 0x100243e19\nmov     r14, rsi                                                       ; +0xa, 0x100243e1a\nmov     rbx, rdi                                                       ; +0xd, 0x100243e1d\nmov     rdi, [rdi+218h]                                                ; +0x10, 0x100243e20\nmov     rax, [rdi]                                                     ; +0x17, 0x100243e27\nmov     esi, 1                                                         ; +0x1a, 0x100243e2a\ncall    qword ptr [rax+238h]                                           ; +0x1f, 0x100243e2f\nmov     [rbx+230h], r14                                                ; +0x25, 0x100243e35\nlea     rsi, [rbx+228h]                                                ; +0x2c, 0x100243e3c\nsub     rsp, 8                                                         ; +0x33, 0x100243e43\nmov     rdi, r14                                                       ; +0x37, 0x100243e47\nmov     edx, 1                                                         ; +0x3a, 0x100243e4a\nmov     ecx, 1                                                         ; +0x3f, 0x100243e4f\nxor     r8d, r8d                                                       ; +0x44, 0x100243e54\nxor     r9d, r9d                                                       ; +0x47, 0x100243e57\npush    0                                                              ; +0x4a, 0x100243e5a\npush    0                                                              ; +0x4c, 0x100243e5c\npush    0                                                              ; +0x4e, 0x100243e5e\ncall    CustomSongWidget__create                                       ; +0x50, 0x100243e60\nadd     rsp, 20h                                                       ; +0x55, 0x100243e65\nmov     r14, rax                                                       ; +0x59, 0x100243e69\nmov     rdi, [rbx+218h]                                                ; +0x5c, 0x100243e6c\nmov     rax, [rdi]                                                     ; +0x63, 0x100243e73\nmov     rsi, r14                                                       ; +0x66, 0x100243e76\nmov     edx, 2                                                         ; +0x69, 0x100243e79\ncall    qword ptr [rax+1C0h]                                           ; +0x6e, 0x100243e7e\nmovss   xmm2, cs:dword_100814FA8                                       ; +0x74, 0x100243e84\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0x7c, 0x100243e8c\nmulss   xmm0, xmm2                                                     ; +0x84, 0x100243e94\nmovss   xmm1, dword ptr [rbx+20Ch]                                     ; +0x88, 0x100243e98\nmulss   xmm1, xmm2                                                     ; +0x90, 0x100243ea0\nlea     r15, [rbp+var_20]                                              ; +0x94, 0x100243ea4\nmov     rdi, r15                                                       ; +0x98, 0x100243ea8\ncall    sub_10028CBE0                                                  ; +0x9b, 0x100243eab\nmov     rax, [r14]                                                     ; +0xa0, 0x100243eb0\nmov     rdi, r14                                                       ; +0xa3, 0x100243eb3\nmov     rsi, r15                                                       ; +0xa6, 0x100243eb6\ncall    qword ptr [rax+0B8h]                                           ; +0xa9, 0x100243eb9\nmov     byte ptr [r14+1F8h], 1                                         ; +0xaf, 0x100243ebf\nlea     rdi, aGjTrashbtn001P; \"GJ_trashBtn_001.png\"                    ; +0xb7, 0x100243ec7\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0xbe, 0x100243ece\nmov     r14, rax                                                       ; +0xc3, 0x100243ed3\nmov     rax, [rax]                                                     ; +0xc6, 0x100243ed6\nmovss   xmm0, cs:dword_100814FB0                                       ; +0xc9, 0x100243ed9\nmov     rdi, r14                                                       ; +0xd1, 0x100243ee1\ncall    qword ptr [rax+0A0h]                                           ; +0xd4, 0x100243ee4\nlea     rcx, CustomSongCell__onDelete                                  ; +0xda, 0x100243eea\nmov     rdi, r14                                                       ; +0xe1, 0x100243ef1\nxor     esi, esi                                                       ; +0xe4, 0x100243ef4\nmov     rdx, rbx                                                       ; +0xe6, 0x100243ef6\nxor     r8d, r8d                                                       ; +0xe9, 0x100243ef9\ncall    CCMenuItemSpriteExtra__create                                  ; +0xec, 0x100243efc\nmov     r14, rax                                                       ; +0xf1, 0x100243f01\nmovss   xmm0, cs:dword_100815000                                       ; +0xf4, 0x100243f04\nmov     rdi, rax                                                       ; +0xfc, 0x100243f0c\ncall    CCMenuItemSpriteExtra__setSizeMult                             ; +0xff, 0x100243f0f\nmov     rdi, r14                                                       ; +0x104, 0x100243f14\nxor     esi, esi                                                       ; +0x107, 0x100243f17\nxor     eax, eax                                                       ; +0x109, 0x100243f19\ncall    sub_100792C50                                                  ; +0x10b, 0x100243f1b\nmov     r14, rax                                                       ; +0x110, 0x100243f20\nmov     rdi, [rbx+218h]                                                ; +0x113, 0x100243f23\nmov     rax, [rdi]                                                     ; +0x11a, 0x100243f2a\nmov     rsi, r14                                                       ; +0x11d, 0x100243f2d\nmov     edx, 3                                                         ; +0x120, 0x100243f30\ncall    qword ptr [rax+1C0h]                                           ; +0x125, 0x100243f35\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0x12b, 0x100243f3b\nmovss   xmm1, cs:dword_100814FA8                                       ; +0x133, 0x100243f43\nmulss   xmm0, xmm1                                                     ; +0x13b, 0x100243f4b\naddss   xmm0, cs:dword_100815038                                       ; +0x13f, 0x100243f4f\nmulss   xmm1, dword ptr [rbx+20Ch]                                     ; +0x147, 0x100243f57\naddss   xmm1, cs:dword_100815250                                       ; +0x14f, 0x100243f5f\nmov     rdi, r15                                                       ; +0x157, 0x100243f67\ncall    sub_10028CBE0                                                  ; +0x15a, 0x100243f6a\nmov     rax, [r14]                                                     ; +0x15f, 0x100243f6f\nmov     rdi, r14                                                       ; +0x162, 0x100243f72\nmov     rsi, r15                                                       ; +0x165, 0x100243f75\ncall    qword ptr [rax+0B8h]                                           ; +0x168, 0x100243f78\nmov     rax, [rbx+230h]                                                ; +0x16e, 0x100243f7e\nmov     r14d, [rax+13Ch]                                               ; +0x175, 0x100243f85\nmov     rax, [rbx]                                                     ; +0x17c, 0x100243f8c\nmov     rdi, rbx                                                       ; +0x17f, 0x100243f8f\ncall    qword ptr [rax+478h]                                           ; +0x182, 0x100243f92\ncmp     r14d, eax                                                      ; +0x188, 0x100243f98\nsetz    byte ptr [rbx+238h]                                            ; +0x18b, 0x100243f9b\nadd     rsp, 8                                                         ; +0x192, 0x100243fa2\npop     rbx                                                            ; +0x196, 0x100243fa6\npop     r14                                                            ; +0x197, 0x100243fa7\npop     r15                                                            ; +0x199, 0x100243fa9\npop     rbp                                                            ; +0x19b, 0x100243fab\nretn                                                                   ; +0x19c, 0x100243fac", "xrefs": ["CustomListView::loadCell @ 0x10024270f", "CustomListView::reloadAll @ 0x10024e279"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}