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

```asm
<main>:
  endbr64
  push   %r14
  mov    $0xd,%ecx
  mov    $0x80,%esi
  lea    D272(%rip),%r8
  push   %r13
  push   %r12
  lea    D145(%rip),%r12
  push   %rbp
  mov    %r12,%rdx
  sub    $0x118,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x108(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rbp
  mov    %rbp,%rdi
  call   <ulz_snprintf@plt>
  cmp    $0x13,%eax
  je     L89
  mov    %eax,%ecx
  lea    D108(%rip),%rdx
  mov    $0x16,%esi
  xor    %eax,%eax
  lea    D286(%rip),%rdi
  call   <printf@plt>
L89:
  movabs $0x6220726162206f6f,%rax
  xor    0x8(%rsp),%rax
  movabs $0x66205d333130305b,%rdx
  xor    (%rsp),%rdx
  or     %rdx,%rax
  jne    L203
  cmpl   $0xa7a61,0x10(%rsp)
  je     L204
L203:
  mov    %r12,%rcx
  lea    D333(%rip),%rdx
  mov    $0x16,%esi
  xor    %eax,%eax
  lea    D343(%rip),%rdi
  call   <printf@plt>
L204:
  mov    $0x80,%esi
  xor    %eax,%eax
  mov    $0xd,%ecx
  mov    %r12,%rdx
  lea    0x80(%rsp),%r13
  lea    D272(%rip),%r8
  mov    %r13,%rdi
  call   <snprintf@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L84
L30:
  xor    %esi,%esi
  xor    %edi,%edi
  xor    %eax,%eax
  mov    $0xd,%ecx
  lea    D272(%rip),%r8
  mov    %r12,%rdx
  call   <ulz_snprintf@plt>
  cmp    $0x13,%eax
  je     L127
  lea    D228(%rip),%rcx
  lea    D108(%rip),%rdx
  mov    $0x19,%esi
  xor    %eax,%eax
  lea    D343(%rip),%rdi
  call   <printf@plt>
L127:
  sub    $0x8,%rsp
  lea    D210(%rip),%r14
  mov    %rbp,%rdi
  xor    %eax,%eax
  push   $0xffffffffffffffff
  mov    $0xd,%ecx
  mov    %r14,%rdx
  mov    $0x80,%esi
  lea    D272(%rip),%r8
  mov    $0xffffffffffffffff,%r9
  call   <ulz_snprintf@plt>
  pop    %rdi
  pop    %r8
  mov    %eax,%ecx
  cmp    $0x29,%eax
  je     L180
  lea    D148(%rip),%rdx
  mov    $0x1b,%esi
  lea    D286(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L180:
  movabs $0x7a61622072616220,%rax
  xor    0x8(%rsp),%rax
  movabs $0x6f6f66205d33315b,%rdx
  xor    (%rsp),%rdx
  or     %rdx,%rax
  jne    L131
  movabs $0x3539303733373034,%rax
  xor    0x18(%rsp),%rax
  movabs $0x3437363434383125,%rdx
  xor    0x10(%rsp),%rdx
  or     %rdx,%rax
  je     L129
L131:
  mov    %r14,%rcx
  lea    D9(%rip),%rdx
  mov    $0x1b,%esi
  xor    %eax,%eax
  lea    D343(%rip),%rdi
  call   <printf@plt>
L34:
  sub    $0x8,%rsp
  mov    $0xd,%ecx
  mov    %r14,%rdx
  mov    %r13,%rdi
  push   $0xffffffffffffffff
  mov    $0xffffffffffffffff,%r9
  mov    $0x80,%esi
  xor    %eax,%eax
  lea    D272(%rip),%r8
  call   <snprintf@plt>
  mov    %r13,%rsi
  mov    %rbp,%rdi
  call   <strcmp@plt>
  pop    %rcx
  pop    %rsi
  test   %eax,%eax
  jne    L92
L99:
  sub    $0x8,%rsp
  mov    $0xd,%ecx
  mov    $0x80,%esi
  xor    %eax,%eax
  push   $0xffffffffffffffff
  lea    D58(%rip),%rdx
  mov    %rbp,%rdi
  mov    $0xffffffffffffffff,%r9
  lea    D272(%rip),%r8
  call   <ulz_snprintf@plt>
  mov    %eax,%ecx
  pop    %rax
  pop    %rdx
  cmp    $0xffffffff,%ecx
  je     L16
  lea    D239(%rip),%rdx
  mov    $0x1d,%esi
  lea    D286(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L16:
  lea    D272(%rip),%r8
  mov    %r12,%rdx
  xor    %esi,%esi
  xor    %edi,%edi
  mov    $0xd,%ecx
  xor    %eax,%eax
  lea    D342(%rip),%r12
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  lea    D1(%rip),%r13
  cmp    $0x13,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x539,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    $0x4,%esi
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x3,%eax
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpl   $0x333331,(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    $0x7,%edx
  lea    D299(%rip),%rsi
  mov    %rbp,%rdi
  call   <memcpy@plt>
  mov    $0x539,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    $0x4,%esi
  xor    %eax,%eax
  call   <snprintf@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0x4,%edx
  lea    D89(%rip),%rsi
  mov    %rbp,%rdi
  call   <memcmp@plt>
  xor    %edi,%edi
  test   %eax,%eax
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rdx
  xor    %esi,%esi
  mov    $0x539,%ecx
  xor    %edi,%edi
  xor    %eax,%eax
  lea    D35(%rip),%r12
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x4,%eax
  sete   %dil
  call   <assert@plt>
  mov    %rbp,%rcx
  mov    $0x80,%esi
  mov    %rbp,%rdi
  lea    D43(%rip),%rdx
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  mov    %r13,%rdx
  xor    %esi,%esi
  mov    $0xa,%ecx
  xor    %edi,%edi
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rdx
  xor    %esi,%esi
  mov    $0xa,%ecx
  xor    %edi,%edi
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  sete   %dil
  call   <assert@plt>
  mov    %r13,%rdx
  mov    $0xa,%ecx
  mov    %rbp,%rdi
  mov    $0xa,%esi
  xor    %eax,%eax
  lea    D121(%rip),%r13
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpw   $0x61,(%rsp)
  sete   %dil
  call   <assert@plt>
  mov    %r12,%rdx
  mov    $0xa,%ecx
  mov    %rbp,%rdi
  mov    $0xa,%esi
  xor    %eax,%eax
  lea    D317(%rip),%r12
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x1,%eax
  sete   %dil
  call   <assert@plt>
  xor    %edi,%edi
  cmpw   $0x41,(%rsp)
  sete   %dil
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0xa,%ecx
  mov    %r13,%rdx
  xor    %edi,%edi
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x2,%eax
  sete   %dil
  call   <assert@plt>
  xor    %esi,%esi
  mov    $0xa,%ecx
  mov    %r12,%rdx
  xor    %edi,%edi
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x2,%eax
  sete   %dil
  call   <assert@plt>
  mov    $0xa,%ecx
  mov    %r13,%rdx
  mov    %rbp,%rdi
  mov    $0xa,%esi
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x2,%eax
  sete   %dil
  call   <assert@plt>
  cmpw   $0x6130,(%rsp)
  je     L71
L49:
  mov    $0x1,%edi
L210:
  xor    $0x1,%edi
  call   <assert@plt>
  mov    $0xa,%ecx
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    $0xa,%esi
  xor    %eax,%eax
  call   <ulz_snprintf@plt>
  xor    %edi,%edi
  cmp    $0x2,%eax
  sete   %dil
  call   <assert@plt>
  cmpw   $0x4130,(%rsp)
  je     L35
L39:
  mov    $0x1,%edi
L145:
  xor    $0x1,%edi
  call   <assert@plt>
  mov    0x108(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L42
  add    $0x118,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L129:
  movabs $0x312d2c3531363135,%rax
  cmp    %rax,0x20(%rsp)
  jne    L131
  cmpw   $0xa,0x28(%rsp)
  jne    L131
  jmp    L34
L35:
  xor    %edi,%edi
  cmpb   $0x0,0x2(%rsp)
  je     L145
  jmp    L39
L71:
  xor    %edi,%edi
  cmpb   $0x0,0x2(%rsp)
  je     L210
  jmp    L49
L92:
  mov    %r14,%rcx
  lea    D233(%rip),%rdx
  mov    $0x1b,%esi
  xor    %eax,%eax
  lea    D343(%rip),%rdi
  call   <printf@plt>
  jmp    L99
L84:
  mov    %r12,%rcx
  lea    D233(%rip),%rdx
  mov    $0x16,%esi
  xor    %eax,%eax
  lea    D343(%rip),%rdi
  call   <printf@plt>
  jmp    L30
L42:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D272
type: string
name: unpack_data
arguments: data_tag: D145
type: string
name: unpack_data
arguments: data_tag: D108
type: string
name: unpack_data
arguments: data_tag: D286
type: string
name: unpack_data
arguments: data_tag: D333
type: string
name: unpack_data
arguments: data_tag: D343
type: string
name: unpack_data
arguments: data_tag: D228
type: string
name: unpack_data
arguments: data_tag: D210
type: string
name: unpack_data
arguments: data_tag: D148
type: string
name: unpack_data
arguments: data_tag: D9
type: string
name: unpack_data
arguments: data_tag: D58
type: string
name: unpack_data
arguments: data_tag: D239
type: string
name: unpack_data
arguments: data_tag: D342
type: string
name: unpack_data
arguments: data_tag: D1
type: string
name: unpack_data
arguments: data_tag: D299
type: string
name: unpack_data
arguments: data_tag: D89
type: string
name: unpack_data
arguments: data_tag: D35
type: string
name: unpack_data
arguments: data_tag: D43
type: string
name: unpack_data
arguments: data_tag: D121
type: string
name: unpack_data
arguments: data_tag: D317
type: string
name: unpack_data
arguments: data_tag: D233
type: string

tool: D272: baz

tool: D145: [%.4d] foo bar %s


tool: D108: ret == 19

tool: D286: line %d: test failed. %s. want %d


tool: D333: !strcmp(buf, "[0013] foo bar baz\n")

tool: D343: line %d: test failed. %s <%s


tool: 

tool: D210: [%d] foo bar %s%%%zu,%lld


tool: D148: ret == 41

tool: D9: !strcmp(buf, "[13] foo bar baz%18446744073709551615,-1\n")

tool: D58: [%d] foo bar %s%%%zu,%lld
%

tool: D239: ret == -1

tool: D342: %d

tool: D1: %x

tool: D299: AAAAAA

tool: D89: 133

tool: D35: %X

tool: D43: %p

tool: D121: %.2x

tool: D317: %.2X

tool: D233: !strcmp(buf, buf2)

assistant: ```c
int main() {
  char buf[128], buf2[128];
  ssize_t ret;
  {
    ret = ulz_snprintf(buf, sizeof(buf), "[%.4d] foo bar %s\n", 13, "baz");
    {
      if (!(ret == 19))
        printf("line %d: test failed. %s. want %d\n", 22, "ret == 19", (int)ret);
    };
    if (!(19 == -1)) {
      {
        if (!(!strcmp(buf, "[0013] foo bar baz\n")))
          printf("line %d: test failed. %s <%s\n", 22, "!strcmp(buf, \"[0013] foo bar baz\\n\")", "[%.4d] foo bar %s\n");
      };
      ret = snprintf(buf2, sizeof(buf), "[%.4d] foo bar %s\n", 13, "baz");
      {
        if (!(!strcmp(buf, buf2)))
          printf("line %d: test failed. %s <%s\n", 22, "!strcmp(buf, buf2)", "[%.4d] foo bar %s\n");
      };
    }
  };
  ret = ulz_snprintf(NULL, 0, "[%.4d] foo bar %s\n", 13, "baz");
  {
    if (!(ret == 19))
      printf("line %d: test failed. %s <%s\n", 25, "ret == 19", "");
  };
  {
    ret = ulz_snprintf(buf, sizeof(buf), "[%d] foo bar %s%%%zu,%lld\n", 13, "baz", (size_t)0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFFFFFFLL);
    {
      if (!(ret == 41))
        printf("line %d: test failed. %s. want %d\n", 27, "ret == 41", (int)ret);
    };
    if (!(41 == -1)) {
      {
        if (!(!strcmp(buf, "[13] foo bar baz%18446744073709551615,-1\n")))
          printf("line %d: test failed. %s <%s\n", 27, "!strcmp(buf, \"[13] foo bar baz%18446744073709551615,-1\\n\")", "[%d] foo bar %s%%%zu,%lld\n");
      };
      ret = snprintf(buf2, sizeof(buf), "[%d] foo bar %s%%%zu,%lld\n", 13, "baz", (size_t)0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFFFFFFLL);
      {
        if (!(!strcmp(buf, buf2)))
          printf("line %d: test failed. %s <%s\n", 27, "!strcmp(buf, buf2)", "[%d] foo bar %s%%%zu,%lld\n");
      };
    }
  };
  {
    ret = ulz_snprintf(buf, sizeof(buf), "[%d] foo bar %s%%%zu,%lld\n%", 13, "baz", (size_t)0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFFFFFFLL);
    {
      if (!(ret == -1))
        printf("line %d: test failed. %s. want %d\n", 29, "ret == -1", (int)ret);
    };
    if (!(-1 == -1)) {
      {
        if (!(!strcmp(buf, "")))
          printf("line %d: test failed. %s <%s\n", 29, "!strcmp(buf, \"\")", "[%d] foo bar %s%%%zu,%lld\n%");
      };
      ret = snprintf(buf2, sizeof(buf), "[%d] foo bar %s%%%zu,%lld\n%", 13, "baz", (size_t)0xFFFFFFFFFFFFFFFFL, 0xFFFFFFFFFFFFFFFFLL);
      {
        if (!(!strcmp(buf, buf2)))
          printf("line %d: test failed. %s <%s\n", 29, "!strcmp(buf, buf2)", "[%d] foo bar %s%%%zu,%lld\n%");
      };
    }
  };
  ret = ulz_snprintf(NULL, 0, "[%.4d] foo bar %s\n", 13, "baz");
  assert(ret == 19);
  ret = ulz_snprintf(buf, 4, "%d", 1337);
  assert(ret == 3);
  assert(!strcmp(buf, "133"));
  memcpy(buf, "AAAAAA", 6 + 1);
  ret = snprintf(buf, 4, "%d", 1337);
  assert(ret == 4);
  assert(!memcmp(buf, "133", 4));
  ret = ulz_snprintf(NULL, 0, "%d", 1337);
  assert(ret == 4);
  ret = ulz_snprintf(buf, sizeof(buf), "%p", buf);
  ret = ulz_snprintf(NULL, 0, "%x", 0xa);
  assert(ret == 1);
  ret = ulz_snprintf(NULL, 0, "%X", 0xa);
  assert(ret == 1);
  ret = ulz_snprintf(buf, 10, "%x", 0xa);
  assert(ret == 1);
  assert(!strcmp(buf, "a"));
  ret = ulz_snprintf(buf, 10, "%X", 0xa);
  assert(ret == 1);
  assert(!strcmp(buf, "A"));
  ret = ulz_snprintf(NULL, 0, "%.2x", 0xa);
  assert(ret == 2);
  ret = ulz_snprintf(NULL, 0, "%.2X", 0xa);
  assert(ret == 2);
  ret = ulz_snprintf(buf, 10, "%.2x", 0xa);
  assert(ret == 2);
  assert(!strcmp(buf, "0a"));
  ret = ulz_snprintf(buf, 10, "%.2X", 0xa);
  assert(ret == 2);
  assert(!strcmp(buf, "0A"));
  return 0;
}
```