{"type": "func", "start": 746896, "end": 747050, "name": "FMOD::Sound::getMusicSpeed", "pseudocode": "// \n// FMOD::Sound::getMusicSpeed from 0xb6590 to 0xb662a (154 bytes)\n// \n// 1 xrefs:\n// > FMOD::Sound::getMusicSpeed @ 0xe0708\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:41:43 +0000\n// \n\nint __fastcall FMOD::Sound::getMusicSpeed(FMOD::Sound *this, float *a2)\n{\n  int v4; // r6\n  int v5; // r0\n  int v6; // r0\n  int v7; // r0\n  _BYTE v9[256]; // [sp+8h] [bp-118h] BYREF\n  int v10; // [sp+108h] [bp-18h] BYREF\n  _DWORD *v11; // [sp+10Ch] [bp-14h] BYREF\n\n  v10 = 0;\n  v4 = sub_54E84((int)this, &v11, (int)&v10);\n  if ( !v4 )\n  {\n    v5 = v11[47];\n    __dmb(0xBu);\n    if ( !v5 || (v6 = v11[47], __dmb(0xBu), v6 == 7) || (v7 = v11[47], __dmb(0xBu), v7 == 5) )\n    {\n      v4 = (*(int (__fastcall **)(_DWORD *, float *))(*v11 + 180))(v11, a2);\n      if ( !v4 )\n      {\n        v4 = 0;\n        goto LABEL_10;\n      }\n    }\n    else\n    {\n      v4 = 46;\n    }\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_5CAA4((int)v9, 256, a2);\n    sub_BAB40(v4, 5, this, \"Sound::getMusicSpeed\", v9);\n  }\nLABEL_10:\n  sub_6429C(&v10);\n  return v4;\n}", "assembly": "; \n; FMOD::Sound::getMusicSpeed from 0xb6590 to 0xb662a (154 bytes)\n; \n; 1 xrefs:\n; > FMOD::Sound::getMusicSpeed @ 0xe0708\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:41:43 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xb6590\nADD             R7, SP, #0xC                                           ; +0x2, 0xb6592\nPUSH.W          {R8}                                                   ; +0x4, 0xb6594\nSUB             SP, SP, #0x110                                         ; +0x8, 0xb6598\nMOV             R8, R1                                                 ; +0xa, 0xb659a\nMOV             R4, R0                                                 ; +0xc, 0xb659c\nMOVS            R0, #0                                                 ; +0xe, 0xb659e\nADD             R1, SP, #0x110+var_4                                   ; +0x10, 0xb65a0\nADD             R2, SP, #0x110+var_8                                   ; +0x12, 0xb65a2\nSTR             R0, [SP,#0x110+var_8]                                  ; +0x14, 0xb65a4\nMOV             R0, R4                                                 ; +0x16, 0xb65a6\nBL              sub_54E84                                              ; +0x18, 0xb65a8\nMOV             R6, R0                                                 ; +0x1c, 0xb65ac\nCBNZ            R0, loc_B65EE                                          ; +0x1e, 0xb65ae\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x20, 0xb65b0\nLDR.W           R0, [R0,#0xBC]                                         ; +0x22, 0xb65b2\nDMB.W           ISH                                                    ; +0x26, 0xb65b6\nCBZ             R0, loc_B65D8                                          ; +0x2a, 0xb65ba\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x2c, 0xb65bc\nLDR.W           R0, [R0,#0xBC]                                         ; +0x2e, 0xb65be\nDMB.W           ISH                                                    ; +0x32, 0xb65c2\nCMP             R0, #7                                                 ; +0x36, 0xb65c6\nBEQ             loc_B65D8                                              ; +0x38, 0xb65c8\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x3a, 0xb65ca\nLDR.W           R0, [R0,#0xBC]                                         ; +0x3c, 0xb65cc\nDMB.W           ISH                                                    ; +0x40, 0xb65d0\nCMP             R0, #5                                                 ; +0x44, 0xb65d4\nBNE             loc_B65EC                                              ; +0x46, 0xb65d6\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x48, 0xb65d8\nLDR             R1, [R0]                                               ; +0x4a, 0xb65da\nLDR.W           R2, [R1,#0xB4]                                         ; +0x4c, 0xb65dc\nMOV             R1, R8                                                 ; +0x50, 0xb65e0\nBLX             R2                                                     ; +0x52, 0xb65e2\nMOV             R6, R0                                                 ; +0x54, 0xb65e4\nCBNZ            R0, loc_B65EE                                          ; +0x56, 0xb65e6\nMOVS            R6, #0                                                 ; +0x58, 0xb65e8\nB               loc_B661A                                              ; +0x5a, 0xb65ea\nMOVS            R6, #0x2E ; '.'                                        ; +0x5c, 0xb65ec\nLDR             R0, =(off_E6144 - 0xB65F4)                             ; +0x5e, 0xb65ee\nADD             R0, PC; off_E6144                                      ; +0x60, 0xb65f0\nLDR             R0, [R0]; off_E8000                                    ; +0x62, 0xb65f2\nLDR             R0, [R0]; dword_F2488                                  ; +0x64, 0xb65f4\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x66, 0xb65f6\nLSLS            R0, R0, #0x18                                          ; +0x68, 0xb65f8\nBPL             loc_B661A                                              ; +0x6a, 0xb65fa\nADD             R5, SP, #0x110+var_108                                 ; +0x6c, 0xb65fc\nMOV.W           R1, #0x100                                             ; +0x6e, 0xb65fe\nMOV             R2, R8                                                 ; +0x72, 0xb6602\nMOV             R0, R5                                                 ; +0x74, 0xb6604\nBL              sub_5CAA4                                              ; +0x76, 0xb6606\nSTR             R5, [SP,#0x110+var_110]                                ; +0x7a, 0xb660a\nMOV             R0, R6                                                 ; +0x7c, 0xb660c\nLDR             R3, =(aSoundGetmusics - 0xB6618); \"Sound::getMusicSpeed\" ... ; +0x7e, 0xb660e\nMOVS            R1, #5                                                 ; +0x80, 0xb6610\nMOV             R2, R4                                                 ; +0x82, 0xb6612\nADD             R3, PC; \"Sound::getMusicSpeed\"                         ; +0x84, 0xb6614\nBL              sub_BAB40                                              ; +0x86, 0xb6616\nADD             R0, SP, #0x110+var_8                                   ; +0x8a, 0xb661a\nBL              sub_6429C                                              ; +0x8c, 0xb661c\nMOV             R0, R6                                                 ; +0x90, 0xb6620\nADD             SP, SP, #0x110                                         ; +0x92, 0xb6622\nPOP.W           {R8}                                                   ; +0x94, 0xb6624\nPOP             {R4-R7,PC}                                             ; +0x98, 0xb6628", "xrefs": ["FMOD::Sound::getMusicSpeed @ 0xe0708"], "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"}