{"type": "func", "start": 835116, "end": 835196, "name": "sub_CBE2C", "pseudocode": "// \n// sub_CBE2C from 0xcbe2c to 0xcbe7c (80 bytes)\n// \n// 6 xrefs:\n// > sub_70A34 @ 0x70a9c\n// > sub_7FE24 @ 0x7fef0\n// > sub_A8048 @ 0xa80ac\n// > sub_B40D4 @ 0xb4164\n// > sub_B8FA8 @ 0xb90b4\n// > FMOD::DSP::setParameterBool @ 0xd3d90\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_CBE2C(__int64 a1, int a2)\n{\n  __int64 v2; // x8\n  __int64 (__fastcall *v3)(__int64); // x3\n\n  if ( a2 < 0 )\n    return 31;\n  v2 = *(_QWORD *)(a1 + 232);\n  if ( !v2 || *(_DWORD *)(v2 + 96) <= a2 )\n    return 31;\n  v3 = *(__int64 (__fastcall **)(__int64))(v2 + 128);\n  if ( v3 )\n  {\n    if ( **(_DWORD **)(*(_QWORD *)(v2 + 104) + 8LL * a2) == 2 )\n    {\n      *(_QWORD *)(a1 + 176) = a1;\n      return v3(a1 + 176);\n    }\n    return 31;\n  }\n  return 68;\n}", "assembly": "; \n; sub_CBE2C from 0xcbe2c to 0xcbe7c (80 bytes)\n; \n; 6 xrefs:\n; > sub_70A34 @ 0x70a9c\n; > sub_7FE24 @ 0x7fef0\n; > sub_A8048 @ 0xa80ac\n; > sub_B40D4 @ 0xb4164\n; > sub_B8FA8 @ 0xb90b4\n; > FMOD::DSP::setParameterBool @ 0xd3d90\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\nTBNZ            W1, #0x1F, loc_CBE74                                   ; +0x0, 0xcbe2c\nLDR             X8, [X0,#0xE8]                                         ; +0x4, 0xcbe30\nCBZ             X8, loc_CBE74                                          ; +0x8, 0xcbe34\nLDR             W9, [X8,#0x60]                                         ; +0xc, 0xcbe38\nCMP             W9, W1                                                 ; +0x10, 0xcbe3c\nB.LE            loc_CBE74                                              ; +0x14, 0xcbe40\nLDR             X3, [X8,#0x80]                                         ; +0x18, 0xcbe44\nCBZ             X3, loc_CBE78                                          ; +0x1c, 0xcbe48\nLDR             X8, [X8,#0x68]                                         ; +0x20, 0xcbe4c\nLDR             X8, [X8,W1,SXTW#3]                                     ; +0x24, 0xcbe50\nLDR             W8, [X8]                                               ; +0x28, 0xcbe54\nCMP             W8, #2                                                 ; +0x2c, 0xcbe58\nB.NE            loc_CBE74                                              ; +0x30, 0xcbe5c\nADD             X8, X0, #0xB0                                          ; +0x34, 0xcbe60\nAND             W2, W2, #1                                             ; +0x38, 0xcbe64\nSTR             X0, [X0,#0xB0]                                         ; +0x3c, 0xcbe68\nMOV             X0, X8                                                 ; +0x40, 0xcbe6c\nBR              X3                                                     ; +0x44, 0xcbe70\nB               loc_CD08C                                              ; +0x48, 0xcbe74\nB               loc_CD480                                              ; +0x4c, 0xcbe78", "xrefs": ["sub_70A34 @ 0x70a9c", "sub_7FE24 @ 0x7fef0", "sub_A8048 @ 0xa80ac", "sub_B40D4 @ 0xb4164", "sub_B8FA8 @ 0xb90b4", "FMOD::DSP::setParameterBool @ 0xd3d90"], "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"}