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

```asm
<send_code_param>:
  endbr64
  push   %r12
  pxor   %xmm0,%xmm0
  push   %rbp
  mov    %edi,%ebp
  push   %rbx
  sub    $0x110,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  movaps %xmm0,(%rsp)
  movaps %xmm0,0x10(%rsp)
  movaps %xmm0,0x20(%rsp)
  movaps %xmm0,0x30(%rsp)
  movaps %xmm0,0x40(%rsp)
  movaps %xmm0,0x50(%rsp)
  movaps %xmm0,0x60(%rsp)
  movaps %xmm0,0x70(%rsp)
  movaps %xmm0,0x80(%rsp)
  movaps %xmm0,0x90(%rsp)
  movaps %xmm0,0xa0(%rsp)
  movaps %xmm0,0xb0(%rsp)
  movaps %xmm0,0xc0(%rsp)
  movaps %xmm0,0xd0(%rsp)
  movaps %xmm0,0xe0(%rsp)
  movaps %xmm0,0xf0(%rsp)
  cmp    $0x96,%esi
  je     L196
  cmp    $0x101,%esi
  jg     L90
  cmp    $0xc7,%esi
  jle    L51
  sub    $0xc8,%esi
  cmp    $0x39,%esi
  ja     L51
  lea    D26(%rip),%rcx
  movslq (%rcx,%rsi,4),%rax
  add    %rcx,%rax
  notrack jmp *%rax
  nop
L90:
  cmp    $0x1f4,%esi
  je     L32
  cmp    $0x226,%esi
  jne    L35
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D154(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  nopl   0x0(%rax,%rax,1)
L103:
  mov    $0xff,%edx
  lea    D22(%rip),%rsi
  mov    %r12,%rdi
  call   <strncat@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rsi
  mov    %ebp,%edi
  mov    %eax,%edx
  mov    %eax,%ebx
  call   <write@plt>
  cmp    %eax,%ebx
  je     L68
  lea    D111(%rip),%rdi
  call   <epicfail@plt>
L68:
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L26
  add    $0x110,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  ret
L35:
  cmp    $0x14b,%esi
  jne    L51
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D112(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  xchg   %ax,%ax
L196:
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D37(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  nopl   0x0(%rax)
L51:
  lea    D75(%rip),%rdi
  mov    %rsp,%r12
  call   <epicfail@plt>
  jmp    L103
  nopl   0x0(%rax)
  mov    %rsp,%r12
  mov    %rdx,%rcx
  mov    $0xff,%esi
  lea    D61(%rip),%rdx
  mov    %r12,%rdi
  call   <snprintf@plt>
  jmp    L103
  nopw   0x0(%rax,%rax,1)
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D43(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  nopl   0x0(%rax)
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D131(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  nopl   0x0(%rax)
  mov    %rsp,%r12
  mov    %rdx,%rcx
  mov    $0xff,%esi
  lea    D117(%rip),%rdx
  mov    %r12,%rdi
  call   <snprintf@plt>
  jmp    L103
  nop
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D138(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  nopl   0x0(%rax)
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D129(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  nopl   0x0(%rax)
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D94(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  nopl   0x0(%rax)
  mov    %rsp,%r12
  mov    %rdx,%rcx
  mov    $0xff,%esi
  lea    D79(%rip),%rdx
  mov    %r12,%rdi
  call   <snprintf@plt>
  jmp    L103
  nop
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D25(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
  nopl   0x0(%rax)
L32:
  mov    %rsp,%r12
  mov    $0xff,%edx
  lea    D167(%rip),%rsi
  mov    %r12,%rdi
  call   <strncpy@plt>
  jmp    L103
L26:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D154
datatype: string
name: parse_data
arguments: tag: D22
datatype: string
name: parse_data
arguments: tag: D111
datatype: string
name: parse_data
arguments: tag: D112
datatype: string
name: parse_data
arguments: tag: D37
datatype: string
name: parse_data
arguments: tag: D75
datatype: string
name: parse_data
arguments: tag: D61
datatype: string
name: parse_data
arguments: tag: D43
datatype: string
name: parse_data
arguments: tag: D131
datatype: string
name: parse_data
arguments: tag: D117
datatype: string
name: parse_data
arguments: tag: D138
datatype: string
name: parse_data
arguments: tag: D129
datatype: string
name: parse_data
arguments: tag: D94
datatype: string
name: parse_data
arguments: tag: D79
datatype: string
name: parse_data
arguments: tag: D25
datatype: string
name: parse_data
arguments: tag: D167
datatype: string

tool: D154: 550 Requested action not taken.

tool: D22: 


tool: D111: write

tool: D112: 331 User name ok, need password

tool: D37: 150 Opening connection

tool: D75: Invalid code.

tool: D61: 257 "%s"


tool: D43: 250 Command successful

tool: D131: 230 User logged in

tool: D117: 227 Entering Passive Mode (%s).

tool: D138: 226 Transfer complete

tool: D129: 221 Goodbye

tool: D94: 220 Service ready

tool: D79: 215 %s

tool: D25: 200 Okay

tool: D167: 500 Syntax error, command unrecognized

assistant: ```c
void send_code_param(int fd, int code, char *p1) {
  char buf[256] = {0};
  if (code == 150)
    strncpy(buf, "150 Opening connection", 256 - 1);
  else if (code == 200)
    strncpy(buf, "200 Okay", 256 - 1);
  else if (code == 215)
    snprintf(buf, 256 - 1, "215 %s", p1);
  else if (code == 220)
    strncpy(buf, "220 Service ready", 256 - 1);
  else if (code == 221)
    strncpy(buf, "221 Goodbye", 256 - 1);
  else if (code == 226)
    strncpy(buf, "226 Transfer complete", 256 - 1);
  else if (code == 227)
    snprintf(buf, 256 - 1, "227 Entering Passive Mode (%s).", p1);
  else if (code == 230)
    strncpy(buf, "230 User logged in", 256 - 1);
  else if (code == 250)
    strncpy(buf, "250 Command successful", 256 - 1);
  else if (code == 257)
    snprintf(buf, 256 - 1, "257 \"%s\"\r\n", p1);
  else if (code == 331)
    strncpy(buf, "331 User name ok, need password", 256 - 1);
  else if (code == 500)
    strncpy(buf, "500 Syntax error, command unrecognized", 256 - 1);
  else if (code == 550)
    strncpy(buf, "550 Requested action not taken.", 256 - 1);
  else
    epicfail("Invalid code.");
  strncat(buf, "\r\n", 256 - 1);
  int len = strlen(buf);
  int bytes_written = write(fd, buf, len);
  if (bytes_written != len)
    epicfail("write");
}
```