{"type": "func", "start": 7160660, "end": 7160788, "name": "FMODAudioEngine::channelLinkSound", "pseudocode": "// \n// FMODAudioEngine::channelLinkSound from 0x6d4354 to 0x6d43d4 (128 bytes)\n// \n// 2 xrefs:\n// > FMODAudioEngine::playEffectAdvanced @ 0x6daae0\n// > <???> @ 0xb4df0\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:29 +0000\n// \n\n__int64 *__fastcall FMODAudioEngine::channelLinkSound(__int64 a1, int a2, __int64 a3)\n{\n  int v3; // w5\n  int v4; // w4\n  __int64 *result; // x0\n  int v7; // [xsp+1Ch] [xbp+1Ch] BYREF\n\n  v3 = *(_DWORD *)(a3 + 36);\n  v4 = dword_155C250;\n  v7 = a2;\n  *(_DWORD *)(a3 + 40) = dword_155C250;\n  *(_DWORD *)(a3 + 36) = v3 + 1;\n  dword_155C250 = v4 + 1;\n  result = (__int64 *)std::unordered_map<int,std::string>::operator[](a1 + 1424, &v7);\n  if ( result != (__int64 *)(a3 + 8) )\n  {\n    if ( (*(_BYTE *)(a3 + 8) & 1) != 0 )\n      return std::string::assign(result, *(const void **)(a3 + 24), *(_QWORD *)(a3 + 16));\n    else\n      return std::string::assign(result, (const void *)(a3 + 9), *(_BYTE *)(a3 + 8) >> 1);\n  }\n  return result;\n}", "assembly": "; \n; FMODAudioEngine::channelLinkSound from 0x6d4354 to 0x6d43d4 (128 bytes)\n; \n; 2 xrefs:\n; > FMODAudioEngine::playEffectAdvanced @ 0x6daae0\n; > <???> @ 0xb4df0\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:29 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x6d4354\nADRP            X3, #qword_155C248@PAGE                                ; +0x4, 0x6d4358\nADD             X0, X0, #0x590                                         ; +0x8, 0x6d435c\nMOV             X29, SP                                                ; +0xc, 0x6d4360\nADD             X3, X3, #qword_155C248@PAGEOFF                         ; +0x10, 0x6d4364\nADD             X6, X29, #0x20+arg_0                                   ; +0x14, 0x6d4368\nLDR             W5, [X2,#0x24]                                         ; +0x18, 0x6d436c\nLDR             W4, [X3,#(dword_155C250 - 0x155C248)]                  ; +0x1c, 0x6d4370\nSTR             W1, [X6,#-4]!                                          ; +0x20, 0x6d4374\nADD             W5, W5, #1                                             ; +0x24, 0x6d4378\nSTR             W4, [X2,#0x28]                                         ; +0x28, 0x6d437c\nADD             W4, W4, #1                                             ; +0x2c, 0x6d4380\nSTR             W5, [X2,#0x24]                                         ; +0x30, 0x6d4384\nMOV             X1, X6                                                 ; +0x34, 0x6d4388\nSTR             X2, [X29,#0x20+var_10]                                 ; +0x38, 0x6d438c\nSTR             W4, [X3,#(dword_155C250 - 0x155C248)]                  ; +0x3c, 0x6d4390\nBL              _ZNSt6__ndk113unordered_mapIiNS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS_4hashIiEENS_8equal_toIiEENS4_INS_4pairIKiS6_EEEEEixERSC_; std::unordered_map<int,std::string>::operator[](int const&) ; +0x40, 0x6d4394\nLDR             X2, [X29,#0x20+var_10]                                 ; +0x44, 0x6d4398\nADD             X4, X2, #8                                             ; +0x48, 0x6d439c\nCMP             X0, X4                                                 ; +0x4c, 0x6d43a0\nB.EQ            loc_6D43BC                                             ; +0x50, 0x6d43a4\nLDRB            W3, [X2,#8]                                            ; +0x54, 0x6d43a8\nTBZ             W3, #0, loc_6D43C4                                     ; +0x58, 0x6d43ac\nLDR             X1, [X2,#0x18]; int                                    ; +0x5c, 0x6d43b0\nLDR             X2, [X2,#0x10]; size_t                                 ; +0x60, 0x6d43b4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x64, 0x6d43b8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x68, 0x6d43bc\nRET                                                                    ; +0x6c, 0x6d43c0\nADD             X1, X2, #9; int                                        ; +0x70, 0x6d43c4\nUBFX            X2, X3, #1, #7; size_t                                 ; +0x74, 0x6d43c8\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6assignEPKcm; std::string::assign(char const*,ulong) ; +0x78, 0x6d43cc\nB               loc_6D43BC                                             ; +0x7c, 0x6d43d0", "xrefs": ["FMODAudioEngine::playEffectAdvanced @ 0x6daae0", "<???> @ 0xb4df0"], "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"}