{"type": "func", "start": 3154916, "end": 3154986, "name": "FMODAudioEngine::getMusicTimeMS", "pseudocode": "// \n// FMODAudioEngine::getMusicTimeMS from 0x3023e4 to 0x30242a (70 bytes)\n// \n// 3 xrefs:\n// > FMODAudioEngine::getMusicTime @ 0x302432\n// > SetupSongTriggerPopup::onSavePlaybackPos @ 0x524ed8\n// > MusicBrowser::update @ 0x581438\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nunsigned int FMODAudioEngine::getMusicTimeMS(FMODAudioEngine *a1, int a2)\n{\n  int *v3; // r0\n  FMOD::Channel *v4; // r0\n  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::__detail::_Map_base<int,std::pair<int const,FMODMusic>,std::allocator<std::pair<int const,FMODMusic>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](\n         &a1->m_fmodMusic._M_h._M_buckets,\n         (unsigned int *)&v6);\n  v4 = FMODAudioEngine::channelForChannelID(a1, *v3);\n  if ( v4 )\n    FMOD::Channel::getPosition(v4, &v7, 1u);\n  return v7;\n}", "assembly": "; \n; FMODAudioEngine::getMusicTimeMS from 0x3023e4 to 0x30242a (70 bytes)\n; \n; 3 xrefs:\n; > FMODAudioEngine::getMusicTime @ 0x302432\n; > SetupSongTriggerPopup::onSavePlaybackPos @ 0x524ed8\n; > MusicBrowser::update @ 0x581438\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R4,R5,LR}                                             ; +0x0, 0x3023e4\nSUB             SP, SP, #0x14                                          ; +0x2, 0x3023e6\nLDR             R4, =(__stack_chk_guard_ptr - 0x3023F6)                ; +0x4, 0x3023e8\nMOV             R5, R0                                                 ; +0x6, 0x3023ea\nSTR             R1, [SP,#0x14+var_10]                                  ; +0x8, 0x3023ec\nADD.W           R0, R0, #0x108                                         ; +0xa, 0x3023ee\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3023f2\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x3023f4\nADD             R1, SP, #0x14+var_10                                   ; +0x12, 0x3023f6\nLDR             R3, [R4]                                               ; +0x14, 0x3023f8\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x16, 0x3023fa\nMOVS            R3, #0                                                 ; +0x18, 0x3023fc\nSTR             R3, [SP,#0x14+var_C]                                   ; +0x1a, 0x3023fe\nBL              _ZNSt8__detail9_Map_baseIiSt4pairIKi9FMODMusicESaIS4_ENS_10_Select1stESt8equal_toIiESt4hashIiENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixERS2_; std::__detail::_Map_base<int,std::pair<int const,FMODMusic>,std::allocator<std::pair<int const,FMODMusic>>,std::__detail::_Select1st,std::equal_to<int>,std::hash<int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>,true>::operator[](int const&) ; +0x1c, 0x302400\nMOV             R3, R0                                                 ; +0x20, 0x302404\nMOV             R0, R5; this                                           ; +0x22, 0x302406\nLDR             R1, [R3]; int                                          ; +0x24, 0x302408\nBL              _ZN15FMODAudioEngine19channelForChannelIDEi; FMODAudioEngine::channelForChannelID(int) ; +0x26, 0x30240a\nCBZ             R0, loc_302418                                         ; +0x2a, 0x30240e\nADD             R1, SP, #0x14+var_C; unsigned int *                    ; +0x2c, 0x302410\nMOVS            R2, #1; unsigned int                                   ; +0x2e, 0x302412\nBLX             _ZN4FMOD7Channel11getPositionEPjj; FMOD::Channel::getPosition(uint *,uint) ; +0x30, 0x302414\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x34, 0x302418\nLDR             R3, [R4]                                               ; +0x36, 0x30241a\nLDR             R0, [SP,#0x14+var_C]                                   ; +0x38, 0x30241c\nCMP             R2, R3                                                 ; +0x3a, 0x30241e\nBEQ             loc_302426                                             ; +0x3c, 0x302420\nBLX             __stack_chk_fail                                       ; +0x3e, 0x302422\nADD             SP, SP, #0x14                                          ; +0x42, 0x302426\nPOP             {R4,R5,PC}                                             ; +0x44, 0x302428", "xrefs": ["FMODAudioEngine::getMusicTime @ 0x302432", "SetupSongTriggerPopup::onSavePlaybackPos @ 0x524ed8", "MusicBrowser::update @ 0x581438"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}