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

```asm
<chaz_Strings_probe_c99_snprintf>:
  endbr64
  push   %rbp
  lea    D10(%rip),%rdi
  sub    $0x10,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  mov    %rsp,%rsi
  call   <chaz_CC_capture_output@plt>
  test   %rax,%rax
  je     L60
  xor    %esi,%esi
  mov    $0xa,%edx
  mov    %rax,%rdi
  mov    %rax,%rbp
  call   <strtol@plt>
  cmp    $0x5,%rax
  je     L66
L49:
  mov    %rbp,%rdi
  call   <free@plt>
L60:
  lea    D31(%rip),%rbp
  lea    D38(%rip),%rdi
  mov    %rbp,%rsi
  call   <chaz_HeadCheck_defines_symbol@plt>
  test   %rax,%rax
  jne    L43
L36:
  mov    %rbp,%rsi
  lea    D59(%rip),%rdi
  call   <chaz_HeadCheck_defines_symbol@plt>
  test   %rax,%rax
  jne    L67
L73:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L65
  add    $0x10,%rsp
  pop    %rbp
  ret
  nopw   0x0(%rax,%rax,1)
L67:
  xor    %esi,%esi
  lea    D22(%rip),%rdi
  call   <chaz_ConfWriter_add_def@plt>
  jmp    L73
  nopl   0x0(%rax,%rax,1)
L43:
  xor    %esi,%esi
  lea    D30(%rip),%rdi
  call   <chaz_ConfWriter_add_def@plt>
  jmp    L36
L66:
  xor    %esi,%esi
  lea    D29(%rip),%rdi
  call   <chaz_ConfWriter_add_def@plt>
  jmp    L49
L65:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D10
type: string
name: extract_symbolic_data
arguments: tag: D31
type: string
name: extract_symbolic_data
arguments: tag: D38
type: string
name: extract_symbolic_data
arguments: tag: D59
type: string
name: extract_symbolic_data
arguments: tag: D22
type: string
name: extract_symbolic_data
arguments: tag: D30
type: string
name: extract_symbolic_data
arguments: tag: D29
type: string

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


tool: D31: #include <stdio.h>

tool: D38: _scprintf

tool: D59: _snprintf

tool: D22: HAS__SNPRINTF

tool: D30: HAS__SCPRINTF

tool: D29: HAS_C99_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);
  }
}
```