// File: /workspace/github_c_makefile_star2_O0/janet-lang[P]janet/src/core/parse.c
// Function: popstate
static void popstate(JanetParser *p, Janet val) {
    for (;;) {
        JanetParseState top = p->states[--p->statecount];
        JanetParseState *newtop = p->states + p->statecount - 1;
        /* Source mapping info */
        if (janet_checktype(val, JANET_TUPLE)) {
            janet_tuple_sm_line(janet_unwrap_tuple(val)) = (int32_t) top.line;
            janet_tuple_sm_column(janet_unwrap_tuple(val)) = (int32_t) top.column;
        }
        if (newtop->flags & PFLAG_CONTAINER) {
            newtop->argn++;
            /* Keep track of number of values in the root state */
            if (p->statecount == 1) {
                p->pending++;
                /* Root items are always wrapped in a tuple for source map info. */
                const Janet *tup = janet_tuple_n(&val, 1);
                janet_tuple_sm_line(tup) = (int32_t) top.line;
                janet_tuple_sm_column(tup) = (int32_t) top.column;
                val = janet_wrap_tuple(tup);
            }
            push_arg(p, val);
            return;
        } else if (newtop->flags & PFLAG_READERMAC) {
            Janet *t = janet_tuple_begin(2);
            int c = newtop->flags & 0xFF;
            const char *which =
                (c == '\'') ? "quote" :
                (c == ',') ? "unquote" :
                (c == ';') ? "splice" :
                (c == '|') ? "short-fn" :
                (c == '~') ? "quasiquote" : "<unknown>";
            t[0] = janet_csymbolv(which);
            t[1] = val;
            /* Quote source mapping info */
            janet_tuple_sm_line(t) = (int32_t) newtop->line;
            janet_tuple_sm_column(t) = (int32_t) newtop->column;
            val = janet_wrap_tuple(janet_tuple_end(t));
        } else {
            return;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rsi, -0x8(%rbp)
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rsi
movq -0x10(%rbp), %rcx
movq 0x30(%rcx), %rax
addq $-0x1, %rax
movq %rax, 0x30(%rcx)
imulq $0x28, %rax, %rax
addq %rax, %rsi
leaq -0x38(%rbp), %rdi
movl $0x28, %edx
callq 0x12680
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rbp), %rcx
imulq $0x28, 0x30(%rcx), %rcx
addq %rcx, %rax
addq $-0x28, %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
testb $0x1, %al
jne 0x52044
jmp 0x5206a
movsd -0x8(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x52056
jmp 0x52087
movq -0x8(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x52087
jmp 0x520b3
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0x8(%rbp), %rax
movabsq $-0x4000000000000, %rcx # imm = 0xFFFC000000000000
cmpq %rcx, %rax
jne 0x520b3
movq -0x28(%rbp), %rax
movl %eax, -0x80(%rbp)
movq -0x8(%rbp), %rdi
callq 0x7b260
movl -0x80(%rbp), %ecx
movl %ecx, -0x8(%rax)
movq -0x20(%rbp), %rax
movl %eax, -0x7c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x7b260
movl -0x7c(%rbp), %ecx
movl %ecx, -0x4(%rax)
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x5214d
movq -0x40(%rbp), %rax
movl 0x4(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
cmpq $0x1, 0x30(%rax)
jne 0x5213b
movq -0x10(%rbp), %rax
movq 0x60(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x60(%rax)
leaq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x6a7d0
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rax
movl %eax, %ecx
movq -0x48(%rbp), %rax
movl %ecx, -0x8(%rax)
movq -0x20(%rbp), %rax
movl %eax, %ecx
movq -0x48(%rbp), %rax
movl %ecx, -0x4(%rax)
movq -0x48(%rbp), %rdi
movabsq $-0x4000000000000, %rsi # imm = 0xFFFC000000000000
callq 0x7b550
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x50fa0
jmp 0x522c9
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x522c0
movl $0x2, %edi
callq 0x6a740
movq %rax, -0x58(%rbp)
movq -0x40(%rbp), %rax
movl 0x8(%rax), %eax
andl $0xff, %eax
movl %eax, -0x5c(%rbp)
cmpl $0x27, -0x5c(%rbp)
jne 0x52198
leaq 0x43eac(%rip), %rax     # 0x96038
movq %rax, -0x88(%rbp)
jmp 0x52223
cmpl $0x2c, -0x5c(%rbp)
jne 0x521ae
leaq 0x42886(%rip), %rax     # 0x94a2b
movq %rax, -0x90(%rbp)
jmp 0x52215
cmpl $0x3b, -0x5c(%rbp)
jne 0x521c4
leaq 0x43f7e(%rip), %rax     # 0x96139
movq %rax, -0x98(%rbp)
jmp 0x52207
cmpl $0x7c, -0x5c(%rbp)
jne 0x521da
leaq 0x42862(%rip), %rax     # 0x94a33
movq %rax, -0xa0(%rbp)
jmp 0x521f9
movl -0x5c(%rbp), %edx
leaq 0x42858(%rip), %rax     # 0x94a3c
leaq 0x43e0e(%rip), %rcx     # 0x95ff9
cmpl $0x7e, %edx
cmoveq %rcx, %rax
movq %rax, -0xa0(%rbp)
movq -0xa0(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x98(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x68(%rbp), %rdi
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5800000000000, %rsi # imm = 0xFFFA800000000000
callq 0x7b550
movq %rax, %rcx
movq -0xa8(%rbp), %rax
movq %rcx, -0x70(%rbp)
movq -0x70(%rbp), %rcx
movq %rcx, (%rax)
movq -0x58(%rbp), %rax
movq -0x8(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rax
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, -0x8(%rax)
movq -0x40(%rbp), %rax
movq 0x18(%rax), %rax
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, -0x4(%rax)
movq -0x58(%rbp), %rdi
callq 0x6a7a0
movq %rax, %rdi
movabsq $-0x4000000000000, %rsi # imm = 0xFFFC000000000000
callq 0x7b550
movq %rax, -0x78(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x522c2
jmp 0x522c9
jmp 0x522c4
jmp 0x51ff3
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)