{"type": "func", "start": 7174840, "end": 7175076, "name": "FMODAudioEngine::fadeInMusic", "pseudocode": "// \n// FMODAudioEngine::fadeInMusic from 0x6d7ab8 to 0x6d7ba4 (236 bytes)\n// \n// 4 xrefs:\n// > FMODAudioEngine::playMusic @ 0x6d8f30\n// > PlayLayer::startMusic @ 0x710ef0\n// > GJPathPage::unlockAnimationStep3 @ 0xba8168\n// > <???> @ 0x7a728\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:31 +0000\n// \n\n__int64 __fastcall FMODAudioEngine::fadeInMusic(FMODAudioEngine *this, float a2, int a3)\n{\n  FMOD::Channel *ActiveMusicChannel; // x0\n  FMOD::ChannelControl *v6; // x19\n  unsigned __int64 v8; // [xsp+40h] [xbp+40h] BYREF\n\n  ActiveMusicChannel = (FMOD::Channel *)FMODAudioEngine::getActiveMusicChannel(this, a3);\n  v6 = ActiveMusicChannel;\n  if ( ActiveMusicChannel )\n  {\n    FMODAudioEngine::stopAndGetFade(this, ActiveMusicChannel);\n    *((_DWORD *)this + 134) = FMOD::ChannelControl::getDSPClock(v6, nullptr, &v8);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 134) = FMOD::ChannelControl::addFadePoint(v6, v8, 0.0);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 134) = FMOD::ChannelControl::addFadePoint(\n                                v6,\n                                (unsigned __int64)(float)((float)v8 + (float)((float)*((int *)this + 135) * a2)),\n                                1.0);\n    ERRCHECK_fn();\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; FMODAudioEngine::fadeInMusic from 0x6d7ab8 to 0x6d7ba4 (236 bytes)\n; \n; 4 xrefs:\n; > FMODAudioEngine::playMusic @ 0x6d8f30\n; > PlayLayer::startMusic @ 0x710ef0\n; > GJPathPage::unlockAnimationStep3 @ 0xba8168\n; > <???> @ 0x7a728\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:31 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6d7ab8\nMOV             X29, SP                                                ; +0x4, 0x6d7abc\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6d7ac0\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6d7ac4\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0x6d7ac8\nSTR             D8, [SP,#0x50+var_20]                                  ; +0x14, 0x6d7acc\nMOV             X21, X0                                                ; +0x18, 0x6d7ad0\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x6d7ad4\nFMOV            S8, S0                                                 ; +0x20, 0x6d7ad8\nLDR             X2, [X2]                                               ; +0x24, 0x6d7adc\nSTR             X2, [X29,#0x50+var_8]                                  ; +0x28, 0x6d7ae0\nBL              _ZN15FMODAudioEngine21getActiveMusicChannelEi; FMODAudioEngine::getActiveMusicChannel(int) ; +0x2c, 0x6d7ae4\nMOV             X19, X0                                                ; +0x30, 0x6d7ae8\nCBZ             X0, loc_6D7B78                                         ; +0x34, 0x6d7aec\nMOV             X1, X0; FMOD::Channel *                                ; +0x38, 0x6d7af0\nMOV             X0, X21; this                                          ; +0x3c, 0x6d7af4\nADRP            X22, #aUsersRobertDev@PAGE; \"/Users/robert/Developer/GeometryDash/co\"... ; +0x40, 0x6d7af8\nBL              _ZN15FMODAudioEngine14stopAndGetFadeEPN4FMOD7ChannelE; FMODAudioEngine::stopAndGetFade(FMOD::Channel *) ; +0x44, 0x6d7afc\nADD             X22, X22, #aUsersRobertDev@PAGEOFF; \"/Users/robert/Developer/GeometryDash/co\"... ; +0x48, 0x6d7b00\nMOV             X1, #0; unsigned __int64 *                             ; +0x4c, 0x6d7b04\nADD             X2, X29, #0x50+var_10; unsigned __int64 *              ; +0x50, 0x6d7b08\nMOV             X0, X19; this                                          ; +0x54, 0x6d7b0c\nBL              ._ZN4FMOD14ChannelControl11getDSPClockEPyS1_; FMOD::ChannelControl::getDSPClock(ulong long *,ulong long *) ; +0x58, 0x6d7b10\nSTR             W0, [X21,#0x218]                                       ; +0x5c, 0x6d7b14\nMOV             W2, #0xB65                                             ; +0x60, 0x6d7b18\nMOV             X1, X22                                                ; +0x64, 0x6d7b1c\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x68, 0x6d7b20\nFMOV            S0, WZR; float                                         ; +0x6c, 0x6d7b24\nLDR             X1, [X29,#0x50+var_10]; unsigned __int64               ; +0x70, 0x6d7b28\nMOV             X0, X19; this                                          ; +0x74, 0x6d7b2c\nBL              ._ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x78, 0x6d7b30\nSTR             W0, [X21,#0x218]                                       ; +0x7c, 0x6d7b34\nMOV             W2, #0xB69                                             ; +0x80, 0x6d7b38\nMOV             X1, X22                                                ; +0x84, 0x6d7b3c\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x88, 0x6d7b40\nLDR             W1, [X21,#0x21C]                                       ; +0x8c, 0x6d7b44\nMOV             X0, X19; this                                          ; +0x90, 0x6d7b48\nFMOV            S0, #1.0; float                                        ; +0x94, 0x6d7b4c\nSCVTF           S2, W1                                                 ; +0x98, 0x6d7b50\nLDR             X1, [X29,#0x50+var_10]                                 ; +0x9c, 0x6d7b54\nUCVTF           S1, X1                                                 ; +0xa0, 0x6d7b58\nFMADD           S1, S2, S8, S1                                         ; +0xa4, 0x6d7b5c\nFCVTZU          X1, S1; unsigned __int64                               ; +0xa8, 0x6d7b60\nBL              ._ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0xac, 0x6d7b64\nSTR             W0, [X21,#0x218]                                       ; +0xb0, 0x6d7b68\nMOV             X1, X22                                                ; +0xb4, 0x6d7b6c\nMOV             W2, #0xB6B                                             ; +0xb8, 0x6d7b70\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0xbc, 0x6d7b74\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0xc0, 0x6d7b78\nLDR             X1, [X29,#0x50+var_8]                                  ; +0xc4, 0x6d7b7c\nLDR             X0, [X20]                                              ; +0xc8, 0x6d7b80\nCMP             X1, X0                                                 ; +0xcc, 0x6d7b84\nB.NE            loc_6D7BA0                                             ; +0xd0, 0x6d7b88\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xd4, 0x6d7b8c\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xd8, 0x6d7b90\nLDR             D8, [SP,#0x50+var_20]                                  ; +0xdc, 0x6d7b94\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xe0, 0x6d7b98\nRET                                                                    ; +0xe4, 0x6d7b9c\nBL              .__stack_chk_fail                                      ; +0xe8, 0x6d7ba0", "xrefs": ["FMODAudioEngine::playMusic @ 0x6d8f30", "PlayLayer::startMusic @ 0x710ef0", "GJPathPage::unlockAnimationStep3 @ 0xba8168", "<???> @ 0x7a728"], "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"}