user: What is the c source code of the assembly code below?

```asm
<main>:
  endbr64
  push   %rbp
  lea    D11(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  lea    -0xa4(%rbp),%rsi
  lea    -0x42(%rbp),%r14
  push   %r13
  lea    -0x9b(%rbp),%r13
  push   %r12
  lea    D2(%rip),%r12
  push   %rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  nopl   0x0(%rax)
L58:
  mov    -0xa4(%rbp),%edx
  mov    %r12,%rsi
  mov    %r14,%rdi
  mov    %rsp,%rbx
  call   <sprintf@plt>
  cmpb   $0x0,-0x42(%rbp)
  je     L50
  cmpb   $0x0,-0x41(%rbp)
  je     L110
  cmpb   $0x0,-0x40(%rbp)
  je     L13
  cmpb   $0x0,-0x3f(%rbp)
  je     L269
  cmpb   $0x0,-0x3e(%rbp)
  je     L166
  cmpb   $0x0,-0x3d(%rbp)
  je     L147
  cmpb   $0x0,-0x3c(%rbp)
  je     L322
  cmpb   $0x0,-0x3b(%rbp)
  je     L201
  cmpb   $0x0,-0x3a(%rbp)
  je     L319
  lea    -0x54(%rbp),%rdi
  mov    $0x8,%eax
  lea    -0x4b(%rbp),%rsi
  mov    $0x9,%r15d
  mov    %rdi,-0xb8(%rbp)
L237:
  mov    (%r14),%rdx
  lea    0x8(%rdi),%r8
  mov    %r14,%r9
  and    $0xfffffffffffffff8,%r8
  mov    %rdx,(%rdi)
  mov    %r15d,%edx
  mov    -0x8(%r14,%rdx,1),%rcx
  mov    %rcx,-0x8(%rdi,%rdx,1)
  sub    %r8,%rdi
  mov    %rdi,%rdx
  sub    %rdi,%r9
  add    %r15d,%edx
  and    $0xfffffff8,%edx
  cmp    $0x8,%edx
  jb     L150
  and    $0xfffffff8,%edx
  xor    %ecx,%ecx
L184:
  mov    %ecx,%edi
  add    $0x8,%ecx
  mov    (%r9,%rdi,1),%r10
  mov    %r10,(%r8,%rdi,1)
  cmp    %edx,%ecx
  jb     L184
L150:
  mov    -0xb8(%rbp),%rdi
  movslq %eax,%rdx
  movzbl (%rdi,%rdx,1),%edx
  mov    %dl,(%rsi)
  lea    -0x1(%rax),%edx
  movslq %edx,%rdx
  movzbl (%rdi,%rdx,1),%edx
  mov    %dl,0x1(%rsi)
  lea    -0x2(%rax),%edx
  cmp    $0x1,%eax
  je     L6
  movslq %edx,%rdx
  movzbl (%rdi,%rdx,1),%edx
  mov    %dl,0x2(%rsi)
  lea    -0x3(%rax),%edx
  cmp    $0x2,%eax
  je     L6
  movslq %edx,%rdx
  movzbl (%rdi,%rdx,1),%edx
  mov    %dl,0x3(%rsi)
  lea    -0x4(%rax),%edx
  cmp    $0x3,%eax
  je     L6
  movslq %edx,%rdx
  movzbl (%rdi,%rdx,1),%edx
  mov    %dl,0x4(%rsi)
  lea    -0x5(%rax),%edx
  cmp    $0x4,%eax
  je     L6
  movslq %edx,%rdx
  movzbl (%rdi,%rdx,1),%edx
  mov    %dl,0x5(%rsi)
  lea    -0x6(%rax),%edx
  cmp    $0x5,%eax
  je     L6
  movslq %edx,%rdx
  movzbl (%rdi,%rdx,1),%edx
  mov    %dl,0x6(%rsi)
  lea    -0x7(%rax),%edx
  cmp    $0x6,%eax
  je     L6
  movslq %edx,%rax
  movzbl (%rdi,%rax,1),%eax
  mov    %al,0x7(%rsi)
  test   %edx,%edx
  je     L6
  movzbl (%rdi),%eax
  mov    %al,0x8(%rsi)
L6:
  mov    -0xb8(%rbp),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L294
  addl   $0x1,-0xa4(%rbp)
  mov    %rbx,%rsp
  jmp    L58
  nopl   0x0(%rax,%rax,1)
L294:
  mov    -0xb8(%rbp),%rax
  lea    D3(%rip),%rdi
  movb   $0x0,(%rax,%r15,1)
  mov    %rax,%rsi
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L162
  lea    -0x28(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L50:
  lea    -0x9c(%rbp),%rax
  mov    %r13,%rsi
  xor    %r15d,%r15d
  mov    %rax,-0xb8(%rbp)
  jmp    L6
L110:
  movzbl -0x42(%rbp),%eax
  lea    -0x9d(%rbp),%rsi
  mov    $0x1,%r15d
  mov    %al,-0x9e(%rbp)
  mov    %al,-0x9d(%rbp)
  lea    -0x9e(%rbp),%rax
  mov    %rax,-0xb8(%rbp)
  jmp    L6
L13:
  lea    -0x9a(%rbp),%rdi
  mov    $0x1,%eax
  lea    -0x98(%rbp),%rsi
  mov    $0x2,%r15d
  mov    %rdi,-0xb8(%rbp)
  nopl   (%rax)
L97:
  test   $0x4,%r15b
  jne    L93
  test   %r15d,%r15d
  je     L150
  movzbl (%r14),%edx
  mov    -0xb8(%rbp),%rdi
  mov    %dl,(%rdi)
  test   $0x2,%r15b
  je     L150
  mov    %r15d,%edx
  mov    -0xb8(%rbp),%rdi
  movzwl -0x2(%r14,%rdx,1),%ecx
  mov    %cx,-0x2(%rdi,%rdx,1)
  jmp    L150
L269:
  lea    -0x96(%rbp),%rdi
  mov    $0x2,%eax
  lea    -0x93(%rbp),%rsi
  mov    $0x3,%r15d
  mov    %rdi,-0xb8(%rbp)
  jmp    L97
L166:
  lea    -0x90(%rbp),%rdi
  mov    $0x3,%eax
  lea    -0x8c(%rbp),%rsi
  mov    $0x4,%r15d
  mov    %rdi,-0xb8(%rbp)
  jmp    L97
L147:
  lea    -0x88(%rbp),%rdi
  mov    $0x4,%eax
  lea    -0x83(%rbp),%rsi
  mov    $0x5,%r15d
  mov    %rdi,-0xb8(%rbp)
  jmp    L97
L93:
  mov    (%r14),%edx
  mov    -0xb8(%rbp),%rdi
  mov    %edx,(%rdi)
  mov    %r15d,%edx
  mov    -0x4(%r14,%rdx,1),%ecx
  mov    %ecx,-0x4(%rdi,%rdx,1)
  jmp    L150
L322:
  lea    -0x7e(%rbp),%rdi
  mov    $0x5,%eax
  lea    -0x78(%rbp),%rsi
  mov    $0x6,%r15d
  mov    %rdi,-0xb8(%rbp)
  jmp    L97
L201:
  lea    -0x72(%rbp),%rdi
  mov    $0x6,%eax
  lea    -0x6b(%rbp),%rsi
  mov    $0x7,%r15d
  mov    %rdi,-0xb8(%rbp)
  jmp    L97
L319:
  lea    -0x64(%rbp),%rdi
  mov    $0x7,%eax
  lea    -0x5c(%rbp),%rsi
  mov    $0x8,%r15d
  mov    %rdi,-0xb8(%rbp)
  jmp    L237
L162:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D11
type_infered: string
name: retrieve_data
arguments: data_tag: D2
type_infered: string
name: retrieve_data
arguments: data_tag: D3
type_infered: string

tool: D11: %d

tool: D2: %X

tool: D3: %s

assistant: ```c
int main() {
  char hex[10];
  int blyat;
  scanf("%d", &blyat);
  while (2 == 2) {
    sprintf(hex, "%X", blyat);
    int i;
    int n;
    for (i = 0; i < 10; i++) {
      n = i;
      if (hex[i] == '\0') {
        break;
      }
    }
    char hx[n];
    char rev[n];
    int start = 0;
    for (i = 0; i < n; i++) {
      hx[i] = hex[i];
    }
    for (i = n - 1; i >= 0; i--) {
      rev[start] = hx[i];
      start++;
    }
    if (strcmp(hx, rev) == 0) {
      hx[n] = '\0';
      printf("%s", hx);
      break;
    }
    blyat++;
  }
  return 0;
}
```