// File: /workspace/github_c_makefile_star2_O3/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
testq %rdi, %rdi
je 0x1abb9
movq %rdi, %rbx
movq %rsp, %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1b05c
movq 0x30(%rbx), %rbx
testq %rbx, %rbx
jne 0x1ab95
movq (%rsp), %rbx
testq %rbx, %rbx
jne 0x1abb9
xorl %eax, %eax
jmp 0x1b029
leaq 0xfcc0(%rip), %r15      # 0x2a880
leaq 0x6e49(%rip), %r13      # 0x21a10
cmpb $0x1, 0x1887a(%rip)     # 0x33448
jne 0x1ac22
movq 0x8(%rbx), %r14
movq 0x20(%rbx), %rbp
movq 0x28(%rbx), %r12
movl (%rbx), %eax
movq (%r15), %rsi
cmpq $0x25f, %rax            # imm = 0x25F
ja 0x1ac89
movl %eax, %ecx
shrl $0x4, %ecx
leaq 0xe0b7(%rip), %rdx      # 0x28cb0
movq (%rdx,%rcx,8), %rcx
andl $0xf, %eax
leaq 0x7c39(%rip), %rdx      # 0x22840
movsbl (%rax,%rdx), %r8d
leaq 0x74ad(%rip), %rdi      # 0x220c0
movq %rbx, %rdx
xorl %eax, %eax
callq 0x30c0
jmp 0x1acad
movq 0x20(%rbx), %r12
movq 0x28(%rbx), %r14
movb $0x0, 0x60(%rbx)
leaq 0x758c(%rip), %rax      # 0x221c1
movq %rax, 0x38(%rbx)
movb $0x2a, 0x40(%rbx)
movq %r12, %rdi
callq 0x1d255
movq %r14, %rdi
callq 0x1d255
movl (%rbx), %eax
movl %eax, %ecx
andl $-0x10, %ecx
cmpl $0xd0, %ecx
je 0x1ad87
cmpl $0x30, %ecx
je 0x1ace0
cmpl $0x20, %ecx
jne 0x1ada3
movl 0x18a34(%rip), %eax     # 0x336a8
movl %eax, 0x50(%rbx)
movq 0x8(%rbx), %rcx
addl 0x48(%rcx), %eax
movl %eax, 0x18a24(%rip)     # 0x336a8
jmp 0x1ada3
addl $0xfffffda0, %eax       # imm = 0xFFFFFDA0
leaq 0x719f(%rip), %rdx      # 0x21e34
movslq (%rdx,%rax,4), %rcx
addq %rdx, %rcx
leaq 0x7434(%rip), %rdi      # 0x220d7
movq %rbx, %rdx
xorl %eax, %eax
callq 0x30c0
movl (%rbx), %eax
leal -0x10(%rax), %ecx
shrl $0x4, %ecx
cmpl $0x24, %ecx
ja 0x1aea2
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
movq (%r15), %rcx
leaq 0x74c1(%rip), %rdi      # 0x22193
movq %rcx, %rsi
movq %rbx, %rdx
movq %rbp, %r8
jmp 0x1ae9b
andl $0xf, %eax
cmpl $0x9, %eax
je 0x1ada3
cmpl $0x3, 0xfad5(%rip)      # 0x2a7c8
jl 0x1ada3
cmpb $0x0, 0x60(%r14)
jne 0x1ada3
cmpq %rbx, 0x58(%r14)
jne 0x1ada3
movq 0x48(%r14), %rax
cmpq %rax, 0x18777(%rip)     # 0x33490
je 0x1ad43
movq $-0x1, %rcx
cmpq $0x1e, %rcx
je 0x1ada3
leaq 0x1(%rcx), %rdx
leaq 0x1875d(%rip), %rsi     # 0x33490
cmpq %rax, 0x10(%rsi,%rcx,8)
movq %rdx, %rcx
jne 0x1ad22
cmpq $0x1e, %rdx
ja 0x1ada3
movzbl 0x40(%r12), %eax
leal -0x41(%rax), %ecx
cmpl $0x19, %ecx
ja 0x1ada3
movl $0x2020005, %edx        # imm = 0x2020005
btl %ecx, %edx
jae 0x1ada3
cmpw $0x0, 0x4(%r14)
jne 0x1ada3
movb $0x1, 0x60(%rbx)
movq 0x48(%r12), %rcx
movq %rcx, 0x48(%r14)
movq 0x38(%r12), %rcx
movq %rcx, 0x38(%r14)
movsbl %al, %edi
callq 0x1d32e
movb %al, 0x40(%r14)
jmp 0x1ada3
movl 0x1891b(%rip), %eax     # 0x336a8
movl %eax, 0x50(%rbx)
movl 0x18906(%rip), %eax     # 0x3369c
movl %eax, 0x54(%rbx)
movl $0x0, 0x18905(%rip)     # 0x336a8
cmpb $0x0, 0x1869e(%rip)     # 0x33448
jne 0x1aea2
movl (%rbx), %eax
leal -0x10(%rax), %ecx
shrl $0x4, %ecx
cmpl $0x24, %ecx
ja 0x1adda
leaq 0x6bb8(%rip), %rdx      # 0x2197c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
cmpl $0x0, 0xf9f4(%rip)      # 0x2a7c8
jne 0x1b03d
andl $0xf, %eax
decl %eax
xorl %ecx, %ecx
cmpl $0x2, %eax
jae 0x1aeb4
movl 0x188b4(%rip), %eax     # 0x336a4
leaq 0x18799(%rip), %r14     # 0x33590
movl $0x1, %edx
shll %cl, %edx
btl %ecx, %eax
jae 0x1aedd
incl %ecx
addq $0x8, %r14
cmpl $0x20, %ecx
jne 0x1adf7
jmp 0x1b038
movq (%r14), %rdx
leaq 0x7309(%rip), %rdi      # 0x2212a
movq %r14, %rsi
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rsi
leaq 0x7313(%rip), %rdi      # 0x22148
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rcx
leaq 0x7328(%rip), %rdi      # 0x22174
movq %rcx, %rsi
movq %rbx, %rdx
movq %rbp, %r8
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rcx
leaq 0x732d(%rip), %rdi      # 0x22193
movq %rcx, %rsi
movq %rbx, %rdx
movq %r12, %r8
jmp 0x1ae9b
movq (%r15), %rsi
movq (%r14), %rcx
leaq 0x726e(%rip), %rdi      # 0x220ec
movq %r14, %rdx
xorl %eax, %eax
callq 0x30c0
movq (%r15), %rcx
leaq 0x7279(%rip), %rdi      # 0x2210b
movq %rcx, %rsi
movq %rbx, %rdx
movq %r14, %r8
xorl %eax, %eax
callq 0x30c0
movq 0x58(%rbx), %rbx
testq %rbx, %rbx
jne 0x1abc7
jmp 0x1b025
movl 0x187e2(%rip), %edx     # 0x3369c
leaq 0x185cf(%rip), %rax     # 0x33490
movl $0x1, %esi
shll %cl, %esi
btl %ecx, %edx
jae 0x1aefa
incl %ecx
addq $0x8, %rax
cmpl $0x20, %ecx
jne 0x1aec1
jmp 0x1b038
orl %eax, %edx
movl %edx, 0x187bf(%rip)     # 0x336a4
movq (%r14), %rdi
movq %rdi, 0x48(%rbx)
movb $0x59, 0x40(%rbx)
callq 0x1aa39
movq (%r14), %rax
jmp 0x1af0d
orl %edx, %esi
movl %esi, 0x1879a(%rip)     # 0x3369c
movq (%rax), %rax
movq %rax, 0x48(%rbx)
movb $0x5a, 0x40(%rbx)
movq (%rax), %rax
movq %rax, 0x38(%rbx)
jmp 0x1aea2
movq 0x20(%rbx), %rcx
movl 0xf8a8(%rip), %edx      # 0x2a7c8
testl %edx, %edx
sete %sil
movl %eax, %edi
andl $0xf, %edi
cmpl $0x9, %edi
setne %dil
orb %sil, %dil
jne 0x1afc8
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 0x1aea2
movl %eax, %ecx
andl $0xf, %ecx
cmpl $0x9, %ecx
je 0x1aea2
cmpw $0x0, 0x4(%rbx)
je 0x1b01a
cmpl $0x8, %ecx
jne 0x1adda
jmp 0x1aea2
andl $0xf, %eax
cmpl $0x8, %eax
je 0x1aea2
jmp 0x1acc8
movq (%r15), %rcx
leaq 0x71f8(%rip), %rdi      # 0x22193
movq %rcx, %rsi
movq %rbx, %rdx
movq %rbp, %r8
xorl %eax, %eax
callq 0x30c0
movl (%rbx), %eax
andl $0xf, %eax
cmpl $0x9, %eax
jne 0x1aea2
movq (%r15), %rcx
leaq 0x71e0(%rip), %rdi      # 0x221a3
jmp 0x1ae66
cmpl $0x3, %edx
jl 0x1adda
cmpw $0x1, 0x4(%rbx)
jg 0x1adda
movzbl 0x40(%rcx), %edx
leal -0x41(%rdx), %esi
cmpl $0x19, %esi
ja 0x1adda
movl $0x2020005, %edi        # imm = 0x2020005
btl %esi, %edi
jae 0x1adda
movb $0x1, 0x60(%rbx)
movq 0x48(%rcx), %rax
movq %rax, 0x48(%rbx)
movq (%rax), %rax
movq %rax, 0x38(%rbx)
movsbl %dl, %edi
callq 0x1d32e
jmp 0x1af51
movl $0xd8, (%rbx)
jmp 0x1aea2
movq (%rsp), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3338
leaq 0x71da(%rip), %rdi      # 0x2221e
leaq 0x6f72(%rip), %rsi      # 0x21fbd
leaq 0x71dd(%rip), %rcx      # 0x2222f
movl $0x1c9, %edx            # imm = 0x1C9
callq 0x30d0