{"type": "func", "start": 5122276, "end": 5122438, "name": "CustomSongWidget::updateError", "pseudocode": "// \n// CustomSongWidget::updateError from 0x4e28e4 to 0x4e2986 (162 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::downloadSongFailed @ 0x4e5a34\n// > CustomSongWidget::loadSongInfoFailed @ 0x4e5f7e\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:02 +0000\n// \n\nint __fastcall CustomSongWidget::updateError(int a1, int a2)\n{\n  int *v3; // r0\n  int v4; // r3\n  void (__fastcall *v5)(int *, _DWORD *); // r3\n  float v6; // r1\n  float v7; // r2\n  _DWORD v9[2]; // [sp+0h] [bp-8h] BYREF\n\n  v9[0] = a1;\n  v9[1] = a2;\n  v3 = *(int **)(a1 + 292);\n  v4 = *v3;\n  LOWORD(v9[0]) = 13055;\n  v5 = *(void (__fastcall **)(int *, _DWORD *))(v4 + 536);\n  BYTE2(v9[0]) = 25;\n  v5(v3, v9);\n  (*(void (**)(void))(**(_DWORD **)(a1 + 292) + 464))();\n  if ( *(_BYTE *)(a1 + 357) )\n  {\n    v6 = 140.0;\n    v7 = 0.35;\n  }\n  else\n  {\n    v6 = 230.0;\n    v7 = 0.4;\n  }\n  cocos2d::CCLabelBMFont::limitLabelWidth(*(cocos2d::CCLabelBMFont **)(a1 + 292), v6, v7, 0.0);\n  return CustomSongWidget::showError((cocos2d::CCNode **)a1, 0);\n}", "assembly": "; \n; CustomSongWidget::updateError from 0x4e28e4 to 0x4e2986 (162 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::downloadSongFailed @ 0x4e5a34\n; > CustomSongWidget::loadSongInfoFailed @ 0x4e5f7e\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:02 +0000\n; \nPUSH            {R0,R1,R4-R6,LR}                                       ; +0x0, 0x4e28e4\nMOV             R5, R0                                                 ; +0x2, 0x4e28e6\nLDR             R4, =(__stack_chk_guard_ptr - 0x4E28F6)                ; +0x4, 0x4e28e8\nMOV             R6, R1                                                 ; +0x6, 0x4e28ea\nLDR.W           R0, [R0,#0x124]                                        ; +0x8, 0x4e28ec\nMOVS            R2, #0xFF                                              ; +0xc, 0x4e28f0\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x4e28f2\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x4e28f4\nMOV             R1, SP                                                 ; +0x12, 0x4e28f6\nLDR             R3, [R4]                                               ; +0x14, 0x4e28f8\nSTR             R3, [SP,#8+var_4]                                      ; +0x16, 0x4e28fa\nLDR             R3, [R0]                                               ; +0x18, 0x4e28fc\nSTRB.W          R2, [SP,#8+var_8]                                      ; +0x1a, 0x4e28fe\nMOVS            R2, #0x32 ; '2'                                        ; +0x1e, 0x4e2902\nSTRB.W          R2, [SP,#8+var_7]                                      ; +0x20, 0x4e2904\nMOVS            R2, #0x19                                              ; +0x24, 0x4e2908\nLDR.W           R3, [R3,#0x218]                                        ; +0x26, 0x4e290a\nSTRB.W          R2, [SP,#8+var_6]                                      ; +0x2a, 0x4e290e\nBLX             R3                                                     ; +0x2e, 0x4e2912\nCMP             R6, #2                                                 ; +0x30, 0x4e2914\nLDR.W           R0, [R5,#0x124]                                        ; +0x32, 0x4e2916\nBEQ             loc_4E2930                                             ; +0x36, 0x4e291a\nCMP             R6, #3                                                 ; +0x38, 0x4e291c\nBEQ             loc_4E293C                                             ; +0x3a, 0x4e291e\nCMP             R6, #1                                                 ; +0x3c, 0x4e2920\nBNE             loc_4E2948                                             ; +0x3e, 0x4e2922\nLDR             R3, [R0]                                               ; +0x40, 0x4e2924\nLDR             R1, =(aFailedToFetchS - 0x4E2930); \"Failed to fetch song info.\" ; +0x42, 0x4e2926\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x44, 0x4e2928\nADD             R1, PC; \"Failed to fetch song info.\"                   ; +0x48, 0x4e292c\nB               loc_4E2952                                             ; +0x4a, 0x4e292e\nLDR             R3, [R0]                                               ; +0x4c, 0x4e2930\nLDR             R1, =(aSongIsNotAllow - 0x4E293C); \"Song is not allowed for use.\" ; +0x4e, 0x4e2932\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x50, 0x4e2934\nADD             R1, PC; \"Song is not allowed for use.\"                 ; +0x54, 0x4e2938\nB               loc_4E2952                                             ; +0x56, 0x4e293a\nLDR             R3, [R0]                                               ; +0x58, 0x4e293c\nLDR             R1, =(aDownloadCancel - 0x4E2948); \"Download canceled.\" ; +0x5a, 0x4e293e\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x5c, 0x4e2940\nADD             R1, PC; \"Download canceled.\"                           ; +0x60, 0x4e2944\nB               loc_4E2952                                             ; +0x62, 0x4e2946\nLDR             R3, [R0]                                               ; +0x64, 0x4e2948\nLDR             R1, =(aDownloadFailed - 0x4E2954); \"Download failed. Please try later.\" ; +0x66, 0x4e294a\nLDR.W           R3, [R3,#0x1D0]                                        ; +0x68, 0x4e294c\nADD             R1, PC; \"Download failed. Please try later.\"           ; +0x6c, 0x4e2950\nBLX             R3                                                     ; +0x6e, 0x4e2952\nLDRB.W          R3, [R5,#0x165]                                        ; +0x70, 0x4e2954\nLDR.W           R0, [R5,#0x124]; this                                  ; +0x74, 0x4e2958\nCBZ             R3, loc_4E2964                                         ; +0x78, 0x4e295c\nLDR             R1, =0x430C0000                                        ; +0x7a, 0x4e295e\nLDR             R2, =0x3EB33333                                        ; +0x7c, 0x4e2960\nB               loc_4E2968                                             ; +0x7e, 0x4e2962\nLDR             R1, flt_4E2990; float                                  ; +0x80, 0x4e2964\nLDR             R2, flt_4E2994; float                                  ; +0x82, 0x4e2966\nMOVS            R3, #0; float                                          ; +0x84, 0x4e2968\nBL              _ZN7cocos2d13CCLabelBMFont15limitLabelWidthEfff; cocos2d::CCLabelBMFont::limitLabelWidth(float,float,float) ; +0x86, 0x4e296a\nMOV             R0, R5; this                                           ; +0x8a, 0x4e296e\nMOVS            R1, #0; bool                                           ; +0x8c, 0x4e2970\nBL              _ZN16CustomSongWidget9showErrorEb; CustomSongWidget::showError(bool) ; +0x8e, 0x4e2972\nLDR             R2, [SP,#8+var_4]                                      ; +0x92, 0x4e2976\nLDR             R3, [R4]                                               ; +0x94, 0x4e2978\nCMP             R2, R3                                                 ; +0x96, 0x4e297a\nBEQ             loc_4E2982                                             ; +0x98, 0x4e297c\nBLX             __stack_chk_fail                                       ; +0x9a, 0x4e297e\nADD             SP, SP, #8                                             ; +0x9e, 0x4e2982\nPOP             {R4-R6,PC}                                             ; +0xa0, 0x4e2984", "xrefs": ["CustomSongWidget::downloadSongFailed @ 0x4e5a34", "CustomSongWidget::loadSongInfoFailed @ 0x4e5f7e"], "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"}