user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<imprimeConsulta>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %rdi,%rbx
  mov    %rsi,%rbp
  mov    %rdx,%r12
  mov    %rcx,%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rdi
  mov    %rdx,%rsi
  call   <strcpy@plt>
  movzbl (%rsp),%eax
  lea    -0x61(%rax),%edx
  cmp    $0x19,%dl
  ja     L9
  sub    $0x20,%eax
  mov    %al,(%rsp)
L9:
  mov    %r12,%rdx
  lea    D162(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %r13,%rdx
  lea    D75(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  cmpb   $0x63,0x0(%rbp)
  lea    D131(%rip),%rcx
  lea    D112(%rip),%rax
  cmovne %rax,%rcx
  mov    $0x73,%edx
  mov    $0x69,%eax
  cmovne %eax,%edx
  lea    D171(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0x15,%edx
  mov    $0x1,%esi
  lea    D143(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0x1b,%edx
  mov    $0x1,%esi
  lea    D87(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rcx
  mov    $0xd,%edx
  mov    $0x1,%esi
  lea    D109(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  cmpb   $0x63,0x0(%rbp)
  lea    D131(%rip),%rcx
  lea    D112(%rip),%rax
  cmovne %rax,%rcx
  mov    %rsp,%r12
  mov    %r12,%rdx
  lea    D178(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbx,%rcx
  mov    $0x38,%edx
  mov    $0x1,%esi
  lea    D183(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rdx
  lea    D74(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0x27,%edx
  mov    $0x1,%esi
  lea    D114(%rip),%rdi
  call   <fwrite@plt>
  cmpb   $0x63,0x0(%rbp)
  je     L33
  mov    %rbx,%rcx
  mov    $0x36,%edx
  mov    $0x1,%esi
  lea    D141(%rip),%rdi
  call   <fwrite@plt>
L3:
  mov    %rsp,%rbp
  mov    %rbp,%rdx
  lea    D35(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D185(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rdx
  lea    D90(%rip),%rsi
  mov    %rbx,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    %rbx,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L33:
  mov    %rbx,%rcx
  mov    $0x45,%edx
  mov    $0x1,%esi
  lea    D60(%rip),%rdi
  call   <fwrite@plt>
  jmp    L3
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D162
data_type: string
name: read_data
arguments: tag: D75
data_type: string
name: read_data
arguments: tag: D131
data_type: string
name: read_data
arguments: tag: D112
data_type: string
name: read_data
arguments: tag: D171
data_type: string
name: read_data
arguments: tag: D143
data_type: string
name: read_data
arguments: tag: D87
data_type: string
name: read_data
arguments: tag: D109
data_type: string
name: read_data
arguments: tag: D178
data_type: string
name: read_data
arguments: tag: D183
data_type: string
name: read_data
arguments: tag: D74
data_type: string
name: read_data
arguments: tag: D114
data_type: string
name: read_data
arguments: tag: D141
data_type: string
name: read_data
arguments: tag: D35
data_type: string
name: read_data
arguments: tag: D185
data_type: string
name: read_data
arguments: tag: D90
data_type: string
name: read_data
arguments: tag: D60
data_type: string

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


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


tool: D131: valorString

tool: D112: &valor

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


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


tool: D87: 			return TST_CondRetParm;


tool: D109: 		} /* if */


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


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


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


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


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


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


tool: D185: 		return Ret;


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


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