// File: /workspace/github_c_makefile_star2_O1/cktan[P]tomlc99/toml_json.c
// Function: print_raw
static void print_raw(const char *s) {
  char *sval;
  int64_t ival;
  int bval;
  double dval;
  toml_timestamp_t ts;
  char dbuf[100];

  if (0 == toml_rtos(s, &sval)) {
    printf("{\"type\":\"string\",\"value\":\"");
    print_escape_string(sval);
    printf("\"}");
    free(sval);
  } else if (0 == toml_rtoi(s, &ival)) {
    printf("{\"type\":\"integer\",\"value\":\"%" PRId64 "\"}", ival);
  } else if (0 == toml_rtob(s, &bval)) {
    printf("{\"type\":\"bool\",\"value\":\"%s\"}", bval ? "true" : "false");
  } else if (0 == toml_rtod_ex(s, &dval, dbuf, sizeof(dbuf))) {
    printf("{\"type\":\"float\",\"value\":\"%s\"}", dbuf);
  } else if (0 == toml_rtots(s, &ts)) {
    char millisec[10];
    if (ts.millisec)
      sprintf(millisec, ".%03d", *ts.millisec);
    else
      millisec[0] = 0;
    if (ts.year && ts.hour) {
      printf("{\"type\":\"%s\",\"value\":\"%04d-%02d-%02dT%02d:%02d:%02d%"
             "s%s\"}",
             (ts.z ? "datetime" : "datetime-local"),
             *ts.year, *ts.month, *ts.day, *ts.hour, *ts.minute, *ts.second,
             millisec, (ts.z ? ts.z : ""));
    } else if (ts.year) {
      printf("{\"type\":\"date-local\",\"value\":\"%04d-%02d-%02d\"}", *ts.year,
             *ts.month, *ts.day);
    } else if (ts.hour) {
      printf("{\"type\":\"time-local\",\"value\":\"%02d:%02d:%02d%s\"}", *ts.hour,
             *ts.minute, *ts.second, millisec);
    }
  } else {
    fprintf(stderr, "unknown type\n");
    exit(1);
  }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xf8, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rsi
callq 0x3d7b
testl %eax, %eax
je 0x16d9
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0x3a6b
testl %eax, %eax
je 0x170b
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3a07
testl %eax, %eax
je 0x1719
leaq 0x88(%rsp), %rsi
leaq 0x90(%rsp), %rdx
movq %rbx, %rdi
movl $0x64, %ecx
callq 0x3bda
testl %eax, %eax
je 0x1738
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x3677
testl %eax, %eax
jne 0x1846
movq 0x78(%rsp), %rax
testq %rax, %rax
je 0x1759
movl (%rax), %edx
leaq 0x4a3a(%rip), %rsi      # 0x6102
leaq 0x6(%rsp), %rdi
xorl %eax, %eax
callq 0x11c0
jmp 0x175e
leaq 0x49a0(%rip), %rdi      # 0x6080
xorl %eax, %eax
callq 0x10e0
movq 0x10(%rsp), %rdi
callq 0x1591
leaq 0x4a8e(%rip), %rdi      # 0x6186
xorl %eax, %eax
callq 0x10e0
movq 0x10(%rsp), %rdi
callq 0x1030
jmp 0x174e
movq 0x18(%rsp), %rsi
leaq 0x4984(%rip), %rdi      # 0x609b
jmp 0x1747
cmpl $0x0, (%rsp)
leaq 0x49ba(%rip), %rax      # 0x60de
leaq 0x49ae(%rip), %rsi      # 0x60d9
cmoveq %rax, %rsi
leaq 0x4986(%rip), %rdi      # 0x60bc
jmp 0x1747
leaq 0x49a5(%rip), %rdi      # 0x60e4
leaq 0x90(%rsp), %rsi
xorl %eax, %eax
callq 0x10e0
addq $0xf8, %rsp
popq %rbx
popq %r14
retq
movb $0x0, 0x6(%rsp)
movq 0x48(%rsp), %rcx
movq 0x60(%rsp), %rax
testq %rcx, %rcx
setne %dl
testq %rax, %rax
setne %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x17ed
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
leaq 0x49bb(%rip), %rdx      # 0x614b
leaq 0x49ab(%rip), %rsi      # 0x6142
cmoveq %rdx, %rsi
movl (%rcx), %edx
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
movl (%rcx), %ecx
movl (%r8), %r8d
movl (%rax), %r9d
movq 0x68(%rsp), %rax
movl (%rax), %r10d
movq 0x70(%rsp), %rax
movl (%rax), %r11d
leaq 0x4f49(%rip), %rbx      # 0x670f
cmovneq %rdi, %rbx
leaq 0x6(%rsp), %r14
leaq 0x4932(%rip), %rdi      # 0x6108
xorl %eax, %eax
pushq %rbx
pushq %r14
pushq %r11
pushq %r10
callq 0x10e0
addq $0x20, %rsp
jmp 0x174e
testq %rcx, %rcx
je 0x1815
movl (%rcx), %esi
movq 0x50(%rsp), %rax
movq 0x58(%rsp), %rcx
movl (%rax), %edx
movl (%rcx), %ecx
leaq 0x4951(%rip), %rdi      # 0x615a
xorl %eax, %eax
callq 0x10e0
jmp 0x174e
testq %rax, %rax
je 0x174e
movl (%rax), %esi
movq 0x68(%rsp), %rax
movq 0x70(%rsp), %rcx
movl (%rax), %edx
movl (%rcx), %ecx
leaq 0x4954(%rip), %rdi      # 0x6189
leaq 0x6(%rsp), %r8
xorl %eax, %eax
callq 0x10e0
jmp 0x174e
callq 0x1291