user: Demonstrate the C code that generates the assembly output below:

```asm
<contagem_maos>:
  endbr64
  push   %r15
  pxor   %xmm0,%xmm0
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdx,0x20(%rsp)
  mov    %rdi,0x28(%rsp)
  mov    %rsi,0x8(%rsp)
  mov    %r9,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  mov    $0x1c,%eax
  movaps %xmm0,0x30(%rsp)
  cltd
  idiv   %r8d
  test   %r8d,%r8d
  jle    L78
  movl   $0x1,0x1c(%rsp)
  lea    -0x1(%rax),%edx
  mov    %eax,%ebx
  mov    %rdi,%r13
  mov    %rcx,%rbp
  mov    $0x2,%edi
  xor    %eax,%eax
  mov    $0x2710,%r14d
  lea    0x30(%rsp),%r12
  lea    0x4(,%rdx,4),%r9
  xchg   %ax,%ax
L80:
  lea    -0x1(%rdi),%r15d
  test   %ebx,%ebx
  jle    L24
  mov    %r13,%rcx
  lea    (%r9,%r13,1),%r11
  nop
L8:
  mov    (%rcx),%esi
  cmp    $0x63,%esi
  je     L152
  movslq %esi,%rdx
  mov    %esi,%r10d
  imul   $0x66666667,%rdx,%rdx
  sar    $0x1f,%r10d
  sar    $0x22,%rdx
  sub    %r10d,%edx
  imul   $0xfffffff7,%edx,%edx
  add    %esi,%edx
  add    %edx,%eax
  mov    %eax,-0x8(%r12,%rdi,4)
L152:
  add    $0x4,%rcx
  cmp    %rcx,%r11
  jne    L8
L24:
  cmp    %eax,%r14d
  jle    L189
  mov    %r15d,0x1c(%rsp)
  mov    %eax,%r14d
L189:
  mov    %edi,%eax
  cmp    %edi,%r8d
  jl     L177
  cmp    $0x3,%rdi
  je     L113
  cmp    $0x3,%eax
  jg     L6
  cmp    $0x2,%eax
  cmove  0x8(%rsp),%r13
L33:
  mov    -0x4(%r12,%rdi,4),%eax
  add    $0x1,%rdi
  jmp    L80
  nopl   0x0(%rax,%rax,1)
L6:
  cmp    $0x4,%eax
  cmove  %rbp,%r13
  jmp    L33
  nopl   0x0(%rax)
L177:
  lea    0x1(%r8),%eax
  mov    $0x1,%r15d
  mov    0x10(%rsp),%r13
  lea    D9(%rip),%r14
  mov    %rax,(%rsp)
  mov    %ebx,%eax
  mov    %r15,%rbx
  mov    %rbp,%r15
  mov    %eax,%ebp
L5:
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %ebp,%esi
  cmp    $0x1,%rbx
  je     L103
  cmp    $0x2,%ebx
  je     L124
  cmp    $0x3,%ebx
  je     L121
  mov    %r15,%rdi
  call   <mostra_mao@plt>
L76:
  mov    -0x4(%r12,%rbx,4),%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  add    $0x14,%r13
  call   <printf@plt>
  cmp    %rbx,(%rsp)
  jne    L5
  movslq 0x1c(%rsp),%rax
  mov    0x10(%rsp),%rbx
  lea    (%rax,%rax,4),%rax
  lea    -0x14(%rbx,%rax,4),%rax
  mov    %rax,0x10(%rsp)
L78:
  mov    0x10(%rsp),%rsi
  xor    %eax,%eax
  lea    D13(%rip),%rdi
  call   <printf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L150
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L113:
  mov    0x20(%rsp),%r13
  jmp    L33
  nopw   0x0(%rax,%rax,1)
L121:
  mov    0x20(%rsp),%rdi
  call   <mostra_mao@plt>
  jmp    L76
  nop
L103:
  mov    0x28(%rsp),%rdi
  call   <mostra_mao@plt>
  jmp    L76
  nop
L124:
  mov    0x8(%rsp),%rdi
  call   <mostra_mao@plt>
  jmp    L76
L150:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D9
type_guessed: string
name: parse_data
arguments: label: D13
type_guessed: string

tool: D9: Soma =%d



tool: D13: 
%s VENCEU!


assistant: ```c
int contagem_maos(int mao_1[], int mao_2[], int mao_3[], int mao_4[], int n_jog, char nomes[][20]) {
  int menor = 10000;
  int jog_ven = 1;
  int soma_m[4] = {0};
  int pp_1, pp_2;
  int j;
  int i;
  int t_mao = 28 / n_jog;
  int *mao_c;
  for (j = 1; j <= n_jog; j++) {
    switch (j) {
    case 1:
      mao_c = mao_1;
      break;
    case 2:
      mao_c = mao_2;
      break;
    case 3:
      mao_c = mao_3;
      break;
    case 4:
      mao_c = mao_4;
      break;
    default:
      break;
    }
    for (i = 0; i < t_mao; i++)
      if (mao_c[i] != 99) {
        pp_1 = mao_c[i] / 10;
        pp_2 = mao_c[i] - pp_1 * 10;
        soma_m[j - 1] += pp_1 + pp_2;
      }
    if (menor > soma_m[j - 1]) {
      menor = soma_m[j - 1];
      jog_ven = j;
    }
  }
  for (j = 1; j <= n_jog; j++) {
    printf("%s\n", nomes[j - 1]);
    if (j == 1)
      mostra_mao(mao_1, t_mao);
    else if (j == 2)
      mostra_mao(mao_2, t_mao);
    else if (j == 3)
      mostra_mao(mao_3, t_mao);
    else
      mostra_mao(mao_4, t_mao);
    printf("Soma =%d\n\n", soma_m[j - 1]);
  }
  printf("\n%s VENCEU!\n", nomes[jog_ven - 1]);
  return 0;
}
```