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

```asm
<imprimeConsulta>:
  endbr64
  push   %r14
  mov    %rcx,%r14
  push   %r13
  mov    %rdx,%r13
  push   %r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %rdx,%rsi
  sub    $0x60,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  mov    %r12,%rdi
  call   <strcpy@plt>
  movzbl (%rsp),%eax
  lea    -0x61(%rax),%edx
  cmp    $0x19,%dl
  ja     L28
  sub    $0x20,%eax
  mov    %al,(%rsp)
L28:
  mov    %r13,%rdx
  lea    D30(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  lea    D47(%rip),%r13
  call   <fputc@plt>
  mov    %r14,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D162(%rip),%rsi
  lea    D59(%rip),%r14
  call   <fprintf@plt>
  cmpb   $0x63,(%rbx)
  mov    $0x69,%eax
  mov    %r14,%rcx
  mov    $0x73,%edx
  cmove  %r13,%rcx
  lea    D31(%rip),%rsi
  mov    %rbp,%rdi
  cmovne %eax,%edx
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0x15,%edx
  mov    $0x1,%esi
  lea    D136(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x1b,%edx
  mov    $0x1,%esi
  lea    D147(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0xd,%edx
  mov    $0x1,%esi
  lea    D84(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  cmpb   $0x63,(%rbx)
  mov    %r14,%rcx
  mov    %r12,%rdx
  cmove  %r13,%rcx
  lea    D41(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbp,%rcx
  mov    $0x38,%edx
  mov    $0x1,%esi
  lea    D109(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D86(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0x27,%edx
  mov    $0x1,%esi
  lea    D102(%rip),%rdi
  call   <fwrite@plt>
  cmpb   $0x63,(%rbx)
  mov    %rbp,%rcx
  je     L10
  mov    $0x36,%edx
  mov    $0x1,%esi
  lea    D75(%rip),%rdi
  call   <fwrite@plt>
L34:
  mov    %r12,%rdx
  lea    D90(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D63(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D100(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L10:
  mov    $0x45,%edx
  mov    $0x1,%esi
  lea    D77(%rip),%rdi
  call   <fwrite@plt>
  jmp    L34
L16:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D30
datatype: string
name: extract_symbolic_data
arguments: data_tag: D47
datatype: string
name: extract_symbolic_data
arguments: data_tag: D162
datatype: string
name: extract_symbolic_data
arguments: data_tag: D59
datatype: string
name: extract_symbolic_data
arguments: data_tag: D31
datatype: string
name: extract_symbolic_data
arguments: data_tag: D136
datatype: string
name: extract_symbolic_data
arguments: data_tag: D147
datatype: string
name: extract_symbolic_data
arguments: data_tag: D84
datatype: string
name: extract_symbolic_data
arguments: data_tag: D41
datatype: string
name: extract_symbolic_data
arguments: data_tag: D109
datatype: string
name: extract_symbolic_data
arguments: data_tag: D86
datatype: string
name: extract_symbolic_data
arguments: data_tag: D102
datatype: string
name: extract_symbolic_data
arguments: data_tag: D75
datatype: string
name: extract_symbolic_data
arguments: data_tag: D90
datatype: string
name: extract_symbolic_data
arguments: data_tag: D63
datatype: string
name: extract_symbolic_data
arguments: data_tag: D100
datatype: string
name: extract_symbolic_data
arguments: data_tag: D77
datatype: string

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


tool: D47: valorString

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


tool: D59: &valor

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


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


tool: D147: 			return TST_CondRetParm;


tool: D84: 		} /* if */


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


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


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


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


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


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


tool: D63: 		return Ret;


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


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


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");
}
```