{"type": "func", "start": 3156952, "end": 3157056, "name": "FMODAudioEngine::isPersistentMatchPlaying", "pseudocode": "// \n// FMODAudioEngine::isPersistentMatchPlaying from 0x302bd8 to 0x302c40 (104 bytes)\n// \n// 3 xrefs:\n// > FMODAudioEngine::loadMusic @ 0x303500\n// > FMODAudioEngine::updateQueuedMusic @ 0x30426c\n// > FMODAudioEngine::queueStartMusic @ 0x304396\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\nint __fastcall FMODAudioEngine::isPersistentMatchPlaying(FMODAudioEngine *a1, int a2, int a3, int a4)\n{\n  unsigned int v6; // r3\n  int isMusicPlaying; // r6\n  unsigned int v9; // [sp+4h] [bp-Ch] BYREF\n  _DWORD v10[2]; // [sp+8h] [bp-8h] BYREF\n\n  v10[0] = a3;\n  v10[1] = a4;\n  v9 = a3;\n  isMusicPlaying = FMODAudioEngine::isMusicPlaying(a1, a3);\n  if ( isMusicPlaying )\n  {\n    FMODAudioEngine::getActiveMusic((FMODAudioEngine *)v10, (int)a1, v9, v6);\n    if ( sub_774DBC(v10, a2) )\n      isMusicPlaying = 0;\n    else\n      isMusicPlaying = *((unsigned __int8 *)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                                              &v9)\n                       + 13);\n    sub_774008(v10);\n  }\n  return isMusicPlaying;\n}", "assembly": "; \n; FMODAudioEngine::isPersistentMatchPlaying from 0x302bd8 to 0x302c40 (104 bytes)\n; \n; 3 xrefs:\n; > FMODAudioEngine::loadMusic @ 0x303500\n; > FMODAudioEngine::updateQueuedMusic @ 0x30426c\n; > FMODAudioEngine::queueStartMusic @ 0x304396\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.W          {R0-R8,LR}                                             ; +0x0, 0x302bd8\nMOV             R8, R1                                                 ; +0x4, 0x302bdc\nLDR             R4, =(__stack_chk_guard_ptr - 0x302BEA)                ; +0x6, 0x302bde\nMOV             R1, R2; int                                            ; +0x8, 0x302be0\nMOV             R7, R0                                                 ; +0xa, 0x302be2\nSTR             R2, [SP,#0x10+var_C]                                   ; +0xc, 0x302be4\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x302be6\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x302be8\nLDR             R3, [R4]                                               ; +0x12, 0x302bea\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x14, 0x302bec\nBL              _ZN15FMODAudioEngine14isMusicPlayingEi; FMODAudioEngine::isMusicPlaying(int) ; +0x16, 0x302bee\nMOV             R6, R0                                                 ; +0x1a, 0x302bf2\nCBZ             R0, loc_302C2C                                         ; +0x1c, 0x302bf4\nADD             R5, SP, #0x10+var_8                                    ; +0x1e, 0x302bf6\nMOV             R1, R7; int                                            ; +0x20, 0x302bf8\nLDR             R2, [SP,#0x10+var_C]                                   ; +0x22, 0x302bfa\nMOV             R0, R5; this                                           ; +0x24, 0x302bfc\nBL              _ZN15FMODAudioEngine14getActiveMusicEi; FMODAudioEngine::getActiveMusic(int) ; +0x26, 0x302bfe\nMOV             R0, R5                                                 ; +0x2a, 0x302c02\nMOV             R1, R8                                                 ; +0x2c, 0x302c04\nBL              sub_774DBC                                             ; +0x2e, 0x302c06\nCBNZ            R0, loc_302C24                                         ; +0x32, 0x302c0a\nADD.W           R0, R7, #0x108                                         ; +0x34, 0x302c0c\nADD             R1, SP, #0x10+var_C                                    ; +0x38, 0x302c10\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&) ; +0x3a, 0x302c12\nLDRB            R6, [R0,#0xD]                                          ; +0x3e, 0x302c16\nB               loc_302C26                                             ; +0x40, 0x302c18\nMOV             R0, R5                                                 ; +0x42, 0x302c1a\nBL              sub_774008                                             ; +0x44, 0x302c1c\nBL              __cxa_end_cleanup                                      ; +0x48, 0x302c20\nMOVS            R6, #0                                                 ; +0x4c, 0x302c24\nMOV             R0, R5                                                 ; +0x4e, 0x302c26\nBL              sub_774008                                             ; +0x50, 0x302c28\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x54, 0x302c2c\nMOV             R0, R6                                                 ; +0x56, 0x302c2e\nLDR             R3, [R4]                                               ; +0x58, 0x302c30\nCMP             R2, R3                                                 ; +0x5a, 0x302c32\nBEQ             loc_302C3A                                             ; +0x5c, 0x302c34\nBLX             __stack_chk_fail                                       ; +0x5e, 0x302c36\nADD             SP, SP, #0x10                                          ; +0x62, 0x302c3a\nPOP.W           {R4-R8,PC}                                             ; +0x64, 0x302c3c", "xrefs": ["FMODAudioEngine::loadMusic @ 0x303500", "FMODAudioEngine::updateQueuedMusic @ 0x30426c", "FMODAudioEngine::queueStartMusic @ 0x304396"], "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"}