user: 请将以下的汇编代码转换成C语言代码：

```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     L672
  cmp    $0x4,%ecx
  je     L79
  jle    L142
  cmp    $0x5,%ecx
  je     L80
  cmp    $0x6,%ecx
  jne    L265
  pxor   %xmm4,%xmm4
L251:
  movss  D74(%rip),%xmm6
  movaps %xmm6,%xmm1
  movaps %xmm6,%xmm2
L28:
  movss  D47(%rip),%xmm5
  movaps %xmm6,%xmm3
  movaps %xmm5,%xmm7
L642:
  mov    0x30(%rsp),%r14d
  cmp    %r13d,%r14d
  jge    L583
  movslq %r14d,%r15
  lea    0x8(%r14),%ebp
  add    0x38(%rsp),%r15
  movss  %xmm6,0x34(%rsp)
  nopl   (%rax)
L259:
  movzbl (%r15),%r12d
  mov    %r12d,%edx
  test   %r12b,%r12b
  js     L663
  lea    -0x30(%r12),%ecx
  cmp    $0x9,%cl
  ja     L683
  addss  D348(%rip),%xmm7
  cmp    $0x20,%r12b
  je     L211
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
L32:
  mov    %r12d,%eax
  mov    $0x1,%esi
L378:
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
L465:
  test   %dl,%dl
  js     L68
  test   %esi,%esi
  jne    L381
  movsd  D175(%rip),%xmm0
L408:
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
L381:
  cmp    $0xd,%al
  je     L314
  cmp    $0x2a,%al
  jne    L149
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  mov    $0x1,%ecx
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
L415:
  test   %dl,%dl
  js     L374
  test   %ecx,%ecx
  jne    L187
  cvtss2sd %xmm1,%xmm1
  addsd  D243(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  jmp    L187
  cs nopw 0x0(%rax,%rax,1)
L663:
  sub    $0x7f,%r12d
  mov    %r12d,%ebx
L566:
  movaps %xmm7,%xmm0
  movss  %xmm1,0x20(%rsp)
  movss  %xmm4,0x18(%rsp)
  movss  %xmm2,0x10(%rsp)
  movss  %xmm3,0x8(%rsp)
  movss  %xmm5,(%rsp)
  call   <ceil@plt>
  movzbl (%r15),%eax
  movss  (%rsp),%xmm5
  lea    -0x30(%r12),%ecx
  movss  0x8(%rsp),%xmm3
  movss  0x10(%rsp),%xmm2
  movaps %xmm0,%xmm7
  test   %al,%al
  movss  0x18(%rsp),%xmm4
  movss  0x20(%rsp),%xmm1
  mov    %eax,%edx
  js     L677
  addss  %xmm5,%xmm7
L531:
  cmp    $0x20,%r12b
  je     L854
  xor    %esi,%esi
  cmp    $0x9,%cl
  jbe    L494
L64:
  lea    -0x41(%r12),%r8d
  cmp    $0x19,%r8b
  ja     L47
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  test   %dl,%dl
  js     L781
L587:
  cmp    $0x20,%bl
  je     L800
  nopl   0x0(%rax)
L647:
  cmp    $0x9,%cl
  jbe    L135
  sub    $0x61,%r12d
  cmp    $0x19,%r12b
  ja     L465
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
  test   %dl,%dl
  jns    L381
  movsd  D175(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
L149:
  cmp    $0x3e,%al
  jne    L412
L442:
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  test   %dl,%dl
  js     L374
L187:
  cmp    $0x5b,%al
  jne    L805
  mov    0x2c(%rsp),%eax
  test   %eax,%eax
  jne    L727
L805:
  add    $0x1,%r14d
  addss  %xmm5,%xmm4
  cmp    %r14d,%r13d
  je     L616
L285:
  add    $0x1,%r15
  cmp    %ebp,%r14d
  jle    L259
  movaps %xmm7,%xmm0
  movss  %xmm4,0x20(%rsp)
  movss  %xmm1,0x2c(%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  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
L824:
  movsd  D308(%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     L617
  comisd %xmm7,%xmm5
  jae    L176
L617:
  mov    $0x1,%eax
  cvtss2sd %xmm0,%xmm0
L634:
  movapd %xmm5,%xmm7
  addsd  %xmm4,%xmm7
  comisd %xmm7,%xmm1
  jb     L151
  comisd %xmm7,%xmm2
  jb     L151
  comiss %xmm3,%xmm6
  ja     L579
  ucomiss %xmm6,%xmm3
  jp     L151
  je     L857
  nopl   (%rax)
L151:
  movapd %xmm2,%xmm3
  addsd  %xmm4,%xmm3
  comisd %xmm3,%xmm1
  jb     L81
  comisd %xmm3,%xmm5
  jb     L81
  comisd %xmm3,%xmm0
  jb     L81
  ucomisd %xmm3,%xmm8
  mov    $0x4,%edx
  cmovae %edx,%eax
  nopw   0x0(%rax,%rax,1)
L81:
  movapd %xmm1,%xmm3
  addsd  %xmm4,%xmm3
  comisd %xmm3,%xmm0
  jb     L111
  comisd %xmm3,%xmm5
  jb     L111
  comisd %xmm3,%xmm2
  jb     L111
  ucomisd %xmm3,%xmm8
  mov    $0x1,%edx
  cmovae %edx,%eax
  nopw   0x0(%rax,%rax,1)
L111:
  addsd  %xmm4,%xmm0
  comisd %xmm0,%xmm1
  jb     L88
  comisd %xmm0,%xmm5
  jb     L88
  comisd %xmm0,%xmm2
  jb     L88
  comisd %xmm0,%xmm8
  jae    L375
L88:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L494:
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  test   %al,%al
  jns    L458
  mov    $0x1,%esi
L173:
  movsd  D175(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
L273:
  test   %esi,%esi
  jne    L587
L781:
  movsd  D175(%rip),%xmm0
  cvtss2sd %xmm3,%xmm3
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  cmp    $0x20,%bl
  jne    L647
L800:
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
  cmp    $0x9,%cl
  jbe    L378
  jmp    L465
  nopl   0x0(%rax)
L314:
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  mov    $0x1,%ecx
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
L606:
  lea    -0x41(%rax),%esi
  cmp    $0x19,%sil
  ja     L415
  cvtss2sd %xmm1,%xmm1
  addsd  D227(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  test   %dl,%dl
  jns    L805
L374:
  cvtss2sd %xmm1,%xmm1
  addsd  D88(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  jmp    L187
L412:
  cmp    $0x20,%al
  je     L442
  lea    -0x30(%rax),%ecx
  cmp    $0x9,%cl
  ja     L543
  movsd  D227(%rip),%xmm0
  cvtss2sd %xmm1,%xmm1
  addsd  %xmm0,%xmm1
  cvtsd2ss %xmm1,%xmm1
  test   %dl,%dl
  jns    L805
  cvtss2sd %xmm1,%xmm1
  addsd  D88(%rip),%xmm1
  cvtsd2ss %xmm1,%xmm1
  jmp    L187
  nopl   0x0(%rax,%rax,1)
L211:
  mov    $0x20,%eax
L854:
  cvtss2sd %xmm3,%xmm3
  mov    $0x20,%ebx
  mov    $0x1,%esi
  movsd  D227(%rip),%xmm0
  addsd  %xmm0,%xmm3
  cvtsd2ss %xmm3,%xmm3
  jmp    L64
  nopl   0x0(%rax,%rax,1)
L68:
  movsd  D175(%rip),%xmm0
  cvtss2sd %xmm2,%xmm2
  addsd  %xmm0,%xmm2
  cvtsd2ss %xmm2,%xmm2
  test   %esi,%esi
  je     L408
  jmp    L149
  nopl   0x0(%rax)
L727:
  add    $0x1,%r14d
  addss  D160(%rip),%xmm4
  cmp    %r14d,%r13d
  jne    L285
  nopl   (%rax)
L616:
  movaps %xmm7,%xmm0
  movss  %xmm4,0x20(%rsp)
  movss  %xmm1,(%rsp)
  movss  %xmm2,0x8(%rsp)
  movss  %xmm3,0x10(%rsp)
  call   <ceil@plt>
  movss  0x10(%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  (%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
L615:
  cvttss2si %xmm6,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x1,%eax
  comiss %xmm2,%xmm1
  jb     L868
  cvttss2si %xmm2,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x4,%eax
L868:
  comiss %xmm3,%xmm1
  jb     L608
  cvttss2si %xmm3,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x2,%eax
L608:
  comiss %xmm5,%xmm1
  jb     L268
  cvttss2si %xmm5,%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  mov    $0x1,%eax
L268:
  comiss %xmm0,%xmm1
  jb     L88
L375:
  add    $0x48,%rsp
  mov    $0x6,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L677:
  addss  0x34(%rsp),%xmm7
  jmp    L531
  nopl   0x0(%rax,%rax,1)
L142:
  movss  D74(%rip),%xmm6
  movss  D160(%rip),%xmm4
  movaps %xmm6,%xmm1
  movaps %xmm6,%xmm2
  cmp    $0x2,%ecx
  jne    L28
  movss  D47(%rip),%xmm5
  pxor   %xmm3,%xmm3
  movaps %xmm5,%xmm7
  jmp    L642
  nopl   0x0(%rax,%rax,1)
L80:
  movss  D74(%rip),%xmm6
  movss  D47(%rip),%xmm5
  pxor   %xmm1,%xmm1
  movss  D160(%rip),%xmm4
  movaps %xmm6,%xmm2
  movaps %xmm6,%xmm3
  movaps %xmm5,%xmm7
  jmp    L642
  nopw   0x0(%rax,%rax,1)
L672:
  movss  D47(%rip),%xmm5
  movss  D74(%rip),%xmm6
  pxor   %xmm7,%xmm7
  movaps %xmm6,%xmm4
  movaps %xmm5,%xmm1
  movaps %xmm5,%xmm2
  movaps %xmm5,%xmm3
  jmp    L642
  nopl   (%rax)
L79:
  movss  D74(%rip),%xmm6
  movss  D47(%rip),%xmm5
  pxor   %xmm2,%xmm2
  movss  D160(%rip),%xmm4
  movaps %xmm6,%xmm1
  movaps %xmm6,%xmm3
  movaps %xmm5,%xmm7
  jmp    L642
  nopw   0x0(%rax,%rax,1)
L176:
  cvtss2sd %xmm0,%xmm0
  comisd %xmm7,%xmm0
  mov    $0x1,%eax
  jb     L634
  comisd %xmm7,%xmm2
  sbb    %eax,%eax
  and    $0xfffffffc,%eax
  add    $0x5,%eax
  jmp    L634
L583:
  movaps %xmm7,%xmm0
  movss  %xmm4,0x20(%rsp)
  movss  %xmm1,0x2c(%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  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    L824
  jmp    L615
L579:
  mov    $0x2,%eax
  jmp    L151
L857:
  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    D308(%rip),%rax
  movsd  0x10(%rsp),%xmm5
  movsd  0x18(%rsp),%xmm2
  movsd  0x20(%rsp),%xmm0
  movq   %rax,%xmm4
  je     L579
  mov    $0x5,%eax
  jmp    L151
L543:
  xor    %ecx,%ecx
  jmp    L606
L265:
  movss  D160(%rip),%xmm4
  jmp    L251
L135:
  movsd  D227(%rip),%xmm0
  jmp    L378
L47:
  test   %dl,%dl
  jns    L273
  jmp    L173
L683:
  mov    %r12d,%ebx
  jmp    L566
L458:
  mov    %eax,%r12d
  jmp    L32
```

tool_calls: name: unpack_data
arguments: tag: D74
datatype: f32
name: unpack_data
arguments: tag: D47
datatype: f32
name: unpack_data
arguments: tag: D348
datatype: f32
name: unpack_data
arguments: tag: D227
datatype: byte[8]
name: unpack_data
arguments: tag: D175
datatype: byte[8]
name: unpack_data
arguments: tag: D243
datatype: byte[8]
name: unpack_data
arguments: tag: D308
datatype: f32[2]
name: unpack_data
arguments: tag: D88
datatype: byte[8]
name: unpack_data
arguments: tag: D160
datatype: f32

tool: D74: 2

tool: D47: 1

tool: D348: 0.5

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

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

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

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

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

tool: D160: 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;
}
```