{"type": "func", "start": 4065376, "end": 4065476, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x3e0860 to 0x3e08c4 (100 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x3e08e0\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 v3; // r1\n  float v4; // r2\n\n  if ( a1->m_hasSFX )\n  {\n    CustomSongWidget::downloadAssetFinished(a1, a2, (GJAssetType)1);\n  }\n  else if ( CustomSongWidget::verifySongID(a1, a2) )\n  {\n    a1->m_errorLabel->setColor(a1->m_errorLabel, (const cocos2d::ccColor3B *)&unk_9AAD36);\n    a1->m_errorLabel->setString(a1->m_errorLabel, \"Download complete.\");\n    if ( a1->m_isMusicLibrary )\n    {\n      v3 = 140.0;\n      v4 = 0.35;\n    }\n    else\n    {\n      v3 = 230.0;\n      v4 = 0.4;\n    }\n    cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_errorLabel, v3, v4, 0.0);\n    CustomSongWidget::showError(a1, 1);\n  }\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x3e0860 to 0x3e08c4 (100 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x3e08e0\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\nLDRB.W          R3, [R0,#0x175]                                        ; +0x0, 0x3e0860\nPUSH            {R4,LR}                                                ; +0x4, 0x3e0864\nMOV             R4, R0                                                 ; +0x6, 0x3e0866\nCBZ             R3, loc_3E0874                                         ; +0x8, 0x3e0868\nMOVS            R2, #1                                                 ; +0xa, 0x3e086a\nPOP.W           {R4,LR}                                                ; +0xc, 0x3e086c\nB.W             _ZN16CustomSongWidget21downloadAssetFinishedEi11GJAssetType; CustomSongWidget::downloadAssetFinished(int,GJAssetType) ; +0x10, 0x3e0870\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x14, 0x3e0874\nCBZ             R0, locret_3E08C2                                      ; +0x18, 0x3e0878\nLDR.W           R0, [R4,#0x124]                                        ; +0x1a, 0x3e087a\nLDR             R1, =(unk_9AAD30 - 0x3E0886)                           ; +0x1e, 0x3e087e\nLDR             R3, [R0]                                               ; +0x20, 0x3e0880\nADD             R1, PC; unk_9AAD30                                     ; +0x22, 0x3e0882\nADDS            R1, #(unk_9AAD36 - 0x9AAD30)                           ; +0x24, 0x3e0884\nLDR.W           R3, [R3,#0x210]                                        ; +0x26, 0x3e0886\nBLX             R3                                                     ; +0x2a, 0x3e088a\nLDR.W           R0, [R4,#0x124]                                        ; +0x2c, 0x3e088c\nLDR             R1, =(aDownloadComple - 0x3E0898); \"Download complete.\" ; +0x30, 0x3e0890\nLDR             R3, [R0]                                               ; +0x32, 0x3e0892\nADD             R1, PC; \"Download complete.\"                           ; +0x34, 0x3e0894\nLDR.W           R3, [R3,#0x1C8]                                        ; +0x36, 0x3e0896\nBLX             R3                                                     ; +0x3a, 0x3e089a\nLDRB.W          R3, [R4,#0x161]                                        ; +0x3c, 0x3e089c\nLDR.W           R0, [R4,#0x124]; this                                  ; +0x40, 0x3e08a0\nCBZ             R3, loc_3E08AC                                         ; +0x44, 0x3e08a4\nLDR             R1, =0x430C0000                                        ; +0x46, 0x3e08a6\nLDR             R2, =0x3EB33333                                        ; +0x48, 0x3e08a8\nB               loc_3E08B0                                             ; +0x4a, 0x3e08aa\nLDR             R1, flt_3E08CC; float                                  ; +0x4c, 0x3e08ac\nLDR             R2, flt_3E08D0; float                                  ; +0x4e, 0x3e08ae\nMOVS            R3, #0; float                                          ; +0x50, 0x3e08b0\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x52, 0x3e08b2\nMOV             R0, R4; this                                           ; +0x56, 0x3e08b6\nMOVS            R1, #1; bool                                           ; +0x58, 0x3e08b8\nPOP.W           {R4,LR}                                                ; +0x5a, 0x3e08ba\nB.W             _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0x5e, 0x3e08be\nPOP             {R4,PC}                                                ; +0x62, 0x3e08c2", "xrefs": ["`non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x3e08e0"], "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"}