{"type": "func", "start": 5369448080, "end": 5369448519, "name": "CustomSongCell::loadFromObject", "pseudocode": "// \n// CustomSongCell::loadFromObject from 0x1400b4690 to 0x1400b4847 (439 bytes)\n// \n// 3 xrefs:\n// > CustomListView::loadCell @ 0x1400ab6c5\n// > CustomListView::reloadAll @ 0x1400ac704\n// > <???> @ 0x1406c7b00\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 CustomSongCell::loadFromObject(CustomSongCell *a1, SongInfoObject *a2)\n{\n  SongInfoObject *v3; // rbx\n  CustomSongDelegate *v4; // rdx\n  CustomSongWidget *v5; // rdi\n  CustomSongWidget_vtbl *v6; // rbx\n  const cocos2d::CCPoint *v7; // rax\n  struct cocos2d::CCSprite *v8; // rbx\n  CCMenuItemSpriteExtra *v9; // rax\n  struct cocos2d::CCMenu *v10; // rdi\n  cocos2d::CCMenu_vtbl *v11; // rbx\n  const cocos2d::CCPoint *v12; // rax\n  cocos2d::CCPoint v13; // [rsp+70h] [rbp+8h] BYREF\n\n  v3 = a2;\n  LOBYTE(a2) = 1;\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, (bool)a2);\n  a1->m_songInfoObject = v3;\n  v4 = &a1->CustomSongDelegate;\n  if ( !a1 )\n    v4 = nullptr;\n  v5 = CustomSongWidget::create(v3, v4, 1, 1, 0, 0, 0, 0, 0);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 2);\n  v6 = v5->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v13, a1->m_width * 0.5, a1->m_height * 0.5);\n  v6->setPosition_0(v5, v7);\n  v5->m_isInCell = 1;\n  v8 = cocos2d::CCSprite::createWithSpriteFrameName(\"GJ_trashBtn_001.png\");\n  ((void (__fastcall *)(struct cocos2d::CCSprite *))v8->setScale_0)(v8);\n  v9 = CCMenuItemSpriteExtra::create(v8, nullptr, a1, (cocos2d::SEL_MenuHandler *)CustomSongCell::onDelete);\n  HIDWORD(v9->m_pfnSelector.adj) = 1069547520;\n  v10 = cocos2d::CCMenu::create(v9, 0);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 3);\n  v11 = v10->cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v13, (float)(a1->m_width * 0.5) + 90.0, (float)(a1->m_height * 0.5) - 24.0);\n  v11->setPosition_0(v10, v12);\n  a1->m_selected = a1->m_songInfoObject->m_songID == a1->getActiveSongID(&a1->CustomSongDelegate);\n}", "assembly": "; \n; CustomSongCell::loadFromObject from 0x1400b4690 to 0x1400b4847 (439 bytes)\n; \n; 3 xrefs:\n; > CustomListView::loadCell @ 0x1400ab6c5\n; > CustomListView::reloadAll @ 0x1400ac704\n; > <???> @ 0x1406c7b00\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1400b4690\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1400b4695\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1400b469a\npush    rdi                                                            ; +0xf, 0x1400b469f\nsub     rsp, 60h                                                       ; +0x10, 0x1400b46a0\nmov     rbp, rcx                                                       ; +0x14, 0x1400b46a4\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x17, 0x1400b46a7\nmov     rcx, [rcx+220h]                                                ; +0x1c, 0x1400b46ac\nmov     rbx, rdx                                                       ; +0x23, 0x1400b46b3\nmov     dl, 1                                                          ; +0x26, 0x1400b46b6\nmov     rax, [rcx]                                                     ; +0x28, 0x1400b46b8\ncall    qword ptr [rax+230h]                                           ; +0x2b, 0x1400b46bb\nxor     eax, eax                                                       ; +0x31, 0x1400b46c1\nmov     [rbp+238h], rbx                                                ; +0x33, 0x1400b46c3\nmov     [rsp+68h+var_28], eax                                          ; +0x3a, 0x1400b46ca\nlea     rdx, [rbp+230h]                                                ; +0x3e, 0x1400b46ce\nmov     [rsp+68h+var_30], al                                           ; +0x45, 0x1400b46d5\nmov     r9b, 1                                                         ; +0x49, 0x1400b46d9\nmov     [rsp+68h+var_38], al                                           ; +0x4c, 0x1400b46dc\ntest    rbp, rbp                                                       ; +0x50, 0x1400b46e0\nmov     [rsp+68h+var_40], al                                           ; +0x53, 0x1400b46e3\nmovzx   r8d, r9b                                                       ; +0x57, 0x1400b46e7\ncmovz   rdx, rax                                                       ; +0x5b, 0x1400b46eb\nmov     [rsp+68h+var_48], al                                           ; +0x5f, 0x1400b46ef\nmov     rcx, rbx                                                       ; +0x63, 0x1400b46f3\ncall    CustomSongWidget__create                                       ; +0x66, 0x1400b46f6\nmov     rcx, [rbp+220h]                                                ; +0x6b, 0x1400b46fb\nmov     r8d, 2                                                         ; +0x72, 0x1400b4702\nmov     rdx, rax                                                       ; +0x78, 0x1400b4708\nmov     rdi, rax                                                       ; +0x7b, 0x1400b470b\nmov     r9, [rcx]                                                      ; +0x7e, 0x1400b470e\ncall    qword ptr [r9+1B8h]                                            ; +0x81, 0x1400b4711\nmovss   xmm2, dword ptr [rbp+214h]                                     ; +0x88, 0x1400b4718\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x90, 0x1400b4720\nmovss   xmm1, dword ptr [rbp+210h]                                     ; +0x95, 0x1400b4725\nmovss   xmm6, cs:dword_140622B08                                       ; +0x9d, 0x1400b472d\nmov     rbx, [rdi]                                                     ; +0xa5, 0x1400b4735\nmulss   xmm2, xmm6                                                     ; +0xa8, 0x1400b4738\nmulss   xmm1, xmm6                                                     ; +0xac, 0x1400b473c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xb0, 0x1400b4740\nmov     rdx, rax                                                       ; +0xb6, 0x1400b4746\nmov     rcx, rdi                                                       ; +0xb9, 0x1400b4749\ncall    qword ptr [rbx+0B8h]                                           ; +0xbc, 0x1400b474c\nlea     rcx, aGjTrashbtn001P; \"GJ_trashBtn_001.png\"                    ; +0xc2, 0x1400b4752\nmov     byte ptr [rdi+1F8h], 1                                         ; +0xc9, 0x1400b4759\ncall    cs:?createWithSpriteFrameName@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::createWithSpriteFrameName(char const *) ; +0xd0, 0x1400b4760\nmovss   xmm1, cs:dword_140622B38                                       ; +0xd6, 0x1400b4766\nmov     rcx, rax                                                       ; +0xde, 0x1400b476e\nmov     rbx, rax                                                       ; +0xe1, 0x1400b4771\nmov     rdx, [rax]                                                     ; +0xe4, 0x1400b4774\ncall    qword ptr [rdx+0A0h]                                           ; +0xe7, 0x1400b4777\nlea     r9, CustomSongCell__onDelete                                   ; +0xed, 0x1400b477d\nmov     r8, rbp                                                        ; +0xf4, 0x1400b4784\nxor     edx, edx                                                       ; +0xf7, 0x1400b4787\nmov     rcx, rbx                                                       ; +0xf9, 0x1400b4789\ncall    CCMenuItemSpriteExtra__create                                  ; +0xfc, 0x1400b478c\nxor     edx, edx                                                       ; +0x101, 0x1400b4791\nmov     rcx, rax                                                       ; +0x103, 0x1400b4793\nmov     dword ptr [rax+174h], 3FC00000h                                ; +0x106, 0x1400b4796\ncall    cs:?create@CCMenu@cocos2d@@SAPEAV12@PEAVCCMenuItem@2@ZZ; cocos2d::CCMenu::create(cocos2d::CCMenuItem *,...) ; +0x110, 0x1400b47a0\nmov     rcx, [rbp+220h]                                                ; +0x116, 0x1400b47a6\nmov     r8d, 3                                                         ; +0x11d, 0x1400b47ad\nmov     rdx, rax                                                       ; +0x123, 0x1400b47b3\nmov     rdi, rax                                                       ; +0x126, 0x1400b47b6\nmov     r9, [rcx]                                                      ; +0x129, 0x1400b47b9\ncall    qword ptr [r9+1B8h]                                            ; +0x12c, 0x1400b47bc\nmovss   xmm2, dword ptr [rbp+214h]                                     ; +0x133, 0x1400b47c3\nlea     rcx, [rsp+68h+arg_0]                                           ; +0x13b, 0x1400b47cb\nmovss   xmm1, dword ptr [rbp+210h]                                     ; +0x140, 0x1400b47d0\nmov     rbx, [rdi]                                                     ; +0x148, 0x1400b47d8\nmulss   xmm2, xmm6                                                     ; +0x14b, 0x1400b47db\nmulss   xmm1, xmm6                                                     ; +0x14f, 0x1400b47df\nsubss   xmm2, cs:dword_140623140                                       ; +0x153, 0x1400b47e3\naddss   xmm1, cs:dword_140623294                                       ; +0x15b, 0x1400b47eb\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x163, 0x1400b47f3\nmov     rdx, rax                                                       ; +0x169, 0x1400b47f9\nmov     rcx, rdi                                                       ; +0x16c, 0x1400b47fc\ncall    qword ptr [rbx+0B8h]                                           ; +0x16f, 0x1400b47ff\nmov     rax, [rbp+230h]                                                ; +0x175, 0x1400b4805\nlea     rcx, [rbp+230h]                                                ; +0x17c, 0x1400b480c\ncall    qword ptr [rax+8]                                              ; +0x183, 0x1400b4813\nmov     rcx, [rbp+238h]                                                ; +0x186, 0x1400b4816\nlea     r11, [rsp+68h+var_8]                                           ; +0x18d, 0x1400b481d\ncmp     [rcx+140h], eax                                                ; +0x192, 0x1400b4822\nsetz    al                                                             ; +0x198, 0x1400b4828\nmov     [rbp+240h], al                                                 ; +0x19b, 0x1400b482b\nmov     rbx, [r11+18h]                                                 ; +0x1a1, 0x1400b4831\nmov     rbp, [r11+20h]                                                 ; +0x1a5, 0x1400b4835\nmov     rsi, [r11+28h]                                                 ; +0x1a9, 0x1400b4839\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0x1ad, 0x1400b483d\nmov     rsp, r11                                                       ; +0x1b2, 0x1400b4842\npop     rdi                                                            ; +0x1b5, 0x1400b4845\nretn                                                                   ; +0x1b6, 0x1400b4846", "xrefs": ["CustomListView::loadCell @ 0x1400ab6c5", "CustomListView::reloadAll @ 0x1400ac704", "<???> @ 0x1406c7b00"], "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"}