// File: /workspace/github_c_makefile_star2_O2/Oric4ever[P]lcc65/6502/build/../src/gen.c
// Function: gen
Node gen(Node p) {
    Node head, *last;
    for (last = &head; p; p = p->link)
        last = linearize(p, last, 0);
    for (p = head; p; p = p->x.next) {
        if (graph_output) print_graph_node(p);
        else tmpalloc(p);
    }
    return head;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %rax
testq %rbx, %rbx
je 0x1965e
movq %rbx, %rdi
movq %rax, %rsi
callq 0x19b06
movq 0x30(%rbx), %rbx
jmp 0x19648
movq %rsp, %rbx
leaq 0x10218(%rip), %r15     # 0x29880
pushq $0x1
popq %r13
movq (%rbx), %rbx
testq %rbx, %rbx
je 0x19ac0
cmpb $0x1, 0x18dc9(%rip)     # 0x32448
jne 0x196d3
movq 0x8(%rbx), %r14
movq 0x20(%rbx), %rbp
movq 0x28(%rbx), %r12
movl (%rbx), %eax
movq (%r15), %rsi
cmpq $0x25f, %rax            # imm = 0x25F
ja 0x1973e
movl %eax, %ecx
shrl $0x4, %ecx
leaq 0xe606(%rip), %rdx      # 0x27cb0
movq (%rdx,%rcx,8), %rcx
andl $0xf, %eax
leaq 0x7188(%rip), %rdx      # 0x20840
movsbl (%rax,%rdx), %r8d
leaq 0x69fc(%rip), %rdi      # 0x200c0
movq %rbx, %rdx
xorl %eax, %eax
callq 0x30c0
jmp 0x19762
movq 0x20(%rbx), %r12
movq 0x28(%rbx), %r14
movb $0x0, 0x60(%rbx)
leaq 0x6adb(%rip), %rax      # 0x201c1
movq %rax, 0x38(%rbx)
movb $0x2a, 0x40(%rbx)
movq %r12, %rdi
callq 0x1b413
movq %r14, %rdi
callq 0x1b413
movl (%rbx), %eax
movl %eax, %ecx
andl $-0x10, %ecx
cmpl $0xd0, %ecx
je 0x19830
cmpl $0x30, %ecx
je 0x1979b
cmpl $0x20, %ecx
jne 0x19849
movl 0x18f7f(%rip), %eax     # 0x326a8
movl %eax, 0x50(%rbx)
movq 0x8(%rbx), %rcx
addl 0x48(%rcx), %eax
movl %eax, 0x18f6f(%rip)     # 0x326a8
jmp 0x19849
addl $0xfffffda0, %eax       # imm = 0xFFFFFDA0
leaq 0x66ea(%rip), %rdx      # 0x1fe34
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x697f(%rip), %rdi      # 0x200d7
movq %rbx, %rdx
xorl %eax, %eax
callq 0x30c0
movl (%rbx), %eax
leal -0x10(%rax), %ecx
shrl $0x4, %ecx
cmpl $0x24, %ecx
ja 0x19947
leaq 0x6296(%rip), %rdx      # 0x1fa10
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movq (%r15), %rcx
leaq 0x6a06(%rip), %rdi      # 0x20193
movq %rcx, %rsi
movq %rbx, %rdx
movq %rbp, %r8
jmp 0x19940
andl $0xf, %eax
cmpl $0x9, %eax
je 0x19849
cmpl $0x3, 0x1001a(%rip)     # 0x297c8
jl 0x19849
cmpb $0x0, 0x60(%r14)
jne 0x19849
cmpq %rbx, 0x58(%r14)
jne 0x19849
movq 0x48(%r14), %rax
xorl %ecx, %ecx
cmpq $0x100, %rcx            # imm = 0x100
je 0x19849
leaq 0x8(%rcx), %rdx
leaq 0x18cad(%rip), %rsi     # 0x32490
cmpq %rax, (%rcx,%rsi)
movq %rdx, %rcx
jne 0x197cf
movzbl 0x40(%r12), %eax
leal -0x41(%rax), %ecx
cmpl $0x19, %ecx
ja 0x19849
movl $0x2020005, %edx        # imm = 0x2020005
btl %ecx, %edx
jae 0x19849
cmpw $0x0, 0x4(%r14)
jne 0x19849
movb $0x1, 0x60(%rbx)
movq 0x48(%r12), %rcx
movq %rcx, 0x48(%r14)
movq 0x38(%r12), %rcx
movq %rcx, 0x38(%r14)
movsbl %al, %edi
callq 0x1b4ec
movb %al, 0x40(%r14)
jmp 0x19849
movl 0x18e72(%rip), %eax     # 0x326a8
movl %eax, 0x50(%rbx)
movl 0x18e5d(%rip), %eax     # 0x3269c
movl %eax, 0x54(%rbx)
andl $0x0, 0x18e5f(%rip)     # 0x326a8
cmpb $0x0, 0x18bf8(%rip)     # 0x32448
jne 0x19947
movl (%rbx), %eax
leal -0x10(%rax), %ecx
shrl $0x4, %ecx
cmpl $0x24, %ecx
ja 0x19880
leaq 0x6112(%rip), %rdx      # 0x1f97c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpl $0x0, 0xff4e(%rip)      # 0x297c8
jne 0x19ae7
andl $0xf, %eax
decl %eax
xorl %ecx, %ecx
cmpl $0x2, %eax
jae 0x19950
movl 0x18e0e(%rip), %eax     # 0x326a4
leaq 0x18cf3(%rip), %r14     # 0x32590
cmpl $0x20, %ecx
je 0x19ad3
movl %r13d, %edx
shll %cl, %edx
btl %ecx, %eax
jae 0x19978
incl %ecx
addq $0x8, %r14
jmp 0x1989d
movq (%r14), %rdx
leaq 0x6864(%rip), %rdi      # 0x2012a
movq %r14, %rsi
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rsi
leaq 0x686e(%rip), %rdi      # 0x20148
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rcx
leaq 0x6883(%rip), %rdi      # 0x20174
movq %rcx, %rsi
movq %rbx, %rdx
movq %rbp, %r8
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rcx
leaq 0x6888(%rip), %rdi      # 0x20193
movq %rcx, %rsi
movq %rbx, %rdx
movq %r12, %r8
jmp 0x19940
movq (%r15), %rsi
movq (%r14), %rcx
leaq 0x67c9(%rip), %rdi      # 0x200ec
movq %r14, %rdx
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rcx
leaq 0x67d4(%rip), %rdi      # 0x2010b
movq %rcx, %rsi
movq %rbx, %rdx
movq %r14, %r8
xorl %eax, %eax
callq 0x30c0
addq $0x58, %rbx
jmp 0x1966c
movl 0x18d46(%rip), %edx     # 0x3269c
leaq 0x18b33(%rip), %rax     # 0x32490
cmpl $0x20, %ecx
je 0x19ad3
movl %r13d, %esi
shll %cl, %esi
btl %ecx, %edx
jae 0x19995
incl %ecx
addq $0x8, %rax
jmp 0x1995d
orl %eax, %edx
movl %edx, 0x18d24(%rip)     # 0x326a4
movq (%r14), %rdi
movq %rdi, 0x48(%rbx)
movb $0x59, 0x40(%rbx)
callq 0x19518
movq (%r14), %rax
jmp 0x199a8
orl %edx, %esi
movl %esi, 0x18cff(%rip)     # 0x3269c
movq (%rax), %rax
movq %rax, 0x48(%rbx)
movb $0x5a, 0x40(%rbx)
movq (%rax), %rax
movq %rax, 0x38(%rbx)
jmp 0x19947
movq 0x20(%rbx), %rcx
movl 0xfe0d(%rip), %edx      # 0x297c8
testl %edx, %edx
sete %sil
movl %eax, %edi
andl $0xf, %edi
cmpl $0x9, %edi
setne %dil
orb %sil, %dil
jne 0x19a63
movb $0x1, 0x60(%rbx)
movq 0x48(%rcx), %rax
movq %rax, 0x48(%rbx)
movq (%rax), %rax
movq %rax, 0x38(%rbx)
movb 0x40(%rcx), %al
movb %al, 0x40(%rbx)
jmp 0x19947
movl %eax, %ecx
andl $0xf, %ecx
cmpl $0x9, %ecx
je 0x19947
cmpw $0x0, 0x4(%rbx)
je 0x19ab5
cmpl $0x8, %ecx
jne 0x19880
jmp 0x19947
andl $0xf, %eax
cmpl $0x8, %eax
je 0x19947
jmp 0x19783
movq (%r15), %rcx
leaq 0x675d(%rip), %rdi      # 0x20193
movq %rcx, %rsi
movq %rbx, %rdx
movq %rbp, %r8
xorl %eax, %eax
callq 0x30c0
movl (%rbx), %eax
andl $0xf, %eax
cmpl $0x9, %eax
jne 0x19947
movq (%r15), %rcx
leaq 0x6745(%rip), %rdi      # 0x201a3
jmp 0x1990b
cmpl $0x3, %edx
jl 0x19880
cmpw $0x1, 0x4(%rbx)
jg 0x19880
movzbl 0x40(%rcx), %edx
leal -0x41(%rdx), %esi
cmpl $0x19, %esi
ja 0x19880
movl $0x2020005, %edi        # imm = 0x2020005
btl %esi, %edi
jae 0x19880
movb $0x1, 0x60(%rbx)
movq 0x48(%rcx), %rax
movq %rax, 0x48(%rbx)
movq (%rax), %rax
movq %rax, 0x38(%rbx)
movsbl %dl, %edi
callq 0x1b4ec
jmp 0x199ec
movl $0xd8, (%rbx)
jmp 0x19947
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6767(%rip), %rdi      # 0x20241
callq 0x3170
pushq $0x1
popq %rdi
callq 0x31a0
leaq 0x6730(%rip), %rdi      # 0x2021e
leaq 0x64c8(%rip), %rsi      # 0x1ffbd
leaq 0x6733(%rip), %rcx      # 0x2022f
movl $0x1c9, %edx            # imm = 0x1C9
callq 0x30d0