{"type": "func", "start": 4123304, "end": 4123410, "name": "FMODAudioEngine::setMusicTimeMS", "pseudocode": "// \n// FMODAudioEngine::setMusicTimeMS from 0x3eeaa8 to 0x3eeb12 (106 bytes)\n// \n// 7 xrefs:\n// > FMODAudioEngine::loadAndPlayMusic @ 0x3eff54\n// > FMODAudioEngine::updateQueuedMusic @ 0x3f0226\n// > FMODAudioEngine::loadAudioState @ 0x3f15c0\n// > PlayLayer::prepareMusic @ 0x402dfa\n// > GJBaseGameLayer::processSongState @ 0x597eb8\n// > SetupSongTriggerPopup::onPlayback @ 0x6586a2\n// > MusicBrowser::sliderEnded @ 0x6bd3d2\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:11 +0000\n// \n\nFMOD::Channel *__fastcall FMODAudioEngine::setMusicTimeMS(\n        FMODAudioEngine *this,\n        unsigned int a2,\n        unsigned int a3,\n        unsigned int a4)\n{\n  char *v4; // r6\n  int *v8; // r0\n  FMOD::Channel *result; // r0\n  FMOD::Channel *v10; // r7\n  int v11; // r1\n  int *v12; // r0\n  unsigned int v13[2]; // [sp+4h] [bp-8h] BYREF\n\n  v13[1] = a3;\n  v4 = (char *)this + 264;\n  v13[0] = a4;\n  v8 = std::unordered_map<int,FMODMusic>::operator[]((int)this + 264, 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[]((int)v4, v13) + 20) )\n      v11 = 0;\n    else\n      v11 = 40;\n    result = (FMOD::Channel *)FMOD::Channel::setPosition(v10, v11 + *((_DWORD *)this + 100) + a2, 1u);\n    if ( !a3 )\n    {\n      v12 = std::unordered_map<int,FMODMusic>::operator[]((int)v4, v13);\n      return (FMOD::Channel *)FMODAudioEngine::waitUntilSoundReady(this, (FMOD::Sound *)v12[1]);\n    }\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::setMusicTimeMS from 0x3eeaa8 to 0x3eeb12 (106 bytes)\n; \n; 7 xrefs:\n; > FMODAudioEngine::loadAndPlayMusic @ 0x3eff54\n; > FMODAudioEngine::updateQueuedMusic @ 0x3f0226\n; > FMODAudioEngine::loadAudioState @ 0x3f15c0\n; > PlayLayer::prepareMusic @ 0x402dfa\n; > GJBaseGameLayer::processSongState @ 0x597eb8\n; > SetupSongTriggerPopup::onPlayback @ 0x6586a2\n; > MusicBrowser::sliderEnded @ 0x6bd3d2\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:11 +0000\n; \nPUSH.W          {R0-R2,R4-R9,LR}                                       ; +0x0, 0x3eeaa8\nADD.W           R6, R0, #0x108                                         ; +0x4, 0x3eeaac\nADD             R4, SP, #0xC+var_4                                     ; +0x8, 0x3eeab0\nMOV             R5, R0                                                 ; +0xa, 0x3eeab2\nMOV             R9, R1                                                 ; +0xc, 0x3eeab4\nMOV             R0, R6                                                 ; +0xe, 0x3eeab6\nSTR.W           R3, [R4,#-4]!                                          ; +0x10, 0x3eeab8\nMOV             R1, R4                                                 ; +0x14, 0x3eeabc\nMOV             R8, R2                                                 ; +0x16, 0x3eeabe\nBL              _ZNSt6__ndk113unordered_mapIi9FMODMusicNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS1_EEEEEixERS8_; std::unordered_map<int,FMODMusic>::operator[](int const&) ; +0x18, 0x3eeac0\nMOV             R3, R0                                                 ; +0x1c, 0x3eeac4\nMOV             R0, R5; this                                           ; +0x1e, 0x3eeac6\nLDR             R1, [R3]; int                                          ; +0x20, 0x3eeac8\nBL              _ZN15FMODAudioEngine19channelForChannelIDEi; FMODAudioEngine::channelForChannelID(int) ; +0x22, 0x3eeaca\nMOV             R7, R0                                                 ; +0x26, 0x3eeace\nCBZ             R0, loc_3EEB0C                                         ; +0x28, 0x3eead0\nMOV             R1, R4                                                 ; +0x2a, 0x3eead2\nMOV             R0, R6                                                 ; +0x2c, 0x3eead4\nBL              _ZNSt6__ndk113unordered_mapIi9FMODMusicNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS1_EEEEEixERS8_; std::unordered_map<int,FMODMusic>::operator[](int const&) ; +0x2e, 0x3eead6\nMOVS            R2, #1; unsigned int                                   ; +0x32, 0x3eeada\nLDRB            R3, [R0,#0x14]                                         ; +0x34, 0x3eeadc\nMOV             R0, R7; this                                           ; +0x36, 0x3eeade\nCMP             R3, #0                                                 ; +0x38, 0x3eeae0\nLDR.W           R3, [R5,#0x190]                                        ; +0x3a, 0x3eeae2\nADD             R3, R9                                                 ; +0x3e, 0x3eeae6\nITE NE                                                                 ; +0x40, 0x3eeae8\nMOVNE           R1, #0                                                 ; +0x42, 0x3eeaea\nMOVEQ           R1, #0x28 ; '('                                        ; +0x44, 0x3eeaec\nADD             R1, R3; unsigned int                                   ; +0x46, 0x3eeaee\nBLX             _ZN4FMOD7Channel11setPositionEjj; FMOD::Channel::setPosition(uint,uint) ; +0x48, 0x3eeaf0\nCMP.W           R8, #0                                                 ; +0x4c, 0x3eeaf4\nBNE             loc_3EEB0C                                             ; +0x50, 0x3eeaf8\nMOV             R1, R4                                                 ; +0x52, 0x3eeafa\nMOV             R0, R6                                                 ; +0x54, 0x3eeafc\nBL              _ZNSt6__ndk113unordered_mapIi9FMODMusicNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS1_EEEEEixERS8_; std::unordered_map<int,FMODMusic>::operator[](int const&) ; +0x56, 0x3eeafe\nMOV             R3, R0                                                 ; +0x5a, 0x3eeb02\nMOV             R0, R5; this                                           ; +0x5c, 0x3eeb04\nLDR             R1, [R3,#4]; FMOD::Sound *                             ; +0x5e, 0x3eeb06\nBL              _ZN15FMODAudioEngine19waitUntilSoundReadyEPN4FMOD5SoundE; FMODAudioEngine::waitUntilSoundReady(FMOD::Sound *) ; +0x60, 0x3eeb08\nADD             SP, SP, #0xC                                           ; +0x64, 0x3eeb0c\nPOP.W           {R4-R9,PC}                                             ; +0x66, 0x3eeb0e", "xrefs": ["FMODAudioEngine::loadAndPlayMusic @ 0x3eff54", "FMODAudioEngine::updateQueuedMusic @ 0x3f0226", "FMODAudioEngine::loadAudioState @ 0x3f15c0", "PlayLayer::prepareMusic @ 0x402dfa", "GJBaseGameLayer::processSongState @ 0x597eb8", "SetupSongTriggerPopup::onPlayback @ 0x6586a2", "MusicBrowser::sliderEnded @ 0x6bd3d2"], "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"}