user: 请将以下的汇编代码转换成C语言代码：

```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    L62
  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
L49:
  lea    -0x1(%rdi),%r15d
  test   %ebx,%ebx
  jle    L0
  mov    %r13,%rcx
  lea    (%r9,%r13,1),%r11
  nop
L137:
  mov    (%rcx),%esi
  cmp    $0x63,%esi
  je     L12
  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)
L12:
  add    $0x4,%rcx
  cmp    %r11,%rcx
  jne    L137
L0:
  cmp    %eax,%r14d
  jle    L102
  mov    %r15d,0x1c(%rsp)
  mov    %eax,%r14d
L102:
  mov    %edi,%eax
  cmp    %edi,%r8d
  jl     L180
  cmp    $0x3,%rdi
  je     L92
  cmp    $0x3,%eax
  jg     L68
  cmp    $0x2,%eax
  cmove  0x8(%rsp),%r13
L48:
  mov    -0x4(%r12,%rdi,4),%eax
  add    $0x1,%rdi
  jmp    L49
  nopl   0x0(%rax,%rax,1)
L68:
  cmp    $0x4,%eax
  cmove  %rbp,%r13
  jmp    L48
  nopl   0x0(%rax)
L180:
  lea    0x1(%r8),%eax
  mov    $0x1,%r15d
  mov    0x10(%rsp),%r13
  lea    D13(%rip),%r14
  mov    %rax,(%rsp)
  mov    %ebx,%eax
  mov    %r15,%rbx
  mov    %rbp,%r15
  mov    %eax,%ebp
L23:
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %ebp,%esi
  cmp    $0x1,%rbx
  je     L57
  cmp    $0x2,%ebx
  je     L1
  cmp    $0x3,%ebx
  je     L97
  mov    %r15,%rdi
  call   <mostra_mao@plt>
L140:
  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    L23
  movslq 0x1c(%rsp),%rax
  mov    0x10(%rsp),%rbx
  lea    (%rax,%rax,4),%rax
  lea    -0x14(%rbx,%rax,4),%rax
  mov    %rax,0x10(%rsp)
L62:
  mov    0x10(%rsp),%rsi
  xor    %eax,%eax
  lea    D18(%rip),%rdi
  call   <printf@plt>
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L92:
  mov    0x20(%rsp),%r13
  jmp    L48
  nopw   0x0(%rax,%rax,1)
L97:
  mov    0x20(%rsp),%rdi
  call   <mostra_mao@plt>
  jmp    L140
  nop
L57:
  mov    0x28(%rsp),%rdi
  call   <mostra_mao@plt>
  jmp    L140
  nop
L1:
  mov    0x8(%rsp),%rdi
  call   <mostra_mao@plt>
  jmp    L140
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D13
type_infered: string
name: read_data
arguments: tag: D18
type_infered: string

tool: D13: Soma =%d



tool: D18: 
%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;
}
```