user: 请从给定的汇编指令推导出C源代码：

```asm
<test_sprintf_chk_range_ushrt>:
  endbr64
  push   %r12
  xor    %edi,%edi
  lea    D2(%rip),%r12
  push   %rbp
  push   %rbx
  call   <__builtin_malloc@plt>
  xor    %edi,%edi
  mov    $0x9,%esi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x1,%edi
  call   <__builtin_malloc@plt>
  xor    %edi,%edi
  mov    $0x1,%esi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x1,%edi
  call   <__builtin_malloc@plt>
  xor    %edi,%edi
  mov    $0x9,%esi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  xor    %edi,%edi
  mov    $0x1,%esi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  mov    $0x9,%esi
  mov    $0x8,%edi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  xor    %edi,%edi
  mov    $0x9,%esi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x2,%edi
  call   <__builtin_malloc@plt>
  mov    $0xa,%esi
  mov    $0x9,%edi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x3,%edi
  call   <__builtin_malloc@plt>
  xor    %edi,%edi
  mov    $0x63,%esi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x3,%edi
  call   <__builtin_malloc@plt>
  mov    $0x3e7,%esi
  mov    $0x63,%edi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  xor    %edi,%edi
  mov    $0x3e7,%esi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  mov    $0x3e7,%esi
  mov    $0x63,%edi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  mov    $0x3e7,%esi
  mov    $0x3e6,%edi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  xor    %esi,%esi
  mov    %rbp,%rdi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %ebx,%r8d
  mov    %r12,%rcx
  xor    %esi,%esi
  mov    %eax,%edx
  mov    %rbp,%rdi
  call   <__builtin___sprintf_chk@plt>
  mov    %rbp,%rdi
  call   <sink@plt>
  mov    $0x4,%edi
  call   <__builtin_malloc@plt>
  mov    $0x3e8,%esi
  mov    $0x3e7,%edi
  mov    %rax,%rbp
  call   <range_ushrt@plt>
  mov    %rbp,%rdi
  xor    %esi,%esi
  mov    %eax,%ebx
  call   <__builtin_object_size@plt>
  mov    %rbp,%rdi
  mov    %ebx,%r8d
  mov    %r12,%rcx
  mov    %eax,%edx
  xor    %esi,%esi
  call   <__builtin___sprintf_chk@plt>
  pop    %rbx
  mov    %rbp,%rdi
  pop    %rbp
  pop    %r12
  jmp    10d0 <sink@plt>
```

tool_calls: name: parse_data
arguments: label: D2
type: string

tool: D2: %i

assistant: ```c
void test_sprintf_chk_range_ushrt(void) {
  do {
    if (!0 || 284 == 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 || 285 == 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 || 286 == 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 || 287 == 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 || 288 == 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 || 289 == 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 || 290 == 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 || 292 == 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 || 293 == 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 || 295 == 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 || 296 == 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 || 297 == 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 || 298 == 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);
}
```