user: Converte this assembly snippet into its equivalent C code:

```asm
<scanf_test>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x8(%rsp)
  movl   $0x0,0xc(%rsp)
  movq   $0x0,0x10(%rsp)
  lea    0x8(%rsp),%rbp
  mov    %rbp,%rdx
  lea    D93(%rip),%rbx
  mov    %rbx,%rsi
  lea    D326(%rip),%r14
  mov    %r14,%rdi
  call   <sscanf@plt>
  cmpl   $0xa,0x8(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  lea    D324(%rip),%r13
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xb,0x8(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  mov    %rbx,%rsi
  lea    D92(%rip),%r15
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xfffffff6,0x8(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  lea    0xc(%rsp),%rbx
  mov    %rbx,%rdx
  lea    D142(%rip),%r12
  mov    %r12,%rsi
  mov    %r14,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0x8,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xfffffff8,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  mov    %r12,%rsi
  mov    %r13,%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0x9,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  lea    D221(%rip),%r12
  mov    %r12,%rsi
  lea    D125(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xaf,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  lea    D97(%rip),%r13
  mov    %r13,%rsi
  lea    D178(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xffffff51,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  mov    %r12,%rsi
  lea    D171(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xfe,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  mov    %r12,%rsi
  lea    D223(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xaf,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  mov    %r13,%rsi
  lea    D21(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xffffff51,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbx,%rdx
  mov    %r12,%rsi
  lea    D16(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0xfe,0xc(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  lea    D162(%rip),%rsi
  lea    D151(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  cmpl   $0x2d,0x8(%rsp)
  sete   %dil
  movzbl %dil,%edi
  call   <CT_ASSERT@plt>
  lea    0x10(%rsp),%rbp
  mov    %rbp,%rdx
  lea    D342(%rip),%r12
  mov    %r12,%rsi
  lea    D74(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  movsd  0x10(%rsp),%xmm0
  ucomisd D67(%rip),%xmm0
  setnp  %dil
  movzbl %dil,%edi
  mov    $0x0,%ebx
  movsd  D67(%rip),%xmm1
  ucomisd %xmm0,%xmm1
  cmovne %ebx,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  mov    %r12,%rsi
  lea    D290(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  movsd  0x10(%rsp),%xmm0
  ucomisd D293(%rip),%xmm0
  setnp  %dil
  movzbl %dil,%edi
  movsd  D293(%rip),%xmm0
  ucomisd 0x10(%rsp),%xmm0
  cmovne %ebx,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  lea    D323(%rip),%rsi
  lea    D242(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  movsd  0x10(%rsp),%xmm0
  ucomisd D52(%rip),%xmm0
  setnp  %dil
  movzbl %dil,%edi
  movsd  D52(%rip),%xmm0
  ucomisd 0x10(%rsp),%xmm0
  cmovne %ebx,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  lea    D105(%rip),%rsi
  lea    D269(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  movsd  0x10(%rsp),%xmm0
  ucomisd D67(%rip),%xmm0
  setnp  %dil
  movzbl %dil,%edi
  movsd  D67(%rip),%xmm2
  ucomisd %xmm0,%xmm2
  cmovne %ebx,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  lea    D28(%rip),%r12
  mov    %r12,%rsi
  lea    D174(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  movsd  0x10(%rsp),%xmm0
  ucomisd D288(%rip),%xmm0
  setnp  %dil
  movzbl %dil,%edi
  movsd  D288(%rip),%xmm0
  ucomisd 0x10(%rsp),%xmm0
  cmovne %ebx,%edi
  call   <CT_ASSERT@plt>
  mov    %rbp,%rdx
  mov    %r12,%rsi
  lea    D50(%rip),%rdi
  mov    $0x0,%eax
  call   <sscanf@plt>
  movsd  0x10(%rsp),%xmm0
  ucomisd D195(%rip),%xmm0
  setnp  %dil
  movzbl %dil,%edi
  movsd  D195(%rip),%xmm0
  ucomisd 0x10(%rsp),%xmm0
  cmovne %ebx,%edi
  call   <CT_ASSERT@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D93
data_type: string
name: read_data
arguments: data_tag: D326
data_type: string
name: read_data
arguments: data_tag: D324
data_type: string
name: read_data
arguments: data_tag: D92
data_type: string
name: read_data
arguments: data_tag: D142
data_type: string
name: read_data
arguments: data_tag: D221
data_type: string
name: read_data
arguments: data_tag: D125
data_type: string
name: read_data
arguments: data_tag: D97
data_type: string
name: read_data
arguments: data_tag: D178
data_type: string
name: read_data
arguments: data_tag: D171
data_type: string
name: read_data
arguments: data_tag: D223
data_type: string
name: read_data
arguments: data_tag: D21
data_type: string
name: read_data
arguments: data_tag: D16
data_type: string
name: read_data
arguments: data_tag: D162
data_type: string
name: read_data
arguments: data_tag: D151
data_type: string
name: read_data
arguments: data_tag: D342
data_type: string
name: read_data
arguments: data_tag: D74
data_type: string
name: read_data
arguments: data_tag: D67
data_type: f64
name: read_data
arguments: data_tag: D290
data_type: string
name: read_data
arguments: data_tag: D293
data_type: f64
name: read_data
arguments: data_tag: D323
data_type: string
name: read_data
arguments: data_tag: D242
data_type: string
name: read_data
arguments: data_tag: D52
data_type: f64
name: read_data
arguments: data_tag: D105
data_type: string
name: read_data
arguments: data_tag: D269
data_type: string
name: read_data
arguments: data_tag: D28
data_type: string
name: read_data
arguments: data_tag: D174
data_type: string
name: read_data
arguments: data_tag: D288
data_type: f64
name: read_data
arguments: data_tag: D50
data_type: string
name: read_data
arguments: data_tag: D195
data_type: f64

tool: D93: %d

tool: D326: 10

tool: D324: +11

tool: D92: -10

tool: D142: %o

tool: D221: %x

tool: D125: af

tool: D97: %X

tool: D178: -af

tool: D171: +fe

tool: D223: AF

tool: D21: -AF

tool: D16: +FE

tool: D162: %%%i

tool: D151: %45

tool: D342: %lf

tool: D74: 45.300000

tool: D67: 45.3

tool: D290: 54.30

tool: D293: 54.3

tool: D323: %lg

tool: D242: 5.43

tool: D52: 5.43

tool: D105: %le

tool: D269: 4.530000e+01

tool: D28: XXX%le

tool: D174: XXX  4.53e+02

tool: D288: 453

tool: D50: XXX  3.53e+01

tool: D195: 35.3

assistant: ```c
void scanf_test() {
  long l = 0;
  int i = 0;
  short s = 0;
  char c = 0;
  unsigned long ul = 0;
  unsigned int ui = 0;
  unsigned short us = 0;
  unsigned char uc = 0;
  double d = 0.0;
  sscanf("10", "%d", &i);
  CT_ASSERT(i == 10);
  sscanf("+11", "%d", &i);
  CT_ASSERT(i == 11);
  sscanf("-10", "%d", &i);
  CT_ASSERT(i == -10);
  sscanf("10", "%o", &ui);
  CT_ASSERT(ui == 010);
  sscanf("-10", "%o", &ui);
  CT_ASSERT(ui == -010);
  sscanf("+11", "%o", &ui);
  CT_ASSERT(ui == 011);
  sscanf("af", "%x", &ui);
  CT_ASSERT(ui == 0xaf);
  sscanf("-af", "%X", &ui);
  CT_ASSERT(ui == -0xaf);
  sscanf("+fe", "%x", &ui);
  CT_ASSERT(ui == 0xfe);
  sscanf("AF", "%x", &ui);
  CT_ASSERT(ui == 0xaf);
  sscanf("-AF", "%X", &ui);
  CT_ASSERT(ui == -0xaf);
  sscanf("+FE", "%x", &ui);
  CT_ASSERT(ui == 0xfe);
  sscanf("%45", "%%%i", &i);
  CT_ASSERT(i == 45);
  sscanf("45.300000", "%lf", &d);
  CT_ASSERT(d == 45.3);
  sscanf("54.30", "%lf", &d);
  CT_ASSERT(d == 54.3);
  sscanf("5.43", "%lg", &d);
  CT_ASSERT(d == 5.43);
  sscanf("4.530000e+01", "%le", &d);
  CT_ASSERT(d == 45.3);
  sscanf("XXX  4.53e+02", "XXX%le", &d);
  CT_ASSERT(d == 453.0);
  sscanf("XXX  3.53e+01", "XXX%le", &d);
  CT_ASSERT(d == 35.3);
}
```