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

```asm
<chaz_Strings_probe_c99_snprintf>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movq   $0x0,-0x18(%rbp)
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  call   <chaz_CC_capture_output@plt>
  mov    %rax,-0x18(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  je     L37
  mov    -0x18(%rbp),%rax
  mov    $0xa,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtol@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x5,-0x10(%rbp)
  jne    L43
  mov    $0x0,%esi
  lea    D64(%rip),%rax
  mov    %rax,%rdi
  call   <chaz_ConfWriter_add_def@plt>
L43:
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
L37:
  lea    D40(%rip),%rax
  mov    %rax,%rsi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  call   <chaz_HeadCheck_defines_symbol@plt>
  test   %rax,%rax
  je     L0
  mov    $0x0,%esi
  lea    D6(%rip),%rax
  mov    %rax,%rdi
  call   <chaz_ConfWriter_add_def@plt>
L0:
  lea    D40(%rip),%rax
  mov    %rax,%rsi
  lea    D53(%rip),%rax
  mov    %rax,%rdi
  call   <chaz_HeadCheck_defines_symbol@plt>
  test   %rax,%rax
  je     L32
  mov    $0x0,%esi
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <chaz_ConfWriter_add_def@plt>
L32:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L33
  call   <__stack_chk_fail@plt>
L33:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D32
datatype: string
name: unpack_data
arguments: label: D64
datatype: string
name: unpack_data
arguments: label: D40
datatype: string
name: unpack_data
arguments: label: D34
datatype: string
name: unpack_data
arguments: label: D6
datatype: string
name: unpack_data
arguments: label: D53
datatype: string
name: unpack_data
arguments: label: D16
datatype: string

tool: D32: #include <stdio.h>
int main() {
char buf[4];
int result;
result = snprintf(buf, 4, "%s", "12345");
printf("%d", result);
return 0;
}


tool: D64: HAS_C99_SNPRINTF

tool: D40: #include <stdio.h>

tool: D34: _scprintf

tool: D6: HAS__SCPRINTF

tool: D53: _snprintf

tool: D16: HAS__SNPRINTF

assistant: ```c
void chaz_Strings_probe_c99_snprintf(void) {
  static const char snprintf_code[] = "#include <stdio.h>"
                                      "\n"
                                      "int main() {"
                                      "\n"
                                      "char buf[4];"
                                      "\n"
                                      "int result;"
                                      "\n"
                                      "result = snprintf(buf, 4, \"%s\", \"12345\");"
                                      "\n"
                                      "printf(\"%d\", result);"
                                      "\n"
                                      "return 0;"
                                      "\n"
                                      "}"
                                      "\n";
  char *output = NULL;
  size_t output_len;
  output = chaz_CC_capture_output(snprintf_code, &output_len);
  if (output != NULL) {
    long result = strtol(output, NULL, 10);
    if (result == 5) {
      chaz_ConfWriter_add_def("HAS_C99_SNPRINTF", NULL);
    }
    free(output);
  }
  if (chaz_HeadCheck_defines_symbol("_scprintf", "#include <stdio.h>")) {
    chaz_ConfWriter_add_def("HAS__SCPRINTF", NULL);
  }
  if (chaz_HeadCheck_defines_symbol("_snprintf", "#include <stdio.h>")) {
    chaz_ConfWriter_add_def("HAS__SNPRINTF", NULL);
  }
}
```