user: 下面的汇编指令对应的C源代码是什么:

```asm
<collapse>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  lea    0x2(%rcx),%r12d
  push   %rbp
  push   %rbx
  mov    %rsi,-0x28(%rsp)
  mov    %edx,-0x1c(%rsp)
  cmp    $0x2,%r12d
  jle    L376
  lea    -0x1(%r8),%eax
  mov    %rdi,%rbx
  mov    %r8d,%r13d
  mov    %r8d,%edx
  mov    %rax,%rbp
  add    $0x3,%rax
  and    $0xfffffffc,%r13d
  shr    $0x2,%edx
  mov    %rax,-0x18(%rsp)
  lea    -0x78(%rbx),%rax
  lea    0x2(%r13),%r14d
  movslq %r12d,%r10
  mov    %rax,-0x10(%rsp)
  movdqa D29(%rip),%xmm3
  lea    0x1(%rcx),%edi
  movl   $0x0,-0x20(%rsp)
  nopl   0x0(%rax,%rax,1)
L271:
  mov    %r10,%rax
  shl    $0x4,%rax
  sub    %r10,%rax
  shl    $0x3,%rax
  lea    (%rbx,%rax,1),%rcx
  test   %r8d,%r8d
  jle    L130
  cmp    $0x2,%ebp
  jbe    L155
  lea    0x8(%rbx,%rax,1),%rax
  pxor   %xmm1,%xmm1
  movdqu (%rax),%xmm0
  pcmpeqd %xmm1,%xmm0
  pandn  %xmm3,%xmm0
  cmp    $0x1,%edx
  jbe    L136
  movdqu 0x10(%rax),%xmm2
  pcmpeqd %xmm1,%xmm2
  pandn  %xmm0,%xmm2
  movdqa %xmm2,%xmm0
  cmp    $0x2,%edx
  je     L136
  movdqu 0x20(%rax),%xmm2
  pcmpeqd %xmm1,%xmm2
  pandn  %xmm0,%xmm2
  movdqa %xmm2,%xmm0
  cmp    $0x3,%edx
  je     L136
  movdqu 0x30(%rax),%xmm2
  pcmpeqd %xmm1,%xmm2
  pandn  %xmm0,%xmm2
  movdqa %xmm2,%xmm0
  cmp    $0x4,%edx
  je     L136
  movdqu 0x40(%rax),%xmm2
  pcmpeqd %xmm1,%xmm2
  pandn  %xmm0,%xmm2
  movdqa %xmm2,%xmm0
  cmp    $0x5,%edx
  je     L136
  movdqu 0x50(%rax),%xmm2
  pcmpeqd %xmm1,%xmm2
  pandn  %xmm0,%xmm2
  movdqa %xmm2,%xmm0
  cmp    $0x6,%edx
  je     L136
  movdqu 0x60(%rax),%xmm7
  pcmpeqd %xmm7,%xmm1
  pandn  %xmm2,%xmm1
  movdqa %xmm1,%xmm0
  cmp    $0x7,%edx
  je     L136
  xor    %esi,%esi
  pxor   %xmm2,%xmm2
L160:
  mov    %rsi,%r9
  add    $0x1,%rsi
  shl    $0x4,%r9
  movdqu 0x70(%rax,%r9,1),%xmm1
  lea    0x7(%rsi),%r9d
  pcmpeqd %xmm2,%xmm1
  pandn  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  cmp    %edx,%r9d
  jb     L160
  nopl   0x0(%rax,%rax,1)
L136:
  movdqa %xmm0,%xmm2
  mov    %r14d,%esi
  psrldq $0x8,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm1,%xmm0
  movdqa %xmm0,%xmm2
  psrldq $0x4,%xmm2
  movdqa %xmm2,%xmm1
  pcmpgtd %xmm0,%xmm1
  pand   %xmm1,%xmm0
  pandn  %xmm2,%xmm1
  por    %xmm0,%xmm1
  movd   %xmm1,%eax
  cmp    %r13d,%r8d
  je     L326
L92:
  movslq %esi,%r9
  lea    0x1(%rsi),%r11d
  lea    (%rcx,%r9,4),%r9
  mov    (%r9),%r15d
  test   %r15d,%r15d
  je     L493
  cmp    %esi,%r8d
  jl     L326
  mov    0x4(%r9),%r15d
  test   %r15d,%r15d
  je     L107
L581:
  cmp    %r11d,%r8d
  jl     L326
L374:
  mov    0x8(%r9),%esi
  test   %esi,%esi
  je     L507
L326:
  cmp    $0x1,%eax
  je     L334
L507:
  mov    %edi,%r12d
  cmp    $0x2,%edi
  je     L496
L165:
  sub    $0x1,%edi
  movslq %r12d,%r10
  jmp    L271
L493:
  xor    %eax,%eax
  cmp    %esi,%r8d
  jl     L507
  mov    0x4(%r9),%r15d
  test   %r15d,%r15d
  jne    L581
L107:
  xor    %eax,%eax
  cmp    %r11d,%r8d
  jge    L374
  mov    %edi,%r12d
  cmp    $0x2,%edi
  jne    L165
  nop
L496:
  mov    -0x20(%rsp),%ebx
  test   %ebx,%ebx
  je     L376
  mov    -0x28(%rsp),%rax
  mov    (%rax),%edx
  lea    -0x1(%rbx),%eax
  cmp    $0xa,%eax
  jbe    L227
  movd   -0x1c(%rsp),%xmm3
  shr    $0x2,%ebx
  xor    %eax,%eax
  pxor   %xmm2,%xmm2
  movdqa D30(%rip),%xmm7
  movdqa D0(%rip),%xmm6
  mov    %ebx,%ecx
  pshufd $0x0,%xmm3,%xmm4
  movdqa D1(%rip),%xmm3
  movdqa %xmm4,%xmm5
  psrlq  $0x20,%xmm5
  cs nopw 0x0(%rax,%rax,1)
L6:
  movdqa %xmm3,%xmm0
  add    $0x1,%eax
  paddd  %xmm7,%xmm3
  paddd  %xmm6,%xmm0
  movdqa %xmm0,%xmm1
  psrlq  $0x20,%xmm0
  pmuludq %xmm4,%xmm1
  pmuludq %xmm5,%xmm0
  pshufd $0x8,%xmm1,%xmm1
  pshufd $0x8,%xmm0,%xmm0
  punpckldq %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  pslld  $0x2,%xmm0
  paddd  %xmm1,%xmm0
  paddd  %xmm0,%xmm2
  cmp    %eax,%ecx
  jne    L6
  movdqa %xmm2,%xmm0
  psrldq $0x8,%xmm0
  paddd  %xmm0,%xmm2
  movdqa %xmm2,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm2
  movd   %xmm2,%eax
  add    %eax,%edx
  mov    -0x20(%rsp),%eax
  mov    %eax,%ecx
  and    $0xfffffffc,%ecx
  test   $0x3,%al
  je     L399
L330:
  mov    -0x1c(%rsp),%ebx
  lea    0x2(%rcx),%esi
  mov    -0x20(%rsp),%r15d
  mov    %ebx,%eax
  imul   %esi,%eax
  lea    (%rax,%rax,4),%edi
  add    %edi,%edx
  lea    0x1(%rcx),%edi
  cmp    %r15d,%edi
  jge    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%edi
  add    %edi,%edx
  cmp    %r15d,%esi
  jge    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  lea    0x3(%rcx),%esi
  cmp    %esi,%r15d
  jle    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  lea    0x4(%rcx),%esi
  cmp    %esi,%r15d
  jle    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  lea    0x5(%rcx),%esi
  cmp    %esi,%r15d
  jle    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  lea    0x6(%rcx),%esi
  cmp    %esi,%r15d
  jle    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  lea    0x7(%rcx),%esi
  cmp    %esi,%r15d
  jle    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  lea    0x8(%rcx),%esi
  cmp    %esi,%r15d
  jle    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  lea    0x9(%rcx),%esi
  cmp    %esi,%r15d
  jle    L399
  add    %ebx,%eax
  add    $0xa,%ecx
  lea    (%rax,%rax,4),%esi
  add    %esi,%edx
  cmp    %ecx,%r15d
  jle    L399
  add    %ebx,%eax
  lea    (%rax,%rax,4),%eax
  add    %eax,%edx
L399:
  mov    -0x28(%rsp),%rax
  mov    %edx,(%rax)
L376:
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L334:
  addl   $0x1,-0x20(%rsp)
  mov    %edi,%r9d
  mov    %r12d,%esi
  cmp    $0x4,%r12d
  jle    L194
  mov    -0x18(%rsp),%r15
L566:
  lea    -0x78(%rcx),%r11
  mov    $0x2,%eax
  nopw   0x0(%rax,%rax,1)
L87:
  mov    (%r11,%rax,4),%esi
  mov    %esi,(%rcx,%rax,4)
  mov    -0xf0(%rcx,%rax,4),%esi
  mov    %esi,-0x78(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %r15,%rax
  jne    L87
  lea    -0x1(%r9),%esi
  sub    $0x2,%r9d
  sub    $0xf0,%rcx
  cmp    $0x3,%r9d
  jg     L566
L194:
  movslq %esi,%rcx
  mov    -0x10(%rsp),%r15
  sub    $0x3,%esi
  mov    %rcx,%rax
  shl    $0x4,%rax
  sub    %rcx,%rax
  shl    $0x3,%rax
  lea    (%rbx,%rax,1),%rcx
  add    %rax,%r15
  mov    %rsi,%rax
  shl    $0x4,%rax
  sub    %rsi,%rax
  shl    $0x3,%rax
  sub    %rax,%r15
  mov    %rcx,%rax
  sub    $0x78,%rcx
  cmp    $0x2,%ebp
  jbe    L346
  nopl   0x0(%rax)
L391:
  movdqu -0x70(%rax),%xmm5
  lea    0x8(%rax),%r9
  movups %xmm5,0x8(%rax)
  cmp    $0x1,%edx
  jbe    L420
  movdqu -0x60(%rax),%xmm6
  movups %xmm6,0x18(%rax)
  cmp    $0x2,%edx
  je     L420
  movdqu -0x50(%rax),%xmm7
  movups %xmm7,0x28(%rax)
  cmp    $0x3,%edx
  je     L420
  movdqu -0x40(%rax),%xmm4
  movups %xmm4,0x38(%rax)
  cmp    $0x4,%edx
  je     L420
  movdqu -0x30(%rax),%xmm4
  movups %xmm4,0x48(%rax)
  cmp    $0x5,%edx
  je     L420
  movdqu -0x20(%rax),%xmm7
  movups %xmm7,0x58(%rax)
  cmp    $0x6,%edx
  je     L420
  movdqu -0x10(%rax),%xmm6
  movups %xmm6,0x68(%rax)
  cmp    $0x7,%edx
  je     L420
  mov    $0x7,%r11d
  xor    %esi,%esi
L345:
  movdqu (%rax,%rsi,1),%xmm5
  add    $0x1,%r11d
  movups %xmm5,0x70(%r9,%rsi,1)
  add    $0x10,%rsi
  cmp    %edx,%r11d
  jne    L345
  cs nopw 0x0(%rax,%rax,1)
L420:
  mov    %r14d,%r11d
  cmp    %r13d,%r8d
  je     L491
L189:
  movslq %r11d,%rsi
  shl    $0x2,%rsi
  lea    (%rcx,%rsi,1),%r9
  add    %rsi,%rax
  mov    (%r9),%esi
  mov    %esi,(%rax)
  cmp    %r11d,%r8d
  jl     L491
  mov    0x4(%r9),%esi
  mov    %esi,0x4(%rax)
  jle    L491
  mov    0x8(%r9),%esi
  mov    %esi,0x8(%rax)
L491:
  cmp    %rcx,%r15
  je     L271
  mov    %rcx,%rax
  sub    $0x78,%rcx
  cmp    $0x2,%ebp
  ja     L391
L346:
  mov    $0x2,%r11d
  jmp    L189
L155:
  mov    $0x1,%eax
  mov    $0x2,%esi
  jmp    L92
L130:
  addl   $0x1,-0x20(%rsp)
  jmp    L271
L227:
  xor    %ecx,%ecx
  jmp    L330
```

tool_calls: name: read_data
arguments: label: D29
type: byte[16]
name: read_data
arguments: label: D30
type: byte[16]
name: read_data
arguments: label: D0
type: byte[16]
name: read_data
arguments: label: D1
type: byte[16]

tool: {"D29": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: {"D30": [0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00,0x04,0x00,0x00,0x00]}

tool: {"D0": [0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x02,0x00,0x00,0x00]}

tool: {"D1": [0x00,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x03,0x00,0x00,0x00]}

assistant: ```c
void collapse(int harta[][30], int *punctaj, int level, int lungime, int latime) {
  int i, j, semafor, s, contor_linii = 0, p;
  semafor = 1;
  for (i = lungime + 2; i >= 3; i--) {
    for (j = 2; j <= latime + 1; j++) {
      if (harta[i][j] == 0)
        semafor = 0;
    }
    if (semafor == 1) {
      contor_linii++;
      for (s = i; s >= 3; s--) {
        for (j = 2; j <= latime + 1; j++) {
          harta[s][j] = harta[s - 1][j];
        }
      }
      i = i + 1;
    } else
      semafor = 1;
  }
  p = 5 * level;
  for (i = 0; i < contor_linii; i++) {
    *punctaj = *punctaj + p * (2 + i);
  }
}
```