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

```asm
<test_sprintf_chk_range_ushrt>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    $0x0,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x78(%rbp)
  mov    $0x9,%esi
  mov    $0x0,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x78(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x78(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x78(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x1,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x70(%rbp)
  mov    $0x1,%esi
  mov    $0x0,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x70(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x70(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x70(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x1,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x68(%rbp)
  mov    $0x9,%esi
  mov    $0x0,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x68(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x68(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x60(%rbp)
  mov    $0x1,%esi
  mov    $0x0,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x60(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x60(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x58(%rbp)
  mov    $0x9,%esi
  mov    $0x8,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x58(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x58(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x58(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x50(%rbp)
  mov    $0x9,%esi
  mov    $0x0,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x50(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x50(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x50(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x48(%rbp)
  mov    $0xa,%esi
  mov    $0x9,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x48(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x48(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x48(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x3,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x40(%rbp)
  mov    $0x63,%esi
  mov    $0x0,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x40(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x40(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x40(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x3,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x38(%rbp)
  mov    $0x3e7,%esi
  mov    $0x63,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x38(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x38(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x38(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x30(%rbp)
  mov    $0x3e7,%esi
  mov    $0x0,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x30(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x30(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x30(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x28(%rbp)
  mov    $0x3e7,%esi
  mov    $0x63,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x28(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x28(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x28(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x20(%rbp)
  mov    $0x3e7,%esi
  mov    $0x3e6,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x20(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x20(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x20(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  mov    %rax,-0x18(%rbp)
  mov    $0x3e8,%esi
  mov    $0x3e7,%edi
  call   <range_ushrt@plt>
  mov    %eax,%ebx
  mov    -0x18(%rbp),%rax
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin_object_size@plt>
  mov    %eax,%esi
  mov    -0x18(%rbp),%rax
  mov    %ebx,%r8d
  lea    D4(%rip),%rdx
  mov    %rdx,%rcx
  mov    %esi,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <sink@plt>
  nop
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: label: D4
data_type: string

tool: D4: %i

assistant: ```c
void test_sprintf_chk_range_ushrt(void) {
  do {
    if (!0 || 279 == 0) {
      char *d;
      (d) = __builtin_malloc(0);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(0, 9));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 280 == 0) {
      char *d;
      (d) = __builtin_malloc(1);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(0, 1));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 281 == 0) {
      char *d;
      (d) = __builtin_malloc(1);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(0, 9));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 282 == 0) {
      char *d;
      (d) = __builtin_malloc(2);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(0, 1));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 283 == 0) {
      char *d;
      (d) = __builtin_malloc(2);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(8, 9));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 284 == 0) {
      char *d;
      (d) = __builtin_malloc(2);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(0, 9));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 285 == 0) {
      char *d;
      (d) = __builtin_malloc(2);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(9, 10));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 287 == 0) {
      char *d;
      (d) = __builtin_malloc(3);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(0, 99));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 288 == 0) {
      char *d;
      (d) = __builtin_malloc(3);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(99, 999));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 290 == 0) {
      char *d;
      (d) = __builtin_malloc(4);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(0, 999));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 291 == 0) {
      char *d;
      (d) = __builtin_malloc(4);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(99, 999));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 292 == 0) {
      char *d;
      (d) = __builtin_malloc(4);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(998, 999));
      sink(d);
    }
  } while (0);
  do {
    if (!0 || 293 == 0) {
      char *d;
      (d) = __builtin_malloc(4);
      __builtin___sprintf_chk(d, 0, __builtin_object_size(d, 0), "%i", range_ushrt(999, 1000));
      sink(d);
    }
  } while (0);
}
```