{"type": "func", "start": 4126356, "end": 4126542, "name": "FMODAudioEngine::fadeMusic", "pseudocode": "// \n// FMODAudioEngine::fadeMusic from 0x3ef694 to 0x3ef74e (186 bytes)\n// \n// 2 xrefs:\n// > SecretRewardsLayer::fadeInMusic @ 0x6ca5b8\n// > SecretRewardsLayer::fadeInOutMusic @ 0x6cac02\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::fadeMusic(FMODAudioEngine *this, float a2, unsigned int a3, float a4, float a5)\n{\n  FMOD::Channel *ActiveMusicChannel; // r0\n  FMOD::ChannelControl *v9; // r6\n  unsigned __int64 v10; // [sp+8h] [bp-10h] BYREF\n\n  ActiveMusicChannel = (FMOD::Channel *)FMODAudioEngine::getActiveMusicChannel(this, a3);\n  v9 = ActiveMusicChannel;\n  if ( ActiveMusicChannel )\n  {\n    FMODAudioEngine::stopAndGetFade(this, ActiveMusicChannel);\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::getDSPClock(v9, nullptr, &v10);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(v9, v10, a4);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(\n                               v9,\n                               (unsigned __int64)(float)((float)v10 + (float)((float)*((int *)this + 98) * a2)),\n                               a5);\n    ERRCHECK_fn();\n  }\n}", "assembly": "; \n; FMODAudioEngine::fadeMusic from 0x3ef694 to 0x3ef74e (186 bytes)\n; \n; 2 xrefs:\n; > SecretRewardsLayer::fadeInMusic @ 0x6ca5b8\n; > SecretRewardsLayer::fadeInOutMusic @ 0x6cac02\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, 0x3ef694\nMOV             R8, R3                                                 ; +0x4, 0x3ef698\nVPUSH           {D8}                                                   ; +0x6, 0x3ef69a\nMOV             R5, R0                                                 ; +0xa, 0x3ef69e\nLDR             R4, =(__stack_chk_guard_ptr - 0x3EF6A6)                ; +0xc, 0x3ef6a0\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3ef6a2\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x3ef6a4\nVMOV            S16, R1                                                ; +0x12, 0x3ef6a6\nSUB             SP, SP, #0x18                                          ; +0x16, 0x3ef6aa\nMOV             R1, R2; int                                            ; +0x18, 0x3ef6ac\nLDR             R3, [R4]                                               ; +0x1a, 0x3ef6ae\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1c, 0x3ef6b0\nBL              _ZN15FMODAudioEngine21getActiveMusicChannelEi; FMODAudioEngine::getActiveMusicChannel(int) ; +0x1e, 0x3ef6b2\nMOV             R6, R0                                                 ; +0x22, 0x3ef6b6\nCMP             R0, #0                                                 ; +0x24, 0x3ef6b8\nBEQ             loc_3EF738                                             ; +0x26, 0x3ef6ba\nMOV             R1, R6; FMOD::Channel *                                ; +0x28, 0x3ef6bc\nMOV             R0, R5; this                                           ; +0x2a, 0x3ef6be\nBL              _ZN15FMODAudioEngine14stopAndGetFadeEPN4FMOD7ChannelE; FMODAudioEngine::stopAndGetFade(FMOD::Channel *) ; +0x2c, 0x3ef6c0\nMOVS            R1, #0; unsigned __int64 *                             ; +0x30, 0x3ef6c4\nADD             R2, SP, #0x18+var_10; unsigned __int64 *               ; +0x32, 0x3ef6c6\nMOV             R0, R6; this                                           ; +0x34, 0x3ef6c8\nBLX             _ZN4FMOD14ChannelControl11getDSPClockEPyS1_; FMOD::ChannelControl::getDSPClock(ulong long *,ulong long *) ; +0x36, 0x3ef6ca\nLDR             R7, =(aUsersRobertDev - 0x3EF6D8); \"/Users/robert/Developer/GeometryDash/co\"... ; +0x3a, 0x3ef6ce\nMOVW            R2, #0xB8C                                             ; +0x3c, 0x3ef6d0\nADD             R7, PC; \"/Users/robert/Developer/GeometryDash/co\"...   ; +0x40, 0x3ef6d4\nMOV             R1, R7                                                 ; +0x42, 0x3ef6d6\nSTR.W           R0, [R5,#0x184]                                        ; +0x44, 0x3ef6d8\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x48, 0x3ef6dc\nLDRD.W          R2, R3, [SP,#0x18+var_10]; unsigned __int64            ; +0x4c, 0x3ef6e0\nSTR.W           R8, [SP,#0x18+var_18]; float                           ; +0x50, 0x3ef6e4\nMOV             R0, R6; this                                           ; +0x54, 0x3ef6e8\nBLX             _ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x56, 0x3ef6ea\nMOV.W           R2, #0xB90                                             ; +0x5a, 0x3ef6ee\nMOV             R1, R7                                                 ; +0x5e, 0x3ef6f2\nSTR.W           R0, [R5,#0x184]                                        ; +0x60, 0x3ef6f4\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x64, 0x3ef6f8\nLDRD.W          R0, R1, [SP,#0x18+var_10]                              ; +0x68, 0x3ef6fc\nBLX             __aeabi_ul2f                                           ; +0x6c, 0x3ef700\nVLDR            S15, [R5,#0x188]                                       ; +0x70, 0x3ef704\nVCVT.F32.S32    S15, S15                                               ; +0x74, 0x3ef708\nVMOV            S14, R0                                                ; +0x78, 0x3ef70c\nVMLA.F32        S14, S15, S16                                          ; +0x7c, 0x3ef710\nVMOV            R0, S14                                                ; +0x80, 0x3ef714\nBLX             __aeabi_f2ulz                                          ; +0x84, 0x3ef718\nMOV             R3, R1                                                 ; +0x88, 0x3ef71c\nLDR             R1, [SP,#0x18+arg_0]                                   ; +0x8a, 0x3ef71e\nMOV             R2, R0; unsigned __int64                               ; +0x8c, 0x3ef720\nMOV             R0, R6; this                                           ; +0x8e, 0x3ef722\nSTR             R1, [SP,#0x18+var_18]; float                           ; +0x90, 0x3ef724\nBLX             _ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x92, 0x3ef726\nMOV             R1, R7                                                 ; +0x96, 0x3ef72a\nMOVW            R2, #0xB92                                             ; +0x98, 0x3ef72c\nSTR.W           R0, [R5,#0x184]                                        ; +0x9c, 0x3ef730\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0xa0, 0x3ef734\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa4, 0x3ef738\nLDR             R3, [R4]                                               ; +0xa6, 0x3ef73a\nCMP             R2, R3                                                 ; +0xa8, 0x3ef73c\nBEQ             loc_3EF744                                             ; +0xaa, 0x3ef73e\nBLX             __stack_chk_fail                                       ; +0xac, 0x3ef740\nADD             SP, SP, #0x18                                          ; +0xb0, 0x3ef744\nVPOP            {D8}                                                   ; +0xb2, 0x3ef746\nPOP.W           {R4-R8,PC}                                             ; +0xb6, 0x3ef74a", "xrefs": ["SecretRewardsLayer::fadeInMusic @ 0x6ca5b8", "SecretRewardsLayer::fadeInOutMusic @ 0x6cac02"], "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"}