user: What would the C source look like for the assembly code provided here?

```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     L34
  sub    $0x20,%eax
  mov    %al,(%rsp)
L34:
  mov    %r13,%rdx
  lea    D36(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  lea    D132(%rip),%r13
  call   <fputc@plt>
  mov    %r14,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D146(%rip),%rsi
  lea    D30(%rip),%r14
  call   <fprintf@plt>
  cmpb   $0x63,(%rbx)
  mov    $0x69,%eax
  mov    %r14,%rcx
  mov    $0x73,%edx
  cmove  %r13,%rcx
  lea    D127(%rip),%rsi
  mov    %rbp,%rdi
  cmovne %eax,%edx
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0x15,%edx
  mov    $0x1,%esi
  lea    D8(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x1b,%edx
  mov    $0x1,%esi
  lea    D122(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0xd,%edx
  mov    $0x1,%esi
  lea    D95(%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    D114(%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    D163(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D168(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0x27,%edx
  mov    $0x1,%esi
  lea    D141(%rip),%rdi
  call   <fwrite@plt>
  cmpb   $0x63,(%rbx)
  mov    %rbp,%rcx
  je     L15
  mov    $0x36,%edx
  mov    $0x1,%esi
  lea    D91(%rip),%rdi
  call   <fwrite@plt>
L33:
  mov    %r12,%rdx
  lea    D32(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0xe,%edx
  mov    $0x1,%esi
  lea    D76(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D133(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
  nopl   (%rax)
L15:
  mov    $0x45,%edx
  mov    $0x1,%esi
  lea    D105(%rip),%rdi
  call   <fwrite@plt>
  jmp    L33
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D36
type_infered: string
name: retrieve_data
arguments: label: D132
type_infered: string
name: retrieve_data
arguments: label: D146
type_infered: string
name: retrieve_data
arguments: label: D30
type_infered: string
name: retrieve_data
arguments: label: D127
type_infered: string
name: retrieve_data
arguments: label: D8
type_infered: string
name: retrieve_data
arguments: label: D122
type_infered: string
name: retrieve_data
arguments: label: D95
type_infered: string
name: retrieve_data
arguments: label: D114
type_infered: string
name: retrieve_data
arguments: label: D163
type_infered: string
name: retrieve_data
arguments: label: D168
type_infered: string
name: retrieve_data
arguments: label: D141
type_infered: string
name: retrieve_data
arguments: label: D91
type_infered: string
name: retrieve_data
arguments: label: D32
type_infered: string
name: retrieve_data
arguments: label: D76
type_infered: string
name: retrieve_data
arguments: label: D133
type_infered: string
name: retrieve_data
arguments: label: D105
type_infered: string

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


tool: D132: valorString

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


tool: D30: &valor

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


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


tool: D122: 			return TST_CondRetParm;


tool: D95: 		} /* if */


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


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


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


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


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


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


tool: D76: 		return Ret;


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


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