{"type": "func", "start": 4296777392, "end": 4296777580, "name": "FMODAudioEngine::loadAndPlayMusic", "pseudocode": "// \n// FMODAudioEngine::loadAndPlayMusic from 0x1001b9eb0 to 0x1001b9f6c (188 bytes)\n// \n// 3 xrefs:\n// > CreateGuidelinesLayer::playMusic @ 0x100085cc8\n// > FindBPMLayer::playMusic @ 0x100086ab4\n// > SongOptionsLayer::onPlayback @ 0x1001c450c\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::loadAndPlayMusic(__int64 a1, __int64 a2, int a3, __int64 a4)\n{\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  __int64 v9; // [xsp+10h] [xbp-30h]\n\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    v9 = *(_QWORD *)(a2 + 16);\n  }\n  FMODAudioEngine::loadMusic(a1, (__int128 *)__p, 0, a4, 0, 0, 1.0, 0.0, 1.0);\n  if ( SHIBYTE(v9) < 0 )\n    operator delete(__p[0]);\n  if ( a3 )\n    FMODAudioEngine::setMusicTimeMS(a1, a3, 0, a4);\n  return FMODAudioEngine::resumeMusic(a1, a4);\n}", "assembly": "; \n; FMODAudioEngine::loadAndPlayMusic from 0x1001b9eb0 to 0x1001b9f6c (188 bytes)\n; \n; 3 xrefs:\n; > CreateGuidelinesLayer::playMusic @ 0x100085cc8\n; > FindBPMLayer::playMusic @ 0x100086ab4\n; > SongOptionsLayer::onPlayback @ 0x1001c450c\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, #0x50                                          ; +0x0, 0x1001b9eb0\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x1001b9eb4\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x1001b9eb8\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x1001b9ebc\nADD             X29, SP, #0x40                                         ; +0x10, 0x1001b9ec0\nMOV             X19, X3                                                ; +0x14, 0x1001b9ec4\nMOV             X21, X2                                                ; +0x18, 0x1001b9ec8\nMOV             X20, X0                                                ; +0x1c, 0x1001b9ecc\nLDRSB           W8, [X1,#0x17]                                         ; +0x20, 0x1001b9ed0\nTBNZ            W8, #0x1F, loc_1001B9EEC                               ; +0x24, 0x1001b9ed4\nLDR             Q0, [X1]                                               ; +0x28, 0x1001b9ed8\nSTR             Q0, [SP,#0x40+__p]                                     ; +0x2c, 0x1001b9edc\nLDR             X8, [X1,#0x10]                                         ; +0x30, 0x1001b9ee0\nSTR             X8, [SP,#0x40+var_30]                                  ; +0x34, 0x1001b9ee4\nB               loc_1001B9EFC                                          ; +0x38, 0x1001b9ee8\nLDP             X8, X2, [X1]                                           ; +0x3c, 0x1001b9eec\nMOV             X0, SP; __dst                                          ; +0x40, 0x1001b9ef0\nMOV             X1, X8; __src                                          ; +0x44, 0x1001b9ef4\nBL              sub_1000097D0                                          ; +0x48, 0x1001b9ef8\nMOV             X1, SP                                                 ; +0x4c, 0x1001b9efc\nFMOV            S0, #1.0                                               ; +0x50, 0x1001b9f00\nFMOV            S1, WZR                                                ; +0x54, 0x1001b9f04\nFMOV            S2, #1.0                                               ; +0x58, 0x1001b9f08\nMOV             X0, X20                                                ; +0x5c, 0x1001b9f0c\nMOV             W2, #0                                                 ; +0x60, 0x1001b9f10\nMOV             X3, X19                                                ; +0x64, 0x1001b9f14\nMOV             W4, #0                                                 ; +0x68, 0x1001b9f18\nMOV             W5, #0                                                 ; +0x6c, 0x1001b9f1c\nBL              FMODAudioEngine__loadMusic                             ; +0x70, 0x1001b9f20\nLDRSB           W8, [SP,#0x40+var_30+7]                                ; +0x74, 0x1001b9f24\nTBZ             W8, #0x1F, loc_1001B9F34                               ; +0x78, 0x1001b9f28\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x7c, 0x1001b9f2c\nBL              __ZdlPv; operator delete(void *)                       ; +0x80, 0x1001b9f30\nCBZ             W21, loc_1001B9F4C                                     ; +0x84, 0x1001b9f34\nMOV             X0, X20                                                ; +0x88, 0x1001b9f38\nMOV             X1, X21                                                ; +0x8c, 0x1001b9f3c\nMOV             W2, #0                                                 ; +0x90, 0x1001b9f40\nMOV             X3, X19                                                ; +0x94, 0x1001b9f44\nBL              FMODAudioEngine__setMusicTimeMS                        ; +0x98, 0x1001b9f48\nMOV             X0, X20                                                ; +0x9c, 0x1001b9f4c\nMOV             X1, X19                                                ; +0xa0, 0x1001b9f50\nBL              FMODAudioEngine__resumeMusic                           ; +0xa4, 0x1001b9f54\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa8, 0x1001b9f58\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xac, 0x1001b9f5c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xb0, 0x1001b9f60\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb4, 0x1001b9f64\nRET                                                                    ; +0xb8, 0x1001b9f68", "xrefs": ["CreateGuidelinesLayer::playMusic @ 0x100085cc8", "FindBPMLayer::playMusic @ 0x100086ab4", "SongOptionsLayer::onPlayback @ 0x1001c450c"], "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"}