{"type": "func", "start": 5121212, "end": 5121394, "name": "CustomSongWidget::updateUsageButton", "pseudocode": "// \n// CustomSongWidget::updateUsageButton from 0x4e24bc to 0x4e2572 (182 bytes)\n// \n// 2 xrefs:\n// > CustomSongWidget::updateSongInfo @ 0x4e3402\n// > CustomSongWidget::updateMultiAssetInfo @ 0x4e5228\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::updateUsageButton(CustomSongWidget *this)\n{\n  int result; // r0\n  int v3; // r4\n  int v4; // r0\n  int v5; // r7\n  int (__fastcall *v6)(int, _BYTE *); // r8\n  float v7; // r1\n  int v8; // r9\n  float v9; // [sp+0h] [bp-24h]\n  _BYTE v10[8]; // [sp+Ch] [bp-18h] BYREF\n  _BYTE v11[8]; // [sp+14h] [bp-10h] BYREF\n\n  result = *((_DWORD *)this + 95);\n  if ( result )\n  {\n    v3 = *((unsigned __int8 *)this + 384);\n    if ( *((_BYTE *)this + 384) )\n    {\n      v3 = *((_DWORD *)this + 68);\n      if ( v3 )\n      {\n        if ( *((_BYTE *)this + 356) )\n          v3 = 0;\n        else\n          v3 = *(_DWORD *)(v3 + 264) > 0;\n      }\n    }\n    result = (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 172))(result, v3);\n    if ( v3 )\n    {\n      v4 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 81) + 176))(*((_DWORD *)this + 81));\n      v5 = *((_DWORD *)this + 95);\n      v6 = *(int (__fastcall **)(int, _BYTE *))(*(_DWORD *)v5 + 92);\n      if ( v4 )\n        v7 = -21.0;\n      else\n        v7 = 0.0;\n      v9 = v7;\n      v8 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 81) + 96))(*((_DWORD *)this + 81));\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v9, 0.0);\n      cocos2d::CCPoint::operator+(v10, v8, v11);\n      return v6(v5, v10);\n    }\n  }\n  return result;\n}", "assembly": "; \n; CustomSongWidget::updateUsageButton from 0x4e24bc to 0x4e2572 (182 bytes)\n; \n; 2 xrefs:\n; > CustomSongWidget::updateSongInfo @ 0x4e3402\n; > CustomSongWidget::updateMultiAssetInfo @ 0x4e5228\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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x4E24C6)                ; +0x0, 0x4e24bc\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x4e24be\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4e24c2\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4e24c4\nMOV             R5, R0                                                 ; +0xa, 0x4e24c6\nLDR.W           R0, [R0,#0x17C]                                        ; +0xc, 0x4e24c8\nLDR             R2, [R3]                                               ; +0x10, 0x4e24cc\nSUB             SP, SP, #0x24                                          ; +0x12, 0x4e24ce\nMOV             R6, R3                                                 ; +0x14, 0x4e24d0\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x16, 0x4e24d2\nCMP             R0, #0                                                 ; +0x18, 0x4e24d4\nBEQ             loc_4E2560                                             ; +0x1a, 0x4e24d6\nLDRB.W          R4, [R5,#0x180]                                        ; +0x1c, 0x4e24d8\nCBZ             R4, loc_4E24FA                                         ; +0x20, 0x4e24dc\nLDR.W           R4, [R5,#0x110]                                        ; +0x22, 0x4e24de\nCBZ             R4, loc_4E24FA                                         ; +0x26, 0x4e24e2\nLDRB.W          R3, [R5,#0x164]                                        ; +0x28, 0x4e24e4\nCBNZ            R3, loc_4E24F8                                         ; +0x2c, 0x4e24e8\nLDR.W           R4, [R4,#0x108]                                        ; +0x2e, 0x4e24ea\nCMP             R4, #0                                                 ; +0x32, 0x4e24ee\nITE LE                                                                 ; +0x34, 0x4e24f0\nMOVLE           R4, #0                                                 ; +0x36, 0x4e24f2\nMOVGT           R4, #1                                                 ; +0x38, 0x4e24f4\nB               loc_4E24FA                                             ; +0x3a, 0x4e24f6\nMOVS            R4, #0                                                 ; +0x3c, 0x4e24f8\nLDR             R3, [R0]                                               ; +0x3e, 0x4e24fa\nMOV             R1, R4                                                 ; +0x40, 0x4e24fc\nLDR.W           R3, [R3,#0xAC]                                         ; +0x42, 0x4e24fe\nBLX             R3                                                     ; +0x46, 0x4e2502\nCBZ             R4, loc_4E2560                                         ; +0x48, 0x4e2504\nLDR.W           R0, [R5,#0x144]                                        ; +0x4a, 0x4e2506\nADD             R4, SP, #0x24+var_18                                   ; +0x4e, 0x4e250a\nLDR             R3, [R0]                                               ; +0x50, 0x4e250c\nLDR.W           R3, [R3,#0xB0]                                         ; +0x52, 0x4e250e\nBLX             R3                                                     ; +0x56, 0x4e2512\nVMOV.F32        S15, #-21.0                                            ; +0x58, 0x4e2514\nMOVS            R2, #0                                                 ; +0x5c, 0x4e2518\nLDR.W           R7, [R5,#0x17C]                                        ; +0x5e, 0x4e251a\nVMOV            S14, R2                                                ; +0x62, 0x4e251e\nSTR             R2, [SP,#0x24+var_20]                                  ; +0x66, 0x4e2522\nLDR             R3, [R7]                                               ; +0x68, 0x4e2524\nLDR.W           R8, [R3,#0x5C]                                         ; +0x6a, 0x4e2526\nCMP             R0, #0                                                 ; +0x6e, 0x4e252a\nLDR.W           R0, [R5,#0x144]                                        ; +0x70, 0x4e252c\nADD             R5, SP, #0x24+var_10                                   ; +0x74, 0x4e2530\nITE EQ                                                                 ; +0x76, 0x4e2532\nVMOVEQ          R1, S14                                                ; +0x78, 0x4e2534\nVMOVNE          R1, S15                                                ; +0x7c, 0x4e2538\nLDR             R3, [R0]                                               ; +0x80, 0x4e253c\nLDR             R3, [R3,#0x60]                                         ; +0x82, 0x4e253e\nSTR             R1, [SP,#0x24+var_24]                                  ; +0x84, 0x4e2540\nBLX             R3                                                     ; +0x86, 0x4e2542\nLDMFD.W         SP, {R1,R2}; float                                     ; +0x88, 0x4e2544\nMOV             R9, R0                                                 ; +0x8c, 0x4e2548\nMOV             R0, R5; this                                           ; +0x8e, 0x4e254a\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x90, 0x4e254c\nMOV             R0, R4                                                 ; +0x94, 0x4e2550\nMOV             R1, R9                                                 ; +0x96, 0x4e2552\nMOV             R2, R5                                                 ; +0x98, 0x4e2554\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x9a, 0x4e2556\nMOV             R0, R7                                                 ; +0x9e, 0x4e255a\nMOV             R1, R4                                                 ; +0xa0, 0x4e255c\nBLX             R8                                                     ; +0xa2, 0x4e255e\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xa4, 0x4e2560\nLDR             R3, [R6]                                               ; +0xa6, 0x4e2562\nCMP             R2, R3                                                 ; +0xa8, 0x4e2564\nBEQ             loc_4E256C                                             ; +0xaa, 0x4e2566\nBLX             __stack_chk_fail                                       ; +0xac, 0x4e2568\nADD             SP, SP, #0x24 ; '$'                                    ; +0xb0, 0x4e256c\nPOP.W           {R4-R9,PC}                                             ; +0xb2, 0x4e256e", "xrefs": ["CustomSongWidget::updateSongInfo @ 0x4e3402", "CustomSongWidget::updateMultiAssetInfo @ 0x4e5228"], "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"}