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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D10(%rip),%rdi
  mov    %rsp,%rbp
  push   %r14
  push   %r13
  lea    -0x30(%rbp),%rsi
  push   %r12
  push   %rbx
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  call   <scanf@plt>
  mov    -0x30(%rbp),%rdx
  mov    %rsp,%rcx
  mov    %rdx,%rax
  shl    $0x5,%rax
  mov    %rax,%rsi
  and    $0xfffffffffffff000,%rsi
  sub    %rsi,%rcx
  cmp    %rcx,%rsp
  je     L93
L42:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L42
L93:
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  jne    L75
L3:
  mov    %rsp,%rbx
  test   %rdx,%rdx
  jle    L151
  mov    %rbx,%r12
  xor    %r13d,%r13d
  lea    D9(%rip),%r14
  nopl   0x0(%rax)
L32:
  lea    0x8(%r12),%rdx
  mov    %r12,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  add    $0x1,%r13
  mov    0x8(%r12),%rax
  add    (%r12),%rax
  movq   %rax,%xmm0
  movq   %r13,%xmm6
  mov    -0x30(%rbp),%rdi
  add    $0x20,%r12
  punpcklqdq %xmm6,%xmm0
  movups %xmm0,-0x10(%r12)
  cmp    %rdi,%r13
  jl     L32
  test   %rdi,%rdi
  jle    L151
  nopl   0x0(%rax)
L111:
  sub    $0x1,%rdi
  test   %rdi,%rdi
  je     L46
  mov    %rbx,%rax
  xor    %esi,%esi
  jmp    L137
  nopl   0x0(%rax)
L94:
  add    $0x20,%rax
  cmp    %rdi,%rsi
  je     L111
L137:
  mov    0x10(%rax),%rdx
  mov    0x30(%rax),%rcx
  add    $0x1,%rsi
  cmp    %rcx,%rdx
  jle    L23
  movdqu (%rax),%xmm1
  movdqu 0x20(%rax),%xmm2
  movq   %rdx,%xmm0
  movdqu 0x30(%rax),%xmm3
  movhps 0x18(%rax),%xmm0
  mov    0x30(%rax),%rdx
  movups %xmm2,(%rax)
  movq   %xmm0,%rcx
  movups %xmm3,0x10(%rax)
  movups %xmm1,0x20(%rax)
  movups %xmm0,0x30(%rax)
L23:
  cmp    %rcx,%rdx
  jne    L94
  mov    (%rax),%rcx
  cmp    %rcx,0x20(%rax)
  jle    L94
  movdqu 0x20(%rax),%xmm4
  movdqu 0x30(%rax),%xmm5
  movq   %rcx,%xmm1
  movq   %rdx,%xmm0
  movhps 0x8(%rax),%xmm1
  movhps 0x18(%rax),%xmm0
  movups %xmm4,(%rax)
  movups %xmm5,0x10(%rax)
  movups %xmm1,0x20(%rax)
  movups %xmm0,0x30(%rax)
  jmp    L94
  nopw   0x0(%rax,%rax,1)
L46:
  xor    %r12d,%r12d
  lea    D6(%rip),%r13
  nopw   0x0(%rax,%rax,1)
L107:
  mov    %r12,%rax
  mov    %r13,%rdi
  add    $0x1,%r12
  shl    $0x5,%rax
  mov    0x18(%rbx,%rax,1),%rsi
  call   <printf@plt>
  cmp    %r12,-0x30(%rbp)
  jg     L107
L151:
  mov    -0x28(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L106
  lea    -0x20(%rbp),%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %rbp
  ret
L75:
  orq    $0x0,-0x8(%rsp,%rax,1)
  jmp    L3
L106:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D10
type_infered: string
name: parse_data
arguments: label: D9
type_infered: string
name: parse_data
arguments: label: D6
type_infered: string

tool: D10: %ld

tool: D9: %ld %ld

tool: D6: %ld 

assistant: ```c
int main() {
  typedef struct orders {
    long int a;
    long int b;
    long int sum;
    long int ind;
  } orders;
  orders temp;
  long int n, i, j, k;
  scanf("%ld", &n);
  orders t[n];
  for (i = 0; i < n; i++) {
    scanf("%ld %ld", &t[i].a, &t[i].b);
    t[i].sum = t[i].a + t[i].b;
    t[i].ind = i + 1;
  }
  for (i = 0; i < n; i++) {
    for (j = 0; j < n - i - 1; j++) {
      if (t[j].sum > t[j + 1].sum) {
        temp = t[j];
        t[j] = t[j + 1];
        t[j + 1] = temp;
      }
      if (t[j].sum == t[j + 1].sum) {
        if (t[j + 1].a > t[j].a) {
          temp = t[j];
          t[j] = t[j + 1];
          t[j + 1] = temp;
        }
      }
    }
  }
  for (i = 0; i < n; i++) {
    printf("%ld ", t[i].ind);
  }
  return 0;
}
```