{"type": "func", "start": 835020, "end": 835116, "name": "sub_CBDCC", "pseudocode": "// \n// sub_CBDCC from 0xcbdcc to 0xcbe2c (96 bytes)\n// \n// 10 xrefs:\n// > sub_7E280 @ 0x7e308\n// > sub_7F380 @ 0x7f418\n// > sub_7FE24 @ 0x7feb8\n// > sub_B1770 @ 0xb17ec\n// > sub_B82C4 @ 0xb836c\n// > sub_B8FA8 @ 0xb907c\n// > sub_C3170 @ 0xc31f8\n// > sub_C4E1C @ 0xc4e84\n// > FMOD::DSP::setParameterInt @ 0xd3cac\n// > sub_D6DF4 @ 0xd6e6c\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:14:48 +0000\n// \n\n__int64 __fastcall sub_CBDCC(__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 + 120);\n  if ( v3 )\n  {\n    if ( **(_DWORD **)(*(_QWORD *)(v2 + 104) + 8LL * a2) == 1 )\n    {\n      *(_QWORD *)(a1 + 176) = a1;\n      return v3(a1 + 176);\n    }\n    return 31;\n  }\n  return 68;\n}", "assembly": "; \n; sub_CBDCC from 0xcbdcc to 0xcbe2c (96 bytes)\n; \n; 10 xrefs:\n; > sub_7E280 @ 0x7e308\n; > sub_7F380 @ 0x7f418\n; > sub_7FE24 @ 0x7feb8\n; > sub_B1770 @ 0xb17ec\n; > sub_B82C4 @ 0xb836c\n; > sub_B8FA8 @ 0xb907c\n; > sub_C3170 @ 0xc31f8\n; > sub_C4E1C @ 0xc4e84\n; > FMOD::DSP::setParameterInt @ 0xd3cac\n; > sub_D6DF4 @ 0xd6e6c\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:14:48 +0000\n; \nTBNZ            W1, #0x1F, loc_CBE24                                   ; +0x0, 0xcbdcc\nLDR             X8, [X0,#0xE8]                                         ; +0x4, 0xcbdd0\nCBZ             X8, loc_CBE24                                          ; +0x8, 0xcbdd4\nLDR             W9, [X8,#0x60]                                         ; +0xc, 0xcbdd8\nCMP             W9, W1                                                 ; +0x10, 0xcbddc\nB.LE            loc_CBE24                                              ; +0x14, 0xcbde0\nLDR             X3, [X8,#0x78]                                         ; +0x18, 0xcbde4\nCBZ             X3, loc_CBE28                                          ; +0x1c, 0xcbde8\nLDR             X8, [X8,#0x68]                                         ; +0x20, 0xcbdec\nLDR             X8, [X8,W1,SXTW#3]                                     ; +0x24, 0xcbdf0\nLDR             W9, [X8]                                               ; +0x28, 0xcbdf4\nCMP             W9, #1                                                 ; +0x2c, 0xcbdf8\nB.NE            loc_CBE24                                              ; +0x30, 0xcbdfc\nLDP             W9, W8, [X8,#0x30]                                     ; +0x34, 0xcbe00\nSTR             X0, [X0,#0xB0]                                         ; +0x38, 0xcbe04\nCMP             W9, W2                                                 ; +0x3c, 0xcbe08\nCSEL            W9, W9, W2, GT                                         ; +0x40, 0xcbe0c\nCMP             W9, W8                                                 ; +0x44, 0xcbe10\nCSEL            W2, W8, W9, GT                                         ; +0x48, 0xcbe14\nADD             X8, X0, #0xB0                                          ; +0x4c, 0xcbe18\nMOV             X0, X8                                                 ; +0x50, 0xcbe1c\nBR              X3                                                     ; +0x54, 0xcbe20\nB               loc_CD08C                                              ; +0x58, 0xcbe24\nB               loc_CD480                                              ; +0x5c, 0xcbe28", "xrefs": ["sub_7E280 @ 0x7e308", "sub_7F380 @ 0x7f418", "sub_7FE24 @ 0x7feb8", "sub_B1770 @ 0xb17ec", "sub_B82C4 @ 0xb836c", "sub_B8FA8 @ 0xb907c", "sub_C3170 @ 0xc31f8", "sub_C4E1C @ 0xc4e84", "FMOD::DSP::setParameterInt @ 0xd3cac", "sub_D6DF4 @ 0xd6e6c"], "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"}