user: 请显示与下面列出的汇编代码相匹配的C语言实现:

```asm
<do_bio_cipher>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x888,%rsp
  mov    %rdi,%r13
  mov    %rdi,(%rsp)
  mov    %rsi,%r14
  mov    %rsi,0x8(%rsp)
  mov    %rdx,%r15
  mov    %rdx,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x878(%rsp)
  xor    %eax,%eax
  mov    $0x400,%esi
  lea    D530(%rip),%rdi
  call   <RAND_bytes@plt>
  mov    %eax,%r8d
  mov    $0x0,%r9d
  lea    D525(%rip),%rcx
  lea    D25(%rip),%rdx
  mov    $0x2f,%esi
  lea    D68(%rip),%rdi
  call   <test_int_gt@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  jne    L173
L208:
  mov    0x878(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L132
  mov    %ebx,%eax
  add    $0x888,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L173:
  mov    $0x0,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    %rax,%rbp
  mov    $0x1,%r8d
  mov    %r15,%rcx
  mov    %r14,%rdx
  mov    %r13,%rsi
  mov    %rax,%rdi
  call   <BIO_set_cipher@plt>
  test   %rax,%rax
  setne  %cl
  movzbl %cl,%ecx
  lea    D560(%rip),%rdx
  mov    $0x36,%esi
  lea    D68(%rip),%rdi
  call   <test_true@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  je     L208
  mov    $0x400,%esi
  lea    D530(%rip),%rdi
  call   <BIO_new_mem_buf@plt>
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <BIO_push@plt>
  lea    0x450(%rsp),%rsi
  mov    $0x420,%edx
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  mov    %eax,%ebx
  mov    %eax,0x1c(%rsp)
  mov    %rbp,%rdi
  call   <BIO_free_all@plt>
  cmp    $0x1,%ebx
  jle    L294
  mov    %ebx,%eax
  mov    %rax,0x20(%rsp)
  mov    $0x1,%r12d
  lea    D68(%rip),%r14
L280:
  mov    $0x0,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    %rax,%rbp
  mov    $0x1,%r8d
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rsi
  mov    %rax,%rdi
  call   <BIO_set_cipher@plt>
  test   %rax,%rax
  setne  %cl
  movzbl %cl,%ecx
  lea    D560(%rip),%rdx
  mov    $0x3f,%esi
  mov    %r14,%rdi
  call   <test_true@plt>
  test   %eax,%eax
  je     L293
  mov    $0x400,%esi
  lea    D530(%rip),%rdi
  call   <BIO_new_mem_buf@plt>
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <BIO_push@plt>
  lea    0x30(%rsp),%rbx
  mov    $0x420,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  movzbl 0x450(%rsp,%r12,1),%eax
  not    %eax
  mov    %al,0x30(%rsp,%r12,1)
  mov    %r12d,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  mov    %eax,%r13d
  movzbl 0x450(%rsp,%r12,1),%r9d
  not    %r9d
  movzbl %r9b,%r9d
  movzbl 0x30(%rsp,%r12,1),%r8d
  lea    D255(%rip),%rcx
  lea    D258(%rip),%rdx
  mov    $0x48,%esi
  mov    %r14,%rdi
  call   <test_uchar_eq@plt>
  test   %eax,%eax
  je     L356
  mov    $0x420,%edx
  sub    %r13d,%edx
  lea    0x30(%rsp),%rbx
  movslq %r13d,%rsi
  add    %rbx,%rsi
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  add    %eax,%r13d
  mov    %rbp,%rdi
  call   <BIO_free_all@plt>
  mov    0x1c(%rsp),%eax
  push   %rax
  lea    0x458(%rsp),%rax
  push   %rax
  mov    %r13d,%r9d
  mov    %rbx,%r8
  lea    D77(%rip),%rcx
  lea    D528(%rip),%rdx
  mov    $0x4f,%esi
  mov    %r14,%rdi
  call   <test_mem_eq@plt>
  add    $0x10,%rsp
  test   %eax,%eax
  je     L141
  add    $0x1,%r12
  cmp    0x20(%rsp),%r12
  jne    L280
L294:
  mov    0x1c(%rsp),%ecx
  mov    %ecx,%eax
  shr    $0x1f,%eax
  add    %ecx,%eax
  sar    %eax
  mov    %eax,0x20(%rsp)
  cmp    $0x3,%ecx
  jle    L27
  mov    $0x1,%r12d
  lea    D560(%rip),%r15
  lea    D68(%rip),%r14
  jmp    L105
L293:
  mov    %eax,%ebx
  mov    %r12d,%ecx
  lea    D397(%rip),%rdx
  mov    $0x40,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L356:
  mov    %eax,%ebx
  mov    %r12d,%ecx
  lea    D514(%rip),%rdx
  mov    $0x49,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L141:
  mov    %eax,%ebx
  mov    %r12d,%ecx
  lea    D66(%rip),%rdx
  mov    $0x50,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L193:
  mov    %eax,%ebx
  mov    %r12d,%ecx
  lea    D455(%rip),%rdx
  mov    $0x5b,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L65:
  add    %eax,%ebx
L183:
  movslq %ebx,%rsi
  add    %r13,%rsi
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  test   %eax,%eax
  jne    L65
  mov    %rbp,%rdi
  call   <BIO_free_all@plt>
  mov    0x1c(%rsp),%eax
  push   %rax
  lea    0x458(%rsp),%rax
  push   %rax
  mov    %ebx,%r9d
  lea    0x40(%rsp),%r8
  lea    D77(%rip),%rcx
  lea    D528(%rip),%rdx
  mov    $0x65,%esi
  mov    %r14,%rdi
  call   <test_mem_eq@plt>
  add    $0x10,%rsp
  test   %eax,%eax
  je     L379
  add    $0x1,%r12d
  cmp    0x20(%rsp),%r12d
  jge    L27
L105:
  mov    $0x0,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    %rax,%rbp
  mov    $0x1,%r8d
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rsi
  mov    %rax,%rdi
  call   <BIO_set_cipher@plt>
  test   %rax,%rax
  setne  %cl
  movzbl %cl,%ecx
  mov    %r15,%rdx
  mov    $0x5a,%esi
  mov    %r14,%rdi
  call   <test_true@plt>
  test   %eax,%eax
  je     L193
  mov    $0x400,%esi
  lea    D530(%rip),%rdi
  call   <BIO_new_mem_buf@plt>
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <BIO_push@plt>
  lea    0x30(%rsp),%rdi
  mov    $0x420,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    $0x0,%ebx
  lea    0x30(%rsp),%r13
  jmp    L183
L379:
  mov    %eax,%ebx
  mov    %r12d,%ecx
  lea    D261(%rip),%rdx
  mov    $0x66,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L27:
  mov    $0x0,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    %rax,%rbp
  mov    $0x0,%r8d
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rsi
  mov    %rax,%rdi
  call   <BIO_set_cipher@plt>
  test   %rax,%rax
  setne  %cl
  movzbl %cl,%ecx
  lea    D131(%rip),%rdx
  mov    $0x6f,%esi
  lea    D68(%rip),%rdi
  call   <test_true@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  je     L208
  lea    0x450(%rsp),%rdi
  mov    0x1c(%rsp),%r15d
  mov    %r15d,%esi
  call   <BIO_new_mem_buf@plt>
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <BIO_push@plt>
  mov    %rbp,%rdi
  call   <BIO_flush@plt>
  lea    0x30(%rsp),%rbx
  mov    $0x420,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    $0x420,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  mov    %eax,%r12d
  mov    %rbp,%rdi
  call   <BIO_free_all@plt>
  push   %r12
  push   %rbx
  mov    $0x400,%r9d
  lea    D530(%rip),%r8
  lea    D528(%rip),%rcx
  lea    D491(%rip),%rdx
  mov    $0x78,%esi
  lea    D68(%rip),%rdi
  call   <test_mem_eq@plt>
  mov    %eax,%ebx
  add    $0x10,%rsp
  test   %eax,%eax
  je     L208
  cmp    $0x1,%r15d
  jle    L286
  mov    %r15d,%eax
  mov    %rax,0x28(%rsp)
  mov    $0x1,%r13d
  lea    D68(%rip),%r14
L295:
  mov    $0x0,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    %rax,%rbp
  mov    $0x0,%r8d
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rsi
  mov    %rax,%rdi
  call   <BIO_set_cipher@plt>
  test   %rax,%rax
  setne  %cl
  movzbl %cl,%ecx
  lea    D131(%rip),%rdx
  mov    $0x7e,%esi
  mov    %r14,%rdi
  call   <test_true@plt>
  test   %eax,%eax
  je     L170
  lea    0x450(%rsp),%rdi
  mov    0x1c(%rsp),%esi
  call   <BIO_new_mem_buf@plt>
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <BIO_push@plt>
  lea    0x30(%rsp),%rbx
  mov    $0x420,%edx
  mov    $0x0,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  movzbl 0x450(%rsp,%r13,1),%eax
  not    %eax
  mov    %al,0x30(%rsp,%r13,1)
  mov    %r13d,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  mov    %eax,%r12d
  movzbl 0x450(%rsp,%r13,1),%r9d
  not    %r9d
  movzbl %r9b,%r9d
  movzbl 0x30(%rsp,%r13,1),%r8d
  lea    D255(%rip),%rcx
  lea    D258(%rip),%rdx
  mov    $0x87,%esi
  mov    %r14,%rdi
  call   <test_uchar_eq@plt>
  test   %eax,%eax
  je     L11
  mov    $0x420,%edx
  sub    %r12d,%edx
  lea    0x30(%rsp),%rbx
  movslq %r12d,%rsi
  add    %rbx,%rsi
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  add    %eax,%r12d
  mov    %rbp,%rdi
  call   <BIO_free_all@plt>
  push   %r12
  push   %rbx
  mov    $0x400,%r9d
  lea    D530(%rip),%r8
  lea    D528(%rip),%rcx
  lea    D491(%rip),%rdx
  mov    $0x8e,%esi
  mov    %r14,%rdi
  call   <test_mem_eq@plt>
  add    $0x10,%rsp
  test   %eax,%eax
  je     L393
  add    $0x1,%r13
  cmp    0x28(%rsp),%r13
  jne    L295
L286:
  cmpl   $0x3,0x1c(%rsp)
  jle    L383
  mov    $0x1,%r12d
  lea    D131(%rip),%r15
  lea    D68(%rip),%r14
  jmp    L337
L170:
  mov    %eax,%ebx
  mov    %r13d,%ecx
  lea    D471(%rip),%rdx
  mov    $0x7f,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L11:
  mov    %eax,%ebx
  mov    %r13d,%ecx
  lea    D313(%rip),%rdx
  mov    $0x88,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L393:
  mov    %eax,%ebx
  mov    %r13d,%ecx
  lea    D329(%rip),%rdx
  mov    $0x8f,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L226:
  mov    %r12d,%ecx
  lea    D26(%rip),%rdx
  mov    $0x9a,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L285:
  add    %eax,%ebx
L139:
  movslq %ebx,%rsi
  add    %r13,%rsi
  mov    %r12d,%edx
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  test   %eax,%eax
  jne    L285
  mov    %rbp,%rdi
  call   <BIO_free_all@plt>
  push   %rbx
  lea    0x38(%rsp),%rax
  push   %rax
  mov    $0x400,%r9d
  lea    D530(%rip),%r8
  lea    D528(%rip),%rcx
  lea    D491(%rip),%rdx
  mov    $0xa4,%esi
  mov    %r14,%rdi
  call   <test_mem_eq@plt>
  mov    %eax,%ebx
  add    $0x10,%rsp
  test   %eax,%eax
  je     L384
  add    $0x1,%r12d
  cmp    0x20(%rsp),%r12d
  jge    L312
L337:
  mov    $0x0,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    %rax,%rbp
  mov    $0x0,%r8d
  mov    0x10(%rsp),%rcx
  mov    0x8(%rsp),%rdx
  mov    (%rsp),%rsi
  mov    %rax,%rdi
  call   <BIO_set_cipher@plt>
  test   %rax,%rax
  setne  %cl
  movzbl %cl,%ecx
  mov    %r15,%rdx
  mov    $0x99,%esi
  mov    %r14,%rdi
  call   <test_true@plt>
  mov    %eax,%ebx
  test   %eax,%eax
  je     L226
  lea    0x450(%rsp),%rdi
  mov    0x1c(%rsp),%esi
  call   <BIO_new_mem_buf@plt>
  mov    %eax,%esi
  mov    %rbp,%rdi
  call   <BIO_push@plt>
  lea    0x30(%rsp),%rdi
  mov    $0x420,%edx
  mov    $0x0,%esi
  call   <memset@plt>
  mov    $0x0,%ebx
  lea    0x30(%rsp),%r13
  jmp    L139
L384:
  mov    %r12d,%ecx
  lea    D404(%rip),%rdx
  mov    $0xa5,%esi
  lea    D68(%rip),%rdi
  call   <test_info@plt>
  jmp    L208
L312:
  mov    $0x1,%ebx
  jmp    L208
L383:
  mov    $0x1,%ebx
  jmp    L208
L132:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D525
data_type: string
name: parse_data
arguments: tag: D25
data_type: string
name: parse_data
arguments: tag: D68
data_type: string
name: parse_data
arguments: tag: D560
data_type: string
name: parse_data
arguments: tag: D255
data_type: string
name: parse_data
arguments: tag: D258
data_type: string
name: parse_data
arguments: tag: D77
data_type: string
name: parse_data
arguments: tag: D528
data_type: string
name: parse_data
arguments: tag: D397
data_type: string
name: parse_data
arguments: tag: D514
data_type: string
name: parse_data
arguments: tag: D66
data_type: string
name: parse_data
arguments: tag: D455
data_type: string
name: parse_data
arguments: tag: D261
data_type: string
name: parse_data
arguments: tag: D131
data_type: string
name: parse_data
arguments: tag: D491
data_type: string
name: parse_data
arguments: tag: D471
data_type: string
name: parse_data
arguments: tag: D313
data_type: string
name: parse_data
arguments: tag: D329
data_type: string
name: parse_data
arguments: tag: D26
data_type: string
name: parse_data
arguments: tag: D404
data_type: string

tool: D525: 0

tool: D25: RAND_bytes(inp, DATA_SIZE)

tool: D68: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c

tool: D560: BIO_set_cipher(b, cipher, key, iv, ENCRYPT)

tool: D255: (unsigned char)~ref[i]

tool: D258: out[i]

tool: D77: ref

tool: D528: out

tool: D397: Split encrypt failed @ operation %d

tool: D514: Encrypt overstep check failed @ operation %d

tool: D66: Encrypt compare failed @ operation %d

tool: D455: Small chunk encrypt failed @ operation %d

tool: D261: Small chunk encrypt compare failed @ operation %d

tool: D131: BIO_set_cipher(b, cipher, key, iv, DECRYPT)

tool: D491: inp

tool: D471: Split decrypt failed @ operation %d

tool: D313: Decrypt overstep check failed @ operation %d

tool: D329: Decrypt compare failed @ operation %d

tool: D26: Small chunk decrypt failed @ operation %d

tool: D404: Small chunk decrypt compare failed @ operation %d

assistant: ```c
int do_bio_cipher(const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) {
  BIO *b;
  static unsigned char inp[(1024 + 32)] = {0};
  unsigned char out[(1024 + 32)], ref[(1024 + 32)];
  int i, lref, len;
  if (!test_int_gt("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 47, "RAND_bytes(inp, DATA_SIZE)", "0", RAND_bytes(inp, 1024), 0))
    return 0;
  b = BIO_new(BIO_f_cipher());
  if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 54, "BIO_set_cipher(b, cipher, key, iv, ENCRYPT)", (BIO_set_cipher(b, cipher, key, iv, 1)) != 0))
    return 0;
  BIO_push(b, BIO_new_mem_buf(inp, 1024));
  lref = BIO_read(b, ref, sizeof(ref));
  BIO_free_all(b);
  for (i = 1; i < lref; i++) {
    b = BIO_new(BIO_f_cipher());
    if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 63, "BIO_set_cipher(b, cipher, key, iv, ENCRYPT)", (BIO_set_cipher(b, cipher, key, iv, 1)) != 0)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 64, "Split encrypt failed @ operation %d", i);
      return 0;
    }
    BIO_push(b, BIO_new_mem_buf(inp, 1024));
    memset(out, 0, sizeof(out));
    out[i] = ~ref[i];
    len = BIO_read(b, out, i);
    if (!test_uchar_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 72, "out[i]", "(unsigned char)~ref[i]", out[i], (unsigned char)~ref[i])) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 73, "Encrypt overstep check failed @ operation %d", i);
      return 0;
    }
    len += BIO_read(b, out + len, sizeof(out) - len);
    BIO_free_all(b);
    if (!test_mem_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 79, "out", "ref", out, len, ref, lref)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 80, "Encrypt compare failed @ operation %d", i);
      return 0;
    }
  }
  for (i = 1; i < lref / 2; i++) {
    int delta;
    b = BIO_new(BIO_f_cipher());
    if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 90, "BIO_set_cipher(b, cipher, key, iv, ENCRYPT)", (BIO_set_cipher(b, cipher, key, iv, 1)) != 0)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 91, "Small chunk encrypt failed @ operation %d", i);
      return 0;
    }
    BIO_push(b, BIO_new_mem_buf(inp, 1024));
    memset(out, 0, sizeof(out));
    for (len = 0; (delta = BIO_read(b, out + len, i));) {
      len += delta;
    }
    BIO_free_all(b);
    if (!test_mem_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 101, "out", "ref", out, len, ref, lref)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 102, "Small chunk encrypt compare failed @ operation %d", i);
      return 0;
    }
  }
  b = BIO_new(BIO_f_cipher());
  if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 111, "BIO_set_cipher(b, cipher, key, iv, DECRYPT)", (BIO_set_cipher(b, cipher, key, iv, 0)) != 0))
    return 0;
  BIO_push(b, BIO_new_mem_buf(ref, lref));
  (void)BIO_flush(b);
  memset(out, 0, sizeof(out));
  len = BIO_read(b, out, sizeof(out));
  BIO_free_all(b);
  if (!test_mem_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 120, "inp", "out", inp, 1024, out, len))
    return 0;
  for (i = 1; i < lref; i++) {
    b = BIO_new(BIO_f_cipher());
    if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 126, "BIO_set_cipher(b, cipher, key, iv, DECRYPT)", (BIO_set_cipher(b, cipher, key, iv, 0)) != 0)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 127, "Split decrypt failed @ operation %d", i);
      return 0;
    }
    BIO_push(b, BIO_new_mem_buf(ref, lref));
    memset(out, 0, sizeof(out));
    out[i] = ~ref[i];
    len = BIO_read(b, out, i);
    if (!test_uchar_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 135, "out[i]", "(unsigned char)~ref[i]", out[i], (unsigned char)~ref[i])) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 136, "Decrypt overstep check failed @ operation %d", i);
      return 0;
    }
    len += BIO_read(b, out + len, sizeof(out) - len);
    BIO_free_all(b);
    if (!test_mem_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 142, "inp", "out", inp, 1024, out, len)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 143, "Decrypt compare failed @ operation %d", i);
      return 0;
    }
  }
  for (i = 1; i < lref / 2; i++) {
    int delta;
    b = BIO_new(BIO_f_cipher());
    if (!test_true("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 153, "BIO_set_cipher(b, cipher, key, iv, DECRYPT)", (BIO_set_cipher(b, cipher, key, iv, 0)) != 0)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 154, "Small chunk decrypt failed @ operation %d", i);
      return 0;
    }
    BIO_push(b, BIO_new_mem_buf(ref, lref));
    memset(out, 0, sizeof(out));
    for (len = 0; (delta = BIO_read(b, out + len, i));) {
      len += delta;
    }
    BIO_free_all(b);
    if (!test_mem_eq("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 164, "inp", "out", inp, 1024, out, len)) {
      test_info("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/artclarke/humble-video/refs/heads/master/humble-video-captive/src/main/gnu/openssl/csrc/test/bio_enc_test.c", 165, "Small chunk decrypt compare failed @ operation %d", i);
      return 0;
    }
  }
  return 1;
}
```