// File: /workspace/github_c_makefile_star2_O0/janet-lang[P]janet/src/core/os.c
// Function: janet_proc_get
static int janet_proc_get(void *p, Janet key, Janet *out) {
    JanetProc *proc = (JanetProc *)p;
    if (janet_keyeq(key, "in")) {
        *out = (NULL == proc->in) ? janet_wrap_nil() : janet_wrap_abstract(proc->in);
        return 1;
    }
    if (janet_keyeq(key, "out")) {
        *out = (NULL == proc->out) ? janet_wrap_nil() : janet_wrap_abstract(proc->out);
        return 1;
    }
    if (janet_keyeq(key, "err")) {
        *out = (NULL == proc->err) ? janet_wrap_nil() : janet_wrap_abstract(proc->err);
        return 1;
    }
#ifndef JANET_WINDOWS
    if (janet_keyeq(key, "pid")) {
        *out = janet_wrap_number(proc->pid);
        return 1;
    }
#endif
    if ((-1 != proc->return_code) && janet_keyeq(key, "return-code")) {
        *out = janet_wrap_integer(proc->return_code);
        return 1;
    }
    if (!janet_checktype(key, JANET_KEYWORD)) return 0;
    return janet_getmethod(janet_unwrap_keyword(key), proc_methods, out);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rsi, -0x10(%rbp)
movq %rdi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
leaq 0x369d8(%rip), %rsi     # 0x853c2
callq 0x1b010
cmpl $0x0, %eax
je 0x4ea60
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq 0x10(%rcx), %rax
jne 0x4ea2b
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x7b460
movq %rax, %rcx
movq -0x70(%rbp), %rax
movq %rcx, -0x30(%rbp)
movq -0x30(%rbp), %rcx
movq %rcx, (%rax)
jmp 0x4ea54
movq -0x28(%rbp), %rax
movq 0x10(%rax), %rdi
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
callq 0x7b610
movq %rax, %rcx
movq -0x70(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4ec7e
movq -0x10(%rbp), %rdi
leaq 0x3db81(%rip), %rsi     # 0x8c5ec
callq 0x1b010
cmpl $0x0, %eax
je 0x4eae1
movq -0x20(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq 0x18(%rcx), %rax
jne 0x4eaac
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x7b460
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x40(%rbp)
movq -0x40(%rbp), %rcx
movq %rcx, (%rax)
jmp 0x4ead5
movq -0x28(%rbp), %rax
movq 0x18(%rax), %rdi
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
callq 0x7b610
movq %rax, %rcx
movq -0x78(%rbp), %rax
movq %rcx, -0x48(%rbp)
movq -0x48(%rbp), %rcx
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4ec7e
movq -0x10(%rbp), %rdi
leaq 0x38f42(%rip), %rsi     # 0x87a2e
callq 0x1b010
cmpl $0x0, %eax
je 0x4eb62
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq 0x20(%rcx), %rax
jne 0x4eb2d
movabsq $-0x77fffffffffff, %rdi # imm = 0xFFF8800000000001
callq 0x7b460
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0x50(%rbp)
movq -0x50(%rbp), %rcx
movq %rcx, (%rax)
jmp 0x4eb56
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rdi
movabsq $-0x1000000000000, %rsi # imm = 0xFFFF000000000000
callq 0x7b610
movq %rax, %rcx
movq -0x80(%rbp), %rax
movq %rcx, -0x58(%rbp)
movq -0x58(%rbp), %rcx
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4ec7e
movq -0x10(%rbp), %rdi
leaq 0x4495d(%rip), %rsi     # 0x934ca
callq 0x1b010
cmpl $0x0, %eax
je 0x4ebb1
movq -0x20(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x28(%rbp), %rax
cvtsi2sdl 0x4(%rax), %xmm0
callq 0x7b820
movq %rax, %rcx
movq -0x88(%rbp), %rax
movq %rcx, -0x60(%rbp)
movq -0x60(%rbp), %rcx
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4ec7e
movq -0x28(%rbp), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl 0x8(%rcx), %eax
je 0x4ec0b
movq -0x10(%rbp), %rdi
leaq 0x44a38(%rip), %rsi     # 0x93602
callq 0x1b010
cmpl $0x0, %eax
je 0x4ec0b
movq -0x20(%rbp), %rax
movq %rax, -0x90(%rbp)
movq -0x28(%rbp), %rax
cvtsi2sdl 0x8(%rax), %xmm0
callq 0x7b820
movq %rax, %rcx
movq -0x90(%rbp), %rax
movq %rcx, -0x68(%rbp)
movq -0x68(%rbp), %rcx
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x4ec7e
xorl %eax, %eax
testb $0x1, %al
jne 0x4ec13
jmp 0x4ec39
movsd -0x10(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x4ec25
jmp 0x4ec5f
movq -0x10(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
cmpq $0x0, %rax
je 0x4ec5f
jmp 0x4ec56
movabsq $-0x800000000000, %rax  # imm = 0xFFFF800000000000
andq -0x10(%rbp), %rax
movabsq $-0x5000000000000, %rcx # imm = 0xFFFB000000000000
cmpq %rcx, %rax
je 0x4ec5f
movl $0x0, -0x4(%rbp)
jmp 0x4ec7e
movq -0x10(%rbp), %rdi
callq 0x7b260
movq %rax, %rdi
movq -0x20(%rbp), %rdx
leaq 0x5fcda(%rip), %rsi     # 0xae950
callq 0x1ae90
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x90, %rsp
popq %rbp
retq
nopw (%rax,%rax)