user: Translate the below assembly code into C programming language:

```asm
<bin2h>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x140,%rsp
  mov    %rdi,-0x128(%rbp)
  mov    %esi,-0x12c(%rbp)
  mov    %rdx,-0x138(%rbp)
  mov    %rcx,-0x140(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x140(%rbp),%rdx
  lea    -0x110(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0x110(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %eax,-0x114(%rbp)
  movl   $0x0,-0x118(%rbp)
  jmp    L48
L34:
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  cmp    $0x60,%al
  jle    L26
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  cmp    $0x7a,%al
  jg     L26
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  sub    $0x20,%eax
  mov    %eax,%edx
  mov    -0x118(%rbp),%eax
  cltq
  mov    %dl,-0x110(%rbp,%rax,1)
L26:
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  cmp    $0x40,%al
  jle    L44
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  cmp    $0x5a,%al
  jle    L10
L44:
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  cmp    $0x2f,%al
  jle    L79
  mov    -0x118(%rbp),%eax
  cltq
  movzbl -0x110(%rbp,%rax,1),%eax
  cmp    $0x39,%al
  jle    L10
L79:
  mov    -0x118(%rbp),%eax
  cltq
  movb   $0x5f,-0x110(%rbp,%rax,1)
L10:
  addl   $0x1,-0x118(%rbp)
L48:
  mov    -0x118(%rbp),%eax
  cmp    -0x114(%rbp),%eax
  jl     L34
  lea    -0x110(%rbp),%rdx
  mov    -0x138(%rbp),%rax
  lea    D38(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x138(%rbp),%rax
  lea    D35(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  mov    -0x138(%rbp),%rax
  mov    %rax,%rcx
  mov    $0x25,%edx
  mov    $0x1,%esi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <fwrite@plt>
  mov    -0x12c(%rbp),%ecx
  mov    -0x128(%rbp),%rdx
  mov    -0x138(%rbp),%rax
  lea    D11(%rip),%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  lea    -0x110(%rbp),%rdx
  mov    -0x138(%rbp),%rax
  lea    D10(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L65
  call   <__stack_chk_fail@plt>
L65:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_tag: D38
datatype: string
name: read_data
arguments: data_tag: D35
datatype: string
name: read_data
arguments: data_tag: D26
datatype: string
name: read_data
arguments: data_tag: D11
datatype: string
name: read_data
arguments: data_tag: D10
datatype: string

tool: D38: #ifndef __%s


tool: D35: #define __%s



tool: D26: extern
#ifdef __cplusplus
"C"
#endif


tool: D11: char %s[%d];


tool: D10: 
#endif /* __%s */


assistant: ```c
void bin2h(char *name, int size, FILE *out, char *outname) {
  char q[255];
  int i, l;
  strcpy(q, outname);
  l = strlen(q);
  for (i = 0; i < l; i++) {
    if ((q[i] >= 'a') && (q[i] <= 'z')) {
      q[i] += 'A' - 'a';
    }
    if (((q[i] < 'A') || (q[i] > 'Z')) && ((q[i] < '0') || (q[i] > '9'))) {
      q[i] = '_';
    }
  }
  fprintf(out, "#ifndef __%s\n", q);
  fprintf(out, "#define __%s\n\n", q);
  fputs("extern\n#ifdef __cplusplus\n\"C\"\n#endif\n", out);
  fprintf(out, "char %s[%d];\n", name, size);
  fprintf(out, "\n#endif /* __%s */\n", q);
}
```