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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  lea    D58(%rip),%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  movl   $0x2f2a2d2b,0x44(%rsp)
  lea    0x30(%rsp),%r12
  lea    0x44(%rsp),%r13
  mov    %r12,%rbx
L111:
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  add    $0x4,%rbx
  call   <scanf@plt>
  cmp    %r13,%rbx
  jne    L111
  lea    0x1c(%rsp),%rsi
  mov    %rbp,%rdi
  lea    0x20(%rsp),%rbx
  call   <scanf@plt>
  movl   $0x0,0x20(%rsp)
  xor    %r10d,%r10d
  lea    0x10(%r12),%r13
  movl   $0x0,0xc(%rsp)
L192:
  movl   $0x0,0x24(%rsp)
  movl   $0x0,0x8(%rsp)
L158:
  movl   $0x0,0x28(%rsp)
  movl   $0x0,(%rsp)
  nopl   0x0(%rax,%rax,1)
L62:
  movl   $0x0,0x2c(%rsp)
  xor    %r15d,%r15d
  nopl   0x0(%rax,%rax,1)
L11:
  pxor   %xmm0,%xmm0
  mov    %rbx,%rsi
  mov    %r12,%rdx
  mov    $0x1,%edi
  cvtsi2ssl 0x30(%rsp),%xmm0
  pxor   %xmm2,%xmm2
L163:
  movslq (%rsi),%rax
  pxor   %xmm1,%xmm1
  cvtsi2ss %edi,%xmm1
  movzbl 0x44(%rsp,%rax,1),%eax
  cmp    $0x2d,%al
  je     L99
  jg     L65
  cmp    $0x2a,%al
  je     L184
  cmp    $0x2b,%al
  jne    L80
  mulss  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  mov    $0x1,%edi
  cvtsi2ssl 0x4(%rdx),%xmm0
  addss  %xmm1,%xmm2
  movss  D44(%rip),%xmm1
  nopl   0x0(%rax)
L80:
  add    $0x4,%rdx
  add    $0x4,%rsi
  cmp    %r13,%rdx
  jne    L163
  mulss  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ssl 0x1c(%rsp),%xmm1
  addss  %xmm2,%xmm0
  ucomiss %xmm1,%xmm0
  jp     L13
  je     L219
L13:
  add    $0x1,%r15d
  mov    %r15d,0x2c(%rsp)
  cmp    $0x4,%r15d
  je     L246
  cmp    $0x3,%r15d
  jne    L11
  mov    0x40(%rsp),%eax
  test   %eax,%eax
  jne    L11
  movl   $0x4,0x2c(%rsp)
L246:
  addl   $0x1,(%rsp)
  mov    (%rsp),%eax
  mov    %eax,0x28(%rsp)
  cmp    $0x4,%eax
  je     L206
  cmpl   $0x3,(%rsp)
  jne    L62
  mov    0x3c(%rsp),%edx
  test   %edx,%edx
  jne    L62
  movl   $0x4,0x28(%rsp)
L206:
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  mov    %eax,0x24(%rsp)
  cmp    $0x4,%eax
  je     L110
  cmpl   $0x3,0x8(%rsp)
  jne    L158
  mov    0x38(%rsp),%ecx
  test   %ecx,%ecx
  jne    L158
  movl   $0x4,0x24(%rsp)
L110:
  addl   $0x1,0xc(%rsp)
  mov    0xc(%rsp),%eax
  mov    %eax,0x20(%rsp)
  cmp    $0x4,%eax
  je     L71
  cmpl   $0x3,0xc(%rsp)
  jne    L192
  mov    0x34(%rsp),%esi
  test   %esi,%esi
  jne    L192
L71:
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L93
  add    $0x58,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L65:
  cmp    $0x2f,%al
  jne    L80
  pxor   %xmm3,%xmm3
  cvtsi2ssl 0x4(%rdx),%xmm3
  divss  %xmm3,%xmm0
  jmp    L80
  nopw   0x0(%rax,%rax,1)
L99:
  mulss  %xmm0,%xmm1
  pxor   %xmm0,%xmm0
  mov    $0xffffffff,%edi
  cvtsi2ssl 0x4(%rdx),%xmm0
  addss  %xmm1,%xmm2
  movss  D35(%rip),%xmm1
  jmp    L80
  nopl   0x0(%rax,%rax,1)
L184:
  pxor   %xmm3,%xmm3
  cvtsi2ssl 0x4(%rdx),%xmm3
  mulss  %xmm3,%xmm0
  jmp    L80
  nopw   0x0(%rax,%rax,1)
L219:
  lea    0x1(%r10),%eax
  mov    %r10d,%esi
  lea    D48(%rip),%rdi
  xor    %ebp,%ebp
  mov    %eax,0x4(%rsp)
  xor    %eax,%eax
  lea    D14(%rip),%r14
  call   <printf@plt>
L198:
  movslq (%rbx,%rbp,1),%rax
  mov    (%r12,%rbp,1),%esi
  mov    %r14,%rdi
  add    $0x4,%rbp
  movsbl 0x44(%rsp,%rax,1),%edx
  xor    %eax,%eax
  call   <printf@plt>
  cmp    $0x10,%rbp
  jne    L198
  mov    0x1c(%rsp),%edx
  mov    0x40(%rsp),%esi
  lea    D47(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x4(%rsp),%r10d
  jmp    L13
L93:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D58
type: string
name: retrieve_data
arguments: label: D44
type: byte[4]
name: retrieve_data
arguments: label: D35
type: byte[4]
name: retrieve_data
arguments: label: D48
type: string
name: retrieve_data
arguments: label: D14
type: string
name: retrieve_data
arguments: label: D47
type: string

tool: D58: %d

tool: {"D44": [0x00,0x00,0x80,0x3f]}

tool: {"D35": [0x00,0x00,0x80,0xbf]}

tool: D48: count = %d


tool: D14: %d %c 

tool: D47: %d = %d


assistant: ```c
void main() {
  int num[5];
  int ret;
  int i[4], j;
  char operator[4] = {'+', '-', '*', '/'};
  float left, right;
  int sign;
  int count = 0;
  for (j = 0; j < 5; j++)
    scanf("%d", num + j);
  scanf("%d", &ret);
  for (i[0] = 0; i[0] < 4; i[0]++) {
    if (i[0] == 3 && num[1] == 0)
      continue;
    for (i[1] = 0; i[1] < 4; i[1]++) {
      if (i[1] == 3 && num[2] == 0)
        continue;
      for (i[2] = 0; i[2] < 4; i[2]++) {
        if (i[2] == 3 && num[3] == 0)
          continue;
        for (i[3] = 0; i[3] < 4; i[3]++) {
          if (i[3] == 3 && num[4] == 0)
            continue;
          left = 0;
          right = num[0];
          sign = 1;
          for (j = 0; j < 4; j++) {
            switch (operator[i[j]]) {
            case '+':
              left += sign * right;
              right = num[j + 1];
              sign = 1;
              break;
            case '-':
              left += sign * right;
              right = num[j + 1];
              sign = -1;
              break;
            case '*':
              right *= num[j + 1];
              break;
            case '/':
              right /= num[j + 1];
              break;
            }
          }
          if (left + sign * right == ret) {
            printf("count = %d\n", count++);
            for (j = 0; j < 4; j++)
              printf("%d %c ", num[j], operator[i[j]]);
            printf("%d = %d\n", num[4], ret);
          }
        }
      }
    }
  }
}
```