user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<Call_C_Arg_Mem_L>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x14(%rbp)
  mov    %esi,-0x18(%rbp)
  mov    %rdx,-0x20(%rbp)
  mov    %ecx,-0x24(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x7,-0x14(%rbp)
  ja     L93
  mov    -0x14(%rbp),%eax
  lea    0x0(,%rax,4),%rdx
  lea    D278(%rip),%rax
  mov    (%rdx,%rax,1),%eax
  cltq
  lea    D278(%rip),%rdx
  add    %rdx,%rax
  notrack jmp *%rax
  lea    -0x10(%rbp),%rax
  lea    D42(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
  lea    -0x10(%rbp),%rax
  lea    D205(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
  lea    -0x10(%rbp),%rax
  lea    D270(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
  lea    -0x10(%rbp),%rax
  lea    D22(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
  lea    -0x10(%rbp),%rax
  lea    D151(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
  lea    -0x10(%rbp),%rax
  lea    D65(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
  lea    -0x10(%rbp),%rax
  lea    D19(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
  lea    -0x10(%rbp),%rax
  lea    D200(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  jmp    L28
L93:
  lea    -0x10(%rbp),%rax
  lea    D198(%rip),%rdx
  lea    D126(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sprintf@plt>
  nop
L28:
  cmpl   $0x0,-0x18(%rbp)
  jne    L112
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdx
  lea    D133(%rip),%rax
  mov    %rax,%rsi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Inst_Printf@plt>
  mov    -0x24(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  lea    -0x10(%rbp),%rax
  mov    %edx,%ecx
  mov    %rax,%rdx
  lea    D111(%rip),%rax
  mov    %rax,%rsi
  lea    D138(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Inst_Printf@plt>
  jmp    L85
L112:
  mov    -0x24(%rbp),%eax
  lea    0x0(,%rax,4),%ecx
  mov    -0x20(%rbp),%rdx
  lea    -0x10(%rbp),%rax
  mov    %ecx,%r8d
  mov    %rdx,%rcx
  mov    %rax,%rdx
  lea    D62(%rip),%rax
  mov    %rax,%rsi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Inst_Printf@plt>
L85:
  cmpl   $0x7,-0x14(%rbp)
  jle    L42
  mov    -0x14(%rbp),%eax
  sub    $0x8,%eax
  shl    $0x3,%eax
  lea    0x4(%rax),%edx
  lea    -0x10(%rbp),%rax
  mov    %edx,%ecx
  mov    %rax,%rdx
  lea    D193(%rip),%rax
  mov    %rax,%rsi
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <Inst_Printf@plt>
L42:
  mov    $0x1,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L119
  call   <__stack_chk_fail@plt>
L119:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D42
type: string
name: extract_symbolic_data
arguments: data_tag: D126
type: string
name: extract_symbolic_data
arguments: data_tag: D205
type: string
name: extract_symbolic_data
arguments: data_tag: D270
type: string
name: extract_symbolic_data
arguments: data_tag: D22
type: string
name: extract_symbolic_data
arguments: data_tag: D151
type: string
name: extract_symbolic_data
arguments: data_tag: D65
type: string
name: extract_symbolic_data
arguments: data_tag: D19
type: string
name: extract_symbolic_data
arguments: data_tag: D200
type: string
name: extract_symbolic_data
arguments: data_tag: D198
type: string
name: extract_symbolic_data
arguments: data_tag: D133
type: string
name: extract_symbolic_data
arguments: data_tag: D50
type: string
name: extract_symbolic_data
arguments: data_tag: D111
type: string
name: extract_symbolic_data
arguments: data_tag: D138
type: string
name: extract_symbolic_data
arguments: data_tag: D62
type: string
name: extract_symbolic_data
arguments: data_tag: D193
type: string
name: extract_symbolic_data
arguments: data_tag: D99
type: string

tool: D42: $4

tool: D126: %s

tool: D205: $5

tool: D270: $6

tool: D22: $7

tool: D151: $8

tool: D65: $9

tool: D19: $10

tool: D200: $11

tool: D198: $24

tool: D133: $25,%s

tool: D50: la

tool: D111: %s,%d($25)

tool: D138: lw

tool: D62: %s,%s+%d

tool: D193: %s,%d($sp)

tool: D99: sw

assistant: ```c
int Call_C_Arg_Mem_L(int offset, int adr_of, char *name, int index) {
  char dest[8];
  switch (offset) {
  case 0:
    sprintf(dest, "%s", "$4");
    break;
  case 1:
    sprintf(dest, "%s", "$5");
    break;
  case 2:
    sprintf(dest, "%s", "$6");
    break;
  case 3:
    sprintf(dest, "%s", "$7");
    break;
  case 4:
    sprintf(dest, "%s", "$8");
    break;
  case 5:
    sprintf(dest, "%s", "$9");
    break;
  case 6:
    sprintf(dest, "%s", "$10");
    break;
  case 7:
    sprintf(dest, "%s", "$11");
    break;
  default:
    sprintf(dest, "%s", "$24");
    break;
  }
  if (!adr_of) {
    Inst_Printf("la", "$25,%s", name);
    Inst_Printf("lw", "%s,%d($25)", dest, index * 4);
  } else {
    Inst_Printf("la", "%s,%s+%d", dest, name, index * 4);
  }
  if (offset > 7) {
    Inst_Printf("sw", "%s,%d($sp)", dest, (offset - 8) * 8 + 4);
  }
  return 1;
}
```