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

```asm
<qrnzcnt>:
  endbr64
  push   %r15
  xor    %eax,%eax
  mov    %edi,%r15d
  push   %r14
  mov    %rcx,%r14
  push   %r13
  lea    0x1(%r15),%r13d
  push   %r12
  movslq %esi,%r12
  push   %rbp
  push   %rbx
  mov    %r8,%rbx
  sub    $0xd8,%rsp
  mov    %r9,0x40(%rsp)
  mov    %rdx,0x38(%rsp)
  mov    %edi,0x9c(%rsp)
  call   <intMalloc@plt>
  mov    %r15d,%edi
  movslq %eax,%rbp
  xor    %eax,%eax
  call   <intMalloc@plt>
  mov    %r13d,%edi
  movslq %eax,%rcx
  xor    %eax,%eax
  mov    %rcx,0x28(%rsp)
  call   <intMalloc@plt>
  mov    %r13d,%edi
  cltq
  mov    %rax,0xb0(%rsp)
  xor    %eax,%eax
  call   <intMalloc@plt>
  mov    %r13d,%edi
  cltq
  mov    %rax,0x30(%rsp)
  xor    %eax,%eax
  call   <intMalloc@plt>
  mov    %r13d,%edi
  cltq
  mov    %rax,0xb8(%rsp)
  xor    %eax,%eax
  call   <intMalloc@plt>
  mov    %r15d,%edi
  cltq
  mov    %rax,0x50(%rsp)
  xor    %eax,%eax
  call   <intMalloc@plt>
  movslq %eax,%rdi
  xor    %eax,%eax
  mov    %rdi,0x8(%rsp)
  lea    0x1(%r12,%r15,2),%edi
  call   <intMalloc@plt>
  movslq %eax,%rdi
  movslq %r15d,%rax
  lea    0x4(,%rax,4),%rdx
  mov    %rdi,0x10(%rsp)
  xor    %eax,%eax
  lea    (%rdi,%r12,4),%rdi
  mov    %rdi,0x60(%rsp)
  add    %rdx,%rdi
  mov    %r15d,%r12d
  mov    %rdi,0x68(%rsp)
  mov    %r15d,%edi
  mov    %rdx,0x88(%rsp)
  call   <intMalloc@plt>
  movslq %eax,%rdi
  xor    %eax,%eax
  mov    %rdi,0x70(%rsp)
  mov    %r15d,%edi
  call   <intMalloc@plt>
  mov    %r13d,%edi
  movslq %eax,%r15
  xor    %eax,%eax
  mov    %r15,0x18(%rsp)
  call   <intCalloc@plt>
  mov    %r12d,%edi
  movslq %eax,%r15
  xor    %eax,%eax
  call   <intMalloc@plt>
  mov    %r12d,%edi
  movslq %eax,%r11
  xor    %eax,%eax
  mov    %r11,0x78(%rsp)
  call   <intMalloc@plt>
  mov    %r12d,%edi
  movslq %eax,%r13
  xor    %eax,%eax
  call   <intMalloc@plt>
  movslq %eax,%r11
  mov    %r11,0xc0(%rsp)
  lea    -0x1(%r12),%r11d
  mov    %r11d,0x90(%rsp)
  mov    %r11d,0xa0(%rsp)
  test   %r12d,%r12d
  jle    L60
  mov    %r12d,%r11d
  mov    0x50(%rsp),%rax
  mov    0x70(%rsp),%rdx
  lea    0x0(,%r11,4),%r12
  mov    %r11,0x48(%rsp)
  mov    0x28(%rsp),%rcx
  mov    0x138(%rsp),%r10
  lea    0x0(%r13,%r12,1),%r11
  lea    (%rax,%r12,1),%rdi
  mov    %r11,(%rsp)
  mov    0x130(%rsp),%r11
  lea    (%rdx,%r12,1),%r9
  lea    (%rcx,%r12,1),%r8
  lea    0x0(%rbp,%r12,1),%rsi
  add    %r12,%r10
  add    %r12,%r11
  cmp    %rbp,%rdi
  setbe  %dl
  cmp    %rsi,%rax
  setae  %al
  or     %eax,%edx
  cmp    %rsi,%rcx
  setae  %al
  cmp    %r8,%rbp
  setae  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %r11,0x138(%rsp)
  setae  %dl
  cmp    %r10,0x130(%rsp)
  setae  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %rsi,0x70(%rsp)
  setae  %al
  cmp    %rbp,%r9
  setbe  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %rbp,(%rsp)
  setbe  %dl
  cmp    %rsi,%r13
  setae  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %rbp,%r10
  setbe  %al
  cmp    %rsi,0x138(%rsp)
  setae  %cl
  or     %ecx,%eax
  and    %eax,%edx
  cmp    %rbp,%r11
  mov    %edx,%ecx
  setbe  %dl
  cmp    %rsi,0x130(%rsp)
  mov    0x28(%rsp),%rsi
  setae  %al
  or     %edx,%eax
  and    %ecx,%eax
  cmp    %rsi,%rdi
  setbe  %dl
  cmp    %r8,0x50(%rsp)
  setae  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %rsi,%r9
  setbe  %al
  cmp    %r8,0x70(%rsp)
  setae  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %rsi,(%rsp)
  setbe  %dl
  cmp    %r8,%r13
  setae  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %r8,0x138(%rsp)
  setae  %al
  cmp    %rsi,%r10
  setbe  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %rsi,%r11
  mov    0x50(%rsp),%rsi
  setbe  %dl
  cmp    %r8,0x130(%rsp)
  setae  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %rsi,%r9
  setbe  %al
  cmp    %rdi,0x70(%rsp)
  setae  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %rsi,(%rsp)
  setbe  %dl
  cmp    %rdi,%r13
  setae  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %rsi,%r10
  setbe  %al
  cmp    %rdi,0x138(%rsp)
  setae  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %rsi,%r11
  mov    (%rsp),%rsi
  setbe  %dl
  cmp    %rdi,0x130(%rsp)
  mov    0x70(%rsp),%rdi
  setae  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %r9,%r13
  setae  %al
  cmp    %rdi,%rsi
  setbe  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %r9,0x138(%rsp)
  setae  %dl
  cmp    %rdi,%r10
  setbe  %cl
  or     %ecx,%edx
  and    %eax,%edx
  cmp    %r9,0x130(%rsp)
  setae  %al
  cmp    %rdi,%r11
  setbe  %cl
  or     %ecx,%eax
  and    %edx,%eax
  cmp    %rsi,0x138(%rsp)
  setae  %dl
  cmp    %r13,%r10
  setbe  %cl
  or     %ecx,%edx
  test   %dl,%al
  je     L197
  cmp    %r13,%r11
  setbe  %al
  cmp    %rsi,0x130(%rsp)
  setae  %dl
  or     %al,%dl
  je     L197
  mov    0x28(%rsp),%rdi
  mov    %r12,%rdx
  mov    $0xff,%esi
  call   <memset@plt>
  mov    0x70(%rsp),%rdi
  mov    %r12,%rdx
  mov    $0xff,%esi
  call   <memset@plt>
  mov    %r12,%rdx
  mov    $0xff,%esi
  mov    %rbp,%rdi
  call   <memset@plt>
  mov    0x130(%rsp),%rdi
  mov    %r12,%rdx
  xor    %esi,%esi
  call   <memset@plt>
  mov    %r12,%rdx
  xor    %esi,%esi
  mov    %r13,%rdi
  call   <memset@plt>
  mov    0x138(%rsp),%rdi
  mov    %r12,%rdx
  xor    %esi,%esi
  call   <memset@plt>
  mov    0x50(%rsp),%rdi
  mov    %r12,%rdx
  xor    %esi,%esi
  call   <memset@plt>
L119:
  mov    0x50(%rsp),%rax
  mov    0x88(%rsp),%rdi
  xor    %r11d,%r11d
  xor    %r8d,%r8d
  mov    %r15,0xa8(%rsp)
  movl   $0x0,-0x4(%rax,%rdi,1)
  mov    0x70(%rsp),%rdi
  sub    %rdi,%rax
  mov    %rdi,%r12
  mov    %rax,0x80(%rsp)
  nopl   0x0(%rax)
L55:
  mov    0x118(%rsp),%rax
  mov    0x50(%rsp),%rsi
  mov    %r11d,%r15d
  mov    %r11d,%ecx
  lea    0x0(,%r11,4),%rdi
  movslq (%rax,%r11,4),%rax
  mov    %rdi,0x20(%rsp)
  addl   $0x1,(%rsi,%rax,4)
  movslq %r8d,%rax
  lea    0x0(,%rax,4),%r9
  test   %r11,%r11
  je     L503
  mov    0x80(%rsp),%rsi
  cmpl   $0x1,(%rsi,%r12,1)
  jle    L503
  mov    0x138(%rsp),%rsi
  mov    %r11d,%edx
  mov    %rdi,%r9
  sub    %r8d,%edx
  mov    %r11d,%r8d
  mov    %edx,(%rsi,%rax,4)
L503:
  mov    0x40(%rsp),%rax
  mov    0x38(%rsp),%rdi
  movslq (%rax,%r11,4),%rax
  lea    0x4(%rdi,%rax,4),%r10
  movslq (%rdi,%rax,4),%rdx
  cmp    (%r10),%edx
  jge    L419
  mov    %r11,0x58(%rsp)
  mov    %ecx,(%rsp)
  jmp    L510
  nopl   0x0(%rax,%rax,1)
L250:
  add    $0x1,%rdx
  cmp    %edx,(%r10)
  jle    L387
L510:
  movslq (%r14,%rdx,4),%rax
  movslq %r8d,%rdi
  lea    0x0(,%rdi,4),%r9
  movslq (%rbx,%rax,4),%rsi
  lea    0x0(,%rsi,4),%rax
  addl   $0x1,0x0(%r13,%rax,1)
  add    %rbp,%rax
  cmpl   $0xffffffff,(%rax)
  jne    L250
  mov    %r15d,(%rax)
  mov    0x18(%rsp),%r11
  mov    (%r12),%eax
  mov    %eax,(%r11,%rsi,4)
  mov    (%rsp),%eax
  mov    %esi,(%r12)
  test   %eax,%eax
  je     L250
  cmp    %eax,%r8d
  je     L250
  mov    0x138(%rsp),%rsi
  mov    %r15d,%eax
  mov    0x20(%rsp),%r9
  add    $0x1,%rdx
  sub    %r8d,%eax
  mov    %r15d,%r8d
  mov    %eax,(%rsi,%rdi,4)
  cmp    %edx,(%r10)
  jg     L510
  nopl   0x0(%rax)
L387:
  mov    0x58(%rsp),%r11
L419:
  add    $0x1,%r11
  add    $0x4,%r12
  cmp    %r11,0x48(%rsp)
  jne    L55
  mov    0x9c(%rsp),%eax
  mov    0x68(%rsp),%r12
  xor    %ecx,%ecx
  xor    %edx,%edx
  mov    0x138(%rsp),%rdi
  mov    0xa8(%rsp),%r15
  sub    %r8d,%eax
  mov    0x28(%rsp),%r10
  mov    %eax,(%rdi,%r9,1)
  mov    0x60(%rsp),%rax
  mov    %r15,0x20(%rsp)
  movl   $0x0,(%rax)
  mov    %rax,%r15
  nop
L76:
  mov    0x40(%rsp),%rax
  mov    0x38(%rsp),%rdi
  mov    %ecx,%r9d
  xor    %r8d,%r8d
  movslq (%rax,%rcx,4),%rax
  mov    %edx,(%r12,%rcx,4)
  movslq (%rdi,%rax,4),%rdx
  lea    0x4(%rdi,%rax,4),%rdi
  cmp    (%rdi),%edx
  jge    L343
  mov    %r15,(%rsp)
  jmp    L351
  nopl   0x0(%rax,%rax,1)
L361:
  shl    $0x2,%rax
  lea    (%r10,%rax,1),%rsi
  cmp    %ecx,(%rsi)
  jge    L65
  add    %r12,%rax
  mov    0x10(%rsp),%r15
  movslq (%rax),%r11
  mov    %r9d,(%r15,%r11,4)
  addl   $0x1,(%rax)
  mov    %r9d,(%rsi)
L65:
  add    $0x1,%rdx
  cmp    %edx,(%rdi)
  jle    L258
L351:
  movslq (%r14,%rdx,4),%rax
  movslq (%rbx,%rax,4),%rsi
  movslq 0x0(%rbp,%rsi,4),%rax
  cmp    %ecx,%eax
  jne    L361
  add    0x0(%r13,%rsi,4),%r8d
  add    $0x1,%rdx
  cmp    %edx,(%rdi)
  jg     L351
L258:
  mov    (%rsp),%r15
L343:
  add    (%r15,%rcx,4),%r8d
  mov    %r8d,0x4(%r15,%rcx,4)
  add    $0x1,%rcx
  cmp    %rcx,0x48(%rsp)
  je     L207
  mov    (%r15,%rcx,4),%edx
  jmp    L76
  nopl   0x0(%rax,%rax,1)
L207:
  mov    0xb0(%rsp),%rax
  mov    0x88(%rsp),%rbx
  mov    0x20(%rsp),%r15
  movl   $0x0,-0x4(%rax,%rbx,1)
L295:
  mov    0xb0(%rsp),%r14
  mov    0x88(%rsp),%rax
  mov    %rbp,%r11
  mov    0xc0(%rsp),%rbx
  mov    0x28(%rsp),%r10
  sub    %r13,%r11
  mov    0x118(%rsp),%r8
  mov    0x30(%rsp),%rdi
  mov    %r14,%r9
  lea    -0x8(%rax,%r13,1),%rax
  mov    0x8(%rsp),%rcx
  sub    %r13,%rbx
  sub    %r13,%r10
  sub    %r13,%r9
  mov    0xb8(%rsp),%rsi
  mov    0xa0(%rsp),%edx
  sub    %r13,%r8
  sub    %r13,%rdi
  sub    %r13,%rcx
  sub    %r13,%rsi
  xchg   %ax,%ax
L214:
  movl   $0x1,(%rax)
  movl   $0x0,(%rbx,%rax,1)
  mov    %edx,(%r11,%rax,1)
  movl   $0xffffffff,(%r10,%rax,1)
  movslq (%r8,%rax,1),%r12
  mov    (%r14,%r12,4),%r12d
  add    $0x1,%r12d
  mov    %r12d,(%r9,%rax,1)
  movl   $0x1,(%rdi,%rax,1)
  mov    %edx,(%rsi,%rax,1)
  sub    $0x1,%edx
  movl   $0xffffffff,(%rcx,%rax,1)
  sub    $0x4,%rax
  cmp    $0xffffffff,%edx
  jne    L214
  mov    0xb8(%rsp),%r10
  mov    0x88(%rsp),%rax
  mov    0x9c(%rsp),%ecx
  movl   $0xffffffff,-0x4(%r10,%rax,1)
  test   %ecx,%ecx
  jle    L228
  mov    0x90(%rsp),%eax
  mov    0x118(%rsp),%rdi
  mov    0x120(%rsp),%rsi
  mov    0x30(%rsp),%r9
  shl    $0x2,%rax
  sub    %r10,%rdi
  mov    %rax,0xc8(%rsp)
  lea    0x4(%rax,%r10,1),%r8
  sub    %r10,%rsi
  mov    %r10,%rax
  nopl   0x0(%rax)
L4:
  movslq (%rdi,%rax,1),%rdx
  movl   $0x0,(%r9,%rdx,4)
  lea    (%r10,%rdx,4),%rdx
  movl   $0x0,(%rsi,%rax,1)
  mov    (%rax),%ecx
  cmp    %ecx,(%rdx)
  jle    L430
  mov    %ecx,(%rdx)
L430:
  add    $0x4,%rax
  cmp    %r8,%rax
  jne    L4
  mov    0x9c(%rsp),%eax
  mov    0x30(%rsp),%rbx
  xor    %edi,%edi
  movl   $0x0,0x48(%rsp)
  mov    0xb0(%rsp),%r10
  mov    %r13,0x40(%rsp)
  mov    %rax,0x58(%rsp)
  mov    0x70(%rsp),%rax
  mov    %rbx,0x20(%rsp)
  mov    0x118(%rsp),%r11
  mov    %r10,%r8
  sub    %r10,%rax
  mov    %rax,0x80(%rsp)
  mov    %r15,%rax
  sub    %r10,%rax
  mov    %rax,0x90(%rsp)
  mov    0xb8(%rsp),%rax
  sub    %r10,%rax
  mov    %rax,0x88(%rsp)
  mov    0x50(%rsp),%rax
  sub    %r10,%rax
  mov    %rax,0xa8(%rsp)
  mov    0x10(%rsp),%rax
  add    $0x4,%rax
  mov    %rax,0xa0(%rsp)
  nopw   0x0(%rax,%rax,1)
L89:
  lea    0x0(,%rdi,4),%rax
  mov    0x90(%rsp),%rbx
  mov    %edi,%r12d
  mov    %rax,0x38(%rsp)
  mov    0x80(%rsp),%rax
  lea    (%rbx,%r8,1),%rcx
  movslq (%rax,%r8,1),%rax
  cmp    $0xffffffff,%eax
  je     L240
  mov    0x18(%rsp),%r13
  mov    0x78(%rsp),%rbx
  nopw   0x0(%rax,%rax,1)
L398:
  mov    (%r8),%edx
  sub    (%r10,%rax,4),%edx
  add    $0x1,%edx
  mov    %edx,(%rbx,%rax,4)
  addl   $0x1,(%rcx)
  movslq (%r11,%rax,4),%rdx
  subl   $0x1,(%r15,%rdx,4)
  movslq 0x0(%r13,%rax,4),%rax
  cmp    $0xffffffff,%eax
  jne    L398
L240:
  mov    0x88(%rsp),%rax
  mov    (%rax,%r8,1),%eax
  mov    %eax,(%rsp)
  mov    0x60(%rsp),%rax
  mov    (%rax,%rdi,4),%ecx
  mov    0x68(%rsp),%rax
  mov    (%rax,%rdi,4),%eax
  cmp    %eax,%ecx
  jge    L237
  mov    0x10(%rsp),%rbx
  movslq %ecx,%rsi
  sub    $0x1,%eax
  sub    %ecx,%eax
  xor    %ecx,%ecx
  lea    (%rbx,%rsi,4),%rdx
  mov    0xa0(%rsp),%rbx
  add    %rsi,%rax
  lea    (%rbx,%rax,4),%rbx
  nopl   0x0(%rax)
L69:
  movslq (%rdx),%rax
  cmp    %edi,%eax
  jle    L299
  mov    0x8(%rsp),%r9
  lea    0x0(,%rax,4),%rsi
  mov    (%rsp),%r14d
  add    %rsi,%r9
  cmp    %r14d,(%r9)
  jge    L323
  mov    0x20(%rsp),%rcx
  addl   $0x1,(%rcx)
  mov    0x28(%rsp),%rcx
  lea    (%rcx,%rsi,1),%r13
  add    0x40(%rsp),%rsi
  movslq 0x0(%r13),%rcx
  cmp    $0xffffffff,%ecx
  jne    L257
  mov    (%r8),%ecx
  add    (%rsi),%ecx
  sub    (%r10,%rax,4),%ecx
  mov    %ecx,(%rsi)
L446:
  mov    %r12d,0x0(%r13)
  mov    $0x1,%ecx
L323:
  mov    %r12d,(%r9)
L299:
  add    $0x4,%rdx
  cmp    %rbx,%rdx
  jne    L69
  movslq (%r11,%rdi,4),%rdx
  mov    0x30(%rsp),%rbx
  mov    %rdx,%rax
  subl   $0x1,(%rbx,%rdx,4)
  cmp    $0x1,%ecx
  je     L3
L180:
  mov    0xa8(%rsp),%rbx
  cmpl   $0x1,(%rbx,%r8,1)
  jle    L124
L3:
  test   %rdi,%rdi
  je     L518
  movslq 0x48(%rsp),%rdx
  mov    0x130(%rsp),%rbx
  mov    %r12d,%ecx
  mov    %r12d,0x48(%rsp)
  sub    %edx,%ecx
  mov    %ecx,(%rbx,%rdx,4)
L514:
  mov    0x38(%rsp),%rbx
  addq   $0x4,0x20(%rsp)
  add    $0x1,%rdi
  add    $0x4,%r8
  mov    %eax,0x0(%rbp,%rbx,1)
  cmp    0x58(%rsp),%rdi
  jne    L89
  mov    0xc0(%rsp),%r14
  mov    0x30(%rsp),%r9
  mov    %r15,%r8
  mov    %rbp,(%rsp)
  mov    0x120(%rsp),%rcx
  mov    0x128(%rsp),%rax
  mov    0xc8(%rsp),%rbx
  mov    0x40(%rsp),%r13
  mov    %r14,%rdx
  sub    %r14,%r9
  mov    0x118(%rsp),%r11
  movl   $0x0,(%rax)
  sub    %r14,%r8
  mov    %rcx,%r12
  mov    0x128(%rsp),%rdi
  mov    0x9c(%rsp),%ebp
  lea    0x4(%rcx,%rbx,1),%r10
  sub    %r14,%r11
  jmp    L519
  nopl   0x0(%rax)
L7:
  shl    $0x2,%rax
  add    $0x4,%rcx
  add    $0x4,%rdx
  add    %esi,(%r14,%rax,1)
  mov    (%rbx),%esi
  add    -0x4(%rcx),%esi
  mov    %esi,-0x4(%rcx)
  add    %esi,(%r12,%rax,1)
  cmp    %r10,%rcx
  je     L88
L519:
  mov    (%rdx),%esi
  add    (%r9,%rdx,1),%esi
  lea    (%r8,%rdx,1),%rbx
  mov    %esi,(%rdx)
  add    %esi,(%rdi)
  movslq (%r11,%rdx,1),%rax
  cmp    %eax,%ebp
  jne    L7
  mov    (%rbx),%eax
  add    %eax,(%rcx)
  add    $0x4,%rcx
  add    $0x4,%rdx
  cmp    %r10,%rcx
  jne    L519
L88:
  mov    0x38(%rsp),%rax
  mov    0x48(%rsp),%ebx
  add    %rax,0x130(%rsp)
  mov    (%rsp),%rbp
  sub    %ebx,0x9c(%rsp)
L437:
  mov    0x130(%rsp),%rax
  mov    0x9c(%rsp),%ebx
  mov    %rbp,%rdi
  mov    %ebx,(%rax)
  call   <free@plt>
  mov    0x28(%rsp),%rdi
  call   <free@plt>
  mov    0xb0(%rsp),%rdi
  call   <free@plt>
  mov    0x30(%rsp),%rdi
  call   <free@plt>
  mov    0xb8(%rsp),%rdi
  call   <free@plt>
  mov    0x50(%rsp),%rdi
  call   <free@plt>
  mov    0x8(%rsp),%rdi
  call   <free@plt>
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    0x70(%rsp),%rdi
  call   <free@plt>
  mov    0x18(%rsp),%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x78(%rsp),%rdi
  call   <free@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    0xc0(%rsp),%rdi
  call   <free@plt>
  add    $0xd8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L257:
  movslq 0x0(%rbp,%rcx,4),%rax
  mov    %rax,%r14
  movslq 0x0(%rbp,%rax,4),%rax
  cmp    %eax,%r14d
  je     L438
  nopw   0x0(%rax,%rax,1)
L182:
  mov    %eax,0x0(%rbp,%rcx,4)
  movslq %eax,%rcx
  mov    0x0(%rbp,%rcx,4),%r14d
  movslq %eax,%rcx
  movslq %r14d,%rax
  movslq 0x0(%rbp,%rax,4),%rax
  cmp    %eax,%r14d
  jne    L182
L438:
  mov    (%r8),%ecx
  add    (%rsi),%ecx
  sub    (%r10,%rax,4),%ecx
  mov    %ecx,(%rsi)
  mov    0x30(%rsp),%rsi
  subl   $0x1,(%rsi,%rax,4)
  jmp    L446
  nopl   (%rax)
L124:
  cmp    0x9c(%rsp),%eax
  jne    L297
  cmp    %edi,(%rsp)
  jne    L297
  mov    0x130(%rsp),%rbx
  mov    %r12d,0x48(%rsp)
  movl   $0x1,(%rbx,%rdi,4)
  jmp    L514
  nopw   0x0(%rax,%rax,1)
L518:
  mov    %r12d,0x48(%rsp)
  jmp    L514
  nopw   0x0(%rax,%rax,1)
L297:
  movslq 0x48(%rsp),%rdx
  lea    0x0(,%rdx,4),%rbx
  mov    %rbx,0x38(%rsp)
  jmp    L514
  nopw   0x0(%rax,%rax,1)
L237:
  movslq (%r11,%rdi,4),%rdx
  mov    0x30(%rsp),%rbx
  mov    %rdx,%rax
  subl   $0x1,(%rbx,%rdx,4)
  jmp    L180
L60:
  mov    0x50(%rsp),%rbx
  mov    0x88(%rsp),%rax
  mov    0x9c(%rsp),%edi
  mov    0x90(%rsp),%edx
  movl   $0x0,-0x4(%rbx,%rax,1)
  mov    0x138(%rsp),%rbx
  mov    %edi,(%rbx)
  mov    0x60(%rsp),%rbx
  movl   $0x0,(%rbx)
  mov    0xb0(%rsp),%rbx
  movl   $0x0,-0x4(%rbx,%rax,1)
  test   %edx,%edx
  jns    L295
  mov    0xb8(%rsp),%rbx
  movl   $0xffffffff,-0x4(%rbx,%rax,1)
L228:
  mov    0x128(%rsp),%rax
  movl   $0x0,(%rax)
  jmp    L437
L197:
  mov    0x28(%rsp),%r11
  mov    0x70(%rsp),%rsi
  mov    %rbp,%rdi
  mov    %r13,%r10
  mov    0x130(%rsp),%r9
  mov    0x138(%rsp),%rcx
  mov    0x50(%rsp),%rdx
  mov    %r11,%rax
  sub    %r11,%rsi
  sub    %r11,%rdi
  sub    %r11,%r9
  sub    %r11,%r10
  sub    %r11,%rcx
  sub    %r11,%rdx
  nopw   0x0(%rax,%rax,1)
L394:
  movl   $0xffffffff,(%rax)
  movl   $0xffffffff,(%rsi,%rax,1)
  movl   $0xffffffff,(%rdi,%rax,1)
  movl   $0x0,(%r9,%rax,1)
  movl   $0x0,(%r10,%rax,1)
  movl   $0x0,(%rcx,%rax,1)
  movl   $0x0,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %rax,%r8
  jne    L394
  jmp    L119
```

assistant: ```c
int qrnzcnt(int neqns, int adjlen, int *xadj, int *adjncy, int *zfdperm, int *perm, int *invp, int *etpar, int *colcnt_h, int *nlnz, int *part_super_ata, int *part_super_h) {
  int temp, last1, last2, i, j, k, lflag, pleaf, hinbr, jstop, jstrt, ifdesc, oldnbr, parent, lownbr, lca;
  int xsup;
  int *set, *prvlf, *level, *weight, *fdesc, *nchild, *prvnbr;
  int *fnz;
  int *marker;
  int *fnz_hadj;
  int *hadj_begin;
  int *hadj_end;
  int *first;
  int *firstset;
  int *weight_h;
  int *rowcnt;
  int *colcnt;
  int *rowcnt_h;
  int nsuper;
  int nhnz;
  set = intMalloc(neqns);
  prvlf = intMalloc(neqns);
  level = intMalloc(neqns + 1);
  weight = intMalloc(neqns + 1);
  fdesc = intMalloc(neqns + 1);
  nchild = intMalloc(neqns + 1);
  prvnbr = intMalloc(neqns);
  fnz_hadj = intMalloc(adjlen + 2 * neqns + 1);
  hadj_begin = fnz_hadj + adjlen;
  hadj_end = hadj_begin + neqns + 1;
  fnz = set;
  marker = prvlf;
  first = intMalloc(neqns);
  firstset = intMalloc(neqns);
  weight_h = intCalloc(neqns + 1);
  rowcnt_h = intMalloc(neqns);
  rowcnt = intMalloc(neqns);
  colcnt = intMalloc(neqns);
  for (k = 0; k < neqns; ++k) {
    fnz[k] = first[k] = marker[k] = (-1);
    rowcnt[k] = part_super_ata[k] = 0;
    part_super_h[k] = 0;
    nchild[k] = 0;
  }
  nchild[(neqns)] = 0;
  xsup = 0;
  for (k = 0; k < neqns; ++k) {
    parent = etpar[k];
    ++nchild[parent];
    if (k != 0 && nchild[k] >= 2) {
      part_super_h[xsup] = k - xsup;
      xsup = k;
    }
    oldnbr = perm[k];
    for (j = xadj[oldnbr]; j < xadj[oldnbr + 1]; ++j) {
      i = zfdperm[adjncy[j]];
      ++rowcnt[i];
      if (fnz[i] == (-1)) {
        fnz[i] = k;
        firstset[i] = first[k];
        first[k] = i;
        if (k != 0 && xsup != k) {
          part_super_h[xsup] = k - xsup;
          xsup = k;
        }
      }
    }
  }
  part_super_h[xsup] = neqns - xsup;
  hadj_begin[0] = 0;
  for (k = 0; k < neqns; ++k) {
    temp = 0;
    oldnbr = perm[k];
    hadj_end[k] = hadj_begin[k];
    for (j = xadj[oldnbr]; j < xadj[oldnbr + 1]; ++j) {
      hinbr = zfdperm[adjncy[j]];
      jstrt = fnz[hinbr];
      if (jstrt != k && marker[jstrt] < k) {
        fnz_hadj[hadj_end[jstrt]] = k;
        ++hadj_end[jstrt];
        marker[jstrt] = k;
      }
      if (jstrt == k)
        temp += rowcnt[hinbr];
    }
    hadj_begin[k + 1] = hadj_begin[k] + temp;
  }
  level[(neqns)] = 0;
  for (k = neqns - 1; k >= 0; --k) {
    rowcnt[k] = 1;
    colcnt[k] = 0;
    set[k] = k;
    prvlf[k] = (-1);
    level[k] = level[etpar[k]] + 1;
    weight[k] = 1;
    fdesc[k] = k;
    prvnbr[k] = (-1);
  }
  fdesc[(neqns)] = (-1);
  for (k = 0; k < neqns; ++k) {
    parent = etpar[k];
    weight[parent] = 0;
    colcnt_h[k] = 0;
    ifdesc = fdesc[k];
    if (ifdesc < fdesc[parent]) {
      fdesc[parent] = ifdesc;
    }
  }
  xsup = 0;
  nsuper = 0;
  for (lownbr = 0; lownbr < neqns; ++lownbr) {
    for (i = first[lownbr]; i != (-1); i = firstset[i]) {
      rowcnt_h[i] = 1 + (level[lownbr] - level[i]);
      ++weight_h[lownbr];
      parent = etpar[i];
      --weight_h[parent];
    }
    lflag = 0;
    ifdesc = fdesc[lownbr];
    jstrt = hadj_begin[lownbr];
    jstop = hadj_end[lownbr];
    for (j = jstrt; j < jstop; ++j) {
      hinbr = fnz_hadj[j];
      if (hinbr > lownbr) {
        if (ifdesc > prvnbr[hinbr]) {
          ++weight[lownbr];
          pleaf = prvlf[hinbr];
          if (pleaf == (-1)) {
            rowcnt[hinbr] = rowcnt[hinbr] + level[lownbr] - level[hinbr];
          } else {
            last1 = pleaf;
            last2 = set[last1];
            lca = set[last2];
            while (lca != last2) {
              set[last1] = lca;
              last1 = lca;
              last2 = set[last1];
              lca = set[last2];
            }
            rowcnt[hinbr] = rowcnt[hinbr] + level[lownbr] - level[lca];
            --weight[lca];
          }
          prvlf[hinbr] = lownbr;
          lflag = 1;
        }
        prvnbr[hinbr] = lownbr;
      }
    }
    parent = etpar[lownbr];
    --weight[parent];
    if (lflag == 1 || nchild[lownbr] >= 2) {
      if (lownbr != 0)
        part_super_ata[xsup] = lownbr - xsup;
      ++nsuper;
      xsup = lownbr;
    } else {
      if (parent == (neqns) && ifdesc == lownbr) {
        part_super_ata[lownbr] = 1;
        ++nsuper;
        xsup = lownbr;
      }
    }
    set[xsup] = parent;
  }
  *nlnz = nhnz = 0;
  for (k = 0; k < neqns; ++k) {
    temp = colcnt[k] + weight[k];
    colcnt[k] = temp;
    *nlnz += temp;
    parent = etpar[k];
    if (parent != (neqns)) {
      colcnt[parent] += temp;
    }
    temp = colcnt_h[k] + weight_h[k];
    colcnt_h[k] = temp;
    nhnz += temp;
    if (parent != (neqns)) {
      colcnt_h[parent] += temp;
    }
  }
  part_super_ata[xsup] = neqns - xsup;
  free(set);
  free(prvlf);
  free(level);
  free(weight);
  free(fdesc);
  free(nchild);
  free(prvnbr);
  free(fnz_hadj);
  free(first);
  free(firstset);
  free(weight_h);
  free(rowcnt_h);
  free(rowcnt);
  free(colcnt);
  return 0;
}
```