{"type": "func", "start": 4128640, "end": 4128810, "name": "FMODAudioEngine::playMusic", "pseudocode": "// \n// FMODAudioEngine::playMusic from 0x3eff80 to 0x3f002a (170 bytes)\n// \n// 6 xrefs:\n// > PlayLayer::playPracticeMusic @ 0x402d28\n// > GameManager::fadeInMusic @ 0x4156e8\n// > GameManager::playMenuMusic @ 0x41689c\n// > CustomSongWidget::onPlayback @ 0x4e30d0\n// > GJShopLayer::showReactMessage @ 0x61226c\n// > GJShopLayer::init @ 0x613148\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\nFMODAudioEngine *__fastcall FMODAudioEngine::playMusic(\n        FMODAudioEngine *result,\n        int a2,\n        char a3,\n        float a4,\n        unsigned int a5)\n{\n  FMODAudioEngine *v6; // r6\n  FMOD::ChannelControl *v8; // r0\n  bool v9; // [sp+1Fh] [bp-11h] BYREF\n  int v10[3]; // [sp+20h] [bp-10h] BYREF\n\n  v6 = result;\n  if ( *((_DWORD *)result + 90) )\n  {\n    std::string::basic_string(v10, a2);\n    FMODAudioEngine::loadMusic((int)v6, (unsigned __int8 *)v10, 1.0, 0, 1.0, a3, a5, 0, 0);\n    std::string::~string((int)v10);\n    if ( a4 > 0.0 )\n      FMODAudioEngine::fadeInMusic(v6, a4, a5);\n    FMODAudioEngine::resumeMusic(v6, a5);\n    v8 = *((FMOD::ChannelControl **)v6 + 90);\n    v9 = 0;\n    FMOD::ChannelControl::getPaused(v8, &v9);\n    return (FMODAudioEngine *)FMODAudioEngine::getActiveMusicChannel(v6, a5);\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::playMusic from 0x3eff80 to 0x3f002a (170 bytes)\n; \n; 6 xrefs:\n; > PlayLayer::playPracticeMusic @ 0x402d28\n; > GameManager::fadeInMusic @ 0x4156e8\n; > GameManager::playMenuMusic @ 0x41689c\n; > CustomSongWidget::onPlayback @ 0x4e30d0\n; > GJShopLayer::showReactMessage @ 0x61226c\n; > GJShopLayer::init @ 0x613148\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, 0x3eff80\nMOV             R8, R2                                                 ; +0x4, 0x3eff84\nVPUSH           {D8}                                                   ; +0x6, 0x3eff86\nMOV             R6, R0                                                 ; +0xa, 0x3eff8a\nVMOV            S16, R3                                                ; +0xc, 0x3eff8c\nLDR             R3, =(__stack_chk_guard_ptr - 0x3EFF98)                ; +0x10, 0x3eff90\nSUB             SP, SP, #0x30                                          ; +0x12, 0x3eff92\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x14, 0x3eff94\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x16, 0x3eff96\nLDR             R7, [SP,#0x30+arg_0]                                   ; +0x18, 0x3eff98\nLDR             R2, [R3]                                               ; +0x1a, 0x3eff9a\nMOV             R5, R3                                                 ; +0x1c, 0x3eff9c\nSTR             R2, [SP,#0x30+var_4]                                   ; +0x1e, 0x3eff9e\nLDR.W           R2, [R0,#0x168]                                        ; +0x20, 0x3effa0\nCBZ             R2, loc_3F0014                                         ; +0x24, 0x3effa4\nADD             R4, SP, #0x30+var_10                                   ; +0x26, 0x3effa6\nMOV             R0, R4                                                 ; +0x28, 0x3effa8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC2ERKS5_; std::string::basic_string(std::string const&) ; +0x2a, 0x3effaa\nMOV.W           R3, #0x3F800000                                        ; +0x2e, 0x3effae\nMOVS            R2, #0                                                 ; +0x32, 0x3effb2\nSTR             R3, [SP,#0x30+var_30]; float                           ; +0x34, 0x3effb4\nSTR             R2, [SP,#0x30+var_24]; int                             ; +0x36, 0x3effb6\nMOV             R0, R6; int                                            ; +0x38, 0x3effb8\nSTR             R2, [SP,#0x30+var_20]; char                            ; +0x3a, 0x3effba\nMOV             R1, R4; int                                            ; +0x3c, 0x3effbc\nMOV             R2, R3; int                                            ; +0x3e, 0x3effbe\nSTR.W           R8, [SP,#0x30+var_2C]; char                            ; +0x40, 0x3effc0\nSTR             R7, [SP,#0x30+var_28]; int                             ; +0x44, 0x3effc4\nMOVS            R3, #0; int                                            ; +0x46, 0x3effc6\nBL              _ZN15FMODAudioEngine9loadMusicENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEfffbiib; FMODAudioEngine::loadMusic(std::string,float,float,float,bool,int,int,bool) ; +0x48, 0x3effc8\nMOV             R0, R4                                                 ; +0x4c, 0x3effcc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x4e, 0x3effce\nVCMPE.F32       S16, #0.0                                              ; +0x52, 0x3effd2\nVMRS            APSR_nzcv, FPSCR                                       ; +0x56, 0x3effd6\nBLE             loc_3EFFE8                                             ; +0x5a, 0x3effda\nMOV             R0, R6; this                                           ; +0x5c, 0x3effdc\nVMOV            R1, S16; float                                         ; +0x5e, 0x3effde\nMOV             R2, R7; int                                            ; +0x62, 0x3effe2\nBL              _ZN15FMODAudioEngine11fadeInMusicEfi; FMODAudioEngine::fadeInMusic(float,int) ; +0x64, 0x3effe4\nMOV             R0, R6; this                                           ; +0x68, 0x3effe8\nMOV             R1, R7; int                                            ; +0x6a, 0x3effea\nBL              _ZN15FMODAudioEngine11resumeMusicEi; FMODAudioEngine::resumeMusic(int) ; +0x6c, 0x3effec\nADD             R1, SP, #0x30+var_s0                                   ; +0x70, 0x3efff0\nMOVS            R3, #0                                                 ; +0x72, 0x3efff2\nLDR.W           R0, [R6,#0x168]; this                                  ; +0x74, 0x3efff4\nSTRB.W          R3, [R1,#-0x11]!; bool *                               ; +0x78, 0x3efff8\nBLX             _ZN4FMOD14ChannelControl9getPausedEPb; FMOD::ChannelControl::getPaused(bool *) ; +0x7c, 0x3efffc\nMOV             R0, R6; this                                           ; +0x80, 0x3f0000\nMOV             R1, R7; int                                            ; +0x82, 0x3f0002\nBL              _ZN15FMODAudioEngine21getActiveMusicChannelEi; FMODAudioEngine::getActiveMusicChannel(int) ; +0x84, 0x3f0004\nB               loc_3F0014                                             ; +0x88, 0x3f0008\nMOV             R0, R4                                                 ; +0x8a, 0x3f000a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x8c, 0x3f000c\nBL              __cxa_end_cleanup                                      ; +0x90, 0x3f0010\nLDR             R2, [SP,#0x30+var_4]                                   ; +0x94, 0x3f0014\nLDR             R3, [R5]                                               ; +0x96, 0x3f0016\nCMP             R2, R3                                                 ; +0x98, 0x3f0018\nBEQ             loc_3F0020                                             ; +0x9a, 0x3f001a\nBLX             __stack_chk_fail                                       ; +0x9c, 0x3f001c\nADD             SP, SP, #0x30 ; '0'                                    ; +0xa0, 0x3f0020\nVPOP            {D8}                                                   ; +0xa2, 0x3f0022\nPOP.W           {R4-R8,PC}                                             ; +0xa6, 0x3f0026", "xrefs": ["PlayLayer::playPracticeMusic @ 0x402d28", "GameManager::fadeInMusic @ 0x4156e8", "GameManager::playMenuMusic @ 0x41689c", "CustomSongWidget::onPlayback @ 0x4e30d0", "GJShopLayer::showReactMessage @ 0x61226c", "GJShopLayer::init @ 0x613148"], "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"}