{"type": "func", "start": 4125968, "end": 4126150, "name": "FMODAudioEngine::fadeInMusic", "pseudocode": "// \n// FMODAudioEngine::fadeInMusic from 0x3ef510 to 0x3ef5c6 (182 bytes)\n// \n// 3 xrefs:\n// > FMODAudioEngine::playMusic @ 0x3effe4\n// > PlayLayer::startMusic @ 0x41219c\n// > GJPathPage::unlockAnimationStep3 @ 0x6d4434\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::fadeInMusic(FMODAudioEngine *this, float a2, unsigned int a3)\n{\n  FMOD::Channel *ActiveMusicChannel; // r0\n  FMOD::ChannelControl *v6; // r6\n  unsigned __int64 v7; // [sp+8h] [bp-14h] 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 + 97) = FMOD::ChannelControl::getDSPClock(v6, nullptr, &v7);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(v6, v7, 0.0);\n    ERRCHECK_fn();\n    *((_DWORD *)this + 97) = FMOD::ChannelControl::addFadePoint(\n                               v6,\n                               (unsigned __int64)(float)((float)v7 + (float)((float)*((int *)this + 98) * a2)),\n                               1.0);\n    ERRCHECK_fn();\n  }\n}", "assembly": "; \n; FMODAudioEngine::fadeInMusic from 0x3ef510 to 0x3ef5c6 (182 bytes)\n; \n; 3 xrefs:\n; > FMODAudioEngine::playMusic @ 0x3effe4\n; > PlayLayer::startMusic @ 0x41219c\n; > GJPathPage::unlockAnimationStep3 @ 0x6d4434\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            {R4-R7,LR}                                             ; +0x0, 0x3ef510\nMOV             R5, R0                                                 ; +0x2, 0x3ef512\nVPUSH           {D8}                                                   ; +0x4, 0x3ef514\nLDR             R4, =(__stack_chk_guard_ptr - 0x3EF51E)                ; +0x8, 0x3ef518\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3ef51a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0xc, 0x3ef51c\nVMOV            S16, R1                                                ; +0xe, 0x3ef51e\nSUB             SP, SP, #0x1C                                          ; +0x12, 0x3ef522\nMOV             R1, R2; int                                            ; +0x14, 0x3ef524\nLDR             R3, [R4]                                               ; +0x16, 0x3ef526\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x18, 0x3ef528\nBL              _ZN15FMODAudioEngine21getActiveMusicChannelEi; FMODAudioEngine::getActiveMusicChannel(int) ; +0x1a, 0x3ef52a\nMOV             R6, R0                                                 ; +0x1e, 0x3ef52e\nCMP             R0, #0                                                 ; +0x20, 0x3ef530\nBEQ             loc_3EF5B2                                             ; +0x22, 0x3ef532\nMOV             R1, R6; FMOD::Channel *                                ; +0x24, 0x3ef534\nMOV             R0, R5; this                                           ; +0x26, 0x3ef536\nBL              _ZN15FMODAudioEngine14stopAndGetFadeEPN4FMOD7ChannelE; FMODAudioEngine::stopAndGetFade(FMOD::Channel *) ; +0x28, 0x3ef538\nMOVS            R1, #0; unsigned __int64 *                             ; +0x2c, 0x3ef53c\nADD             R2, SP, #0x1C+var_14; unsigned __int64 *               ; +0x2e, 0x3ef53e\nMOV             R0, R6; this                                           ; +0x30, 0x3ef540\nBLX             _ZN4FMOD14ChannelControl11getDSPClockEPyS1_; FMOD::ChannelControl::getDSPClock(ulong long *,ulong long *) ; +0x32, 0x3ef542\nLDR             R7, =(aUsersRobertDev - 0x3EF550); \"/Users/robert/Developer/GeometryDash/co\"... ; +0x36, 0x3ef546\nMOVW            R2, #0xB65                                             ; +0x38, 0x3ef548\nADD             R7, PC; \"/Users/robert/Developer/GeometryDash/co\"...   ; +0x3c, 0x3ef54c\nMOV             R1, R7                                                 ; +0x3e, 0x3ef54e\nSTR.W           R0, [R5,#0x184]                                        ; +0x40, 0x3ef550\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x44, 0x3ef554\nMOVS            R3, #0                                                 ; +0x48, 0x3ef558\nMOV             R0, R6; this                                           ; +0x4a, 0x3ef55a\nSTR             R3, [SP,#0x1C+var_1C]; float                           ; +0x4c, 0x3ef55c\nLDRD.W          R2, R3, [SP,#0x1C+var_14]; unsigned __int64            ; +0x4e, 0x3ef55e\nBLX             _ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x52, 0x3ef562\nMOVW            R2, #0xB69                                             ; +0x56, 0x3ef566\nMOV             R1, R7                                                 ; +0x5a, 0x3ef56a\nSTR.W           R0, [R5,#0x184]                                        ; +0x5c, 0x3ef56c\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x60, 0x3ef570\nLDRD.W          R0, R1, [SP,#0x1C+var_14]                              ; +0x64, 0x3ef574\nBLX             __aeabi_ul2f                                           ; +0x68, 0x3ef578\nVLDR            S15, [R5,#0x188]                                       ; +0x6c, 0x3ef57c\nVCVT.F32.S32    S15, S15                                               ; +0x70, 0x3ef580\nVMOV            S14, R0                                                ; +0x74, 0x3ef584\nVMLA.F32        S14, S15, S16                                          ; +0x78, 0x3ef588\nVMOV            R0, S14                                                ; +0x7c, 0x3ef58c\nBLX             __aeabi_f2ulz                                          ; +0x80, 0x3ef590\nMOV             R2, R0; unsigned __int64                               ; +0x84, 0x3ef594\nMOV             R3, R1                                                 ; +0x86, 0x3ef596\nMOV             R0, R6; this                                           ; +0x88, 0x3ef598\nMOV.W           R1, #0x3F800000                                        ; +0x8a, 0x3ef59a\nSTR             R1, [SP,#0x1C+var_1C]; float                           ; +0x8e, 0x3ef59e\nBLX             _ZN4FMOD14ChannelControl12addFadePointEyf; FMOD::ChannelControl::addFadePoint(ulong long,float) ; +0x90, 0x3ef5a0\nMOV             R1, R7                                                 ; +0x94, 0x3ef5a4\nMOVW            R2, #0xB6B                                             ; +0x96, 0x3ef5a6\nSTR.W           R0, [R5,#0x184]                                        ; +0x9a, 0x3ef5aa\nBL              _Z11ERRCHECK_fn11FMOD_RESULTPKci; ERRCHECK_fn(FMOD_RESULT,char const*,int) ; +0x9e, 0x3ef5ae\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0xa2, 0x3ef5b2\nLDR             R3, [R4]                                               ; +0xa4, 0x3ef5b4\nCMP             R2, R3                                                 ; +0xa6, 0x3ef5b6\nBEQ             loc_3EF5BE                                             ; +0xa8, 0x3ef5b8\nBLX             __stack_chk_fail                                       ; +0xaa, 0x3ef5ba\nADD             SP, SP, #0x1C                                          ; +0xae, 0x3ef5be\nVPOP            {D8}                                                   ; +0xb0, 0x3ef5c0\nPOP             {R4-R7,PC}                                             ; +0xb4, 0x3ef5c4", "xrefs": ["FMODAudioEngine::playMusic @ 0x3effe4", "PlayLayer::startMusic @ 0x41219c", "GJPathPage::unlockAnimationStep3 @ 0x6d4434"], "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"}