{"type": "func", "start": 4297342992, "end": 4297343298, "name": "CustomMusicCell::loadFromObject", "pseudocode": "// \n// CustomMusicCell::loadFromObject from 0x100244010 to 0x100244142 (306 bytes)\n// \n// 1 xrefs:\n// > CustomListView::loadCell @ 0x100242534\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 CustomMusicCell::loadFromObject(CustomMusicCell *a1, SongInfoObject *a2)\n{\n  __int64 v2; // rax\n  TableViewCellDelegate *m_cellDelegate; // rdi\n  int v5; // eax\n  int v6; // r10d\n  CustomSongWidget *v7; // r14\n  _QWORD v8[4]; // [rsp+0h] [rbp-20h] BYREF\n\n  v8[0] = v2;\n  ((void (__fastcall *)(cocos2d::CCLayer *, __int64))a1->m_mainLayer->removeAllChildrenWithCleanup)(a1->m_mainLayer, 1);\n  a1->m_songInfoObject = a2;\n  m_cellDelegate = a1->m_tableView->m_cellDelegate;\n  if ( !m_cellDelegate\n    || (v5 = ((__int64 (__fastcall *)(TableViewCellDelegate *))m_cellDelegate->getCellDelegateType)(m_cellDelegate),\n        v6 = 0,\n        v5 == 1) )\n  {\n    v6 = 1;\n  }\n  v7 = CustomSongWidget::create(a1->m_songInfoObject, &a1->CustomSongDelegate, 1, 1, 1, 0, 0, 1, v6);\n  ((void (__fastcall *)(cocos2d::CCLayer *, CustomSongWidget *, __int64))a1->m_mainLayer->addChild_0)(\n    a1->m_mainLayer,\n    v7,\n    2);\n  sub_10028CBE0(v8, a1->m_width * 0.5, 0.5 * a1->m_height);\n  ((void (__fastcall *)(CustomSongWidget *, _QWORD *))v7->setPosition)(v7, v8);\n  v7->m_isInCell = 1;\n  CustomSongWidget::addExtraVisuals(v7, a1->m_songInfoObject->m_isNew, a1->m_songInfoObject->m_libraryOrder > 0);\n  LODWORD(v7) = a1->m_songInfoObject->m_songID;\n  a1->m_selected = (_DWORD)v7 == ((unsigned int (__fastcall *)(CustomMusicCell *))a1->getActiveSongID)(a1);\n}", "assembly": "; \n; CustomMusicCell::loadFromObject from 0x100244010 to 0x100244142 (306 bytes)\n; \n; 1 xrefs:\n; > CustomListView::loadCell @ 0x100242534\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, 0x100244010\nmov     rbp, rsp                                                       ; +0x1, 0x100244011\npush    r15                                                            ; +0x4, 0x100244014\npush    r14                                                            ; +0x6, 0x100244016\npush    rbx                                                            ; +0x8, 0x100244018\npush    rax                                                            ; +0x9, 0x100244019\nmov     r14, rsi                                                       ; +0xa, 0x10024401a\nmov     rbx, rdi                                                       ; +0xd, 0x10024401d\nmov     rdi, [rdi+218h]                                                ; +0x10, 0x100244020\nmov     rax, [rdi]                                                     ; +0x17, 0x100244027\nmov     esi, 1                                                         ; +0x1a, 0x10024402a\ncall    qword ptr [rax+238h]                                           ; +0x1f, 0x10024402f\nmov     [rbx+230h], r14                                                ; +0x25, 0x100244035\nmov     rax, [rbx+1A0h]                                                ; +0x2c, 0x10024403c\nmov     rdi, [rax+268h]                                                ; +0x33, 0x100244043\ntest    rdi, rdi                                                       ; +0x3a, 0x10024404a\njz      short loc_10024405D                                            ; +0x3d, 0x10024404d\nmov     rax, [rdi]                                                     ; +0x3f, 0x10024404f\ncall    qword ptr [rax+18h]                                            ; +0x42, 0x100244052\nxor     r10d, r10d                                                     ; +0x45, 0x100244055\ncmp     eax, 1                                                         ; +0x48, 0x100244058\njnz     short loc_100244063                                            ; +0x4b, 0x10024405b\nmov     r10d, 1                                                        ; +0x4d, 0x10024405d\nmov     rdi, [rbx+230h]                                                ; +0x53, 0x100244063\nlea     rsi, [rbx+228h]                                                ; +0x5a, 0x10024406a\nsub     rsp, 8                                                         ; +0x61, 0x100244071\nmov     edx, 1                                                         ; +0x65, 0x100244075\nmov     ecx, 1                                                         ; +0x6a, 0x10024407a\nmov     r8d, 1                                                         ; +0x6f, 0x10024407f\nxor     r9d, r9d                                                       ; +0x75, 0x100244085\npush    r10                                                            ; +0x78, 0x100244088\npush    1                                                              ; +0x7a, 0x10024408a\npush    0                                                              ; +0x7c, 0x10024408c\ncall    CustomSongWidget__create                                       ; +0x7e, 0x10024408e\nadd     rsp, 20h                                                       ; +0x83, 0x100244093\nmov     r14, rax                                                       ; +0x87, 0x100244097\nmov     rdi, [rbx+218h]                                                ; +0x8a, 0x10024409a\nmov     rax, [rdi]                                                     ; +0x91, 0x1002440a1\nmov     rsi, r14                                                       ; +0x94, 0x1002440a4\nmov     edx, 2                                                         ; +0x97, 0x1002440a7\ncall    qword ptr [rax+1C0h]                                           ; +0x9c, 0x1002440ac\nmovss   xmm1, cs:dword_100814FA8                                       ; +0xa2, 0x1002440b2\nmovss   xmm0, dword ptr [rbx+208h]                                     ; +0xaa, 0x1002440ba\nmulss   xmm0, xmm1                                                     ; +0xb2, 0x1002440c2\nmulss   xmm1, dword ptr [rbx+20Ch]                                     ; +0xb6, 0x1002440c6\nlea     r15, [rbp+var_20]                                              ; +0xbe, 0x1002440ce\nmov     rdi, r15                                                       ; +0xc2, 0x1002440d2\ncall    sub_10028CBE0                                                  ; +0xc5, 0x1002440d5\nmov     rax, [r14]                                                     ; +0xca, 0x1002440da\nmov     rdi, r14                                                       ; +0xcd, 0x1002440dd\nmov     rsi, r15                                                       ; +0xd0, 0x1002440e0\ncall    qword ptr [rax+0B8h]                                           ; +0xd3, 0x1002440e3\nmov     byte ptr [r14+1F8h], 1                                         ; +0xd9, 0x1002440e9\nmov     rax, [rbx+230h]                                                ; +0xe1, 0x1002440f1\nmovzx   esi, byte ptr [rax+208h]                                       ; +0xe8, 0x1002440f8\nxor     edx, edx                                                       ; +0xef, 0x1002440ff\ncmp     dword ptr [rax+20Ch], 0                                        ; +0xf1, 0x100244101\nsetnle  dl                                                             ; +0xf8, 0x100244108\nmov     rdi, r14                                                       ; +0xfb, 0x10024410b\ncall    CustomSongWidget__addExtraVisuals                              ; +0xfe, 0x10024410e\nmov     rax, [rbx+230h]                                                ; +0x103, 0x100244113\nmov     r14d, [rax+13Ch]                                               ; +0x10a, 0x10024411a\nmov     rax, [rbx]                                                     ; +0x111, 0x100244121\nmov     rdi, rbx                                                       ; +0x114, 0x100244124\ncall    qword ptr [rax+478h]                                           ; +0x117, 0x100244127\ncmp     r14d, eax                                                      ; +0x11d, 0x10024412d\nsetz    byte ptr [rbx+238h]                                            ; +0x120, 0x100244130\nadd     rsp, 8                                                         ; +0x127, 0x100244137\npop     rbx                                                            ; +0x12b, 0x10024413b\npop     r14                                                            ; +0x12c, 0x10024413c\npop     r15                                                            ; +0x12e, 0x10024413e\npop     rbp                                                            ; +0x130, 0x100244140\nretn                                                                   ; +0x131, 0x100244141", "xrefs": ["CustomListView::loadCell @ 0x100242534"], "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"}