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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x1000,%rsp
  orq    $0x0,(%rsp)
  sub    $0x778,%rsp
  mov    $0x2710,%edx
  xor    %esi,%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x2768(%rsp)
  xor    %eax,%eax
  lea    0x50(%rsp),%rax
  movl   $0x0,0x4c(%rsp)
  mov    %rax,%rdi
  mov    %rax,0x28(%rsp)
  call   <memset@plt>
  lea    0x48(%rsp),%rsi
  lea    D151(%rip),%rdi
  xor    %eax,%eax
  lea    0x44(%rsp),%rdx
  call   <scanf@plt>
  mov    0x48(%rsp),%edi
  mov    0x44(%rsp),%esi
  test   %edi,%edi
  jle    L184
  mov    0x28(%rsp),%rbx
  xor    %r12d,%r12d
  lea    D62(%rip),%rbp
  mov    %rbx,%r13
  test   %esi,%esi
  jle    L336
  nop
L638:
  xor    %r14d,%r14d
  nopl   0x0(%rax,%rax,1)
L37:
  lea    (%r14,%rbx,1),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  add    $0x1,%r14
  call   <scanf@plt>
  mov    0x44(%rsp),%esi
  cmp    %r14d,%esi
  jg     L37
  mov    0x48(%rsp),%edi
  add    $0x1,%r12d
  cmp    %edi,%r12d
  jge    L351
  add    $0x64,%rbx
  test   %esi,%esi
  jg     L638
L336:
  add    $0x1,%r12d
  cmp    %r12d,%edi
  jle    L351
L437:
  lea    -0x1(%rdi),%eax
  mov    0x28(%rsp),%rdx
  mov    %esi,%r10d
  mov    %esi,%r11d
  mov    %eax,0x14(%rsp)
  lea    (%rax,%rax,4),%rax
  lea    -0x1(%rsi),%r15d
  shr    $0x4,%r10d
  lea    (%rax,%rax,4),%rax
  movdqa D157(%rip),%xmm7
  xor    %ebp,%ebp
  xor    %ebx,%ebx
  movdqa D85(%rip),%xmm8
  lea    0x64(%rdx,%rax,4),%r14
  and    $0xfffffff0,%r11d
  movdqa D154(%rip),%xmm6
  movdqa D76(%rip),%xmm9
  xor    %r12d,%r12d
  pxor   %xmm4,%xmm4
  pxor   %xmm3,%xmm3
  movdqa D64(%rip),%xmm5
  nopl   (%rax)
L29:
  test   %esi,%esi
  jle    L163
  cmp    $0xe,%r15d
  jbe    L564
  movdqu (%rdx),%xmm0
  movdqa %xmm3,%xmm12
  movdqa %xmm0,%xmm2
  movdqa %xmm0,%xmm10
  pcmpeqb %xmm8,%xmm2
  pcmpeqb %xmm7,%xmm10
  pcmpeqb %xmm6,%xmm0
  movdqa %xmm2,%xmm1
  pand   %xmm5,%xmm2
  por    %xmm10,%xmm1
  pand   %xmm5,%xmm10
  pandn  %xmm0,%xmm1
  movdqa %xmm4,%xmm0
  pcmpgtb %xmm1,%xmm0
  movdqa %xmm1,%xmm11
  punpcklbw %xmm0,%xmm11
  punpckhbw %xmm0,%xmm1
  pcmpgtw %xmm11,%xmm12
  movdqa %xmm11,%xmm0
  punpckhwd %xmm12,%xmm0
  punpcklwd %xmm12,%xmm11
  movdqa %xmm1,%xmm12
  pand   %xmm9,%xmm0
  psubd  %xmm11,%xmm0
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm1,%xmm11
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm1
  movdqa %xmm2,%xmm11
  psubd  %xmm12,%xmm0
  movdqa %xmm3,%xmm12
  psubd  %xmm1,%xmm0
  movdqa %xmm4,%xmm1
  pcmpgtb %xmm2,%xmm1
  punpcklbw %xmm1,%xmm11
  punpckhbw %xmm1,%xmm2
  pcmpgtw %xmm11,%xmm12
  movdqa %xmm11,%xmm13
  movdqa %xmm11,%xmm1
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm2,%xmm11
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm1
  movdqa %xmm2,%xmm12
  paddd  %xmm13,%xmm1
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm2
  movdqa %xmm10,%xmm11
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  paddd  %xmm2,%xmm1
  movdqa %xmm4,%xmm2
  pcmpgtb %xmm10,%xmm2
  punpcklbw %xmm2,%xmm11
  punpckhbw %xmm2,%xmm10
  pcmpgtw %xmm11,%xmm12
  movdqa %xmm11,%xmm13
  movdqa %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm10,%xmm11
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm2
  movdqa %xmm10,%xmm12
  paddd  %xmm13,%xmm2
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm10
  paddd  %xmm12,%xmm2
  paddd  %xmm10,%xmm2
  cmp    $0x1,%r10d
  jbe    L421
  movdqu 0x10(%rdx),%xmm13
  movdqa %xmm4,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm10
  pcmpeqb %xmm8,%xmm11
  pcmpeqb %xmm7,%xmm10
  pcmpeqb %xmm6,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm5,%xmm11
  por    %xmm10,%xmm12
  pand   %xmm5,%xmm10
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm11,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm4,%xmm14
  pcmpgtb %xmm11,%xmm14
  psubd  %xmm12,%xmm0
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm11
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm11,%xmm12
  movdqa %xmm13,%xmm11
  punpcklwd %xmm14,%xmm11
  punpckhwd %xmm14,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm12,%xmm11
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm11
  paddd  %xmm11,%xmm1
  movdqa %xmm12,%xmm11
  movdqa %xmm10,%xmm12
  punpckhwd %xmm13,%xmm11
  movdqa %xmm3,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm4,%xmm11
  pcmpgtb %xmm10,%xmm11
  punpcklbw %xmm11,%xmm12
  punpckhbw %xmm11,%xmm10
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm11
  punpcklwd %xmm13,%xmm11
  paddd  %xmm11,%xmm2
  movdqa %xmm12,%xmm11
  movdqa %xmm10,%xmm12
  punpckhwd %xmm13,%xmm11
  paddd  %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm10,%xmm11
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm10
  paddd  %xmm12,%xmm2
  paddd  %xmm10,%xmm2
  cmp    $0x2,%r10d
  je     L421
  movdqu 0x20(%rdx),%xmm13
  movdqa %xmm4,%xmm14
  movdqa %xmm13,%xmm12
  movdqa %xmm13,%xmm11
  pcmpeqb %xmm8,%xmm12
  pcmpeqb %xmm7,%xmm11
  pcmpeqb %xmm6,%xmm13
  movdqa %xmm12,%xmm10
  pand   %xmm5,%xmm12
  por    %xmm11,%xmm10
  pand   %xmm5,%xmm11
  pandn  %xmm13,%xmm10
  pcmpgtb %xmm10,%xmm14
  movdqa %xmm10,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm10
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm10,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm10,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm10
  movdqa %xmm12,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm10,%xmm0
  movdqa %xmm4,%xmm10
  pcmpgtb %xmm12,%xmm10
  punpcklbw %xmm10,%xmm13
  punpckhbw %xmm10,%xmm12
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm10
  punpcklwd %xmm14,%xmm10
  punpckhwd %xmm14,%xmm13
  paddd  %xmm10,%xmm1
  movdqa %xmm3,%xmm10
  pcmpgtw %xmm12,%xmm10
  paddd  %xmm13,%xmm1
  movdqa %xmm12,%xmm13
  punpcklwd %xmm10,%xmm13
  punpckhwd %xmm10,%xmm12
  movdqa %xmm4,%xmm10
  pcmpgtb %xmm11,%xmm10
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm11,%xmm12
  punpcklbw %xmm10,%xmm12
  punpckhbw %xmm10,%xmm11
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm10
  punpcklwd %xmm13,%xmm10
  punpckhwd %xmm13,%xmm12
  paddd  %xmm10,%xmm2
  movdqa %xmm3,%xmm10
  pcmpgtw %xmm11,%xmm10
  paddd  %xmm12,%xmm2
  movdqa %xmm11,%xmm12
  punpcklwd %xmm10,%xmm12
  punpckhwd %xmm10,%xmm11
  paddd  %xmm12,%xmm2
  paddd  %xmm11,%xmm2
  cmp    $0x3,%r10d
  je     L421
  movdqu 0x30(%rdx),%xmm13
  movdqa %xmm4,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm10
  pcmpeqb %xmm8,%xmm11
  pcmpeqb %xmm7,%xmm10
  pcmpeqb %xmm6,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm5,%xmm11
  por    %xmm10,%xmm12
  pand   %xmm5,%xmm10
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm11,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm12,%xmm0
  movdqa %xmm4,%xmm12
  pcmpgtb %xmm11,%xmm12
  punpcklbw %xmm12,%xmm13
  punpckhbw %xmm12,%xmm11
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm12
  punpcklwd %xmm14,%xmm12
  punpckhwd %xmm14,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  pcmpgtw %xmm11,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm11,%xmm13
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm11
  movdqa %xmm10,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm4,%xmm11
  pcmpgtb %xmm10,%xmm11
  punpcklbw %xmm11,%xmm12
  punpckhbw %xmm11,%xmm10
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm11
  punpcklwd %xmm13,%xmm11
  punpckhwd %xmm13,%xmm12
  paddd  %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm10,%xmm11
  paddd  %xmm12,%xmm2
  movdqa %xmm10,%xmm12
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm10
  paddd  %xmm12,%xmm2
  paddd  %xmm10,%xmm2
  cmp    $0x4,%r10d
  je     L421
  movdqu 0x40(%rdx),%xmm13
  movdqa %xmm4,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm10
  pcmpeqb %xmm8,%xmm11
  pcmpeqb %xmm7,%xmm10
  pcmpeqb %xmm6,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm5,%xmm11
  por    %xmm10,%xmm12
  pand   %xmm5,%xmm10
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm11,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm12,%xmm0
  movdqa %xmm4,%xmm12
  pcmpgtb %xmm11,%xmm12
  punpcklbw %xmm12,%xmm13
  punpckhbw %xmm12,%xmm11
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm12
  punpcklwd %xmm14,%xmm12
  punpckhwd %xmm14,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  pcmpgtw %xmm11,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm11,%xmm13
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm11
  movdqa %xmm10,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm4,%xmm11
  pcmpgtb %xmm10,%xmm11
  punpcklbw %xmm11,%xmm12
  punpckhbw %xmm11,%xmm10
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm11
  punpcklwd %xmm13,%xmm11
  punpckhwd %xmm13,%xmm12
  paddd  %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm10,%xmm11
  paddd  %xmm12,%xmm2
  movdqa %xmm10,%xmm12
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm10
  paddd  %xmm12,%xmm2
  paddd  %xmm10,%xmm2
  cmp    $0x5,%r10d
  je     L421
  movdqu 0x50(%rdx),%xmm13
  movdqa %xmm4,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm10
  pcmpeqb %xmm8,%xmm11
  pcmpeqb %xmm7,%xmm10
  pcmpeqb %xmm6,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm5,%xmm11
  por    %xmm10,%xmm12
  pand   %xmm5,%xmm10
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm11,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm12,%xmm0
  movdqa %xmm4,%xmm12
  pcmpgtb %xmm11,%xmm12
  punpcklbw %xmm12,%xmm13
  punpckhbw %xmm12,%xmm11
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm12
  punpcklwd %xmm14,%xmm12
  punpckhwd %xmm14,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  pcmpgtw %xmm11,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm11,%xmm13
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm11
  movdqa %xmm10,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm4,%xmm11
  pcmpgtb %xmm10,%xmm11
  punpcklbw %xmm11,%xmm12
  punpckhbw %xmm11,%xmm10
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm11
  punpcklwd %xmm13,%xmm11
  punpckhwd %xmm13,%xmm12
  paddd  %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm10,%xmm11
  paddd  %xmm12,%xmm2
  movdqa %xmm10,%xmm12
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm10
  paddd  %xmm12,%xmm2
  paddd  %xmm10,%xmm2
L421:
  movdqa %xmm2,%xmm10
  psrldq $0x8,%xmm10
  paddd  %xmm10,%xmm2
  movdqa %xmm2,%xmm10
  psrldq $0x4,%xmm10
  paddd  %xmm10,%xmm2
  movd   %xmm2,%eax
  movdqa %xmm1,%xmm2
  psrldq $0x8,%xmm2
  add    %eax,%ebx
  paddd  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  psrldq $0x4,%xmm2
  paddd  %xmm2,%xmm1
  movd   %xmm1,%eax
  movdqa %xmm0,%xmm1
  psrldq $0x8,%xmm1
  add    %eax,%r12d
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  add    %eax,%ebp
  cmp    %r11d,%esi
  je     L163
  movslq %r11d,%rax
  jmp    L187
  nopw   0x0(%rax,%rax,1)
L517:
  cmp    $0x50,%cl
  jne    L20
  add    $0x1,%ebx
L32:
  add    $0x1,%rax
  cmp    %eax,%esi
  jle    L163
L187:
  movzbl (%rdx,%rax,1),%ecx
  cmp    $0x4d,%cl
  jne    L517
  add    $0x1,%rax
  add    $0x1,%r12d
  cmp    %eax,%esi
  jg     L187
L163:
  add    $0x64,%rdx
  cmp    %r14,%rdx
  jne    L29
  mov    %r12d,%eax
  mov    %ebx,%ecx
  movl   $0x0,0x24(%rsp)
  xor    %r9d,%r9d
  sar    %eax
  sar    %ecx
  movdqa D154(%rip),%xmm7
  mov    %edi,0x18(%rsp)
  mov    %ecx,0x20(%rsp)
  mov    %ebp,%ecx
  movdqa D64(%rip),%xmm6
  mov    %eax,%edi
  mov    %eax,(%rsp)
  sar    %ecx
  xor    %r8d,%r8d
  pxor   %xmm5,%xmm5
  movdqa D85(%rip),%xmm9
  mov    %ecx,0x30(%rsp)
  pxor   %xmm3,%xmm3
  xor    %ecx,%ecx
  movdqa D157(%rip),%xmm8
  movdqa D76(%rip),%xmm10
  nop
L419:
  test   %esi,%esi
  jle    L390
  cmp    $0xe,%r15d
  jbe    L334
  movdqu 0x0(%r13),%xmm0
  movdqa %xmm3,%xmm12
  movdqa %xmm0,%xmm2
  movdqa %xmm0,%xmm4
  pcmpeqb %xmm9,%xmm2
  pcmpeqb %xmm8,%xmm4
  pcmpeqb %xmm7,%xmm0
  movdqa %xmm2,%xmm1
  pand   %xmm6,%xmm2
  por    %xmm4,%xmm1
  pand   %xmm6,%xmm4
  pandn  %xmm0,%xmm1
  movdqa %xmm5,%xmm0
  pcmpgtb %xmm1,%xmm0
  movdqa %xmm1,%xmm11
  punpcklbw %xmm0,%xmm11
  punpckhbw %xmm0,%xmm1
  pcmpgtw %xmm11,%xmm12
  movdqa %xmm11,%xmm0
  punpcklwd %xmm12,%xmm0
  punpckhwd %xmm12,%xmm11
  movdqa %xmm1,%xmm12
  pand   %xmm10,%xmm0
  psubd  %xmm11,%xmm0
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm1,%xmm11
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm1
  movdqa %xmm2,%xmm11
  psubd  %xmm12,%xmm0
  movdqa %xmm3,%xmm12
  psubd  %xmm1,%xmm0
  movdqa %xmm5,%xmm1
  pcmpgtb %xmm2,%xmm1
  punpcklbw %xmm1,%xmm11
  punpckhbw %xmm1,%xmm2
  pcmpgtw %xmm11,%xmm12
  movdqa %xmm11,%xmm13
  movdqa %xmm11,%xmm1
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm2,%xmm11
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm1
  movdqa %xmm2,%xmm12
  paddd  %xmm13,%xmm1
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm2
  movdqa %xmm4,%xmm11
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  paddd  %xmm2,%xmm1
  movdqa %xmm5,%xmm2
  pcmpgtb %xmm4,%xmm2
  punpcklbw %xmm2,%xmm11
  punpckhbw %xmm2,%xmm4
  pcmpgtw %xmm11,%xmm12
  movdqa %xmm11,%xmm13
  movdqa %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm4,%xmm11
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm2
  movdqa %xmm4,%xmm12
  paddd  %xmm13,%xmm2
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm4
  paddd  %xmm12,%xmm2
  paddd  %xmm4,%xmm2
  cmp    $0x1,%r10d
  jbe    L193
  movdqu 0x10(%r13),%xmm13
  movdqa %xmm5,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm4
  pcmpeqb %xmm8,%xmm11
  pcmpeqb %xmm9,%xmm4
  pcmpeqb %xmm7,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm6,%xmm11
  por    %xmm4,%xmm12
  pand   %xmm6,%xmm4
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm4,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm5,%xmm14
  pcmpgtb %xmm4,%xmm14
  psubd  %xmm12,%xmm0
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm4
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm4,%xmm12
  movdqa %xmm13,%xmm4
  punpcklwd %xmm14,%xmm4
  punpckhwd %xmm14,%xmm13
  paddd  %xmm4,%xmm1
  movdqa %xmm12,%xmm4
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm4
  paddd  %xmm4,%xmm1
  movdqa %xmm12,%xmm4
  movdqa %xmm11,%xmm12
  punpckhwd %xmm13,%xmm4
  movdqa %xmm3,%xmm13
  paddd  %xmm4,%xmm1
  movdqa %xmm5,%xmm4
  pcmpgtb %xmm11,%xmm4
  punpcklbw %xmm4,%xmm12
  punpckhbw %xmm4,%xmm11
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm4
  punpcklwd %xmm13,%xmm4
  paddd  %xmm4,%xmm2
  movdqa %xmm12,%xmm4
  movdqa %xmm11,%xmm12
  punpckhwd %xmm13,%xmm4
  paddd  %xmm4,%xmm2
  movdqa %xmm3,%xmm4
  pcmpgtw %xmm11,%xmm4
  punpcklwd %xmm4,%xmm12
  punpckhwd %xmm4,%xmm11
  paddd  %xmm12,%xmm2
  paddd  %xmm11,%xmm2
  cmp    $0x2,%r10d
  je     L193
  movdqu 0x20(%r13),%xmm13
  movdqa %xmm5,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm12
  pcmpeqb %xmm8,%xmm11
  pcmpeqb %xmm9,%xmm12
  pcmpeqb %xmm7,%xmm13
  movdqa %xmm11,%xmm4
  pand   %xmm6,%xmm11
  por    %xmm12,%xmm4
  pand   %xmm6,%xmm12
  pandn  %xmm13,%xmm4
  pcmpgtb %xmm4,%xmm14
  movdqa %xmm4,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm4
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm4,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm4,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm4
  movdqa %xmm12,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm4,%xmm0
  movdqa %xmm5,%xmm4
  pcmpgtb %xmm12,%xmm4
  punpcklbw %xmm4,%xmm13
  punpckhbw %xmm4,%xmm12
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm4
  punpcklwd %xmm14,%xmm4
  punpckhwd %xmm14,%xmm13
  paddd  %xmm4,%xmm1
  movdqa %xmm3,%xmm4
  pcmpgtw %xmm12,%xmm4
  paddd  %xmm13,%xmm1
  movdqa %xmm12,%xmm13
  punpcklwd %xmm4,%xmm13
  punpckhwd %xmm4,%xmm12
  movdqa %xmm5,%xmm4
  pcmpgtb %xmm11,%xmm4
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm11,%xmm12
  punpcklbw %xmm4,%xmm12
  punpckhbw %xmm4,%xmm11
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm4
  punpcklwd %xmm13,%xmm4
  punpckhwd %xmm13,%xmm12
  paddd  %xmm4,%xmm2
  movdqa %xmm3,%xmm4
  pcmpgtw %xmm11,%xmm4
  paddd  %xmm12,%xmm2
  movdqa %xmm11,%xmm12
  punpcklwd %xmm4,%xmm12
  punpckhwd %xmm4,%xmm11
  paddd  %xmm12,%xmm2
  paddd  %xmm11,%xmm2
  cmp    $0x3,%r10d
  je     L193
  movdqu 0x30(%r13),%xmm13
  movdqa %xmm5,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm4
  pcmpeqb %xmm9,%xmm11
  pcmpeqb %xmm8,%xmm4
  pcmpeqb %xmm7,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm6,%xmm11
  por    %xmm4,%xmm12
  pand   %xmm6,%xmm4
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm11,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm12,%xmm0
  movdqa %xmm5,%xmm12
  pcmpgtb %xmm11,%xmm12
  punpcklbw %xmm12,%xmm13
  punpckhbw %xmm12,%xmm11
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm12
  punpcklwd %xmm14,%xmm12
  punpckhwd %xmm14,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  pcmpgtw %xmm11,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm11,%xmm13
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm11
  movdqa %xmm4,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm5,%xmm11
  pcmpgtb %xmm4,%xmm11
  punpcklbw %xmm11,%xmm12
  punpckhbw %xmm11,%xmm4
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm11
  punpcklwd %xmm13,%xmm11
  punpckhwd %xmm13,%xmm12
  paddd  %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm4,%xmm11
  paddd  %xmm12,%xmm2
  movdqa %xmm4,%xmm12
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm4
  paddd  %xmm12,%xmm2
  paddd  %xmm4,%xmm2
  cmp    $0x4,%r10d
  je     L193
  movdqu 0x40(%r13),%xmm13
  movdqa %xmm5,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm4
  pcmpeqb %xmm9,%xmm11
  pcmpeqb %xmm8,%xmm4
  pcmpeqb %xmm7,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm6,%xmm11
  por    %xmm4,%xmm12
  pand   %xmm6,%xmm4
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm11,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm12,%xmm0
  movdqa %xmm5,%xmm12
  pcmpgtb %xmm11,%xmm12
  punpcklbw %xmm12,%xmm13
  punpckhbw %xmm12,%xmm11
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm12
  punpcklwd %xmm14,%xmm12
  punpckhwd %xmm14,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  pcmpgtw %xmm11,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm11,%xmm13
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm11
  movdqa %xmm4,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm5,%xmm11
  pcmpgtb %xmm4,%xmm11
  punpcklbw %xmm11,%xmm12
  punpckhbw %xmm11,%xmm4
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm11
  punpcklwd %xmm13,%xmm11
  punpckhwd %xmm13,%xmm12
  paddd  %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm4,%xmm11
  paddd  %xmm12,%xmm2
  movdqa %xmm4,%xmm12
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm4
  paddd  %xmm12,%xmm2
  paddd  %xmm4,%xmm2
  cmp    $0x5,%r10d
  je     L193
  movdqu 0x50(%r13),%xmm13
  movdqa %xmm5,%xmm14
  movdqa %xmm13,%xmm11
  movdqa %xmm13,%xmm4
  pcmpeqb %xmm9,%xmm11
  pcmpeqb %xmm8,%xmm4
  pcmpeqb %xmm7,%xmm13
  movdqa %xmm11,%xmm12
  pand   %xmm6,%xmm11
  por    %xmm4,%xmm12
  pand   %xmm6,%xmm4
  pandn  %xmm13,%xmm12
  pcmpgtb %xmm12,%xmm14
  movdqa %xmm12,%xmm13
  punpcklbw %xmm14,%xmm13
  punpckhbw %xmm14,%xmm12
  movdqa %xmm3,%xmm14
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm15
  punpcklwd %xmm14,%xmm15
  punpckhwd %xmm14,%xmm13
  movdqa %xmm12,%xmm14
  psubd  %xmm15,%xmm0
  psubd  %xmm13,%xmm0
  movdqa %xmm3,%xmm13
  pcmpgtw %xmm12,%xmm13
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm12
  movdqa %xmm11,%xmm13
  psubd  %xmm14,%xmm0
  movdqa %xmm3,%xmm14
  psubd  %xmm12,%xmm0
  movdqa %xmm5,%xmm12
  pcmpgtb %xmm11,%xmm12
  punpcklbw %xmm12,%xmm13
  punpckhbw %xmm12,%xmm11
  pcmpgtw %xmm13,%xmm14
  movdqa %xmm13,%xmm12
  punpcklwd %xmm14,%xmm12
  punpckhwd %xmm14,%xmm13
  paddd  %xmm12,%xmm1
  movdqa %xmm3,%xmm12
  pcmpgtw %xmm11,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm11,%xmm13
  punpcklwd %xmm12,%xmm13
  punpckhwd %xmm12,%xmm11
  movdqa %xmm4,%xmm12
  paddd  %xmm13,%xmm1
  movdqa %xmm3,%xmm13
  paddd  %xmm11,%xmm1
  movdqa %xmm5,%xmm11
  pcmpgtb %xmm4,%xmm11
  punpcklbw %xmm11,%xmm12
  punpckhbw %xmm11,%xmm4
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm11
  punpcklwd %xmm13,%xmm11
  punpckhwd %xmm13,%xmm12
  paddd  %xmm11,%xmm2
  movdqa %xmm3,%xmm11
  pcmpgtw %xmm4,%xmm11
  paddd  %xmm12,%xmm2
  movdqa %xmm4,%xmm12
  punpcklwd %xmm11,%xmm12
  punpckhwd %xmm11,%xmm4
  paddd  %xmm12,%xmm2
  paddd  %xmm4,%xmm2
L193:
  movdqa %xmm2,%xmm4
  psrldq $0x8,%xmm4
  paddd  %xmm4,%xmm2
  movdqa %xmm2,%xmm4
  psrldq $0x4,%xmm4
  paddd  %xmm4,%xmm2
  movd   %xmm2,%eax
  movdqa %xmm1,%xmm2
  psrldq $0x8,%xmm2
  add    %eax,%r8d
  paddd  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  psrldq $0x4,%xmm2
  paddd  %xmm2,%xmm1
  movd   %xmm1,%eax
  movdqa %xmm0,%xmm1
  psrldq $0x8,%xmm1
  add    %eax,%ecx
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  add    %eax,%r9d
  cmp    %r11d,%esi
  je     L390
  movslq %r11d,%rax
  jmp    L405
  nopl   0x0(%rax)
L396:
  cmp    $0x50,%dl
  jne    L611
  add    $0x1,%r8d
L170:
  add    $0x1,%rax
  cmp    %eax,%esi
  jle    L390
L405:
  movzbl 0x0(%r13,%rax,1),%edx
  cmp    $0x4d,%dl
  jne    L396
  add    $0x1,%rax
  add    $0x1,%ecx
  cmp    %eax,%esi
  jg     L405
L390:
  cmp    %ecx,%edi
  je     L88
L95:
  add    $0x64,%r13
  cmp    %r14,%r13
  jne    L419
  mov    0x18(%rsp),%edi
  test   %esi,%esi
  jle    L629
L457:
  mov    %edi,%eax
  mov    %edi,%ecx
  mov    %ebx,0x38(%rsp)
  movdqa D64(%rip),%xmm7
  shr    $0x4,%eax
  mov    %r12d,0x34(%rsp)
  and    $0xfffffff0,%ecx
  mov    (%rsp),%r14d
  sub    $0x1,%eax
  mov    0x28(%rsp),%r12
  mov    %ebp,0x3c(%rsp)
  xor    %r15d,%r15d
  lea    0x5(%rax,%rax,4),%rax
  xor    %r13d,%r13d
  xor    %r11d,%r11d
  xor    %r10d,%r10d
  movdqa D85(%rip),%xmm10
  lea    (%rax,%rax,4),%rax
  mov    %ecx,%ebp
  movdqa D157(%rip),%xmm9
  movdqa D154(%rip),%xmm8
  shl    $0x6,%rax
  mov    %rax,0x18(%rsp)
  nopw   0x0(%rax,%rax,1)
L259:
  test   %edi,%edi
  jle    L561
  cmpl   $0xe,0x14(%rsp)
  jbe    L498
  mov    0x18(%rsp),%rax
  pxor   %xmm4,%xmm4
  lea    (%r12,%r15,1),%rcx
  pxor   %xmm6,%xmm6
  movdqa %xmm4,%xmm11
  movdqa %xmm4,%xmm2
  pxor   %xmm5,%xmm5
  lea    (%rax,%rcx,1),%rbx
  nopl   (%rax)
L553:
  movzbl 0x2bc(%rcx),%edx
  movzbl 0x258(%rcx),%eax
  movdqa %xmm6,%xmm13
  add    $0x640,%rcx
  movzbl -0xc8(%rcx),%r8d
  movzbl -0x640(%rcx),%r9d
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl -0x44c(%rcx),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl -0x4b0(%rcx),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl -0x514(%rcx),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl -0x578(%rcx),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl -0x5dc(%rcx),%eax
  shl    $0x8,%rdx
  or     %rax,%rdx
  movzbl -0x64(%rcx),%eax
  shl    $0x8,%rdx
  shl    $0x8,%rax
  or     %r9,%rdx
  or     %r8,%rax
  movzbl -0x12c(%rcx),%r8d
  mov    %rdx,(%rsp)
  shl    $0x8,%rax
  or     %r8,%rax
  movzbl -0x190(%rcx),%r8d
  shl    $0x8,%rax
  or     %r8,%rax
  movzbl -0x1f4(%rcx),%r8d
  shl    $0x8,%rax
  or     %r8,%rax
  movzbl -0x258(%rcx),%r8d
  shl    $0x8,%rax
  or     %r8,%rax
  movzbl -0x2bc(%rcx),%r8d
  shl    $0x8,%rax
  or     %r8,%rax
  movzbl -0x320(%rcx),%r8d
  shl    $0x8,%rax
  or     %r8,%rax
  mov    %rax,0x8(%rsp)
  movdqa (%rsp),%xmm12
  movdqa (%rsp),%xmm0
  movdqa (%rsp),%xmm3
  pcmpeqb %xmm10,%xmm12
  pcmpeqb %xmm9,%xmm0
  pcmpeqb %xmm8,%xmm3
  movdqa %xmm12,%xmm1
  por    %xmm0,%xmm1
  pand   %xmm7,%xmm0
  pandn  %xmm3,%xmm1
  pcmpgtb %xmm1,%xmm13
  movdqa %xmm1,%xmm3
  punpcklbw %xmm13,%xmm3
  punpckhbw %xmm13,%xmm1
  movdqa %xmm5,%xmm13
  pcmpgtw %xmm3,%xmm13
  movdqa %xmm3,%xmm14
  punpcklwd %xmm13,%xmm14
  punpckhwd %xmm13,%xmm3
  movdqa %xmm1,%xmm13
  psubd  %xmm14,%xmm4
  psubd  %xmm3,%xmm4
  movdqa %xmm5,%xmm3
  pcmpgtw %xmm1,%xmm3
  punpcklwd %xmm3,%xmm13
  punpckhwd %xmm3,%xmm1
  movdqa %xmm6,%xmm3
  psubd  %xmm13,%xmm4
  movdqa %xmm5,%xmm13
  psubd  %xmm1,%xmm4
  movdqa %xmm12,%xmm1
  pand   %xmm7,%xmm1
  pcmpgtb %xmm1,%xmm3
  movdqa %xmm1,%xmm12
  punpcklbw %xmm3,%xmm12
  punpckhbw %xmm3,%xmm1
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm3
  punpcklwd %xmm13,%xmm3
  paddd  %xmm3,%xmm2
  movdqa %xmm12,%xmm3
  movdqa %xmm1,%xmm12
  punpckhwd %xmm13,%xmm3
  movdqa %xmm5,%xmm13
  paddd  %xmm3,%xmm2
  movdqa %xmm5,%xmm3
  pcmpgtw %xmm1,%xmm3
  punpcklwd %xmm3,%xmm12
  punpckhwd %xmm3,%xmm1
  paddd  %xmm12,%xmm2
  movdqa %xmm0,%xmm12
  paddd  %xmm1,%xmm2
  movdqa %xmm6,%xmm1
  pcmpgtb %xmm0,%xmm1
  punpcklbw %xmm1,%xmm12
  punpckhbw %xmm1,%xmm0
  movdqa %xmm11,%xmm1
  pcmpgtw %xmm12,%xmm13
  movdqa %xmm12,%xmm3
  movdqa %xmm0,%xmm11
  punpcklwd %xmm13,%xmm3
  punpckhwd %xmm13,%xmm12
  paddd  %xmm3,%xmm1
  movdqa %xmm5,%xmm3
  pcmpgtw %xmm0,%xmm3
  paddd  %xmm12,%xmm1
  punpcklwd %xmm3,%xmm11
  punpckhwd %xmm3,%xmm0
  paddd  %xmm11,%xmm1
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm11
  cmp    %rcx,%rbx
  jne    L553
  movdqa %xmm1,%xmm0
  psrldq $0x8,%xmm0
  paddd  %xmm0,%xmm1
  movdqa %xmm1,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm1
  movdqa %xmm2,%xmm0
  psrldq $0x8,%xmm0
  movd   %xmm1,%eax
  paddd  %xmm0,%xmm2
  add    %eax,%r11d
  movdqa %xmm2,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm2
  movdqa %xmm4,%xmm0
  psrldq $0x8,%xmm0
  movd   %xmm2,%eax
  paddd  %xmm0,%xmm4
  add    %eax,%r10d
  movdqa %xmm4,%xmm0
  psrldq $0x4,%xmm0
  paddd  %xmm0,%xmm4
  movd   %xmm4,%eax
  add    %eax,%r13d
  cmp    %ebp,%edi
  je     L561
  mov    %ebp,%edx
L652:
  movslq %edx,%rax
  lea    (%rax,%rax,4),%rax
  lea    (%rax,%rax,4),%rax
  lea    (%r15,%rax,4),%rax
  add    %r12,%rax
  jmp    L72
  nopl   0x0(%rax,%rax,1)
L458:
  cmp    $0x50,%cl
  jne    L505
  add    $0x1,%r11d
L263:
  add    $0x1,%edx
  add    $0x64,%rax
  cmp    %edx,%edi
  jle    L561
L72:
  movzbl (%rax),%ecx
  cmp    $0x4d,%cl
  jne    L458
  add    $0x1,%edx
  add    $0x1,%r10d
  add    $0x64,%rax
  cmp    %edx,%edi
  jg     L72
L561:
  cmp    %r14d,%r10d
  je     L226
L253:
  add    $0x1,%r15
  cmp    %r15d,%esi
  jg     L259
  mov    0x34(%rsp),%r12d
  mov    0x38(%rsp),%ebx
  mov    0x3c(%rsp),%ebp
L629:
  mov    0x24(%rsp),%eax
  test   %eax,%eax
  je     L542
  mov    0x24(%rsp),%esi
  lea    D133(%rip),%rdi
  xor    %eax,%eax
  lea    0x4c(%rsp),%r13
  call   <printf@plt>
  push   %rbp
  mov    %r12d,%r9d
  mov    %r13,%r8
  push   %rbx
  mov    0x38(%rsp),%r15
  mov    $0x56,%edi
  mov    0x54(%rsp),%ecx
  mov    0x58(%rsp),%edx
  mov    %r15,%rsi
  call   <izracun@plt>
  push   %rbp
  mov    %r12d,%r9d
  mov    %r13,%r8
  push   %rbx
  mov    0x64(%rsp),%ecx
  mov    %r15,%rsi
  mov    $0x4f,%edi
  mov    0x68(%rsp),%edx
  call   <izracun@plt>
  add    $0x20,%rsp
L617:
  mov    0x2768(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L506
  add    $0x2778,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L20:
  cmp    $0x47,%cl
  jne    L32
  add    $0x1,%ebp
  jmp    L32
  nopl   0x0(%rax)
L611:
  cmp    $0x47,%dl
  jne    L170
  add    $0x1,%r9d
  jmp    L170
  nopw   0x0(%rax,%rax,1)
L505:
  cmp    $0x47,%cl
  jne    L263
  add    $0x1,%r13d
  jmp    L263
  nopw   0x0(%rax,%rax,1)
L88:
  cmp    %r8d,0x20(%rsp)
  jne    L95
  xor    %eax,%eax
  cmp    %r9d,0x30(%rsp)
  sete   %al
  add    %eax,0x24(%rsp)
  jmp    L95
  cs nopw 0x0(%rax,%rax,1)
L226:
  cmp    %r11d,0x20(%rsp)
  jne    L253
  xor    %eax,%eax
  cmp    %r13d,0x30(%rsp)
  sete   %al
  add    %eax,0x24(%rsp)
  jmp    L253
L498:
  xor    %edx,%edx
  jmp    L652
L334:
  xor    %eax,%eax
  jmp    L405
L564:
  xor    %eax,%eax
  jmp    L187
L542:
  lea    D121(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L617
L351:
  test   %edi,%edi
  jg     L437
L184:
  test   %esi,%esi
  jle    L542
  lea    -0x1(%rdi),%eax
  movl   $0x0,0x30(%rsp)
  xor    %ebp,%ebp
  xor    %ebx,%ebx
  movl   $0x0,0x20(%rsp)
  xor    %r12d,%r12d
  movl   $0x0,(%rsp)
  movl   $0x0,0x24(%rsp)
  mov    %eax,0x14(%rsp)
  jmp    L457
L506:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_tag: D151
type: string
name: retrieve_data
arguments: data_tag: D62
type: string
name: retrieve_data
arguments: data_tag: D157
type: byte[16]
name: retrieve_data
arguments: data_tag: D85
type: byte[16]
name: retrieve_data
arguments: data_tag: D154
type: byte[16]
name: retrieve_data
arguments: data_tag: D76
type: byte[16]
name: retrieve_data
arguments: data_tag: D64
type: byte[16]
name: retrieve_data
arguments: data_tag: D133
type: string
name: retrieve_data
arguments: data_tag: D121
type: string

tool: D151: %d%d

tool: D62:  %c

tool: {"D157": [0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50,0x50]}

tool: {"D85": [0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d,0x4d]}

tool: {"D154": [0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47,0x47]}

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

tool: {"D64": [0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01,0x01]}

tool: D133: Broj mogucih podjela: %d


tool: D121: Nemoguce podijeliti 50-50.

assistant: ```c
int main() {
  int i, j, sirina, visina, M = 0, P = 0, G = 0, tmpM = 0, tmpP = 0, tmpG = 0, br_ukupno = 0, br_podjela = 0;
  char imanje[100][100] = {{0}};
  scanf("%d%d", &visina, &sirina);
  for (i = 0; i < visina; i++) {
    for (j = 0; j < sirina; j++) {
      scanf(" %c", &imanje[i][j]);
    }
  }
  for (i = 0; i < visina; i++) {
    for (j = 0; j < sirina; j++) {
      if (imanje[i][j] == 'M')
        M++;
      if (imanje[i][j] == 'P')
        P++;
      if (imanje[i][j] == 'G')
        G++;
    }
  }
  for (i = 0; i < visina; i++) {
    for (j = 0; j < sirina; j++) {
      if (imanje[i][j] == 'M')
        tmpM++;
      if (imanje[i][j] == 'P')
        tmpP++;
      if (imanje[i][j] == 'G')
        tmpG++;
    }
    if (tmpM == M / 2 && tmpP == P / 2 && tmpG == G / 2) {
      br_ukupno++;
    }
  }
  tmpM = tmpP = tmpG = 0;
  for (i = 0; i < sirina; i++) {
    for (j = 0; j < visina; j++) {
      if (imanje[j][i] == 'M')
        tmpM++;
      if (imanje[j][i] == 'P')
        tmpP++;
      if (imanje[j][i] == 'G')
        tmpG++;
    }
    if (tmpM == M / 2 && tmpP == P / 2 && tmpG == G / 2) {
      br_ukupno++;
    }
  }
  if (br_ukupno == 0) {
    printf("Nemoguce podijeliti 50-50.");
    return 0;
  } else {
    printf("Broj mogucih podjela: %d\n", br_ukupno);
    izracun('V', imanje, visina, sirina, &br_podjela, M, P, G);
    izracun('O', imanje, visina, sirina, &br_podjela, M, P, G);
  }
  return 0;
}
```