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

```asm
<test_sscanf_OOB_write>:
  endbr64
  push   %r15
  xor    %edx,%edx
  pxor   %xmm0,%xmm0
  push   %r14
  lea    D31(%rip),%r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D89(%rip),%rbp
  push   %rbx
  lea    D54(%rip),%rbx
  mov    %rbx,%rsi
  sub    $0x228,%rsp
  movdqa D30(%rip),%xmm3
  movdqa D51(%rip),%xmm2
  mov    %fs:0x28,%rax
  mov    %rax,0x218(%rsp)
  xor    %eax,%eax
  lea    0x50(%rsp),%r12
  lea    0x10(%rsp),%r13
  movdqa D81(%rip),%xmm1
  movabs $0x61616161612039,%rax
  mov    %rdx,0xc8(%rsp)
  xor    %edx,%edx
  lea    0x90(%rsp),%r9
  mov    %rax,0xc0(%rsp)
  mov    %r9,%rdi
  movabs $0x6161616161203039,%rax
  mov    %r12,%rcx
  movaps %xmm3,0x90(%rsp)
  lea    0x190(%rsp),%r15
  movaps %xmm2,0xa0(%rsp)
  movaps %xmm0,0xd0(%rsp)
  movaps %xmm0,0xe0(%rsp)
  movaps %xmm0,0xf0(%rsp)
  movaps %xmm0,0x100(%rsp)
  movaps %xmm3,0x110(%rsp)
  movaps %xmm2,0x120(%rsp)
  movaps %xmm0,0x150(%rsp)
  movaps %xmm0,0x160(%rsp)
  movaps %xmm0,0x170(%rsp)
  movaps %xmm0,0x180(%rsp)
  movaps %xmm3,0x190(%rsp)
  movaps %xmm2,0x1a0(%rsp)
  mov    %rax,0x140(%rsp)
  mov    %rdx,0x148(%rsp)
  mov    %r13,%rdx
  movaps %xmm1,0xb0(%rsp)
  movaps %xmm1,0x130(%rsp)
  movaps %xmm1,0x1b0(%rsp)
  movdqa D19(%rip),%xmm1
  mov    %r9,0x8(%rsp)
  movaps %xmm1,0x1c0(%rsp)
  movaps %xmm0,0x1d0(%rsp)
  movaps %xmm0,0x1e0(%rsp)
  movaps %xmm0,0x1f0(%rsp)
  movaps %xmm0,0x200(%rsp)
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r14,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rcx
  mov    %rbx,%rsi
  mov    %r13,%rdx
  lea    0x110(%rsp),%r8
  mov    %r8,%rdi
  mov    %r8,(%rsp)
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r14,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rcx
  mov    %rbx,%rsi
  mov    %r13,%rdx
  mov    %r15,%rdi
  lea    D58(%rip),%rbx
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r14,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    %r12,%rcx
  mov    %r13,%rdx
  mov    %r15,%rdi
  lea    D76(%rip),%rsi
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r14,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    0x8(%rsp),%rdi
  mov    %r12,%rcx
  mov    %r13,%rdx
  mov    %rbx,%rsi
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r14,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    (%rsp),%rdi
  mov    %r12,%rcx
  mov    %r13,%rdx
  mov    %rbx,%rsi
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r14,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rcx
  mov    %r13,%rdx
  mov    %rbx,%rsi
  mov    %r15,%rdi
  call   <sscanf@plt>
  mov    %r13,%rdi
  call   <strlen@plt>
  mov    %r13,%rdx
  mov    %r14,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x218(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L8
  add    $0x228,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L8:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D31
type: string
name: read_data
arguments: label: D89
type: string
name: read_data
arguments: label: D54
type: string
name: read_data
arguments: label: D30
type: byte[16]
name: read_data
arguments: label: D51
type: byte[16]
name: read_data
arguments: label: D81
type: byte[16]
name: read_data
arguments: label: D19
type: byte[16]
name: read_data
arguments: label: D58
type: string
name: read_data
arguments: label: D76
type: string

tool: D31: len:%d, param:[%s]


tool: D89: len:%d, value:[%s]


tool: D54: %50s %50s

tool: {"D30": [0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x32,0x33,0x34,0x35,0x36]}

tool: {"D51": [0x37,0x38,0x39,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x32]}

tool: {"D81": [0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38]}

tool: {"D19": [0x39,0x30,0x31,0x20,0x61,0x61,0x61,0x61,0x61,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

tool: D58: %49s %49s

tool: D76: %51s %51s

assistant: ```c
void test_sscanf_OOB_write() {
  char param[50], value[50];
  char length49[128] = "1234567890123456789012345678901234567890123456789 aaaaa";
  char length50[128] = "12345678901234567890123456789012345678901234567890 aaaaa";
  char length51[128] = "123456789012345678901234567890123456789012345678901 aaaaa";
  int tokens;
  tokens = sscanf(length49, "%50s %50s", param, value);
  printf("len:%d, param:[%s]\n", strlen(param), param);
  printf("len:%d, value:[%s]\n", strlen(value), value);
  tokens = sscanf(length50, "%50s %50s", param, value);
  printf("len:%d, param:[%s]\n", strlen(param), param);
  printf("len:%d, value:[%s]\n", strlen(value), value);
  tokens = sscanf(length51, "%50s %50s", param, value);
  printf("len:%d, param:[%s]\n", strlen(param), param);
  printf("len:%d, value:[%s]\n", strlen(value), value);
  printf("\n");
  tokens = sscanf(length51, "%51s %51s", param, value);
  printf("len:%d, param:[%s]\n", strlen(param), param);
  printf("len:%d, value:[%s]\n", strlen(value), value);
  printf("\n");
  tokens = sscanf(length49, "%49s %49s", param, value);
  printf("len:%d, param:[%s]\n", strlen(param), param);
  printf("len:%d, value:[%s]\n", strlen(value), value);
  tokens = sscanf(length50, "%49s %49s", param, value);
  printf("len:%d, param:[%s]\n", strlen(param), param);
  printf("len:%d, value:[%s]\n", strlen(value), value);
  tokens = sscanf(length51, "%49s %49s", param, value);
  printf("len:%d, param:[%s]\n", strlen(param), param);
  printf("len:%d, value:[%s]\n", strlen(value), value);
}
```