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

```asm
<f_set_byte>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    0x60(%rsp),%rax
  mov    %rax,%rcx
  mov    %rax,0x8(%rsp)
  mov    0x68(%rsp),%r12
  mov    0x70(%rsp),%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  test   %edi,%edi
  js     L136
  mov    %rsi,%r14
  mov    %rcx,%rdi
  call   <atoi@plt>
  mov    %eax,%ebx
  mov    %r12,%rdi
  call   <atoi@plt>
  mov    %eax,%r13d
  cmp    $0x8,%ebx
  ja     L91
  test   %eax,%eax
  jle    L23
L122:
  mov    $0x10,%r12d
  test   %ebx,%ebx
  jne    L148
L32:
  lea    0x10(%rsp),%rcx
  lea    0x14(%rsp),%rdx
  lea    D35(%rip),%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  jne    L136
  movslq %ebx,%rbx
  lea    (%r14,%rbx,8),%r15
  movslq %r13d,%rax
  sub    $0x1,%rax
  mov    %rax,%rbx
  sub    %eax,%r13d
  mov    %r13d,0x4(%rsp)
  lea    0x10(%rsp),%r14
  lea    D39(%rip),%r13
  jmp    L65
L91:
  mov    0x8(%rsp),%rsi
  lea    D30(%rip),%rdi
  call   <fatal_error@plt>
  test   %r13d,%r13d
  jle    L23
L139:
  movslq %ebx,%rax
  mov    (%r14,%rax,8),%rdi
  call   <uint4@plt>
  mov    %eax,%r12d
  jmp    L32
L23:
  lea    D50(%rip),%rsi
  lea    D36(%rip),%rdi
  call   <fatal_error@plt>
  jmp    L122
L148:
  cmp    $0x8,%ebx
  jne    L139
  mov    $0x4,%r12d
  jmp    L32
L57:
  mov    (%r15),%rax
  mov    0x14(%rsp),%edx
  mov    %dl,(%rax,%rbx,1)
  movslq 0x10(%rsp),%rax
  add    %rax,%rbp
  lea    0x14(%rsp),%rdx
  mov    %r14,%rcx
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <sscanf@plt>
  add    $0x1,%rbx
  cmp    $0x1,%eax
  jne    L136
L65:
  mov    0x4(%rsp),%eax
  add    %ebx,%eax
  cmp    %eax,%r12d
  jge    L57
  mov    0x8(%rsp),%rsi
  lea    D56(%rip),%rdi
  call   <fatal_error@plt>
  jmp    L57
L136:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L96
  mov    $0x0,%eax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L96:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D35
type_guessed: string
name: extract_symbolic_data
arguments: tag: D39
type_guessed: string
name: extract_symbolic_data
arguments: tag: D30
type_guessed: string
name: extract_symbolic_data
arguments: tag: D50
type_guessed: string
name: extract_symbolic_data
arguments: tag: D36
type_guessed: string
name: extract_symbolic_data
arguments: tag: D56
type_guessed: string

tool: D35: %u%n

tool: D39: :%u%n

tool: D30: set_byte: bad section number %s

tool: 

tool: D36: set_byte: octet number must >= 1

tool: D56: set_byte out of bounds section %s

assistant: ```c
int f_set_byte(int mode, unsigned char **sec, float *data, unsigned int ndata, char *inv_out, void **local, const char *arg1, const char *arg2, const char *arg3) {
  int i, j, k, m, seclen;
  unsigned int val;
  if (mode < 0)
    return 0;
  i = atoi(arg1);
  j = atoi(arg2);
  if (i < 0 || i > 8)
    fatal_error("set_byte: bad section number %s", arg1);
  if (j <= 0)
    fatal_error("set_byte: octet number must >= 1", "");
  if (i == 0)
    seclen = 16;
  else if (i == 8)
    seclen = 4;
  else
    seclen = uint4(sec[i]);
  k = sscanf(arg3, "%u%n", &val, &m);
  while (k == 1) {
    if (j > seclen)
      fatal_error("set_byte out of bounds section %s", arg1);
    sec[i][j++ - 1] = val;
    arg3 += m;
    k = sscanf(arg3, ":%u%n", &val, &m);
  }
  return 0;
}
```