{"type": "func", "start": 4126160, "end": 4126346, "name": "FMODAudioEngine::fadeOutMusic", "pseudocode": "// \n// FMODAudioEngine::fadeOutMusic from 0x3ef5d0 to 0x3ef68a (186 bytes)\n// \n// 3 xrefs:\n// > PlayLayer::showCompleteEffect @ 0x40360a\n// > LevelAreaInnerLayer::onDoor @ 0x6a4448\n// > GJPathPage::playUnlockAnimation @ 0x6d2652\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:47:12 +0000\n// \n\nvoid __fastcall FMODAudioEngine::fadeOutMusic(FMODAudioEngine *this, float a2, unsigned int a3)\n{\n  FMOD::Channel *ActiveMusicChannel; // r0\n  FMOD::ChannelControl *v6; // r6\n  float Fade; // r8\n  unsigned __int64 v8; // [sp+8h] [bp-10h] BYREF\n\n  ActiveMusicChannel = (FMOD::Channel *)FMODAudioEngine::getActiveMusicChannel(this, a3);\n  v6 = ActiveMusicChannel;\n  if ( ActiveMusicChannel )\n  {\n    Fade = FMODAudioEngine::stopAndGetFade(this, ActiveMusicChannel);\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::getDSPClock(v6, nullptr, &v8);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(v6, v8, Fade);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(\n                               v6,\n                               (unsigned __int64)(float)((float)v8 + (float)((float)*((int *)this + 98) * a2)),\n                               0.0);\n    ERRCHECK_fn();\n  }\n}", "assembly": "; \n; FMODAudioEngine::fadeOutMusic from 0x3ef5d0 to 0x3ef68a (186 bytes)\n; \n; 3 xrefs:\n; > PlayLayer::showCompleteEffect @ 0x40360a\n; > LevelAreaInnerLayer::onDoor @ 0x6a4448\n; > GJPathPage::playUnlockAnimation @ 0x6d2652\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:47:12 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x3ef5d0\nMOV             R5, R0                                                 ; +0x4, 0x3ef5d4\nVPUSH           {D8}                                                   ; +0x6, 0x3ef5d6\nLDR             R4, =(__stack_chk_guard_ptr - 0x3EF5E0)                ; +0xa, 0x3ef5da\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xc, 0x3ef5dc\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xe, 0x3ef5de\nVMOV            S16, R1                                                ; +0x10, 0x3ef5e0\nSUB             SP, SP, #0x18                                          ; +0x14, 0x3ef5e4\nMOV             R1, R2; int                                            ; +0x16, 0x3ef5e6\nLDR             R3, [R4]                                               ; +0x18, 0x3ef5e8\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1a, 0x3ef5ea\nBL              _ZN15FMODAudioEngine21getActiveMusicChannelEi; FMODAudioEngine::getActiveMusicChannel(int) ; +0x1c, 0x3ef5ec\nMOV             R6, R0                                                 ; +0x20, 0x3ef5f0\nCMP             R0, #0                                                 ; +0x22, 0x3ef5f2\nBEQ             loc_3EF674                                             ; +0x24, 0x3ef5f4\nMOV             R1, R6; FMOD::Channel *                                ; +0x26, 0x3ef5f6\nMOV             R0, R5; this                                           ; +0x28, 0x3ef5f8\nBL              _ZN15FMODAudioEngine14stopAndGetFadeEPN4FMOD7ChannelE; FMODAudioEngine::stopAndGetFade(FMOD::Channel *) ; +0x2a, 0x3ef5fa\nMOVS            R1, #0; unsigned __int64 *                             ; +0x2e, 0x3ef5fe\nADD             R2, SP, #0x18+var_10; unsigned __int64 *               ; +0x30, 0x3ef600\nLDR             R7, =(aUsersRobertDev - 0x3EF608); \"/Users/robert/Developer/GeometryDash/co\"... ; +0x32, 0x3ef602\nADD             R7, PC; \"/Users/robert/Developer/GeometryDash/co\"...   ; +0x34, 0x3ef604\nMOV             R8, R0                                                 ; +0x36, 0x3ef606\nMOV             R0, R6; this                                           ; +0x38, 0x3ef608\nBLX             _ZN4FMOD14ChannelControl11getDSPClockEPyS1_; FMOD::ChannelControl::getDSPClock(ulong long *,ulong long *) ; +0x3a, 0x3ef60a\nMOV             R1, R7                                                 ; +0x3e, 0x3ef60e\nMOVW            R2, #0xB78                                             ; +0x40, 0x3ef610\nSTR.W           R0, [R5,#0x184]                                        ; +0x44, 0x3ef614\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x48, 0x3ef618\nLDRD.W          R2, R3, [SP,#0x18+var_10]; unsigned __int64            ; +0x4c, 0x3ef61c\nSTR.W           R8, [SP,#0x18+var_18]; float                           ; +0x50, 0x3ef620\nMOV             R0, R6; this                                           ; +0x54, 0x3ef624\nBLX             _ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x56, 0x3ef626\nMOVW            R2, #0xB7C                                             ; +0x5a, 0x3ef62a\nMOV             R1, R7                                                 ; +0x5e, 0x3ef62e\nSTR.W           R0, [R5,#0x184]                                        ; +0x60, 0x3ef630\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x64, 0x3ef634\nLDRD.W          R0, R1, [SP,#0x18+var_10]                              ; +0x68, 0x3ef638\nBLX             __aeabi_ul2f                                           ; +0x6c, 0x3ef63c\nVLDR            S15, [R5,#0x188]                                       ; +0x70, 0x3ef640\nVCVT.F32.S32    S15, S15                                               ; +0x74, 0x3ef644\nVMOV            S14, R0                                                ; +0x78, 0x3ef648\nVMLA.F32        S14, S15, S16                                          ; +0x7c, 0x3ef64c\nVMOV            R0, S14                                                ; +0x80, 0x3ef650\nBLX             __aeabi_f2ulz                                          ; +0x84, 0x3ef654\nMOV             R2, R0; unsigned __int64                               ; +0x88, 0x3ef658\nMOV             R3, R1                                                 ; +0x8a, 0x3ef65a\nMOV             R0, R6; this                                           ; +0x8c, 0x3ef65c\nMOVS            R1, #0                                                 ; +0x8e, 0x3ef65e\nSTR             R1, [SP,#0x18+var_18]; float                           ; +0x90, 0x3ef660\nBLX             _ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x92, 0x3ef662\nMOV             R1, R7                                                 ; +0x96, 0x3ef666\nMOVW            R2, #0xB7E                                             ; +0x98, 0x3ef668\nSTR.W           R0, [R5,#0x184]                                        ; +0x9c, 0x3ef66c\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0xa0, 0x3ef670\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa4, 0x3ef674\nLDR             R3, [R4]                                               ; +0xa6, 0x3ef676\nCMP             R2, R3                                                 ; +0xa8, 0x3ef678\nBEQ             loc_3EF680                                             ; +0xaa, 0x3ef67a\nBLX             __stack_chk_fail                                       ; +0xac, 0x3ef67c\nADD             SP, SP, #0x18                                          ; +0xb0, 0x3ef680\nVPOP            {D8}                                                   ; +0xb2, 0x3ef682\nPOP.W           {R4-R8,PC}                                             ; +0xb6, 0x3ef686", "xrefs": ["PlayLayer::showCompleteEffect @ 0x40360a", "LevelAreaInnerLayer::onDoor @ 0x6a4448", "GJPathPage::playUnlockAnimation @ 0x6d2652"], "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"}