user: Translate the below assembly code into C programming language:

```asm
<do_bio_cipher>:
  endbr64
  push   %r15
  mov    %rsi,%r15
  push   %r14
  lea    D207(%rip),%r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdx,%rbx
  sub    $0x898,%rsp
  mov    %rdi,0x8(%rsp)
  lea    D91(%rip),%rdi
  mov    %rsi,0x10(%rsp)
  mov    $0x400,%esi
  mov    %rdx,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x888(%rsp)
  xor    %eax,%eax
  call   <RAND_bytes@plt>
  xor    %r9d,%r9d
  mov    $0x2f,%esi
  mov    %r14,%rdi
  mov    %eax,%r8d
  lea    D153(%rip),%rcx
  lea    D141(%rip),%rdx
  call   <test_int_gt@plt>
  test   %eax,%eax
  jne    L352
L170:
  xor    %r8d,%r8d
L334:
  mov    0x888(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L270
  add    $0x898,%rsp
  mov    %r8d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L352:
  xor    %eax,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    %rbx,%rcx
  mov    %r15,%rdx
  mov    %r13,%rsi
  mov    %rax,%rdi
  mov    $0x1,%r8d
  mov    %rax,%rbp
  call   <BIO_set_cipher@plt>
  xor    %ecx,%ecx
  mov    $0x36,%esi
  mov    %r14,%rdi
  test   %rax,%rax
  lea    D320(%rip),%rdx
  setne  %cl
  call   <test_true@plt>
  test   %eax,%eax
  je     L170
  mov    $0x400,%esi
  lea    D91(%rip),%rdi
  lea    0x460(%rsp),%r15
  call   <BIO_new_mem_buf@plt>
  mov    %rbp,%rdi
  mov    %eax,%esi
  call   <BIO_push@plt>
  mov    $0x420,%edx
  mov    %r15,%rsi
  mov    %rbp,%rdi
  mov    %r15,0x30(%rsp)
  call   <BIO_read@plt>
  mov    %rbp,%rdi
  mov    %eax,%ebx
  mov    %eax,0x24(%rsp)
  call   <BIO_free_all@plt>
  movslq %ebx,%rax
  cmp    $0x1,%eax
  jle    L129
  mov    %rax,0x28(%rsp)
  mov    $0x1,%r12d
  jmp    L164
  nopw   0x0(%rax,%rax,1)
L356:
  mov    $0x400,%esi
  lea    D91(%rip),%rdi
  lea    0x40(%rsp),%rbx
  call   <BIO_new_mem_buf@plt>
  mov    %rbp,%rdi
  mov    %eax,%esi
  call   <BIO_push@plt>
  xor    %esi,%esi
  mov    $0x420,%edx
  mov    %rbx,%rdi
  call   <memset@plt>
  movzbl (%r15,%r12,1),%eax
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    0x20(%rsp),%edx
  not    %eax
  mov    %al,0x40(%rsp,%r12,1)
  call   <BIO_read@plt>
  movzbl (%r15,%r12,1),%r9d
  mov    %r14,%rdi
  movzbl 0x40(%rsp,%r12,1),%r8d
  lea    D81(%rip),%rcx
  lea    D321(%rip),%rdx
  mov    $0x48,%esi
  mov    %eax,%r13d
  not    %r9d
  movzbl %r9b,%r9d
  call   <test_uchar_eq@plt>
  test   %eax,%eax
  je     L187
  movslq %r13d,%rsi
  mov    $0x420,%edx
  mov    %rbp,%rdi
  sub    %r13d,%edx
  add    %rbx,%rsi
  call   <BIO_read@plt>
  mov    %rbp,%rdi
  add    %eax,%r13d
  call   <BIO_free_all@plt>
  mov    0x24(%rsp),%eax
  mov    %r13d,%r9d
  mov    %rbx,%r8
  lea    D269(%rip),%rcx
  lea    D257(%rip),%rdx
  mov    $0x4f,%esi
  mov    %r14,%rdi
  push   %rax
  push   %r15
  call   <test_mem_eq@plt>
  pop    %r11
  pop    %rbp
  test   %eax,%eax
  je     L246
  add    $0x1,%r12
  cmp    0x28(%rsp),%r12
  je     L150
L164:
  xor    %eax,%eax
  mov    %r12d,0x20(%rsp)
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    0x18(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  mov    $0x1,%r8d
  mov    0x8(%rsp),%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <BIO_set_cipher@plt>
  xor    %ecx,%ecx
  mov    $0x3f,%esi
  mov    %r14,%rdi
  test   %rax,%rax
  lea    D320(%rip),%rdx
  setne  %cl
  call   <test_true@plt>
  test   %eax,%eax
  jne    L356
  mov    0x20(%rsp),%r15d
  mov    $0x40,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D259(%rip),%rdx
  mov    %r15d,%ecx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
  cs nopw 0x0(%rax,%rax,1)
L150:
  mov    0x24(%rsp),%ecx
  mov    %ecx,%eax
  shr    $0x1f,%eax
  add    %ecx,%eax
  sar    %eax
  mov    %eax,0x28(%rsp)
  cmp    $0x3,%ecx
  jle    L93
  mov    %eax,0x20(%rsp)
  mov    0x18(%rsp),%r15
  mov    $0x1,%r12d
  nopl   0x0(%rax)
L217:
  xor    %eax,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    0x10(%rsp),%rdx
  mov    0x8(%rsp),%rsi
  mov    %r15,%rcx
  mov    %rax,%rdi
  mov    $0x1,%r8d
  mov    %rax,%r13
  call   <BIO_set_cipher@plt>
  xor    %ecx,%ecx
  mov    $0x5a,%esi
  mov    %r14,%rdi
  test   %rax,%rax
  lea    D320(%rip),%rdx
  setne  %cl
  call   <test_true@plt>
  test   %eax,%eax
  je     L233
  mov    $0x400,%esi
  lea    D91(%rip),%rdi
  xor    %ebp,%ebp
  call   <BIO_new_mem_buf@plt>
  mov    %r13,%rdi
  mov    %eax,%esi
  call   <BIO_push@plt>
  mov    $0x420,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  jmp    L249
  xchg   %ax,%ax
L74:
  add    %eax,%ebp
L249:
  movslq %ebp,%rsi
  mov    %r12d,%edx
  mov    %r13,%rdi
  add    %rbx,%rsi
  call   <BIO_read@plt>
  test   %eax,%eax
  jne    L74
  mov    %r13,%rdi
  call   <BIO_free_all@plt>
  mov    0x24(%rsp),%eax
  mov    %ebp,%r9d
  mov    %rbx,%r8
  lea    D269(%rip),%rcx
  lea    D257(%rip),%rdx
  mov    $0x65,%esi
  mov    %r14,%rdi
  push   %rax
  push   0x38(%rsp)
  call   <test_mem_eq@plt>
  pop    %r9
  pop    %r10
  test   %eax,%eax
  je     L133
  add    $0x1,%r12d
  cmp    %r12d,0x20(%rsp)
  jg     L217
L93:
  xor    %eax,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    0x18(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  xor    %r8d,%r8d
  mov    0x8(%rsp),%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <BIO_set_cipher@plt>
  xor    %ecx,%ecx
  mov    $0x6f,%esi
  mov    %r14,%rdi
  test   %rax,%rax
  lea    D395(%rip),%rdx
  setne  %cl
  call   <test_true@plt>
  test   %eax,%eax
  je     L170
  mov    0x24(%rsp),%r13d
  mov    0x30(%rsp),%r15
  lea    0x40(%rsp),%rbx
  mov    %r13d,%esi
  mov    %r15,%rdi
  call   <BIO_new_mem_buf@plt>
  mov    %rbp,%rdi
  mov    %eax,%esi
  call   <BIO_push@plt>
  mov    %rbp,%rdi
  call   <BIO_flush@plt>
  mov    $0x420,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  mov    $0x420,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <BIO_read@plt>
  mov    %rbp,%rdi
  mov    %eax,%r12d
  call   <BIO_free_all@plt>
  push   %r12
  mov    %r14,%rdi
  mov    $0x400,%r9d
  push   %rbx
  lea    D91(%rip),%r8
  lea    D257(%rip),%rcx
  mov    $0x78,%esi
  lea    D336(%rip),%rdx
  call   <test_mem_eq@plt>
  pop    %rdi
  pop    %r8
  test   %eax,%eax
  je     L170
  cmp    $0x1,%r13d
  jle    L398
  movslq %r13d,%rax
  mov    $0x1,%r13d
  mov    %rax,0x38(%rsp)
  jmp    L381
  nopl   0x0(%rax)
L125:
  mov    0x24(%rsp),%esi
  mov    %r15,%rdi
  call   <BIO_new_mem_buf@plt>
  mov    %rbp,%rdi
  mov    %eax,%esi
  call   <BIO_push@plt>
  xor    %esi,%esi
  mov    $0x420,%edx
  mov    %rbx,%rdi
  call   <memset@plt>
  movzbl (%r15,%r13,1),%eax
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  mov    0x20(%rsp),%edx
  not    %eax
  mov    %al,(%rbx,%r13,1)
  call   <BIO_read@plt>
  movzbl (%r15,%r13,1),%r9d
  mov    %r14,%rdi
  movzbl (%rbx,%r13,1),%r8d
  lea    D81(%rip),%rcx
  lea    D321(%rip),%rdx
  mov    $0x87,%esi
  mov    %eax,%r12d
  not    %r9d
  movzbl %r9b,%r9d
  call   <test_uchar_eq@plt>
  test   %eax,%eax
  je     L159
  movslq %r12d,%rsi
  mov    $0x420,%edx
  mov    %rbp,%rdi
  sub    %r12d,%edx
  add    %rbx,%rsi
  call   <BIO_read@plt>
  mov    %rbp,%rdi
  add    %eax,%r12d
  call   <BIO_free_all@plt>
  push   %r12
  mov    $0x8e,%esi
  mov    %r14,%rdi
  push   %rbx
  lea    D257(%rip),%rcx
  mov    $0x400,%r9d
  lea    D91(%rip),%r8
  lea    D336(%rip),%rdx
  call   <test_mem_eq@plt>
  pop    %rcx
  pop    %rsi
  test   %eax,%eax
  je     L228
  add    $0x1,%r13
  cmp    0x38(%rsp),%r13
  je     L324
L381:
  xor    %eax,%eax
  mov    %r13d,0x20(%rsp)
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    0x18(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  xor    %r8d,%r8d
  mov    0x8(%rsp),%rsi
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <BIO_set_cipher@plt>
  xor    %ecx,%ecx
  mov    $0x7e,%esi
  mov    %r14,%rdi
  test   %rax,%rax
  lea    D395(%rip),%rdx
  setne  %cl
  call   <test_true@plt>
  test   %eax,%eax
  jne    L125
  mov    0x20(%rsp),%r15d
  mov    $0x7f,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D25(%rip),%rdx
  mov    %r15d,%ecx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
  nopl   0x0(%rax)
L187:
  mov    0x20(%rsp),%r15d
  mov    $0x49,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D290(%rip),%rdx
  mov    %r15d,%ecx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
  nopw   0x0(%rax,%rax,1)
L246:
  mov    0x20(%rsp),%r15d
  mov    $0x50,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D323(%rip),%rdx
  mov    %r15d,%ecx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
L233:
  mov    %r12d,%ecx
  mov    $0x5b,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D173(%rip),%rdx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
L133:
  mov    %r12d,%ecx
  mov    $0x66,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D223(%rip),%rdx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
L129:
  mov    0x24(%rsp),%ecx
  mov    %ecx,%eax
  shr    $0x1f,%eax
  add    %ecx,%eax
  sar    %eax
  mov    %eax,0x28(%rsp)
  jmp    L93
L324:
  cmpl   $0x3,0x24(%rsp)
  jle    L398
  mov    $0x1,%r12d
  lea    D91(%rip),%rbp
L135:
  xor    %eax,%eax
  call   <BIO_f_cipher@plt>
  mov    %eax,%edi
  call   <BIO_new@plt>
  mov    0x18(%rsp),%rcx
  mov    0x10(%rsp),%rdx
  xor    %r8d,%r8d
  mov    0x8(%rsp),%rsi
  mov    %rax,%rdi
  mov    %rax,%r15
  call   <BIO_set_cipher@plt>
  xor    %ecx,%ecx
  mov    $0x99,%esi
  mov    %r14,%rdi
  test   %rax,%rax
  lea    D395(%rip),%rdx
  setne  %cl
  call   <test_true@plt>
  test   %eax,%eax
  je     L383
  mov    0x24(%rsp),%esi
  mov    0x30(%rsp),%rdi
  xor    %r13d,%r13d
  call   <BIO_new_mem_buf@plt>
  mov    %r15,%rdi
  mov    %eax,%esi
  call   <BIO_push@plt>
  mov    $0x420,%edx
  xor    %esi,%esi
  mov    %rbx,%rdi
  call   <memset@plt>
  jmp    L99
  nopl   (%rax)
L394:
  add    %eax,%r13d
L99:
  movslq %r13d,%rsi
  mov    %r12d,%edx
  mov    %r15,%rdi
  add    %rbx,%rsi
  call   <BIO_read@plt>
  test   %eax,%eax
  jne    L394
  mov    %r15,%rdi
  call   <BIO_free_all@plt>
  push   %r13
  mov    %rbp,%r8
  mov    $0x400,%r9d
  push   %rbx
  lea    D336(%rip),%rdx
  mov    $0xa4,%esi
  mov    %r14,%rdi
  lea    D257(%rip),%rcx
  call   <test_mem_eq@plt>
  mov    %eax,%r8d
  pop    %rax
  pop    %rdx
  test   %r8d,%r8d
  je     L100
  add    $0x1,%r12d
  cmp    0x28(%rsp),%r12d
  jl     L135
L398:
  mov    $0x1,%r8d
  jmp    L334
L228:
  mov    0x20(%rsp),%r15d
  mov    $0x8f,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D5(%rip),%rdx
  mov    %r15d,%ecx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
L159:
  mov    0x20(%rsp),%r15d
  mov    $0x88,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D291(%rip),%rdx
  mov    %r15d,%ecx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
L270:
  call   <__stack_chk_fail@plt>
L100:
  mov    %r12d,%ecx
  mov    $0xa5,%esi
  mov    %r14,%rdi
  mov    %r8d,0x20(%rsp)
  lea    D96(%rip),%rdx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
L383:
  mov    %r12d,%ecx
  mov    $0x9a,%esi
  mov    %r14,%rdi
  mov    %eax,0x20(%rsp)
  lea    D345(%rip),%rdx
  call   <test_info@plt>
  mov    0x20(%rsp),%r8d
  jmp    L334
```

tool_calls: name: extract_symbolic_data
arguments: tag: D207
datatype: string
name: extract_symbolic_data
arguments: tag: D153
datatype: string
name: extract_symbolic_data
arguments: tag: D141
datatype: string
name: extract_symbolic_data
arguments: tag: D320
datatype: string
name: extract_symbolic_data
arguments: tag: D81
datatype: string
name: extract_symbolic_data
arguments: tag: D321
datatype: string
name: extract_symbolic_data
arguments: tag: D269
datatype: string
name: extract_symbolic_data
arguments: tag: D257
datatype: string
name: extract_symbolic_data
arguments: tag: D259
datatype: string
name: extract_symbolic_data
arguments: tag: D395
datatype: string
name: extract_symbolic_data
arguments: tag: D336
datatype: string
name: extract_symbolic_data
arguments: tag: D25
datatype: string
name: extract_symbolic_data
arguments: tag: D290
datatype: string
name: extract_symbolic_data
arguments: tag: D323
datatype: string
name: extract_symbolic_data
arguments: tag: D173
datatype: string
name: extract_symbolic_data
arguments: tag: D223
datatype: string
name: extract_symbolic_data
arguments: tag: D5
datatype: string
name: extract_symbolic_data
arguments: tag: D291
datatype: string
name: extract_symbolic_data
arguments: tag: D96
datatype: string
name: extract_symbolic_data
arguments: tag: D345
datatype: string

tool: D207: /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: D153: 0

tool: D141: RAND_bytes(inp, DATA_SIZE)

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

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

tool: D321: out[i]

tool: D269: ref

tool: D257: out

tool: D259: Split encrypt failed @ operation %d

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

tool: D336: inp

tool: D25: Split decrypt failed @ operation %d

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

tool: D323: Encrypt compare failed @ operation %d

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

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

tool: D5: Decrypt compare failed @ operation %d

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

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

tool: D345: Small chunk decrypt 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;
}
```