user: Please show me the C implementation that matches the assembly code listed below:

```asm
<imprimeAltera>:
  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     L19
  sub    $0x20,%eax
  mov    %al,(%rsp)
L19:
  mov    %r13,%rdx
  lea    D59(%rip),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %r14,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D128(%rip),%rsi
  call   <fprintf@plt>
  cmpb   $0x63,(%rbx)
  mov    $0x73,%edx
  mov    %rbp,%rdi
  lea    D6(%rip),%rax
  lea    D83(%rip),%rcx
  cmovne %rax,%rcx
  mov    $0x69,%eax
  lea    D62(%rip),%rsi
  cmovne %eax,%edx
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rcx
  mov    $0x15,%edx
  mov    $0x1,%esi
  lea    D46(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0x1b,%edx
  mov    $0x1,%esi
  lea    D137(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rcx
  mov    $0xd,%edx
  mov    $0x1,%esi
  lea    D133(%rip),%rdi
  call   <fwrite@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  cmpb   $0x63,(%rbx)
  mov    %r12,%rdx
  mov    %rbp,%rdi
  lea    D12(%rip),%rax
  lea    D121(%rip),%rcx
  cmovne %rax,%rcx
  lea    D138(%rip),%rsi
  xor    %eax,%eax
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    %rbp,%rcx
  mov    $0x39,%edx
  mov    $0x1,%esi
  lea    D8(%rip),%rdi
  call   <fwrite@plt>
  mov    %r12,%rdx
  mov    %rbp,%rdi
  xor    %eax,%eax
  lea    D70(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    %r12,%rdx
  lea    D52(%rip),%rsi
  call   <fprintf@plt>
  mov    %rbp,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x60,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L5:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D59
datatype: string
name: extract_symbolic_data
arguments: data_tag: D128
datatype: string
name: extract_symbolic_data
arguments: data_tag: D6
datatype: string
name: extract_symbolic_data
arguments: data_tag: D83
datatype: string
name: extract_symbolic_data
arguments: data_tag: D62
datatype: string
name: extract_symbolic_data
arguments: data_tag: D46
datatype: string
name: extract_symbolic_data
arguments: data_tag: D137
datatype: string
name: extract_symbolic_data
arguments: data_tag: D133
datatype: string
name: extract_symbolic_data
arguments: data_tag: D12
datatype: string
name: extract_symbolic_data
arguments: data_tag: D121
datatype: string
name: extract_symbolic_data
arguments: data_tag: D138
datatype: string
name: extract_symbolic_data
arguments: data_tag: D8
datatype: string
name: extract_symbolic_data
arguments: data_tag: D70
datatype: string
name: extract_symbolic_data
arguments: data_tag: D52
datatype: string

tool: D59: 	/* Testar PRF altera %s professor */


tool: D128: 	else if ( strcmp( ComandoTeste , ALTERA_%s_CMD ) == 0 ){


tool: D6: &paramInt

tool: D83: paramString

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


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


tool: D137: 			return TST_CondRetParm;


tool: D133: 		} /* if */


tool: D12: Int

tool: D121: String

tool: D138: 		CondRetObtido = PRF_altera%s(p[index], param%s);


tool: D8: 		return TST_CompararInt(CondRetEsperada, CondRetObtido,


tool: D70: 				"Retorno errado ao alterar %s de Professor.");


tool: D52: 	} /* fim ativa: Testar PRF altera %s professor */


assistant: ```c
void imprimeAltera(FILE *fAltera, char *tipo, char *nome, char *nomeUpperCase) {
  char nomeInicialUpper[80];
  strcpy(nomeInicialUpper, nome);
  if ('a' <= nomeInicialUpper[0] && nomeInicialUpper[0] <= 'z')
    nomeInicialUpper[0] += 'A' - 'a';
  fprintf(fAltera, "\t/* Testar PRF altera %s professor */\n", nome);
  fprintf(fAltera, "\n");
  fprintf(fAltera, "\telse if ( strcmp( ComandoTeste , ALTERA_%s_CMD ) == 0 ){\n", nomeUpperCase);
  fprintf(fAltera, "\t\tNumLidos = LER_LerParametros( \"i%ci\" , &index, %s, &CondRetEsperada );\n", *tipo == 'c' ? 's' : 'i', *tipo == 'c' ? "paramString" : "&paramInt");
  fprintf(fAltera, "\t\tif(NumLidos != 3){\n");
  fprintf(fAltera, "\t\t\treturn TST_CondRetParm;\n");
  fprintf(fAltera, "\t\t} /* if */\n");
  fprintf(fAltera, "\n");
  fprintf(fAltera, "\t\tCondRetObtido = PRF_altera%s(p[index], param%s);\n", nomeInicialUpper, *tipo == 'c' ? "String" : "Int");
  fprintf(fAltera, "\n");
  fprintf(fAltera, "\t\treturn TST_CompararInt(CondRetEsperada, CondRetObtido,\n");
  fprintf(fAltera, "\t\t\t\t\"Retorno errado ao alterar %s de Professor.\");\n", nomeInicialUpper);
  fprintf(fAltera, "\t} /* fim ativa: Testar PRF altera %s professor */\n", nomeInicialUpper);
  fprintf(fAltera, "\n");
}
```