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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x438,%rsp
  mov    %rsi,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x2428(%rsp)
  xor    %eax,%eax
  cmp    $0x3,%edi
  je     L70
  lea    D54(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%eax
L17:
  mov    0x2428(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L74
  add    $0x2438,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L70:
  mov    0x8(%rsp),%rax
  lea    0x20(%rsp),%rbp
  mov    $0x400,%esi
  lea    D14(%rip),%rdx
  mov    %rbp,%rdi
  mov    0x8(%rax),%rcx
  call   <snprintf@plt>
  lea    D5(%rip),%rsi
  mov    %rbp,%rdi
  call   <popen@plt>
  mov    %rax,%r13
  mov    0x8(%rsp),%rax
  test   %r13,%r13
  je     L60
  mov    0x10(%rax),%rdi
  lea    D69(%rip),%rsi
  call   <fopen@plt>
  mov    %rax,%rbp
  test   %rax,%rax
  je     L46
  xor    %r12d,%r12d
  lea    0x18(%rsp),%r15
  lea    0x10(%rsp),%r14
  lea    0x420(%rsp),%rbx
  jmp    L80
  nopl   0x0(%rax)
L23:
  mov    0x10(%rsp),%rdx
  lea    D13(%rip),%rsi
  mov    %rbp,%rdi
  add    $0x1,%r12d
  call   <write_po@plt>
  mov    0x18(%rsp),%rdx
  lea    D23(%rip),%rsi
  mov    %rbp,%rdi
  call   <write_po@plt>
L80:
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    $0x2000,%edx
  mov    %rbx,%rsi
  mov    %r13,%rdi
  call   <read_strings@plt>
  test   %rax,%rax
  jne    L23
  mov    %r13,%rdi
  call   <pclose@plt>
  mov    %rbp,%rdi
  call   <fclose@plt>
  mov    0x8(%rsp),%rax
  mov    %r12d,%edx
  lea    D15(%rip),%rdi
  mov    0x10(%rax),%rsi
  call   <printf@plt>
  xor    %eax,%eax
  jmp    L17
L60:
  mov    0x8(%rax),%rdi
  call   <perror@plt>
  mov    $0x1,%eax
  jmp    L17
L46:
  mov    0x8(%rsp),%rax
  mov    0x10(%rax),%rdi
  call   <perror@plt>
  mov    %r13,%rdi
  call   <pclose@plt>
  mov    $0x1,%eax
  jmp    L17
L74:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D54
type_guessed: string
name: parse_data
arguments: data_label: D14
type_guessed: string
name: parse_data
arguments: data_label: D5
type_guessed: string
name: parse_data
arguments: data_label: D69
type_guessed: string
name: parse_data
arguments: data_label: D13
type_guessed: string
name: parse_data
arguments: data_label: D23
type_guessed: string
name: parse_data
arguments: data_label: D15
type_guessed: string

tool: D54: Usage: strings2po filename.strings filename.po

tool: D14: iconv -f utf-16 -t utf-8 '%s'

tool: D5: r

tool: D69: w

tool: D13: msgid

tool: D23: msgstr

tool: D15: %s: %d messages.


assistant: ```c
int main(int argc, char *argv[]) {
  FILE *strings, *po;
  char iconv[1024], buffer[8192], *id, *str;
  int count;
  if (argc != 3) {
    puts("Usage: strings2po filename.strings filename.po");
    return (1);
  }
  snprintf(iconv, sizeof(iconv), "iconv -f utf-16 -t utf-8 '%s'", argv[1]);
  if ((strings = popen(iconv, "r")) == NULL) {
    perror(argv[1]);
    return (1);
  }
  if ((po = fopen(argv[2], "w")) == NULL) {
    perror(argv[2]);
    pclose(strings);
    return (1);
  }
  count = 0;
  while (read_strings(strings, buffer, sizeof(buffer), &id, &str)) {
    count++;
    write_po(po, "msgid", id);
    write_po(po, "msgstr", str);
  }
  pclose(strings);
  fclose(po);
  printf("%s: %d messages.\n", argv[2], count);
  return (0);
}
```