{"type": "func", "start": 4296777608, "end": 4296777844, "name": "FMODAudioEngine::playMusic", "pseudocode": "// \n// FMODAudioEngine::playMusic from 0x1001b9f88 to 0x1001ba074 (236 bytes)\n// \n// 6 xrefs:\n// > sub_10011F910 @ 0x10011fa50\n// > PlayLayer::playPracticeMusic @ 0x10014c36c\n// > GJShopLayer::init @ 0x1001c98fc\n// > sub_1001CB24C @ 0x1001cb748\n// > GameManager::playMenuMusic @ 0x1003aee98\n// > GameManager::fadeInMusic @ 0x1003af150\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 11:00:11 +0000\n// \n\n__int64 *__fastcall FMODAudioEngine::playMusic(__int64 *result, __int64 a2, int a3, __int64 a4, float a5)\n{\n  __int64 v8; // x20\n  char v9; // [xsp+Fh] [xbp-51h] BYREF\n  void *__p[2]; // [xsp+10h] [xbp-50h] BYREF\n  __int64 v11; // [xsp+20h] [xbp-40h]\n\n  if ( result[60] )\n  {\n    v8 = (__int64)result;\n    if ( *(char *)(a2 + 23) < 0 )\n    {\n      sub_1000097D0(__p, *(void **)a2, *(_QWORD *)(a2 + 8));\n    }\n    else\n    {\n      *(_OWORD *)__p = *(_OWORD *)a2;\n      v11 = *(_QWORD *)(a2 + 16);\n    }\n    FMODAudioEngine::loadMusic(v8, (__int128 *)__p, a3, a4, 0, 0, 1.0, 0.0, 1.0);\n    if ( SHIBYTE(v11) < 0 )\n      operator delete(__p[0]);\n    if ( a5 > 0.0 )\n      FMODAudioEngine::fadeInMusic(v8, a4, a5);\n    FMODAudioEngine::resumeMusic(v8, a4);\n    v9 = 0;\n    FMOD::ChannelControl::getPaused(*(_QWORD *)(v8 + 480), &v9);\n    return FMODAudioEngine::getActiveMusicChannel(v8, a4);\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::playMusic from 0x1001b9f88 to 0x1001ba074 (236 bytes)\n; \n; 6 xrefs:\n; > sub_10011F910 @ 0x10011fa50\n; > PlayLayer::playPracticeMusic @ 0x10014c36c\n; > GJShopLayer::init @ 0x1001c98fc\n; > sub_1001CB24C @ 0x1001cb748\n; > GameManager::playMenuMusic @ 0x1003aee98\n; > GameManager::fadeInMusic @ 0x1003af150\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 11:00:11 +0000\n; \nSUB             SP, SP, #0x70                                          ; +0x0, 0x1001b9f88\nSTP             D9, D8, [SP,#0x60+var_30]                              ; +0x4, 0x1001b9f8c\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x8, 0x1001b9f90\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0xc, 0x1001b9f94\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0x10, 0x1001b9f98\nADD             X29, SP, #0x60                                         ; +0x14, 0x1001b9f9c\nLDR             X8, [X0,#0x1E0]                                        ; +0x18, 0x1001b9fa0\nCBZ             X8, loc_1001BA05C                                      ; +0x1c, 0x1001b9fa4\nMOV             X19, X3                                                ; +0x20, 0x1001b9fa8\nFMOV            S8, S0                                                 ; +0x24, 0x1001b9fac\nMOV             X21, X2                                                ; +0x28, 0x1001b9fb0\nMOV             X20, X0                                                ; +0x2c, 0x1001b9fb4\nLDRSB           W8, [X1,#0x17]                                         ; +0x30, 0x1001b9fb8\nTBNZ            W8, #0x1F, loc_1001B9FD4                               ; +0x34, 0x1001b9fbc\nLDR             Q0, [X1]                                               ; +0x38, 0x1001b9fc0\nSTR             Q0, [SP,#0x60+__p]                                     ; +0x3c, 0x1001b9fc4\nLDR             X8, [X1,#0x10]                                         ; +0x40, 0x1001b9fc8\nSTR             X8, [SP,#0x60+var_40]                                  ; +0x44, 0x1001b9fcc\nB               loc_1001B9FE4                                          ; +0x48, 0x1001b9fd0\nLDP             X8, X2, [X1]                                           ; +0x4c, 0x1001b9fd4\nADD             X0, SP, #0x60+__p; __dst                               ; +0x50, 0x1001b9fd8\nMOV             X1, X8; __src                                          ; +0x54, 0x1001b9fdc\nBL              sub_1000097D0                                          ; +0x58, 0x1001b9fe0\nADD             X1, SP, #0x60+__p                                      ; +0x5c, 0x1001b9fe4\nFMOV            S0, #1.0                                               ; +0x60, 0x1001b9fe8\nFMOV            S1, WZR                                                ; +0x64, 0x1001b9fec\nFMOV            S2, #1.0                                               ; +0x68, 0x1001b9ff0\nMOV             X0, X20                                                ; +0x6c, 0x1001b9ff4\nMOV             X2, X21                                                ; +0x70, 0x1001b9ff8\nMOV             X3, X19                                                ; +0x74, 0x1001b9ffc\nMOV             W4, #0                                                 ; +0x78, 0x1001ba000\nMOV             W5, #0                                                 ; +0x7c, 0x1001ba004\nBL              FMODAudioEngine__loadMusic                             ; +0x80, 0x1001ba008\nLDRSB           W8, [SP,#0x60+var_40+7]                                ; +0x84, 0x1001ba00c\nTBZ             W8, #0x1F, loc_1001BA01C                               ; +0x88, 0x1001ba010\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0x8c, 0x1001ba014\nBL              __ZdlPv; operator delete(void *)                       ; +0x90, 0x1001ba018\nFCMP            S8, #0.0                                               ; +0x94, 0x1001ba01c\nB.LE            loc_1001BA034                                          ; +0x98, 0x1001ba020\nMOV             X0, X20                                                ; +0x9c, 0x1001ba024\nFMOV            S0, S8                                                 ; +0xa0, 0x1001ba028\nMOV             X1, X19                                                ; +0xa4, 0x1001ba02c\nBL              FMODAudioEngine__fadeInMusic                           ; +0xa8, 0x1001ba030\nMOV             X0, X20                                                ; +0xac, 0x1001ba034\nMOV             X1, X19                                                ; +0xb0, 0x1001ba038\nBL              FMODAudioEngine__resumeMusic                           ; +0xb4, 0x1001ba03c\nSTRB            WZR, [SP,#0x60+var_51]                                 ; +0xb8, 0x1001ba040\nLDR             X0, [X20,#0x1E0]                                       ; +0xbc, 0x1001ba044\nADD             X1, SP, #0x60+var_51                                   ; +0xc0, 0x1001ba048\nBL              FMOD__ChannelControl__getPaused                        ; +0xc4, 0x1001ba04c\nMOV             X0, X20                                                ; +0xc8, 0x1001ba050\nMOV             X1, X19                                                ; +0xcc, 0x1001ba054\nBL              FMODAudioEngine__getActiveMusicChannel                 ; +0xd0, 0x1001ba058\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0xd4, 0x1001ba05c\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0xd8, 0x1001ba060\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0xdc, 0x1001ba064\nLDP             D9, D8, [SP,#0x60+var_30]                              ; +0xe0, 0x1001ba068\nADD             SP, SP, #0x70 ; 'p'                                    ; +0xe4, 0x1001ba06c\nRET                                                                    ; +0xe8, 0x1001ba070", "xrefs": ["sub_10011F910 @ 0x10011fa50", "PlayLayer::playPracticeMusic @ 0x10014c36c", "GJShopLayer::init @ 0x1001c98fc", "sub_1001CB24C @ 0x1001cb748", "GameManager::playMenuMusic @ 0x1003aee98", "GameManager::fadeInMusic @ 0x1003af150"], "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"}