// File: /workspace/github_c_makefile_star2_O0/ebb[P]chisa/bootstrap1.c
// Function: pass1Toplevel
long pass1Toplevel(long def)
{
    long x8, x7, x6, x5, blks, xfer, stmts, x4, x3, forms, defines, expr, blk, funcArgs, f, x2, consArgs, c, x1, constant, x;
    goto L1;
L1:
    switch (runtime_class(def)) {
    case CLASS_HiDefineVar:
        x = prim_fetch(def, runtime_makeNumber(0));
        constant = prim_fetch(def, runtime_makeNumber(1));
        goto L2;
    case CLASS_HiDefineCons:
        c = prim_fetch(def, runtime_makeNumber(0));
        consArgs = prim_fetch(def, runtime_makeNumber(1));
        goto L3;
    case CLASS_HiDefineFunc:
        f = prim_fetch(def, runtime_makeNumber(0));
        funcArgs = prim_fetch(def, runtime_makeNumber(1));
        blk = prim_fetch(def, runtime_makeNumber(2));
        goto L4;
    default:
        runtime_matchFailure(__LINE__);
    }
L2:
    x1 = FiDefineVar(x, constant);
    return x1;
L3:
    x2 = FiDefineCons(c, consArgs);
    return x2;
L4:
    switch (runtime_class(blk)) {
    case CLASS_HiBlock:
        expr = prim_fetch(blk, runtime_makeNumber(0));
        defines = prim_fetch(blk, runtime_makeNumber(1));
        goto L5;
    default:
        runtime_matchFailure(__LINE__);
    }
L5:
    switch (runtime_class(expr)) {
    case CLASS_HiBegin:
        forms = prim_fetch(expr, runtime_makeNumber(0));
        goto L6;
    default:
        runtime_matchFailure(__LINE__);
    }
L6:
    x3 = P1TailCont();
    x4 = pass1Begin(forms, x3);
    goto L7;
L7:
    switch (runtime_class(x4)) {
    case CLASS_Triple:
        stmts = prim_fetch(x4, runtime_makeNumber(0));
        xfer = prim_fetch(x4, runtime_makeNumber(1));
        blks = prim_fetch(x4, runtime_makeNumber(2));
        goto L8;
    default:
        runtime_matchFailure(__LINE__);
    }
L8:
    x5 = prim_genLabel();
    x6 = FiBlock(x5, nil, stmts, xfer);
    x7 = prim_cons(x6, blks);
    x8 = FiDefineFunc(f, funcArgs, x7);
    return x8;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x5690
movzwl %ax, %ecx
movl %ecx, -0xbc(%rbp)
subw $0x5, %ax
je 0x14ba
jmp 0x1499
movl -0xbc(%rbp), %eax
subl $0x6, %eax
je 0x156e
jmp 0x14aa
movl -0xbc(%rbp), %eax
subl $0x7, %eax
je 0x1514
jmp 0x15ea
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x57a0
movq -0xd0(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0xb8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xc8(%rbp)
movl $0x1, %edi
callq 0x57a0
movq -0xc8(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0xb0(%rbp)
jmp 0x15f6
movq -0x10(%rbp), %rax
movq %rax, -0xe0(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x57a0
movq -0xe0(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0xa0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd8(%rbp)
movl $0x1, %edi
callq 0x57a0
movq -0xd8(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x98(%rbp)
jmp 0x1620
movq -0x10(%rbp), %rax
movq %rax, -0xf8(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x57a0
movq -0xf8(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xf0(%rbp)
movl $0x1, %edi
callq 0x57a0
movq -0xf0(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xe8(%rbp)
movl $0x2, %edi
callq 0x57a0
movq -0xe8(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x78(%rbp)
jmp 0x164a
movl $0x9a, %edi
callq 0x5c50
jmp 0x15f6
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x1820
movq %rax, -0xa8(%rbp)
movq -0xa8(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1807
movq -0xa0(%rbp), %rdi
movq -0x98(%rbp), %rsi
callq 0x1850
movq %rax, -0x90(%rbp)
movq -0x90(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0x1807
movq -0x78(%rbp), %rdi
callq 0x5690
subw $0xb, %ax
jne 0x16ac
jmp 0x165b
movq -0x78(%rbp), %rax
movq %rax, -0x108(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x57a0
movq -0x108(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x70(%rbp)
movq -0x78(%rbp), %rax
movq %rax, -0x100(%rbp)
movl $0x1, %edi
callq 0x57a0
movq -0x100(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x68(%rbp)
jmp 0x16b8
movl $0xa9, %edi
callq 0x5c50
jmp 0x16b8
movq -0x70(%rbp), %rdi
callq 0x5690
subw $0xa, %ax
jne 0x16f2
jmp 0x16c9
movq -0x70(%rbp), %rax
movq %rax, -0x110(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x57a0
movq -0x110(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x60(%rbp)
jmp 0x16fe
movl $0xb1, %edi
callq 0x5c50
jmp 0x16fe
callq 0x1350
movq %rax, -0x58(%rbp)
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
callq 0x1880
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x5690
subw $0x20, %ax
jne 0x17a2
jmp 0x1729
movq -0x50(%rbp), %rax
movq %rax, -0x128(%rbp)
xorl %eax, %eax
movl %eax, %edi
callq 0x57a0
movq -0x128(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x48(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x120(%rbp)
movl $0x1, %edi
callq 0x57a0
movq -0x120(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x40(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x118(%rbp)
movl $0x2, %edi
callq 0x57a0
movq -0x118(%rbp), %rdi
movq %rax, %rsi
callq 0x5730
movq %rax, -0x38(%rbp)
jmp 0x17ae
movl $0xbf, %edi
callq 0x5c50
jmp 0x17ae
callq 0x5d60
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x27a86(%rip), %rax     # 0x29248
movq (%rax), %rsi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
callq 0x1bd0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x5cc0
movq %rax, -0x20(%rbp)
movq -0x88(%rbp), %rdi
movq -0x80(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x1c10
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopw %cs:(%rax,%rax)