// File: /workspace/github_c_makefile_star2_O0/janet-lang[P]janet/src/core/parse.c
// Function: janet_wrap_parse_state
static Janet janet_wrap_parse_state(JanetParseState *s, Janet *args,
                                    uint8_t *buff, uint32_t bufcount) {
    JanetTable *state = janet_table(0);
    const uint8_t *buffer;
    int add_buffer = 0;
    const char *type = NULL;

    if (s->flags & PFLAG_CONTAINER) {
        JanetArray *container_args = janet_array(s->argn);
        for (int32_t i = 0; i < s->argn; i++) {
            janet_array_push(container_args, args[i]);
        }
        janet_table_put(state, janet_ckeywordv("args"),
                        janet_wrap_array(container_args));
    }

    if (s->flags & PFLAG_PARENS || s->flags & PFLAG_SQRBRACKETS) {
        if (s->flags & PFLAG_ATSYM) {
            type = "array";
        } else {
            type = "tuple";
        }
    } else if (s->flags & PFLAG_CURLYBRACKETS) {
        if (s->flags & PFLAG_ATSYM) {
            type = "table";
        } else {
            type = "struct";
        }
    } else if (s->flags & PFLAG_STRING || s->flags & PFLAG_LONGSTRING) {
        if (s->flags & PFLAG_BUFFER) {
            type = "buffer";
        } else {
            type = "string";
        }
        add_buffer = 1;
    } else if (s->flags & PFLAG_COMMENT) {
        type = "comment";
        add_buffer = 1;
    } else if (s->flags & PFLAG_TOKEN) {
        type = "token";
        add_buffer = 1;
    } else if (s->flags & PFLAG_ATSYM) {
        type = "at";
    } else if (s->flags & PFLAG_READERMAC) {
        int c = s->flags & 0xFF;
        type = (c == '\'') ? "quote" :
               (c == ',') ? "unquote" :
               (c == ';') ? "splice" :
               (c == '~') ? "quasiquote" : "<reader>";
    } else {
        type = "root";
    }

    if (type) {
        janet_table_put(state, janet_ckeywordv("type"),
                        janet_ckeywordv(type));
    }

    if (add_buffer) {
        buffer = janet_string(buff, bufcount);
        janet_table_put(state, janet_ckeywordv("buffer"), janet_wrap_string(buffer));
    }

    janet_table_put(state, janet_ckeywordv("line"), janet_wrap_integer(s->line));
    janet_table_put(state, janet_ckeywordv("column"), janet_wrap_integer(s->column));
    return janet_wrap_table(state);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
xorl %edi, %edi
callq 0x692f0
movq %rax, -0x30(%rbp)
movl $0x0, -0x3c(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x53184
movq -0x10(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x13180
movq %rax, -0x50(%rbp)
movl $0x0, -0x54(%rbp)
movl -0x54(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x5312c
movq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rax
movslq -0x54(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x13510
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x53100
movq -0x30(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x46265(%rip), %rdi     # 0x993a3
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x7b550
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rdi
movabsq $-0x4800000000000, %rsi # imm = 0xFFFB800000000000
callq 0x7b610
movq -0xb8(%rbp), %rdi
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x697e0
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x400, %eax            # imm = 0x400
cmpl $0x0, %eax
jne 0x531a6
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x800, %eax            # imm = 0x800
cmpl $0x0, %eax
je 0x531d4
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x531c4
leaq 0x2c958(%rip), %rax     # 0x7fb16
movq %rax, -0x48(%rbp)
jmp 0x531cf
leaq 0x2c46c(%rip), %rax     # 0x7f637
movq %rax, -0x48(%rbp)
jmp 0x533a0
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1000, %eax           # imm = 0x1000
cmpl $0x0, %eax
je 0x53213
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x53203
leaq 0x44798(%rip), %rax     # 0x97995
movq %rax, -0x48(%rbp)
jmp 0x5320e
leaq 0x35fc8(%rip), %rax     # 0x891d2
movq %rax, -0x48(%rbp)
jmp 0x5339e
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x2000, %eax           # imm = 0x2000
cmpl $0x0, %eax
jne 0x53235
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x4000, %eax           # imm = 0x4000
cmpl $0x0, %eax
je 0x5326a
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x200, %eax            # imm = 0x200
cmpl $0x0, %eax
je 0x53253
leaq 0x39998(%rip), %rax     # 0x8cbe5
movq %rax, -0x48(%rbp)
jmp 0x5325e
leaq 0x2ca43(%rip), %rax     # 0x7fc9d
movq %rax, -0x48(%rbp)
movl $0x1, -0x3c(%rbp)
jmp 0x5339c
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x20000, %eax          # imm = 0x20000
cmpl $0x0, %eax
je 0x53292
leaq 0x41829(%rip), %rax     # 0x94aab
movq %rax, -0x48(%rbp)
movl $0x1, -0x3c(%rbp)
jmp 0x5339a
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x40000, %eax          # imm = 0x40000
cmpl $0x0, %eax
je 0x532ba
leaq 0x41809(%rip), %rax     # 0x94ab3
movq %rax, -0x48(%rbp)
movl $0x1, -0x3c(%rbp)
jmp 0x53398
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x532db
leaq 0x2ca4b(%rip), %rax     # 0x7fd1d
movq %rax, -0x48(%rbp)
jmp 0x53396
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x8000, %eax           # imm = 0x8000
cmpl $0x0, %eax
je 0x53389
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
andl $0xff, %eax
movl %eax, -0x6c(%rbp)
cmpl $0x27, -0x6c(%rbp)
jne 0x53315
leaq 0x42d2c(%rip), %rax     # 0x96038
movq %rax, -0xc0(%rbp)
jmp 0x5337c
cmpl $0x2c, -0x6c(%rbp)
jne 0x5332b
leaq 0x41709(%rip), %rax     # 0x94a2b
movq %rax, -0xc8(%rbp)
jmp 0x5336e
cmpl $0x3b, -0x6c(%rbp)
jne 0x53341
leaq 0x42e01(%rip), %rax     # 0x96139
movq %rax, -0xd0(%rbp)
jmp 0x53360
movl -0x6c(%rbp), %edx
leaq 0x4176e(%rip), %rax     # 0x94ab9
leaq 0x42ca7(%rip), %rcx     # 0x95ff9
cmpl $0x7e, %edx
cmoveq %rcx, %rax
movq %rax, -0xd0(%rbp)
movq -0xd0(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0xc0(%rbp)
movq -0xc0(%rbp), %rax
movq %rax, -0x48(%rbp)
jmp 0x53394
leaq 0x36c2b(%rip), %rax     # 0x89fbb
movq %rax, -0x48(%rbp)
jmp 0x53396
jmp 0x53398
jmp 0x5339a
jmp 0x5339c
jmp 0x5339e
jmp 0x533a0
cmpq $0x0, -0x48(%rbp)
je 0x53407
movq -0x30(%rbp), %rax
movq %rax, -0xd8(%rbp)
leaq 0x3c358(%rip), %rdi     # 0x8f711
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x7b550
movq %rax, -0x78(%rbp)
movq -0x48(%rbp), %rdi
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x7b550
movq -0xd8(%rbp), %rdi
movq %rax, -0x80(%rbp)
movq -0x78(%rbp), %rsi
movq -0x80(%rbp), %rdx
callq 0x697e0
cmpl $0x0, -0x3c(%rbp)
je 0x53481
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0x64880
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0xe0(%rbp)
leaq 0x397b6(%rip), %rdi     # 0x8cbe5
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x7b550
movq %rax, -0x88(%rbp)
movq -0x38(%rbp), %rdi
movabsq $-0x6000000000000, %rsi # imm = 0xFFFA000000000000
callq 0x7b550
movq -0xe0(%rbp), %rdi
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdx
callq 0x697e0
movq -0x30(%rbp), %rax
movq %rax, -0xf0(%rbp)
leaq 0x32028(%rip), %rdi     # 0x854bb
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x7b550
movq %rax, -0x98(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
cvtsi2sd %eax, %xmm0
callq 0x7b820
movq -0xf0(%rbp), %rdi
movq %rax, -0xa0(%rbp)
movq -0x98(%rbp), %rsi
movq -0xa0(%rbp), %rdx
callq 0x697e0
movq -0x30(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq 0x31fd2(%rip), %rdi     # 0x854c7
callq 0x68d90
movq %rax, %rdi
movabsq $-0x5000000000000, %rsi # imm = 0xFFFB000000000000
callq 0x7b550
movq %rax, -0xa8(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
cvtsi2sd %eax, %xmm0
callq 0x7b820
movq -0xe8(%rbp), %rdi
movq %rax, -0xb0(%rbp)
movq -0xa8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
callq 0x697e0
movq -0x30(%rbp), %rdi
movabsq $-0x3800000000000, %rsi # imm = 0xFFFC800000000000
callq 0x7b610
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
nopl (%rax)