user: Please show me the C implementation that matches the assembly code listed below:

```asm
<c1_look_ahead_test>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  mov    %esi,%r13d
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,0x38(%rsp)
  mov    %edx,0x30(%rsp)
  mov    %r8d,0x2c(%rsp)
  cmp    $0x1,%ecx
  je     L327
  cmp    $0x4,%ecx
  je     L805
  jle    L155
  cmp    $0x5,%ecx
  je     L712
  cmp    $0x6,%ecx
  jne    L205
  pxor   %xmm4,%xmm4
L423:
  movss  D51(%rip),%xmm6
  movaps %xmm6,%xmm1
L480:
  movaps %xmm6,%xmm2
L596:
  movss  D203(%rip),%xmm5
  movaps %xmm6,%xmm3
  mov    %edx,%r14d
  movaps %xmm5,%xmm7
L83:
  cmp    %r13d,%r14d
  jge    L703
  movslq %r14d,%r15
  lea    0x8(%r14),%ebp
  add    0x38(%rsp),%r15
  movss  %xmm6,0x34(%rsp)
  nopl   0x0(%rax,%rax,1)
L267:
  movzbl (%r15),%r12d
  mov    %r12d,%edx
  test   %r12b,%r12b
  js     L490
  lea    -0x30(%r12),%ecx
  cmp    $0x9,%cl
  ja     L818
  addss  D11(%rip),%xmm7
  cmp    $0x20,%r12b
  je     L429
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
L284:
  mov    %r12d,%eax
  mov    $0x1,%esi
L747:
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
L522:
  test   %dl,%dl
  js     L13
  test   %esi,%esi
  jne    L338
  movsd  D190(%rip),%xmm0
L799:
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
L338:
  cmp    $0xd,%al
  je     L46
  cmp    $0x2a,%al
  jne    L387
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  mov    $0x1,%ecx
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
L745:
  test   %dl,%dl
  js     L637
  test   %ecx,%ecx
  jne    L176
  cvtss2sd %xmm1,%xmm1
  addsd  D10(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  jmp    L176
  cs nopw 0x0(%rax,%rax,1)
L490:
  sub    $0x7f,%r12d
  mov    %r12d,%ebx
L276:
  movaps %xmm7,%xmm0
  movss  %xmm3,0x20(%rsp)
  movss  %xmm1,0x18(%rsp)
  movss  %xmm4,0x10(%rsp)
  movss  %xmm2,0x8(%rsp)
  movss  %xmm5,(%rsp)
  call   <ceil@plt>
  movzbl (%r15),%eax
  movss  (%rsp),%xmm5
  lea    -0x30(%r12),%ecx
  movss  0x8(%rsp),%xmm2
  movss  0x10(%rsp),%xmm4
  movaps %xmm0,%xmm7
  test   %al,%al
  movss  0x18(%rsp),%xmm1
  movss  0x20(%rsp),%xmm3
  mov    %eax,%edx
  js     L794
  addss  %xmm5,%xmm7
L250:
  cmp    $0x20,%r12b
  je     L488
  xor    %esi,%esi
  cmp    $0x9,%cl
  jbe    L425
L731:
  lea    -0x41(%r12),%r8d
  cmp    $0x19,%r8b
  ja     L732
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  test   %dl,%dl
  js     L93
L618:
  cmp    $0x20,%bl
  je     L806
  nopl   0x0(%rax)
L547:
  cmp    $0x9,%cl
  jbe    L275
  sub    $0x61,%r12d
  cmp    $0x19,%r12b
  ja     L522
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
  test   %dl,%dl
  jns    L338
  movsd  D190(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
L387:
  cmp    $0x3e,%al
  jne    L65
L648:
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  test   %dl,%dl
  js     L637
L176:
  cmp    $0x5b,%al
  jne    L587
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jne    L581
L587:
  add    $0x1,%r14d
  addss  %xmm5,%xmm4
  cmp    %r14d,%r13d
  je     L262
L189:
  add    $0x1,%r15
  cmp    %ebp,%r14d
  jle    L267
  movaps %xmm7,%xmm0
  movss  %xmm4,0x20(%rsp)
  movss  %xmm1,0x2c(%rsp)
  movss  %xmm2,(%rsp)
  movss  %xmm3,0x8(%rsp)
  call   <ceil@plt>
  movss  0x8(%rsp),%xmm3
  movss  %xmm0,0x18(%rsp)
  movaps %xmm3,%xmm0
  call   <ceil@plt>
  movss  (%rsp),%xmm2
  movss  %xmm0,0x10(%rsp)
  movaps %xmm2,%xmm0
  call   <ceil@plt>
  movss  0x2c(%rsp),%xmm1
  movss  %xmm0,0x8(%rsp)
  movaps %xmm1,%xmm0
  call   <ceil@plt>
  movss  0x20(%rsp),%xmm4
  movss  %xmm0,(%rsp)
  movaps %xmm4,%xmm0
  call   <ceil@plt>
  movss  (%rsp),%xmm6
  movss  0x8(%rsp),%xmm2
  movss  0x10(%rsp),%xmm3
  movss  0x18(%rsp),%xmm5
L535:
  movsd  D70(%rip),%xmm4
  pxor   %xmm8,%xmm8
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm2,%xmm2
  cvtss2sd %xmm6,%xmm8
  movapd %xmm8,%xmm7
  cvtss2sd %xmm5,%xmm1
  pxor   %xmm5,%xmm5
  addsd  %xmm4,%xmm7
  cvtss2sd %xmm3,%xmm5
  comisd %xmm7,%xmm1
  jb     L100
  comisd %xmm7,%xmm5
  jae    L240
L100:
  mov    $0x1,%eax
  cvtss2sd %xmm0,%xmm0
L614:
  movapd %xmm5,%xmm7
  addsd  %xmm4,%xmm7
  comisd %xmm7,%xmm1
  jb     L104
  comisd %xmm7,%xmm2
  jb     L104
  comiss %xmm3,%xmm6
  ja     L721
  ucomiss %xmm6,%xmm3
  jp     L104
  je     L351
  nopl   (%rax)
L104:
  movapd %xmm2,%xmm3
  addsd  %xmm4,%xmm3
  comisd %xmm3,%xmm1
  jb     L179
  comisd %xmm3,%xmm5
  jb     L179
  comisd %xmm3,%xmm0
  jb     L179
  ucomisd %xmm3,%xmm8
  mov    $0x4,%edx
  cmovae %edx,%eax
  nopw   0x0(%rax,%rax,1)
L179:
  movapd %xmm1,%xmm3
  addsd  %xmm4,%xmm3
  comisd %xmm3,%xmm0
  jb     L666
  comisd %xmm3,%xmm5
  jb     L666
  comisd %xmm3,%xmm2
  jb     L666
  ucomisd %xmm3,%xmm8
  mov    $0x1,%edx
  cmovae %edx,%eax
  nopw   0x0(%rax,%rax,1)
L666:
  addsd  %xmm4,%xmm0
  comisd %xmm0,%xmm1
  jb     L30
  comisd %xmm0,%xmm5
  jb     L30
  comisd %xmm0,%xmm2
  jb     L30
  comisd %xmm0,%xmm8
  jae    L633
L30:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L425:
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  test   %al,%al
  jns    L269
  mov    $0x1,%esi
L257:
  movsd  D190(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
L201:
  test   %esi,%esi
  jne    L618
L93:
  movsd  D190(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  cmp    $0x20,%bl
  jne    L547
L806:
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
  cmp    $0x9,%cl
  jbe    L747
  jmp    L522
  nopl   0x0(%rax)
L46:
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  mov    $0x1,%ecx
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
L473:
  lea    -0x41(%rax),%esi
  cmp    $0x19,%sil
  ja     L745
  cvtss2sd %xmm1,%xmm1
  addsd  D323(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  test   %dl,%dl
  jns    L587
L637:
  cvtss2sd %xmm1,%xmm1
  addsd  D23(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  jmp    L176
L65:
  cmp    $0x20,%al
  je     L648
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L395
  movsd  D323(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  test   %dl,%dl
  jns    L587
  cvtss2sd %xmm1,%xmm1
  addsd  D23(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  jmp    L176
  nopl   0x0(%rax,%rax,1)
L429:
  mov    $0x20,%eax
L488:
  cvtss2sd %xmm3,%xmm3
  mov    $0x20,%ebx
  mov    $0x1,%esi
  movsd  D323(%rip),%xmm0
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  jmp    L731
  nopl   0x0(%rax,%rax,1)
L13:
  movsd  D190(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
  test   %esi,%esi
  je     L799
  jmp    L387
  nopl   0x0(%rax)
L581:
  add    $0x1,%r14d
  addss  D318(%rip),%xmm4
  cmp    %r14d,%r13d
  jne    L189
  nopl   (%rax)
L262:
  movaps %xmm7,%xmm0
  movss  %xmm4,0x2c(%rsp)
  movss  %xmm1,0x20(%rsp)
  movss  %xmm2,0x8(%rsp)
  movss  %xmm3,(%rsp)
  call   <ceil@plt>
  movss  (%rsp),%xmm3
  movss  %xmm0,0x18(%rsp)
  movaps %xmm3,%xmm0
  call   <ceil@plt>
  movss  0x8(%rsp),%xmm2
  movss  %xmm0,0x10(%rsp)
  movaps %xmm2,%xmm0
  call   <ceil@plt>
  movss  0x20(%rsp),%xmm1
  movss  %xmm0,0x8(%rsp)
  movaps %xmm1,%xmm0
  call   <ceil@plt>
  movss  0x2c(%rsp),%xmm4
  movss  %xmm0,(%rsp)
  movaps %xmm4,%xmm0
  call   <ceil@plt>
  movss  (%rsp),%xmm6
  movss  0x8(%rsp),%xmm2
  movss  0x10(%rsp),%xmm3
  movss  0x18(%rsp),%xmm5
L866:
  cvttss2si %xmm6,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x1,%eax
  comiss %xmm2,%xmm1
  jb     L515
  cvttss2si %xmm2,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x4,%eax
L515:
  comiss %xmm3,%xmm1
  jb     L822
  cvttss2si %xmm3,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x2,%eax
L822:
  comiss %xmm5,%xmm1
  jb     L824
  cvttss2si %xmm5,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x1,%eax
L824:
  comiss %xmm0,%xmm1
  jb     L30
L633:
  add    $0x48,%rsp
  mov    $0x6,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L794:
  addss  0x34(%rsp),%xmm7
  jmp    L250
  nopl   0x0(%rax,%rax,1)
L155:
  movss  D51(%rip),%xmm6
  movss  D318(%rip),%xmm4
  movaps %xmm6,%xmm1
  movaps %xmm6,%xmm2
  cmp    $0x2,%ecx
  jne    L596
  movss  D203(%rip),%xmm5
  pxor   %xmm3,%xmm3
  mov    %edx,%r14d
  movaps %xmm5,%xmm7
  jmp    L83
  xchg   %ax,%ax
L712:
  movss  D318(%rip),%xmm4
  movss  D51(%rip),%xmm6
  pxor   %xmm1,%xmm1
  jmp    L480
  nopl   0x0(%rax)
L327:
  movss  D203(%rip),%xmm5
  movss  D51(%rip),%xmm6
  pxor   %xmm7,%xmm7
  mov    %edx,%r14d
  movaps %xmm6,%xmm4
  movaps %xmm5,%xmm1
  movaps %xmm5,%xmm2
  movaps %xmm5,%xmm3
  jmp    L83
  nopl   0x0(%rax,%rax,1)
L805:
  movss  D51(%rip),%xmm6
  movss  D203(%rip),%xmm5
  pxor   %xmm2,%xmm2
  mov    %edx,%r14d
  movss  D318(%rip),%xmm4
  movaps %xmm6,%xmm1
  movaps %xmm6,%xmm3
  movaps %xmm5,%xmm7
  jmp    L83
  nopl   (%rax)
L240:
  cvtss2sd %xmm0,%xmm0
  comisd %xmm7,%xmm0
  mov    $0x1,%eax
  jb     L614
  comisd %xmm7,%xmm2
  sbb    %eax,%eax
  and    $0xfffffffc,%eax
  add    $0x5,%eax
  jmp    L614
L703:
  movaps %xmm7,%xmm0
  movss  %xmm4,0x20(%rsp)
  movss  %xmm1,0x2c(%rsp)
  movss  %xmm2,(%rsp)
  movss  %xmm3,0x8(%rsp)
  call   <ceil@plt>
  movss  0x8(%rsp),%xmm3
  movss  %xmm0,0x18(%rsp)
  movaps %xmm3,%xmm0
  call   <ceil@plt>
  movss  (%rsp),%xmm2
  movss  %xmm0,0x10(%rsp)
  movaps %xmm2,%xmm0
  call   <ceil@plt>
  movss  0x2c(%rsp),%xmm1
  movss  %xmm0,0x8(%rsp)
  movaps %xmm1,%xmm0
  call   <ceil@plt>
  movss  0x20(%rsp),%xmm4
  movss  %xmm0,(%rsp)
  movaps %xmm4,%xmm0
  call   <ceil@plt>
  cmp    %r13d,0x30(%rsp)
  movss  (%rsp),%xmm6
  movss  0x8(%rsp),%xmm2
  movss  0x10(%rsp),%xmm3
  movss  0x18(%rsp),%xmm5
  jne    L535
  jmp    L866
  nopl   0x0(%rax,%rax,1)
L721:
  mov    $0x2,%eax
  jmp    L104
L351:
  mov    0x30(%rsp),%edx
  mov    0x38(%rsp),%rdi
  mov    %r13d,%esi
  movsd  %xmm0,0x20(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm5,0x10(%rsp)
  movsd  %xmm1,0x8(%rsp)
  movsd  %xmm8,(%rsp)
  call   <dq4bi@plt>
  movsd  (%rsp),%xmm8
  movsd  0x8(%rsp),%xmm1
  test   %rax,%rax
  mov    D70(%rip),%rax
  movsd  0x10(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm0
  movq   %rax,%xmm4
  je     L721
  mov    $0x5,%eax
  jmp    L104
L395:
  xor    %ecx,%ecx
  jmp    L473
L205:
  movss  D318(%rip),%xmm4
  jmp    L423
L275:
  movsd  D323(%rip),%xmm0
  jmp    L747
L732:
  test   %dl,%dl
  jns    L201
  jmp    L257
L818:
  mov    %r12d,%ebx
  jmp    L276
L269:
  mov    %eax,%r12d
  jmp    L284
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D51
type: f32
name: extract_symbolic_data
arguments: data_label: D203
type: f32
name: extract_symbolic_data
arguments: data_label: D11
type: f32
name: extract_symbolic_data
arguments: data_label: D323
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D190
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D10
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D70
type: f32[2]
name: extract_symbolic_data
arguments: data_label: D23
type: byte[8]
name: extract_symbolic_data
arguments: data_label: D318
type: f32

tool: D51: 2

tool: D203: 1

tool: D11: 0.5

tool: {"D323": [0x55,0x55,0x55,0x55,0x55,0x55,0xe5,0x3f]}

tool: {"D190": [0x55,0x55,0x55,0x55,0x55,0x55,0xf5,0x3f]}

tool: {"D10": [0xab,0xaa,0xaa,0xaa,0xaa,0xaa,0x0a,0x40]}

tool: {"D70": [0.0,1.875]}

tool: {"D23": [0x55,0x55,0x55,0x55,0x55,0x55,0x11,0x40]}

tool: D318: 3

assistant: ```c
int c1_look_ahead_test(unsigned char source[], int sourcelen, int position, int current_mode, int gs1) {
  float ascii_count, c40_count, text_count, edi_count, byte_count;
  char reduced_char;
  int done, best_scheme, sp;
  if (current_mode == 1) {
    ascii_count = 0.0;
    c40_count = 1.0;
    text_count = 1.0;
    edi_count = 1.0;
    byte_count = 2.0;
  } else {
    ascii_count = 1.0;
    c40_count = 2.0;
    text_count = 2.0;
    edi_count = 2.0;
    byte_count = 3.0;
  }
  switch (current_mode) {
  case 2:
    c40_count = 0.0;
    break;
  case 4:
    text_count = 0.0;
    break;
  case 6:
    byte_count = 0.0;
    break;
  case 5:
    edi_count = 0.0;
    break;
  }
  for (sp = position; (sp < sourcelen) && (sp <= (position + 8)); sp++) {
    if (source[sp] <= 127) {
      reduced_char = source[sp];
    } else {
      reduced_char = source[sp] - 127;
    }
    if ((source[sp] >= '0') && (source[sp] <= '9')) {
      ascii_count += 0.5;
    } else {
      ascii_count = ceil(ascii_count);
      if (source[sp] > 127) {
        ascii_count += 2.0;
      } else {
        ascii_count += 1.0;
      }
    }
    done = 0;
    if (reduced_char == ' ') {
      c40_count += (2.0 / 3.0);
      done = 1;
    }
    if ((reduced_char >= '0') && (reduced_char <= '9')) {
      c40_count += (2.0 / 3.0);
      done = 1;
    }
    if ((reduced_char >= 'A') && (reduced_char <= 'Z')) {
      c40_count += (2.0 / 3.0);
      done = 1;
    }
    if (source[sp] > 127) {
      c40_count += (4.0 / 3.0);
    }
    if (done == 0) {
      c40_count += (4.0 / 3.0);
    }
    done = 0;
    if (reduced_char == ' ') {
      text_count += (2.0 / 3.0);
      done = 1;
    }
    if ((reduced_char >= '0') && (reduced_char <= '9')) {
      text_count += (2.0 / 3.0);
      done = 1;
    }
    if ((reduced_char >= 'a') && (reduced_char <= 'z')) {
      text_count += (2.0 / 3.0);
      done = 1;
    }
    if (source[sp] > 127) {
      text_count += (4.0 / 3.0);
    }
    if (done == 0) {
      text_count += (4.0 / 3.0);
    }
    done = 0;
    if (source[sp] == 13) {
      edi_count += (2.0 / 3.0);
      done = 1;
    }
    if (source[sp] == '*') {
      edi_count += (2.0 / 3.0);
      done = 1;
    }
    if (source[sp] == '>') {
      edi_count += (2.0 / 3.0);
      done = 1;
    }
    if (source[sp] == ' ') {
      edi_count += (2.0 / 3.0);
      done = 1;
    }
    if ((source[sp] >= '0') && (source[sp] <= '9')) {
      edi_count += (2.0 / 3.0);
      done = 1;
    }
    if ((source[sp] >= 'A') && (source[sp] <= 'Z')) {
      edi_count += (2.0 / 3.0);
      done = 1;
    }
    if (source[sp] > 127) {
      edi_count += (13.0 / 3.0);
    } else {
      if (done == 0) {
        edi_count += (10.0 / 3.0);
      }
    }
    if (gs1 && (source[sp] == '[')) {
      byte_count += 3.0;
    } else {
      byte_count += 1.0;
    }
  }
  ascii_count = ceil(ascii_count);
  c40_count = ceil(c40_count);
  text_count = ceil(text_count);
  edi_count = ceil(edi_count);
  byte_count = ceil(byte_count);
  best_scheme = 1;
  if (sp == sourcelen) {
    int best_count = (int)edi_count;
    if (text_count <= best_count) {
      best_count = (int)text_count;
      best_scheme = 4;
    }
    if (c40_count <= best_count) {
      best_count = (int)c40_count;
      best_scheme = 2;
    }
    if (ascii_count <= best_count) {
      best_count = (int)ascii_count;
      best_scheme = 1;
    }
    if (byte_count <= best_count) {
      best_scheme = 6;
    }
  } else {
    if (((edi_count + 1.0 <= ascii_count) && (edi_count + 1.0 <= c40_count)) && ((edi_count + 1.0 <= byte_count) && (edi_count + 1.0 <= text_count))) {
      best_scheme = 5;
    }
    if ((c40_count + 1.0 <= ascii_count) && (c40_count + 1.0 <= text_count)) {
      if (c40_count < edi_count) {
        best_scheme = 2;
      } else {
        done = 0;
        if (c40_count == edi_count) {
          if (dq4bi(source, sourcelen, position)) {
            best_scheme = 5;
          } else {
            best_scheme = 2;
          }
        }
      }
    }
    if (((text_count + 1.0 <= ascii_count) && (text_count + 1.0 <= c40_count)) && ((text_count + 1.0 <= byte_count) && (text_count + 1.0 <= edi_count))) {
      best_scheme = 4;
    }
    if (((ascii_count + 1.0 <= byte_count) && (ascii_count + 1.0 <= c40_count)) && ((ascii_count + 1.0 <= text_count) && (ascii_count + 1.0 <= edi_count))) {
      best_scheme = 1;
    }
    if (((byte_count + 1.0 <= ascii_count) && (byte_count + 1.0 <= c40_count)) && ((byte_count + 1.0 <= text_count) && (byte_count + 1.0 <= edi_count))) {
      best_scheme = 6;
    }
  }
  return best_scheme;
}
```