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

```asm
<imprimeConsulta>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %rdx,-0x78(%rbp)
  mov    %rcx,-0x80(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x78(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  movzbl -0x60(%rbp),%eax
  cmp    $0x60,%al
  jle    L34
  movzbl -0x60(%rbp),%eax
  cmp    $0x7a,%al
  jg     L34
  movzbl -0x60(%rbp),%eax
  sub    $0x20,%eax
  mov    %al,-0x60(%rbp)
L34:
  mov    -0x78(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D129(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    -0x80(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D160(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x70(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x63,%al
  jne    L32
  lea    D25(%rip),%rax
  jmp    L66
L32:
  lea    D7(%rip),%rax
L66:
  mov    -0x70(%rbp),%rdx
  movzbl (%rdx),%edx
  cmp    $0x63,%dl
  jne    L97
  mov    $0x73,%edx
  jmp    L39
L97:
  mov    $0x69,%edx
L39:
  mov    -0x68(%rbp),%rdi
  mov    %rax,%rcx
  lea    D117(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x15,%edx
  mov    $0x1,%esi
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x1b,%edx
  mov    $0x1,%esi
  lea    D189(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0xd,%edx
  mov    $0x1,%esi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    -0x70(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x63,%al
  jne    L89
  lea    D25(%rip),%rax
  jmp    L27
L89:
  lea    D7(%rip),%rax
L27:
  lea    -0x60(%rbp),%rdx
  mov    -0x68(%rbp),%rdi
  mov    %rax,%rcx
  lea    D59(%rip),%rax
  mov    %rax,%rsi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x38,%edx
  mov    $0x1,%esi
  lea    D86(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  lea    -0x60(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D135(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x27,%edx
  mov    $0x1,%esi
  lea    D140(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x70(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x63,%al
  jne    L14
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x45,%edx
  mov    $0x1,%esi
  lea    D187(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  jmp    L101
L14:
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x36,%edx
  mov    $0x1,%esi
  lea    D89(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
L101:
  lea    -0x60(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D87(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D170(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  lea    -0x60(%rbp),%rdx
  mov    -0x68(%rbp),%rax
  lea    D51(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x68(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L31
  call   <__stack_chk_fail@plt>
L31:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D129
type_infered: string
name: retrieve_data
arguments: data_label: D160
type_infered: string
name: retrieve_data
arguments: data_label: D25
type_infered: string
name: retrieve_data
arguments: data_label: D7
type_infered: string
name: retrieve_data
arguments: data_label: D117
type_infered: string
name: retrieve_data
arguments: data_label: D77
type_infered: string
name: retrieve_data
arguments: data_label: D189
type_infered: string
name: retrieve_data
arguments: data_label: D4
type_infered: string
name: retrieve_data
arguments: data_label: D59
type_infered: string
name: retrieve_data
arguments: data_label: D86
type_infered: string
name: retrieve_data
arguments: data_label: D135
type_infered: string
name: retrieve_data
arguments: data_label: D140
type_infered: string
name: retrieve_data
arguments: data_label: D187
type_infered: string
name: retrieve_data
arguments: data_label: D89
type_infered: string
name: retrieve_data
arguments: data_label: D87
type_infered: string
name: retrieve_data
arguments: data_label: D170
type_infered: string
name: retrieve_data
arguments: data_label: D51
type_infered: string

tool: D129: 	/* Testar PRF consulta %s professor */


tool: D160: 	else if ( strcmp( ComandoTeste , CONSULTA_%s_CMD ) == 0 ){


tool: D25: valorString

tool: D7: &valor

tool: D117: 		NumLidos = LER_LerParametros( "i%ci" , &index, %sEsperado, &CondRetEsperada );


tool: D77: 		if(NumLidos != 3){


tool: D189: 			return TST_CondRetParm;


tool: D4: 		} /* if */


tool: D59: 		CondRetObtido = PRF_consulta%s(p[index], %sObtido);


tool: D86: 		Ret = TST_CompararInt(CondRetEsperada, CondRetObtido,


tool: D135: 				"Retorno errado ao consultar %s de Professor.");


tool: D140: 		if(Ret != TST_CondRetOK) return Ret;


tool: D187: 		Ret = TST_CompararString( valorStringEsperado , valorStringObtido,


tool: D89: 		Ret = TST_CompararInt( valorEsperado , valorObtido,


tool: D87: 				"Retorno por referencia errado ao consultar %s de Professor.");


tool: D170: 		return Ret;


tool: D51: 	} /* fim ativa: Testar PRF consulta %s professor */


assistant: ```c
void imprimeConsulta(FILE *fConsulta, char *tipo, char *nome, char *nomeUpperCase) {
  char nomeInicialUpper[80];
  strcpy(nomeInicialUpper, nome);
  if ('a' <= nomeInicialUpper[0] && nomeInicialUpper[0] <= 'z')
    nomeInicialUpper[0] += 'A' - 'a';
  fprintf(fConsulta, "\t/* Testar PRF consulta %s professor */\n", nome);
  fprintf(fConsulta, "\n");
  fprintf(fConsulta, "\telse if ( strcmp( ComandoTeste , CONSULTA_%s_CMD ) == 0 ){\n", nomeUpperCase);
  fprintf(fConsulta, "\t\tNumLidos = LER_LerParametros( \"i%ci\" , &index, %sEsperado, &CondRetEsperada );\n", *tipo == 'c' ? 's' : 'i', *tipo == 'c' ? "valorString" : "&valor");
  fprintf(fConsulta, "\t\tif(NumLidos != 3){\n");
  fprintf(fConsulta, "\t\t\treturn TST_CondRetParm;\n");
  fprintf(fConsulta, "\t\t} /* if */\n");
  fprintf(fConsulta, "\n");
  fprintf(fConsulta, "\t\tCondRetObtido = PRF_consulta%s(p[index], %sObtido);\n", nomeInicialUpper, *tipo == 'c' ? "valorString" : "&valor");
  fprintf(fConsulta, "\n");
  fprintf(fConsulta, "\t\tRet = TST_CompararInt(CondRetEsperada, CondRetObtido,\n");
  fprintf(fConsulta, "\t\t\t\t\"Retorno errado ao consultar %s de Professor.\");\n", nomeInicialUpper);
  fprintf(fConsulta, "\t\tif(Ret != TST_CondRetOK) return Ret;\n");
  if (*tipo == 'c')
    fprintf(fConsulta, "\t\tRet = TST_CompararString( valorStringEsperado , valorStringObtido,\n");
  else
    fprintf(fConsulta, "\t\tRet = TST_CompararInt( valorEsperado , valorObtido,\n");
  fprintf(fConsulta, "\t\t\t\t\"Retorno por referencia errado ao consultar %s de Professor.\");\n", nomeInicialUpper);
  fprintf(fConsulta, "\t\treturn Ret;\n");
  fprintf(fConsulta, "\t} /* fim ativa: Testar PRF consulta %s professor */\n", nomeInicialUpper);
  fprintf(fConsulta, "\n");
}
```