// File: /workspace/github_c_makefile_star2_O3/cktan[P]tomlc99/toml_cat.c
// Function: print_array
static void print_array(toml_array_t *curarr) {
  toml_datum_t d;
  toml_array_t *arr;
  toml_table_t *tab;
  const int n = toml_array_nelem(curarr);

  for (int i = 0; i < n; i++) {

    if (0 != (arr = toml_array_at(curarr, i))) {
      prindent();
      printf("[\n");
      indent++;
      print_array(arr);
      indent--;
      prindent();
      printf("],\n");
      continue;
    }

    if (0 != (tab = toml_table_at(curarr, i))) {
      prindent();
      printf("{\n");
      indent++;
      print_table(tab);
      indent--;
      prindent();
      printf("},\n");
      continue;
    }

    d = toml_string_at(curarr, i);
    if (d.ok) {
      prindent();
      print_string(d.u.s);
      printf(",\n");
      free(d.u.s);
      continue;
    }

    d = toml_bool_at(curarr, i);
    if (d.ok) {
      prindent();
      printf("%s,\n", d.u.b ? "true" : "false");
      continue;
    }

    d = toml_int_at(curarr, i);
    if (d.ok) {
      prindent();
      printf("%" PRId64 ",\n", d.u.i);
      continue;
    }

    d = toml_double_at(curarr, i);
    if (d.ok) {
      prindent();
      printf("%f,\n", d.u.d);
      continue;
    }

    d = toml_timestamp_at(curarr, i);
    if (d.ok) {
      prindent();
      print_timestamp(d);
      printf(",\n");
      free(d.u.ts);
      continue;
    }

    fflush(stdout);
    fprintf(stderr, "ERROR: unable to decode value in array\n");
    exit(1);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x37e9
testl %eax, %eax
jle 0x1ae4
movl %eax, %ebp
leaq 0x4869(%rip), %r14      # 0x60aa
xorl %r12d, %r12d
movq %rbx, %rdi
movl %r12d, %esi
callq 0x3811
testq %rax, %rax
je 0x18cc
movq %rax, %r15
cmpl $0x0, 0x78d6(%rip)      # 0x9134
jle 0x1879
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r13d
cmpl 0x78bd(%rip), %r13d     # 0x9134
jl 0x1863
leaq 0x48a4(%rip), %rdi      # 0x6124
callq 0x1060
incl 0x78a9(%rip)            # 0x9134
movq %r15, %rdi
callq 0x181d
movl 0x789b(%rip), %eax      # 0x9134
leal -0x1(%rax), %ecx
movl %ecx, 0x7892(%rip)      # 0x9134
cmpl $0x2, %eax
jl 0x18c0
xorl %r15d, %r15d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r15d
cmpl 0x7876(%rip), %r15d     # 0x9134
jl 0x18aa
leaq 0x485f(%rip), %rdi      # 0x6126
jmp 0x1953
movq %rbx, %rdi
movl %r12d, %esi
callq 0x382d
testq %rax, %rax
je 0x1969
movq %rax, %r15
cmpl $0x0, 0x784a(%rip)      # 0x9134
jle 0x1905
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r13d
cmpl 0x7831(%rip), %r13d     # 0x9134
jl 0x18ef
leaq 0x4813(%rip), %rdi      # 0x611f
callq 0x1060
incl 0x781d(%rip)            # 0x9134
movq %r15, %rdi
callq 0x14cb
movl 0x780f(%rip), %eax      # 0x9134
leal -0x1(%rax), %ecx
movl %ecx, 0x7806(%rip)      # 0x9134
cmpl $0x2, %eax
jl 0x194c
xorl %r15d, %r15d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r15d
cmpl 0x77ea(%rip), %r15d     # 0x9134
jl 0x1936
leaq 0x47ce(%rip), %rdi      # 0x6121
callq 0x1060
incl %r12d
cmpl %ebp, %r12d
jne 0x1844
jmp 0x1ae4
movq %rbx, %rdi
movl %r12d, %esi
callq 0x44b2
testl %eax, %eax
je 0x19bb
movq %rdx, %r15
cmpl $0x0, 0x77b2(%rip)      # 0x9134
jle 0x199d
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r13d
cmpl 0x7799(%rip), %r13d     # 0x9134
jl 0x1987
movq %r15, %rdi
callq 0x1af8
leaq 0x477b(%rip), %rdi      # 0x6127
callq 0x1060
movq %r15, %rdi
callq 0x1030
jmp 0x1958
movq %rbx, %rdi
movl %r12d, %esi
callq 0x44f9
testl %eax, %eax
je 0x1a0d
movq %rdx, %r15
cmpl $0x0, 0x7760(%rip)      # 0x9134
jle 0x19ef
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r13d
cmpl 0x7747(%rip), %r13d     # 0x9134
jl 0x19d9
testl %r15d, %r15d
leaq 0x4669(%rip), %rsi      # 0x6062
leaq 0x4667(%rip), %rax      # 0x6067
cmoveq %rax, %rsi
leaq 0x4652(%rip), %rdi      # 0x605d
jmp 0x1a4b
movq %rbx, %rdi
movl %r12d, %esi
callq 0x4540
testl %eax, %eax
je 0x1a57
movq %rdx, %r15
cmpl $0x0, 0x770e(%rip)      # 0x9134
jle 0x1a41
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r13d
cmpl 0x76f5(%rip), %r13d     # 0x9134
jl 0x1a2b
leaq 0x462a(%rip), %rdi      # 0x6072
movq %r15, %rsi
xorl %eax, %eax
callq 0x10d0
jmp 0x1958
movq %rbx, %rdi
movl %r12d, %esi
callq 0x4587
testl %eax, %eax
je 0x1aa3
movq %rdx, %r15
cmpl $0x0, 0x76c4(%rip)      # 0x9134
jle 0x1a8b
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r13d
cmpl 0x76ab(%rip), %r13d     # 0x9134
jl 0x1a75
movq %r15, %xmm0
leaq 0x45e6(%rip), %rdi      # 0x607d
movb $0x1, %al
callq 0x10d0
jmp 0x1958
movq %rbx, %rdi
movl %r12d, %esi
callq 0x45de
testl %eax, %eax
je 0x1af3
movq %rdx, %r15
cmpl $0x0, 0x7678(%rip)      # 0x9134
jle 0x1ad7
xorl %r13d, %r13d
movq %r14, %rdi
xorl %eax, %eax
callq 0x10d0
incl %r13d
cmpl 0x765f(%rip), %r13d     # 0x9134
jl 0x1ac1
movq %r15, %rdi
callq 0x1c6f
jmp 0x19a5
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1281