// File: /workspace/github_c_makefile_star2_O0/janet-lang[P]janet/build/c/shell.c
// Function: resolve_format
static void resolve_format(JanetTable *entry) {
    int is_macro = janet_truthy(janet_table_get(entry, janet_ckeywordv("macro")));
    Janet refv = janet_table_get(entry, janet_ckeywordv("ref"));
    int is_ref = janet_checktype(refv, JANET_ARRAY);
    Janet value = janet_wrap_nil();
    if (is_ref) {
        JanetArray *a = janet_unwrap_array(refv);
        if (a->count) value = a->data[0];
    } else {
        value = janet_table_get(entry, janet_ckeywordv("value"));
    }
    if (is_macro) {
        fprintf(stderr, "    macro\n");
        gbl_lines_below++;
    } else if (is_ref) {
        janet_eprintf("    var (%t)\n", value);
        gbl_lines_below++;
    } else {
        janet_eprintf("    %t\n", value);
        gbl_lines_below++;
    }
    Janet sm = janet_table_get(entry, janet_ckeywordv("source-map"));
    Janet path = janet_get(sm, janet_wrap_integer(0));
    Janet line = janet_get(sm, janet_wrap_integer(1));
    Janet col = janet_get(sm, janet_wrap_integer(2));
    if (janet_checktype(path, JANET_STRING) && janet_truthy(line) && janet_truthy(col)) {
        janet_eprintf("    %S on line %v, column %v\n", janet_unwrap_string(path), line, col);
        gbl_lines_below++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp            # imm = 0x160
movq %rdi, -0x8(%rbp)
xorl %eax, %eax
testb $0x1, %al
jne 0x8164a
jmp 0x8170a
movq -0x8(%rbp), %rax
movq %rax, -0x108(%rbp)
leaq 0x52352(%rip), %rdi     # 0xd39ae
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x108(%rbp), %rdi
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rsi
callq 0x21df0
movq %rax, -0x20(%rbp)
movsd -0x20(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, -0xf9(%rbp)
jne 0x816a9
jmp 0x818fd
movq -0x8(%rbp), %rax
movq %rax, -0x110(%rbp)
leaq 0x522f3(%rip), %rdi     # 0xd39ae
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x110(%rbp), %rdi
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rsi
callq 0x21df0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rcx
shrq $0x2f, %rcx
andq $0xf, %rcx
xorl %eax, %eax
cmpq $0x0, %rcx
movb %al, -0xf9(%rbp)
je 0x818fd
jmp 0x81774
movq -0x8(%rbp), %rax
movq %rax, -0x118(%rbp)
leaq 0x52292(%rip), %rdi     # 0xd39ae
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x118(%rbp), %rdi
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rsi
callq 0x21df0
movq %rax, -0x40(%rbp)
movabsq $-0x800000000000, %rcx  # imm = 0xFFFF800000000000
andq -0x40(%rbp), %rcx
xorl %eax, %eax
movabsq $-0x7800000000000, %rdx # imm = 0xFFF8800000000000
cmpq %rdx, %rcx
movb %al, -0xf9(%rbp)
je 0x818fd
xorl %eax, %eax
testb $0x1, %al
jne 0x8177f
jmp 0x81835
movq -0x8(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq 0x5221d(%rip), %rdi     # 0xd39ae
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x120(%rbp), %rdi
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rsi
callq 0x21df0
movq %rax, -0x50(%rbp)
movsd -0x50(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x817d5
jmp 0x8189b
movq -0x8(%rbp), %rax
movq %rax, -0x130(%rbp)
leaq 0x521c7(%rip), %rdi     # 0xd39ae
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x130(%rbp), %rdi
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rsi
callq 0x21df0
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rcx
shrq $0x2f, %rcx
andq $0xf, %rcx
movb $0x1, %al
cmpq $0x0, %rcx
movb %al, -0x121(%rbp)
je 0x8189b
jmp 0x818f1
movq -0x8(%rbp), %rax
movq %rax, -0x138(%rbp)
leaq 0x52167(%rip), %rdi     # 0xd39ae
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x138(%rbp), %rdi
movq %rax, -0x68(%rbp)
movq -0x68(%rbp), %rsi
callq 0x21df0
movq %rax, -0x70(%rbp)
movabsq $-0x800000000000, %rcx  # imm = 0xFFFF800000000000
andq -0x70(%rbp), %rcx
movb $0x1, %al
movabsq $-0x7000000000000, %rdx # imm = 0xFFF9000000000000
cmpq %rdx, %rcx
movb %al, -0x121(%rbp)
jne 0x818f1
movq -0x8(%rbp), %rax
movq %rax, -0x140(%rbp)
leaq 0x52101(%rip), %rdi     # 0xd39ae
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x140(%rbp), %rdi
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rsi
callq 0x21df0
movq %rax, -0x80(%rbp)
movq -0x80(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
setne %al
movb %al, -0x121(%rbp)
movb -0x121(%rbp), %al
movb %al, -0xf9(%rbp)
movb -0xf9(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x148(%rbp)
leaq 0x54174(%rip), %rdi     # 0xd5a91
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x148(%rbp), %rdi
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rsi
callq 0x21df0
movq %rax, -0x88(%rbp)
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0x88(%rbp), %rax
movabsq $-0x4800000000000, %rcx # imm = 0xFFFB800000000000
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x94(%rbp)
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x163e0
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0x94(%rbp)
je 0x819d7
movq -0x88(%rbp), %rdi
callq 0x1f9e0
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x819d5
movq -0xa8(%rbp), %rax
movq 0x18(%rax), %rax
movq (%rax), %rax
movq %rax, -0xa0(%rbp)
jmp 0x81a2f
movq -0x8(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq 0x512ce(%rip), %rdi     # 0xd2cb7
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x150(%rbp), %rdi
movq %rax, -0xb8(%rbp)
movq -0xb8(%rbp), %rsi
callq 0x21df0
movq %rax, -0xb0(%rbp)
movq -0xb0(%rbp), %rax
movq %rax, -0xa0(%rbp)
cmpl $0x0, -0xc(%rbp)
je 0x81a6c
movq 0x6b5b4(%rip), %rax     # 0xecff0
movq (%rax), %rdi
leaq 0x54ebd(%rip), %rsi     # 0xd6903
movb $0x0, %al
callq 0x15600
movq %fs:0x0, %rax
leaq -0x100c(%rax), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x81af9
cmpl $0x0, -0x94(%rbp)
je 0x81ab7
movq 0x6b574(%rip), %rax     # 0xecff0
movq (%rax), %rsi
movq -0xa0(%rbp), %rcx
leaq 0x502ca(%rip), %rdi     # 0xd1d57
leaq 0x54e7a(%rip), %rdx     # 0xd690e
movb $0x0, %al
callq 0x2c200
movq %fs:0x0, %rax
leaq -0x100c(%rax), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x81af7
movq 0x6b532(%rip), %rax     # 0xecff0
movq (%rax), %rsi
movq -0xa0(%rbp), %rcx
leaq 0x50288(%rip), %rdi     # 0xd1d57
leaq 0x54e46(%rip), %rdx     # 0xd691c
movb $0x0, %al
callq 0x2c200
movq %fs:0x0, %rax
leaq -0x100c(%rax), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x81af9
movq -0x8(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x54492(%rip), %rdi     # 0xd5f9d
callq 0x19e00
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x19dd0
movq -0x158(%rbp), %rdi
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rsi
callq 0x21df0
movq %rax, -0xc0(%rbp)
xorps %xmm0, %xmm0
callq 0x19db0
movq %rax, -0xd8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xd8(%rbp), %rsi
callq 0x5b7f0
movq %rax, -0xd0(%rbp)
movsd 0x4f2c4(%rip), %xmm0    # 0xd0e38
callq 0x19db0
movq %rax, -0xe8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xe8(%rbp), %rsi
callq 0x5b7f0
movq %rax, -0xe0(%rbp)
movsd 0x54cee(%rip), %xmm0    # 0xd6890
callq 0x19db0
movq %rax, -0xf8(%rbp)
movq -0xc0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x5b7f0
movq %rax, -0xf0(%rbp)
xorl %eax, %eax
testb $0x1, %al
jne 0x81bd0
jmp 0x81bff
movsd -0xd0(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x81be5
jmp 0x81c23
movq -0xd0(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x81c23
jmp 0x81e13
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0xd0(%rbp), %rax
movabsq $-0x6000000000000, %rcx # imm = 0xFFFA000000000000
cmpq %rcx, %rax
jne 0x81e13
xorl %eax, %eax
testb $0x1, %al
jne 0x81c2b
jmp 0x81c5e
movsd -0xe0(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x81c43
jmp 0x81e13
movq -0xe0(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x81e13
jmp 0x81c82
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0xe0(%rbp), %rax
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
cmpq %rcx, %rax
je 0x81e13
xorl %eax, %eax
testb $0x1, %al
jne 0x81c8a
jmp 0x81cb6
movsd -0xe0(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x81c9f
jmp 0x81cd6
movq -0xe0(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x81cd6
jmp 0x81ceb
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0xe0(%rbp), %rax
movabsq $-0x7000000000000, %rcx # imm = 0xFFF9000000000000
cmpq %rcx, %rax
jne 0x81ceb
movq -0xe0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x81e13
xorl %eax, %eax
testb $0x1, %al
jne 0x81cf3
jmp 0x81d26
movsd -0xf0(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x81d0b
jmp 0x81e13
movq -0xf0(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x81e13
jmp 0x81d4a
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0xf0(%rbp), %rax
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
cmpq %rcx, %rax
je 0x81e13
xorl %eax, %eax
testb $0x1, %al
jne 0x81d52
jmp 0x81d7e
movsd -0xf0(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x81d67
jmp 0x81d9e
movq -0xf0(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x81d9e
jmp 0x81daf
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0xf0(%rbp), %rax
movabsq $-0x7000000000000, %rcx # imm = 0xFFF9000000000000
cmpq %rcx, %rax
jne 0x81daf
movq -0xf0(%rbp), %rax
andq $0x1, %rax
cmpq $0x0, %rax
je 0x81e13
movq 0x6b23a(%rip), %rax     # 0xecff0
movq (%rax), %rax
movq %rax, -0x160(%rbp)
movq -0xd0(%rbp), %rdi
callq 0x1f9e0
movq -0x160(%rbp), %rsi
movq %rax, %rcx
movq -0xe0(%rbp), %r8
movq -0xf0(%rbp), %r9
leaq 0x4ff6c(%rip), %rdi     # 0xd1d57
leaq 0x54b32(%rip), %rdx     # 0xd6924
movb $0x0, %al
callq 0x2c200
movq %fs:0x0, %rax
leaq -0x100c(%rax), %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
addq $0x160, %rsp            # imm = 0x160
popq %rbp
retq
nopl (%rax)