user: 下面的汇编指令对应的C源代码是什么:

```asm
<seek_forward>:
  endbr64
  mov    (%rdi,%rdx,4),%r9d
  cmp    $0xff,%r9d
  jg     L22
  push   %r15
  lea    -0x1(%rcx),%eax
  mov    %rdx,%r8
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  cmp    $0x6,%eax
  ja     L79
  lea    D4(%rip),%rdx
  mov    (%rdx,%rax,4),%r15d
  lea    D51(%rip),%rdx
  mov    (%rdx,%rax,4),%r13d
  lea    D58(%rip),%rdx
  mov    (%rdx,%rax,4),%r12d
  lea    D38(%rip),%rdx
  mov    (%rdx,%rax,4),%ebp
  lea    D53(%rip),%rdx
  mov    (%rdx,%rax,4),%ebx
  lea    D20(%rip),%rdx
  mov    (%rdx,%rax,4),%r14d
L338:
  cmp    %rsi,%r8
  jae    L32
  mov    %r8,%r10
  add    $0x8,%r10
  jb     L32
  mov    %r9d,%edx
  mov    %r8,%rax
  jmp    L196
L348:
  add    $0x11,%r15d
  add    $0x17,%r13d
  add    $0x12,%r12d
  add    $0x12,%ebp
  add    $0xd,%ebx
  mov    $0x1,%r11d
L349:
  lea    -0x41(%rdx),%ecx
  cmp    $0x19,%ecx
  ja     L239
  add    $0x8,%r15d
  add    $0x6,%r13d
  add    $0x5,%r12d
  add    $0xa,%ebp
  add    $0xd,%ebx
L229:
  add    $0x1,%rax
  cmp    %rax,%rsi
  jbe    L32
L219:
  cmp    %rax,%r10
  jb     L32
  mov    (%rdi,%rax,4),%edx
L196:
  cmp    $0xfe,%edx
  jg     L348
  lea    -0x61(%rdx),%ecx
  cmp    $0x19,%ecx
  ja     L126
  add    $0x8,%r15d
  add    $0x6,%r13d
  add    $0xa,%r12d
  add    $0x5,%ebp
  add    $0xd,%ebx
L342:
  cmp    $0x7e,%edx
  jle    L229
  add    $0x1,%rax
  add    $0x14,%r13d
  add    $0x14,%r12d
  add    $0x14,%ebp
  cmp    %rax,%rsi
  ja     L219
L32:
  lea    -0x1(%rsi),%rcx
  cmp    %rcx,%r8
  jae    L135
  mov    %r8,%r10
  add    $0x7,%r10
  jb     L135
  mov    %r8,%rax
  jmp    L231
  nopl   (%rax)
L266:
  cmp    %rcx,%rax
  jae    L181
L363:
  cmp    %rax,%r10
  jb     L181
  mov    (%rdi,%rax,4),%r9d
L231:
  add    $0x1,%rax
  cmp    $0x13,%r9d
  jne    L266
  cmpl   $0x10,(%rdi,%rax,4)
  jne    L266
  sub    $0xd,%ebx
  cmp    %rcx,%rax
  jb     L363
  xchg   %ax,%ax
L181:
  mov    %r8,%rax
  mov    $0xffffffff,%r9d
  jmp    L364
  nopl   0x0(%rax,%rax,1)
L335:
  cmp    %rax,%r10
  jb     L135
L364:
  mov    %rax,%rdx
  movslq %r9d,%r11
  add    $0x1,%rax
  cmp    %rdx,%r11
  je     L330
  mov    -0x4(%rdi,%rax,4),%edx
  sub    $0x30,%edx
  cmp    $0x9,%edx
  ja     L330
  mov    (%rdi,%rax,4),%edx
  sub    $0x30,%edx
  cmp    $0x9,%edx
  ja     L330
  sub    $0xd,%ebx
  mov    %eax,%r9d
  nopl   0x0(%rax)
L330:
  cmp    %rcx,%rax
  jb     L335
L135:
  mov    %r8,%rdx
  call   <number_lat@plt>
  add    %eax,%r14d
  mov    $0x7,%eax
  cmp    %ebx,%r15d
  jg     L123
  mov    %r15d,%ebx
  mov    $0x6,%eax
L123:
  cmp    %r13d,%ebx
  jl     L100
  mov    %r13d,%ebx
  mov    $0x4,%eax
L100:
  cmp    %r12d,%ebx
  jl     L223
  mov    %r12d,%ebx
  mov    $0x3,%eax
L223:
  cmp    %ebp,%ebx
  jl     L204
  mov    %ebp,%ebx
  mov    $0x2,%eax
L204:
  cmp    %r14d,%ebx
  mov    $0x1,%edx
  cmovge %edx,%eax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L79:
  mov    $0x4,%r14d
  mov    $0x4,%ebx
  mov    $0x4,%ebp
  mov    $0x4,%r12d
  mov    $0x4,%r13d
  mov    $0x4,%r15d
  jmp    L338
  nopw   0x0(%rax,%rax,1)
L239:
  lea    -0x30(%rdx),%ecx
  cmp    $0x9,%ecx
  ja     L39
  add    $0x8,%r15d
  add    $0x6,%r13d
  add    $0x8,%r12d
  add    $0x8,%ebp
  add    $0xd,%ebx
  jmp    L229
  nop
L39:
  cmp    $0x20,%edx
  jne    L305
  add    $0x8,%r15d
  add    $0x6,%r13d
  add    $0x5,%r12d
  add    $0x5,%ebp
  add    $0xd,%ebx
  jmp    L229
  nopl   0x0(%rax)
L22:
  mov    $0x7,%eax
  ret
L126:
  xor    %r11d,%r11d
  jmp    L349
L305:
  test   %r11d,%r11d
  jne    L342
  add    $0x8,%r15d
  add    $0x10,%r13d
  add    $0xd,%r12d
  add    $0xd,%ebp
  add    $0xd,%ebx
  jmp    L342
```

tool_calls: name: retrieve_data
arguments: data_tag: D4
datatype: string
name: retrieve_data
arguments: data_tag: D51
datatype: string
name: retrieve_data
arguments: data_tag: D58
datatype: string
name: retrieve_data
arguments: data_tag: D38
datatype: string
name: retrieve_data
arguments: data_tag: D53
datatype: string
name: retrieve_data
arguments: data_tag: D20
datatype: string

tool: D4: 


tool: D51: 


tool: D58: 


tool: D38: 


tool: D53: 


tool: 

assistant: ```c
int seek_forward(int gbdata[], const size_t length, const size_t position, int current_mode) {
  int number_count, byte_count, mixed_count, upper_count, lower_count, chinese_count;
  int best_mode, done;
  size_t sp;
  int best_count, last = -1;
  int debug = 0;
  if (gbdata[position] > 0xff) {
    return 7;
  }
  switch (current_mode) {
  case 7:
    number_count = 13;
    byte_count = 13;
    mixed_count = 13;
    upper_count = 13;
    lower_count = 13;
    chinese_count = 0;
    break;
  case 1:
    number_count = 0;
    byte_count = 10;
    mixed_count = 10;
    upper_count = 10;
    lower_count = 10;
    chinese_count = 10;
    break;
  case 2:
    number_count = 5;
    byte_count = 7;
    mixed_count = 7;
    upper_count = 5;
    lower_count = 0;
    chinese_count = 5;
    break;
  case 3:
    number_count = 5;
    byte_count = 7;
    mixed_count = 7;
    upper_count = 0;
    lower_count = 5;
    chinese_count = 5;
    break;
  case 4:
    number_count = 10;
    byte_count = 10;
    mixed_count = 0;
    upper_count = 10;
    lower_count = 10;
    chinese_count = 10;
    break;
  case 6:
    number_count = 4;
    byte_count = 0;
    mixed_count = 4;
    upper_count = 4;
    lower_count = 4;
    chinese_count = 4;
    break;
  default:
    number_count = 4;
    byte_count = 4;
    mixed_count = 4;
    upper_count = 4;
    lower_count = 4;
    chinese_count = 4;
  }
  for (sp = position; (sp < length) && (sp <= (position + 8)); sp++) {
    done = 0;
    if (gbdata[sp] >= 0xff) {
      byte_count += 17;
      mixed_count += 23;
      upper_count += 18;
      lower_count += 18;
      chinese_count += 13;
      done = 1;
    }
    if ((gbdata[sp] >= 'a') && (gbdata[sp] <= 'z')) {
      byte_count += 8;
      mixed_count += 6;
      upper_count += 10;
      lower_count += 5;
      chinese_count += 13;
      done = 1;
    }
    if ((gbdata[sp] >= 'A') && (gbdata[sp] <= 'Z')) {
      byte_count += 8;
      mixed_count += 6;
      upper_count += 5;
      lower_count += 10;
      chinese_count += 13;
      done = 1;
    }
    if ((gbdata[sp] >= '0') && (gbdata[sp] <= '9')) {
      byte_count += 8;
      mixed_count += 6;
      upper_count += 8;
      lower_count += 8;
      chinese_count += 13;
      done = 1;
    }
    if (gbdata[sp] == ' ') {
      byte_count += 8;
      mixed_count += 6;
      upper_count += 5;
      lower_count += 5;
      chinese_count += 13;
      done = 1;
    }
    if (done == 0) {
      byte_count += 8;
      mixed_count += 16;
      upper_count += 13;
      lower_count += 13;
      chinese_count += 13;
    }
    if (gbdata[sp] >= 0x7f) {
      mixed_count += 20;
      upper_count += 20;
      lower_count += 20;
    }
  }
  for (sp = position; (sp < (length - 1)) && (sp <= (position + 7)); sp++) {
    if ((gbdata[sp] == 0x13) && (gbdata[sp + 1] == 0x10)) {
      chinese_count -= 13;
    }
  }
  for (sp = position; (sp < (length - 1)) && (sp <= (position + 7)); sp++) {
    if (sp != last) {
      if (((gbdata[sp] >= '0') && (gbdata[sp] <= '9')) && ((gbdata[sp + 1] >= '0') && (gbdata[sp + 1] <= '9'))) {
        chinese_count -= 13;
        last = (int)(sp + 1);
      }
    }
  }
  number_count += number_lat(gbdata, length, position);
  if (debug) {
    printf("C %d / B %d / M %d / U %d / L %d / N %d\n", chinese_count, byte_count, mixed_count, upper_count, lower_count, number_count);
  }
  best_count = chinese_count;
  best_mode = 7;
  if (byte_count <= best_count) {
    best_count = byte_count;
    best_mode = 6;
  }
  if (mixed_count <= best_count) {
    best_count = mixed_count;
    best_mode = 4;
  }
  if (upper_count <= best_count) {
    best_count = upper_count;
    best_mode = 3;
  }
  if (lower_count <= best_count) {
    best_count = lower_count;
    best_mode = 2;
  }
  if (number_count <= best_count) {
    best_count = number_count;
    best_mode = 1;
  }
  return best_mode;
}
```