// File: /workspace/github_c_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbp
movabsq $-0x800000000000, %r15  # imm = 0xFFFF800000000000
movabsq $-0x5000000000000, %r14 # imm = 0xFFFB000000000000
movabsq $-0x7800000000000, %r12 # imm = 0xFFF8800000000000
leaq 0x5137d(%rip), %rdi     # 0xa978a
callq 0x1a519
movq %rax, %rdi
movq %r14, %rsi
callq 0x1a512
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1f0cb
shrq $0x2f, %rax
cmpl $0x1fff1, %eax          # imm = 0x1FFF1
jne 0x5843b
movq %r15, %rbx
xorl %r15d, %r15d
jmp 0x5849e
leaq 0x51348(%rip), %rdi     # 0xa978a
callq 0x1a519
movq %rax, %rdi
movq %r14, %rsi
callq 0x1a512
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1f0cb
movq %r15, %rbx
andq %r15, %rax
movb $0x1, %r15b
movabsq $-0x7000000000000, %rcx # imm = 0xFFF9000000000000
cmpq %rcx, %rax
jne 0x5849e
leaq 0x5130e(%rip), %rdi     # 0xa978a
callq 0x1a519
movq %rax, %rdi
movq %r14, %rsi
callq 0x1a512
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1f0cb
movq %rax, %r15
andb $0x1, %r15b
leaq 0x5338b(%rip), %rdi     # 0xab830
callq 0x1a519
movq %rax, %rdi
movq %r14, %rsi
callq 0x1a512
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1f0cb
movq %rax, %r14
movq %rax, %r13
andq %rbx, %r13
leaq 0x1(%r12), %rdi
callq 0x1780c
movq %rax, %r12
movabsq $-0x4800000000000, %rax # imm = 0xFFFB800000000000
cmpq %rax, %r13
jne 0x58530
movabsq $-0x5000000000000, %r13 # imm = 0xFFFB000000000000
movq %r14, %rdi
callq 0x1df4d
cmpl $0x0, 0x10(%rax)
je 0x58504
movq 0x18(%rax), %rax
movq (%rax), %r12
movq %r13, %r14
movq %rbx, %r13
testb %r15b, %r15b
jne 0x586b8
movq 0x6dad6(%rip), %rax     # 0xc5ff0
movq (%rax), %rsi
leaq 0x4f677(%rip), %rdi     # 0xa7b9b
leaq 0x53ff3(%rip), %rdx     # 0xac51e
movq %r12, %rcx
jmp 0x58583
leaq 0x4fb63(%rip), %rdi     # 0xa809a
callq 0x1a519
movq %rax, %rdi
movabsq $-0x5000000000000, %r14 # imm = 0xFFFB000000000000
movq %r14, %rsi
callq 0x1a512
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1f0cb
testb %r15b, %r15b
movq %rbx, %r13
jne 0x586b8
movq 0x6da81(%rip), %rcx     # 0xc5ff0
movq (%rcx), %rsi
leaq 0x4f622(%rip), %rdi     # 0xa7b9b
leaq 0x53fac(%rip), %rdx     # 0xac52c
movq %rax, %rcx
xorl %eax, %eax
callq 0x25f95
movq %fs:0x0, %rax
movq %rax, %r15
incl -0x100c(%rax)
leaq 0x53770(%rip), %rdi     # 0xabd16
callq 0x1a519
movq %rax, %rdi
movq %r14, %rsi
callq 0x1a512
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1f0cb
movq %rax, %r12
xorps %xmm0, %xmm0
callq 0x1a50c
movq %r12, %rdi
movq %rax, %rsi
callq 0x44884
movq %rax, %r14
movsd 0xbfe(%rip), %xmm0      # 0x591e0
callq 0x1a50c
movq %r12, %rdi
movq %rax, %rsi
callq 0x44884
movq %rax, %rbx
movsd 0x53ea3(%rip), %xmm0    # 0xac4a0
callq 0x1a50c
movq %r12, %rdi
movq %rax, %rsi
callq 0x44884
movq %rax, %r12
movq %r14, %rax
andq %r13, %rax
movabsq $-0x6000000000000, %rcx # imm = 0xFFFA000000000000
cmpq %rcx, %rax
jne 0x586a9
movq %rbx, %rcx
andq %r13, %rcx
movabsq $-0x7800000000000, %rax # imm = 0xFFF8800000000000
cmpq %rax, %rcx
je 0x586a9
movabsq $-0x7000000000000, %rax # imm = 0xFFF9000000000000
cmpq %rax, %rcx
jne 0x58652
testb $0x1, %bl
je 0x586a9
andq %r12, %r13
movabsq $-0x7800000000000, %rcx # imm = 0xFFF8800000000000
cmpq %rcx, %r13
je 0x586a9
cmpq %rax, %r13
jne 0x5866f
testb $0x1, %r12b
je 0x586a9
movq 0x6d97a(%rip), %rax     # 0xc5ff0
movq (%rax), %r13
movq %r14, %rdi
callq 0x1df4d
leaq 0x4f513(%rip), %rdi     # 0xa7b9b
leaq 0x53ea5(%rip), %rdx     # 0xac534
movq %r13, %rsi
movq %rax, %rcx
movq %rbx, %r8
movq %r12, %r9
xorl %eax, %eax
callq 0x25f95
incl -0x100c(%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1744b
jmp 0x5858a