{"type": "func", "start": 4123412, "end": 4123482, "name": "FMODAudioEngine::getMusicTimeMS", "pseudocode": "// \n// FMODAudioEngine::getMusicTimeMS from 0x3eeb14 to 0x3eeb5a (70 bytes)\n// \n// 3 xrefs:\n// > FMODAudioEngine::getMusicTime @ 0x3eeb62\n// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x658280\n// > MusicBrowser::update @ 0x6bd2c4\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\nunsigned int __fastcall FMODAudioEngine::getMusicTimeMS(FMODAudioEngine *this, unsigned int a2)\n{\n  int *v3; // r0\n  FMOD::Channel *v4; // r0\n  unsigned int v6; // [sp+4h] [bp-10h] BYREF\n  unsigned int v7; // [sp+8h] [bp-Ch] BYREF\n\n  v6 = a2;\n  v7 = 0;\n  v3 = std::unordered_map<int,FMODMusic>::operator[]((int)this + 264, &v6);\n  v4 = (FMOD::Channel *)FMODAudioEngine::channelForChannelID(this, *v3);\n  if ( v4 )\n    FMOD::Channel::getPosition(v4, &v7, 1u);\n  return v7;\n}", "assembly": "; \n; FMODAudioEngine::getMusicTimeMS from 0x3eeb14 to 0x3eeb5a (70 bytes)\n; \n; 3 xrefs:\n; > FMODAudioEngine::getMusicTime @ 0x3eeb62\n; > SetupSongTriggerPopup::onSavePlaybackPos @ 0x658280\n; > MusicBrowser::update @ 0x6bd2c4\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            {R4,R5,LR}                                             ; +0x0, 0x3eeb14\nSUB             SP, SP, #0x14                                          ; +0x2, 0x3eeb16\nLDR             R4, =(__stack_chk_guard_ptr - 0x3EEB26)                ; +0x4, 0x3eeb18\nMOV             R5, R0                                                 ; +0x6, 0x3eeb1a\nSTR             R1, [SP,#0x14+var_10]                                  ; +0x8, 0x3eeb1c\nADD.W           R0, R0, #0x108                                         ; +0xa, 0x3eeb1e\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3eeb22\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x3eeb24\nADD             R1, SP, #0x14+var_10                                   ; +0x12, 0x3eeb26\nLDR             R3, [R4]                                               ; +0x14, 0x3eeb28\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x16, 0x3eeb2a\nMOVS            R3, #0                                                 ; +0x18, 0x3eeb2c\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x1a, 0x3eeb2e\nBL              _ZNSt6__ndk113unordered_mapIi9FMODMusicNS_4hashIiEENS_8equal_toIiEENS_9allocatorINS_4pairIKiS1_EEEEEixERS8_; std::unordered_map<int,FMODMusic>::operator[](int const&) ; +0x1c, 0x3eeb30\nMOV             R3, R0                                                 ; +0x20, 0x3eeb34\nMOV             R0, R5; this                                           ; +0x22, 0x3eeb36\nLDR             R1, [R3]; int                                          ; +0x24, 0x3eeb38\nBL              _ZN15FMODAudioEngine19channelForChannelIDEi; FMODAudioEngine::channelForChannelID(int) ; +0x26, 0x3eeb3a\nCBZ             R0, loc_3EEB48                                         ; +0x2a, 0x3eeb3e\nADD             R1, SP, #0x14+var_C; unsigned int *                    ; +0x2c, 0x3eeb40\nMOVS            R2, #1; unsigned int                                   ; +0x2e, 0x3eeb42\nBLX             _ZN4FMOD7Channel11getPositionEPjj; FMOD::Channel::getPosition(uint *,uint) ; +0x30, 0x3eeb44\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x34, 0x3eeb48\nLDR             R3, [R4]                                               ; +0x36, 0x3eeb4a\nLDR             R0, [SP,#0x14+var_C]                                   ; +0x38, 0x3eeb4c\nCMP             R2, R3                                                 ; +0x3a, 0x3eeb4e\nBEQ             loc_3EEB56                                             ; +0x3c, 0x3eeb50\nBLX             __stack_chk_fail                                       ; +0x3e, 0x3eeb52\nADD             SP, SP, #0x14                                          ; +0x42, 0x3eeb56\nPOP             {R4,R5,PC}                                             ; +0x44, 0x3eeb58", "xrefs": ["FMODAudioEngine::getMusicTime @ 0x3eeb62", "SetupSongTriggerPopup::onSavePlaybackPos @ 0x658280", "MusicBrowser::update @ 0x6bd2c4"], "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"}