user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<contagem_maos>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    %rdx,-0x68(%rbp)
  mov    %rcx,-0x70(%rbp)
  mov    %r8d,-0x74(%rbp)
  mov    %r9,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x2710,-0x44(%rbp)
  movl   $0x1,-0x40(%rbp)
  movq   $0x0,-0x20(%rbp)
  movq   $0x0,-0x18(%rbp)
  mov    $0x1c,%eax
  cltd
  idivl  -0x74(%rbp)
  mov    %eax,-0x34(%rbp)
  movl   $0x1,-0x3c(%rbp)
  jmp    L34
L150:
  cmpl   $0x4,-0x3c(%rbp)
  je     L19
  cmpl   $0x4,-0x3c(%rbp)
  jg     L130
  cmpl   $0x3,-0x3c(%rbp)
  je     L256
  cmpl   $0x3,-0x3c(%rbp)
  jg     L130
  cmpl   $0x1,-0x3c(%rbp)
  je     L18
  cmpl   $0x2,-0x3c(%rbp)
  je     L63
  jmp    L130
L18:
  mov    -0x58(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L216
L63:
  mov    -0x60(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L216
L256:
  mov    -0x68(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L216
L19:
  mov    -0x70(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  jmp    L216
L130:
  nop
L216:
  movl   $0x0,-0x38(%rbp)
  jmp    L74
L8:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  cmp    $0x63,%eax
  je     L157
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movslq %eax,%rdx
  imul   $0x66666667,%rdx,%rdx
  shr    $0x20,%rdx
  sar    $0x2,%edx
  sar    $0x1f,%eax
  mov    %eax,%ecx
  mov    %edx,%eax
  sub    %ecx,%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%edx
  mov    -0x30(%rbp),%eax
  imul   $0xfffffff6,%eax,%eax
  add    %edx,%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%edx
  mov    -0x30(%rbp),%ecx
  mov    -0x2c(%rbp),%eax
  add    %eax,%ecx
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  add    %ecx,%edx
  cltq
  mov    %edx,-0x20(%rbp,%rax,4)
L157:
  addl   $0x1,-0x38(%rbp)
L74:
  mov    -0x38(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jl     L8
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  cmp    %eax,-0x44(%rbp)
  jle    L156
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  mov    %eax,-0x44(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,-0x40(%rbp)
L156:
  addl   $0x1,-0x3c(%rbp)
L34:
  mov    -0x3c(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jle    L150
  movl   $0x1,-0x3c(%rbp)
  jmp    L117
L160:
  mov    -0x3c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  lea    -0x14(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rdi
  call   <puts@plt>
  cmpl   $0x1,-0x3c(%rbp)
  jne    L50
  mov    -0x34(%rbp),%edx
  mov    -0x58(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_mao@plt>
  jmp    L15
L50:
  cmpl   $0x2,-0x3c(%rbp)
  jne    L146
  mov    -0x34(%rbp),%edx
  mov    -0x60(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_mao@plt>
  jmp    L15
L146:
  cmpl   $0x3,-0x3c(%rbp)
  jne    L31
  mov    -0x34(%rbp),%edx
  mov    -0x68(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_mao@plt>
  jmp    L15
L31:
  mov    -0x34(%rbp),%edx
  mov    -0x70(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <mostra_mao@plt>
L15:
  mov    -0x3c(%rbp),%eax
  sub    $0x1,%eax
  cltq
  mov    -0x20(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x3c(%rbp)
L117:
  mov    -0x3c(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jle    L160
  mov    -0x40(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x2,%rax
  lea    -0x14(%rax),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L183
  call   <__stack_chk_fail@plt>
L183:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D11
type_guessed: string
name: retrieve_data
arguments: data_label: D10
type_guessed: string

tool: D11: Soma =%d



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