{"type": "func", "start": 5369548576, "end": 5369548767, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x1400ccf20 to 0x1400ccfdf (191 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14054ec78\n// > <???> @ 0x1406c8394\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 CustomSongWidget::downloadSongFinished(CustomSongWidget *a1, int a2)\n{\n  float d; // eax\n  float v4; // xmm2_4\n  float v5; // xmm1_4\n\n  if ( BYTE1(a1->m_pGrid) )\n  {\n    CustomSongWidget::downloadAssetFinished((CustomSongWidget *)((char *)a1 - 320), a2, (GJAssetType)1);\n  }\n  else\n  {\n    d = a1->m_sInverse.d;\n    if ( LODWORD(d) == a2 && d != 0.0 )\n    {\n      (**(void (__fastcall ***)(__int64, cocos2d::ccColor3B *))(*(_QWORD *)&a1->m_fRotationX + 368LL))(\n        *(_QWORD *)&a1->m_fRotationX + 368LL,\n        &stru_140529A30);\n      (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)&a1->m_fRotationX + 360LL))(\n        *(_QWORD *)&a1->m_fRotationX + 360LL,\n        \"Download complete.\");\n      if ( BYTE1(a1->m_sInverse.c) )\n      {\n        v4 = 0.34999999;\n        v5 = 140.0;\n      }\n      else\n      {\n        v4 = 0.40000001;\n        v5 = 230.0;\n      }\n      cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)&a1->m_fRotationX, v5, v4, 0.0);\n      CustomSongWidget::showError((CustomSongWidget *)((char *)a1 - 320), 1);\n    }\n  }\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x1400ccf20 to 0x1400ccfdf (191 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14054ec78\n; > <???> @ 0x1406c8394\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_0], rbx                                               ; +0x0, 0x1400ccf20\npush    rdi                                                            ; +0x5, 0x1400ccf25\nsub     rsp, 20h                                                       ; +0x6, 0x1400ccf26\ncmp     byte ptr [rcx+0C9h], 0                                         ; +0xa, 0x1400ccf2a\nmov     rbx, rcx                                                       ; +0x11, 0x1400ccf31\njz      short loc_1400CCF52                                            ; +0x14, 0x1400ccf34\nmov     r8d, 1                                                         ; +0x16, 0x1400ccf36\nadd     rcx, 0FFFFFFFFFFFFFEC0h                                        ; +0x1c, 0x1400ccf3c\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x23, 0x1400ccf43\nadd     rsp, 20h                                                       ; +0x28, 0x1400ccf48\npop     rdi                                                            ; +0x2c, 0x1400ccf4c\njmp     CustomSongWidget__downloadAssetFinished                        ; +0x2d, 0x1400ccf4d\nmov     eax, [rcx+0B0h]                                                ; +0x32, 0x1400ccf52\ncmp     eax, edx                                                       ; +0x38, 0x1400ccf58\njnz     short loc_1400CCFD4                                            ; +0x3a, 0x1400ccf5a\ntest    eax, eax                                                       ; +0x3c, 0x1400ccf5c\njz      short loc_1400CCFD4                                            ; +0x3e, 0x1400ccf5e\nmov     rcx, [rcx+38h]                                                 ; +0x40, 0x1400ccf60\nlea     rdx, stru_140529A30                                            ; +0x44, 0x1400ccf64\nadd     rcx, 170h                                                      ; +0x4b, 0x1400ccf6b\nmov     rax, [rcx]                                                     ; +0x52, 0x1400ccf72\ncall    qword ptr [rax]                                                ; +0x55, 0x1400ccf75\nmov     rcx, [rbx+38h]                                                 ; +0x57, 0x1400ccf77\nlea     rdx, aDownloadComple; \"Download complete.\"                     ; +0x5b, 0x1400ccf7b\nadd     rcx, 168h                                                      ; +0x62, 0x1400ccf82\nmov     rax, [rcx]                                                     ; +0x69, 0x1400ccf89\ncall    qword ptr [rax]                                                ; +0x6c, 0x1400ccf8c\ncmp     byte ptr [rbx+0ADh], 0                                         ; +0x6e, 0x1400ccf8e\nxorps   xmm3, xmm3                                                     ; +0x75, 0x1400ccf95\nmov     rcx, [rbx+38h]                                                 ; +0x78, 0x1400ccf98\njz      short loc_1400CCFB0                                            ; +0x7c, 0x1400ccf9c\nmovss   xmm2, cs:dword_140622ABC                                       ; +0x7e, 0x1400ccf9e\nmovss   xmm1, cs:dword_140623338                                       ; +0x86, 0x1400ccfa6\njmp     short loc_1400CCFC0                                            ; +0x8e, 0x1400ccfae\nmovss   xmm2, cs:dword_140622AD0                                       ; +0x90, 0x1400ccfb0\nmovss   xmm1, cs:dword_140623400                                       ; +0x98, 0x1400ccfb8\ncall    cs:?limitLabelWidth@CCLabelBMFont@cocos2d@@QEAAXMMM@Z; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0xa0, 0x1400ccfc0\nmov     dl, 1                                                          ; +0xa6, 0x1400ccfc6\nlea     rcx, [rbx-140h]                                                ; +0xa8, 0x1400ccfc8\ncall    CustomSongWidget__showError                                    ; +0xaf, 0x1400ccfcf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb4, 0x1400ccfd4\nadd     rsp, 20h                                                       ; +0xb9, 0x1400ccfd9\npop     rdi                                                            ; +0xbd, 0x1400ccfdd\nretn                                                                   ; +0xbe, 0x1400ccfde", "xrefs": ["<???> @ 0x14054ec78", "<???> @ 0x1406c8394"], "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"}