{"type": "func", "start": 7122424, "end": 7122628, "name": "FMODAudioEngine::updateBackgroundFade", "pseudocode": "// \n// FMODAudioEngine::updateBackgroundFade from 0x6cadf8 to 0x6caec4 (204 bytes)\n// \n// 2 xrefs:\n// > sub_6DC4D0 @ 0x6dc550\n// > <???> @ 0xabcb8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:23 +0000\n// \n\n__int64 __fastcall FMODAudioEngine::updateBackgroundFade(__int64 this)\n{\n  float v1; // s1\n  float v2; // s8\n  float v3; // s0\n  float v4; // s8\n  bool v5; // cc\n  float v6; // s0\n  __int64 v7; // x19\n\n  v1 = *(float *)(this + 452);\n  if ( v1 != 0.0 )\n  {\n    v2 = *(float *)(this + 588);\n    if ( v1 < 0.0 )\n    {\n      v3 = *(float *)(this + 448);\n      v5 = v3 <= 0.0;\n      *(float *)(this + 452) = v2;\n      v4 = v2 - v2;\n      if ( v3 > 0.0 )\n      {\nLABEL_4:\n        v6 = v4 / v3;\n        if ( v6 < 1.0 )\n        {\n          if ( v6 <= 0.0 )\n            v6 = 0.0;\n          goto LABEL_7;\n        }\n        goto LABEL_12;\n      }\n    }\n    else\n    {\n      v3 = *(float *)(this + 448);\n      v4 = v2 - v1;\n      v5 = v3 <= 0.0;\n      if ( v3 > 0.0 )\n        goto LABEL_4;\n    }\n    if ( v5 )\n    {\n      v6 = 1.0;\nLABEL_7:\n      v7 = this;\n      this = FMOD::ChannelControl::setVolume(*(FMOD::ChannelControl **)(this + 480), v6 * *(float *)(this + 440));\n      if ( v4 >= *(float *)(v7 + 448) )\n        *(_DWORD *)(v7 + 452) = 0;\n      return this;\n    }\n    v6 = v4 / v3;\nLABEL_12:\n    if ( v6 >= 1.0 )\n      v6 = 1.0;\n    goto LABEL_7;\n  }\n  return this;\n}", "assembly": "; \n; FMODAudioEngine::updateBackgroundFade from 0x6cadf8 to 0x6caec4 (204 bytes)\n; \n; 2 xrefs:\n; > sub_6DC4D0 @ 0x6dc550\n; > <???> @ 0xabcb8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:51:23 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x6cadf8\nMOV             X29, SP                                                ; +0x4, 0x6cadfc\nSTR             X19, [SP,#var_s10]                                     ; +0x8, 0x6cae00\nSTR             D8, [SP,#var_s18]                                      ; +0xc, 0x6cae04\nLDR             S1, [X0,#0x1C4]                                        ; +0x10, 0x6cae08\nFCMP            S1, #0.0                                               ; +0x14, 0x6cae0c\nB.EQ            loc_6CAE74                                             ; +0x18, 0x6cae10\nFCMPE           S1, #0.0                                               ; +0x1c, 0x6cae14\nLDR             S8, [X0,#0x24C]                                        ; +0x20, 0x6cae18\nB.MI            loc_6CAEA0                                             ; +0x24, 0x6cae1c\nLDR             S0, [X0,#0x1C0]                                        ; +0x28, 0x6cae20\nFSUB            S8, S8, S1                                             ; +0x2c, 0x6cae24\nFCMPE           S0, #0.0                                               ; +0x30, 0x6cae28\nB.LE            loc_6CAE84                                             ; +0x34, 0x6cae2c\nFDIV            S0, S8, S0                                             ; +0x38, 0x6cae30\nFMOV            S1, #1.0                                               ; +0x3c, 0x6cae34\nFCMPE           S0, S1                                                 ; +0x40, 0x6cae38\nB.PL            loc_6CAE8C                                             ; +0x44, 0x6cae3c\nFCMPE           S0, #0.0                                               ; +0x48, 0x6cae40\nB.GT            loc_6CAE4C                                             ; +0x4c, 0x6cae44\nFMOV            S0, WZR                                                ; +0x50, 0x6cae48\nLDR             S1, [X0,#0x1B8]                                        ; +0x54, 0x6cae4c\nMOV             X19, X0                                                ; +0x58, 0x6cae50\nLDR             X0, [X0,#0x1E0]; this                                  ; +0x5c, 0x6cae54\nFMUL            S0, S0, S1; float                                      ; +0x60, 0x6cae58\nBL              ._ZN4FMOD14ChannelControl9setVolumeEf; FMOD::ChannelControl::setVolume(float) ; +0x64, 0x6cae5c\nLDR             S0, [X19,#0x1C0]                                       ; +0x68, 0x6cae60\nFCMPE           S8, S0                                                 ; +0x6c, 0x6cae64\nB.LT            loc_6CAE74                                             ; +0x70, 0x6cae68\nFMOV            S0, WZR                                                ; +0x74, 0x6cae6c\nSTR             S0, [X19,#0x1C4]                                       ; +0x78, 0x6cae70\nLDR             X19, [SP,#var_s10]                                     ; +0x7c, 0x6cae74\nLDR             D8, [SP,#var_s18]                                      ; +0x80, 0x6cae78\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x84, 0x6cae7c\nRET                                                                    ; +0x88, 0x6cae80\nB.LE            loc_6CAEBC                                             ; +0x8c, 0x6cae84\nFDIV            S0, S8, S0                                             ; +0x90, 0x6cae88\nFMOV            S1, #1.0                                               ; +0x94, 0x6cae8c\nFCMPE           S0, S1                                                 ; +0x98, 0x6cae90\nB.MI            loc_6CAE4C                                             ; +0x9c, 0x6cae94\nFMOV            S0, S1                                                 ; +0xa0, 0x6cae98\nB               loc_6CAE4C                                             ; +0xa4, 0x6cae9c\nLDR             S0, [X0,#0x1C0]                                        ; +0xa8, 0x6caea0\nFMOV            S1, S8                                                 ; +0xac, 0x6caea4\nFCMPE           S0, #0.0                                               ; +0xb0, 0x6caea8\nSTR             S8, [X0,#0x1C4]                                        ; +0xb4, 0x6caeac\nFSUB            S8, S8, S1                                             ; +0xb8, 0x6caeb0\nB.GT            loc_6CAE30                                             ; +0xbc, 0x6caeb4\nB               loc_6CAE84                                             ; +0xc0, 0x6caeb8\nFMOV            S0, #1.0                                               ; +0xc4, 0x6caebc\nB               loc_6CAE4C                                             ; +0xc8, 0x6caec0", "xrefs": ["sub_6DC4D0 @ 0x6dc550", "<???> @ 0xabcb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}