{"type": "func", "start": 5135760, "end": 5135860, "name": "CustomSongWidget::downloadSongFinished", "pseudocode": "// \n// CustomSongWidget::downloadSongFinished from 0x4e5d90 to 0x4e5df4 (100 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x4e5e10\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:51:05 +0000\n// \n\nint __fastcall CustomSongWidget::downloadSongFinished(cocos2d::CCLabelBMFont **this, int *a2)\n{\n  int result; // r0\n  float v4; // r1\n  float v5; // r2\n\n  if ( *((_BYTE *)this + 377) )\n    return (int)CustomSongWidget::downloadAssetFinished((MusicDownloadManager *)this, a2, 1);\n  result = CustomSongWidget::verifySongID((CustomSongWidget *)this, (int)a2);\n  if ( result )\n  {\n    (*(void (__fastcall **)(_DWORD, void *))(*(_DWORD *)*(this + 73) + 536))(*(this + 73), &unk_BEC5F6);\n    (*(void (__fastcall **)(_DWORD, const char *))(*(_DWORD *)*(this + 73) + 464))(*(this + 73), \"Download complete.\");\n    if ( *((_BYTE *)this + 357) )\n    {\n      v4 = 140.0;\n      v5 = 0.35;\n    }\n    else\n    {\n      v4 = 230.0;\n      v5 = 0.4;\n    }\n    cocos2d::CCLabelBMFont::limitLabelWidth(*(this + 73), v4, v5, 0.0);\n    return CustomSongWidget::showError(this, 1);\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::downloadSongFinished from 0x4e5d90 to 0x4e5df4 (100 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x4e5e10\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:51:05 +0000\n; \nPUSH            {R4,LR}                                                ; +0x0, 0x4e5d90\nMOV             R4, R0                                                 ; +0x2, 0x4e5d92\nLDRB.W          R3, [R0,#0x179]                                        ; +0x4, 0x4e5d94\nCBZ             R3, loc_4E5DA4                                         ; +0x8, 0x4e5d98\nMOVS            R2, #1                                                 ; +0xa, 0x4e5d9a\nPOP.W           {R4,LR}                                                ; +0xc, 0x4e5d9c\nB.W             _ZN16CustomSongWidget21downloadAssetFinishedEi11GJAssetType; CustomSongWidget::downloadAssetFinished(int,GJAssetType) ; +0x10, 0x4e5da0\nBL              _ZN16CustomSongWidget12verifySongIDEi; CustomSongWidget::verifySongID(int) ; +0x14, 0x4e5da4\nCBZ             R0, locret_4E5DF2                                      ; +0x18, 0x4e5da8\nLDR.W           R0, [R4,#0x124]                                        ; +0x1a, 0x4e5daa\nLDR             R1, =(unk_BEC5F0 - 0x4E5DB6)                           ; +0x1e, 0x4e5dae\nLDR             R3, [R0]                                               ; +0x20, 0x4e5db0\nADD             R1, PC; unk_BEC5F0                                     ; +0x22, 0x4e5db2\nADDS            R1, #(unk_BEC5F6 - 0xBEC5F0)                           ; +0x24, 0x4e5db4\nLDR.W           R3, [R3,#0x218]                                        ; +0x26, 0x4e5db6\nBLX             R3                                                     ; +0x2a, 0x4e5dba\nLDR.W           R0, [R4,#0x124]                                        ; +0x2c, 0x4e5dbc\nLDR             R1, =(aDownloadComple - 0x4E5DC8); \"Download complete.\" ; +0x30, 0x4e5dc0\nLDR             R3, [R0]                                               ; +0x32, 0x4e5dc2\nADD             R1, PC; \"Download complete.\"                           ; +0x34, 0x4e5dc4\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x36, 0x4e5dc6\nBLX             R3                                                     ; +0x3a, 0x4e5dca\nLDRB.W          R3, [R4,#0x165]                                        ; +0x3c, 0x4e5dcc\nLDR.W           R0, [R4,#0x124]; this                                  ; +0x40, 0x4e5dd0\nCBZ             R3, loc_4E5DDC                                         ; +0x44, 0x4e5dd4\nLDR             R1, =0x430C0000                                        ; +0x46, 0x4e5dd6\nLDR             R2, =0x3EB33333                                        ; +0x48, 0x4e5dd8\nB               loc_4E5DE0                                             ; +0x4a, 0x4e5dda\nLDR             R1, flt_4E5DFC; float                                  ; +0x4c, 0x4e5ddc\nLDR             R2, flt_4E5E00; float                                  ; +0x4e, 0x4e5dde\nMOVS            R3, #0; float                                          ; +0x50, 0x4e5de0\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x52, 0x4e5de2\nMOV             R0, R4; this                                           ; +0x56, 0x4e5de6\nMOVS            R1, #1; bool                                           ; +0x58, 0x4e5de8\nPOP.W           {R4,LR}                                                ; +0x5a, 0x4e5dea\nB.W             _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0x5e, 0x4e5dee\nPOP             {R4,PC}                                                ; +0x62, 0x4e5df2", "xrefs": ["`non-virtual thunk to'CustomSongWidget::downloadSongFinished @ 0x4e5e10"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}