{"type": "func", "start": 7170408, "end": 7170604, "name": "FMODAudioEngine::setMusicTimeMS", "pseudocode": "// \n// FMODAudioEngine::setMusicTimeMS from 0x6d6968 to 0x6d6a2c (196 bytes)\n// \n// 8 xrefs:\n// > FMODAudioEngine::loadAndPlayMusic @ 0x6d8e08\n// > FMODAudioEngine::updateQueuedMusic @ 0x6d92f8\n// > FMODAudioEngine::loadAudioState @ 0x6db498\n// > PlayLayer::prepareMusic @ 0x6f758c\n// > GJBaseGameLayer::processSongState @ 0x9ab37c\n// > SetupSongTriggerPopup::onPlayback @ 0xaea1a0\n// > MusicBrowser::sliderEnded @ 0xb83acc\n// > <???> @ 0xb6218\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 12:51:30 +0000\n// \n\nFMOD::Channel *__fastcall FMODAudioEngine::setMusicTimeMS(FMODAudioEngine *this, int a2, unsigned __int8 a3, int a4)\n{\n  char *v5; // x21\n  int v7; // w23\n  int *v8; // x0\n  FMOD::Channel *result; // x0\n  FMOD::Channel *v10; // x22\n  int v11; // w2\n  __int64 v12; // x0\n  int v13; // [xsp+4Ch] [xbp+4Ch] BYREF\n\n  v5 = (char *)this + 320;\n  v13 = a4;\n  v7 = a3;\n  v8 = (int *)std::unordered_map<int,FMODMusic>::operator[]((__int64)this + 320, &v13);\n  result = (FMOD::Channel *)FMODAudioEngine::channelForChannelID(this, *v8);\n  v10 = result;\n  if ( result )\n  {\n    if ( *(_BYTE *)(std::unordered_map<int,FMODMusic>::operator[]((__int64)v5, &v13) + 40) )\n      v11 = 0;\n    else\n      v11 = 40;\n    result = (FMOD::Channel *)FMOD::Channel::setPosition(v10, a2 + *((_DWORD *)this + 137) + v11, 1u);\n    if ( !v7 )\n    {\n      v12 = std::unordered_map<int,FMODMusic>::operator[]((__int64)v5, &v13);\n      return (FMOD::Channel *)FMODAudioEngine::waitUntilSoundReady(this, *(FMOD::Sound **)(v12 + 8));\n    }\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::setMusicTimeMS from 0x6d6968 to 0x6d6a2c (196 bytes)\n; \n; 8 xrefs:\n; > FMODAudioEngine::loadAndPlayMusic @ 0x6d8e08\n; > FMODAudioEngine::updateQueuedMusic @ 0x6d92f8\n; > FMODAudioEngine::loadAudioState @ 0x6db498\n; > PlayLayer::prepareMusic @ 0x6f758c\n; > GJBaseGameLayer::processSongState @ 0x9ab37c\n; > SetupSongTriggerPopup::onPlayback @ 0xaea1a0\n; > MusicBrowser::sliderEnded @ 0xb83acc\n; > <???> @ 0xb6218\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 12:51:30 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0x6d6968\nMOV             X29, SP                                                ; +0x4, 0x6d696c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x6d6970\nADD             X19, X29, #0x50+arg_0                                  ; +0xc, 0x6d6974\nMOV             X20, X0                                                ; +0x10, 0x6d6978\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x6d697c\nADD             X21, X0, #0x140                                        ; +0x18, 0x6d6980\nSTR             W3, [X19,#-4]!                                         ; +0x1c, 0x6d6984\nMOV             X0, X21                                                ; +0x20, 0x6d6988\nSTP             X23, X24, [SP,#0x50+var_20]                            ; +0x24, 0x6d698c\nMOV             W24, W1                                                ; +0x28, 0x6d6990\nMOV             X1, X19                                                ; +0x2c, 0x6d6994\nUXTB            W23, W2                                                ; +0x30, 0x6d6998\nBL              _ZNSt6__ndk113unordered_mapIi9FMODMusicNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS1_EEEEEixERS8_; std::unordered_map<int,FMODMusic>::operator[](int const&) ; +0x34, 0x6d699c\nLDR             W1, [X0]; int                                          ; +0x38, 0x6d69a0\nMOV             X0, X20; this                                          ; +0x3c, 0x6d69a4\nBL              _ZN15FMODAudioEngine19channelForChannelIDEi; FMODAudioEngine::channelForChannelID(int) ; +0x40, 0x6d69a8\nMOV             X22, X0                                                ; +0x44, 0x6d69ac\nCBZ             X0, loc_6D69EC                                         ; +0x48, 0x6d69b0\nMOV             X1, X19                                                ; +0x4c, 0x6d69b4\nMOV             X0, X21                                                ; +0x50, 0x6d69b8\nBL              _ZNSt6__ndk113unordered_mapIi9FMODMusicNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS1_EEEEEixERS8_; std::unordered_map<int,FMODMusic>::operator[](int const&) ; +0x54, 0x6d69bc\nLDRB            W0, [X0,#0x28]                                         ; +0x58, 0x6d69c0\nLDR             W1, [X20,#0x224]                                       ; +0x5c, 0x6d69c4\nMOV             W2, #0x28 ; '('                                        ; +0x60, 0x6d69c8\nCMP             W0, WZR                                                ; +0x64, 0x6d69cc\nMOV             X0, X22; this                                          ; +0x68, 0x6d69d0\nCSEL            W2, WZR, W2, NE                                        ; +0x6c, 0x6d69d4\nADD             W1, W24, W1                                            ; +0x70, 0x6d69d8\nADD             W1, W1, W2; unsigned int                               ; +0x74, 0x6d69dc\nMOV             W2, #1; unsigned int                                   ; +0x78, 0x6d69e0\nBL              ._ZN4FMOD7Channel11setPositionEjj; FMOD::Channel::setPosition(uint,uint) ; +0x7c, 0x6d69e4\nCBZ             W23, loc_6D6A00                                        ; +0x80, 0x6d69e8\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x84, 0x6d69ec\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x88, 0x6d69f0\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0x8c, 0x6d69f4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x90, 0x6d69f8\nRET                                                                    ; +0x94, 0x6d69fc\nMOV             X1, X19                                                ; +0x98, 0x6d6a00\nMOV             X0, X21                                                ; +0x9c, 0x6d6a04\nBL              _ZNSt6__ndk113unordered_mapIi9FMODMusicNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS1_EEEEEixERS8_; std::unordered_map<int,FMODMusic>::operator[](int const&) ; +0xa0, 0x6d6a08\nLDR             X1, [X0,#8]; FMOD::Sound *                             ; +0xa4, 0x6d6a0c\nMOV             X0, X20; this                                          ; +0xa8, 0x6d6a10\nBL              _ZN15FMODAudioEngine19waitUntilSoundReadyEPN4FMOD5SoundE; FMODAudioEngine::waitUntilSoundReady(FMOD::Sound *) ; +0xac, 0x6d6a14\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xb0, 0x6d6a18\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xb4, 0x6d6a1c\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0xb8, 0x6d6a20\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xbc, 0x6d6a24\nRET                                                                    ; +0xc0, 0x6d6a28", "xrefs": ["FMODAudioEngine::loadAndPlayMusic @ 0x6d8e08", "FMODAudioEngine::updateQueuedMusic @ 0x6d92f8", "FMODAudioEngine::loadAudioState @ 0x6db498", "PlayLayer::prepareMusic @ 0x6f758c", "GJBaseGameLayer::processSongState @ 0x9ab37c", "SetupSongTriggerPopup::onPlayback @ 0xaea1a0", "MusicBrowser::sliderEnded @ 0xb83acc", "<???> @ 0xb6218"], "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"}