{"type": "func", "start": 817860, "end": 817972, "name": "sub_C7AC4", "pseudocode": "// \n// sub_C7AC4 from 0xc7ac4 to 0xc7b34 (112 bytes)\n// \n// 3 xrefs:\n// > sub_56490 @ 0x56674\n// > sub_C78B0 @ 0xc7994\n// > FMOD::DSP::getDataParameterIndex @ 0xd4608\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\n__int64 __fastcall sub_C7AC4(__int64 a1, int a2, _DWORD *a3)\n{\n  __int64 v3; // x9\n  __int64 v4; // x8\n  int i; // w10\n  _DWORD *v6; // x10\n  __int64 result; // x0\n\n  v3 = *(_QWORD *)(a1 + 232);\n  v4 = 0;\n  if ( !v3 )\n    goto LABEL_3;\nLABEL_2:\n  for ( i = *(_DWORD *)(v3 + 96); v4 < i; i = 0 )\n  {\n    v6 = *(_DWORD **)(*(_QWORD *)(v3 + 104) + 8 * v4);\n    if ( *v6 == 3 && v6[12] == a2 )\n    {\n      result = 0;\n      if ( a3 )\n        *a3 = v4;\n      return result;\n    }\n    ++v4;\n    if ( v3 )\n      goto LABEL_2;\nLABEL_3:\n    ;\n  }\n  if ( a3 )\n    *a3 = -1;\n  return 31;\n}", "assembly": "; \n; sub_C7AC4 from 0xc7ac4 to 0xc7b34 (112 bytes)\n; \n; 3 xrefs:\n; > sub_56490 @ 0x56674\n; > sub_C78B0 @ 0xc7994\n; > FMOD::DSP::getDataParameterIndex @ 0xd4608\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\nLDR             X9, [X0,#0xE8]                                         ; +0x0, 0xc7ac4\nMOV             X8, XZR                                                ; +0x4, 0xc7ac8\nCBZ             X9, loc_C7AD8                                          ; +0x8, 0xc7acc\nLDR             W10, [X9,#0x60]                                        ; +0xc, 0xc7ad0\nB               loc_C7ADC                                              ; +0x10, 0xc7ad4\nMOV             W10, WZR                                               ; +0x14, 0xc7ad8\nCMP             X8, W10,SXTW                                           ; +0x18, 0xc7adc\nB.GE            loc_C7B10                                              ; +0x1c, 0xc7ae0\nLDR             X10, [X9,#0x68]                                        ; +0x20, 0xc7ae4\nLDR             X10, [X10,X8,LSL#3]                                    ; +0x24, 0xc7ae8\nLDR             W11, [X10]                                             ; +0x28, 0xc7aec\nCMP             W11, #3                                                ; +0x2c, 0xc7af0\nB.NE            loc_C7B04                                              ; +0x30, 0xc7af4\nLDR             W10, [X10,#0x30]                                       ; +0x34, 0xc7af8\nCMP             W10, W1                                                ; +0x38, 0xc7afc\nB.EQ            loc_C7B24                                              ; +0x3c, 0xc7b00\nADD             X8, X8, #1                                             ; +0x40, 0xc7b04\nCBNZ            X9, loc_C7AD0                                          ; +0x44, 0xc7b08\nB               loc_C7AD8                                              ; +0x48, 0xc7b0c\nCBZ             X2, loc_C7B1C                                          ; +0x4c, 0xc7b10\nMOV             W8, #0xFFFFFFFF                                        ; +0x50, 0xc7b14\nSTR             W8, [X2]                                               ; +0x54, 0xc7b18\nMOV             W0, #0x1F                                              ; +0x58, 0xc7b1c\nRET                                                                    ; +0x5c, 0xc7b20\nMOV             W0, WZR                                                ; +0x60, 0xc7b24\nCBZ             X2, locret_C7B20                                       ; +0x64, 0xc7b28\nSTR             W8, [X2]                                               ; +0x68, 0xc7b2c\nRET                                                                    ; +0x6c, 0xc7b30", "xrefs": ["sub_56490 @ 0x56674", "sub_C78B0 @ 0xc7994", "FMOD::DSP::getDataParameterIndex @ 0xd4608"], "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"}