// File: Davidc2525[P]Leaf/assembly/interface/Program.cpp
// Function: LEAF::ASSEMBLY::Program::Program(LEAF::ASSEMBLY::SlotVisitor*)
Program::Program(SlotVisitor *v)
{
    visitor = v;
    sections.insert(make_pair(Sections::text,
                              new Section(visitor)));
    sections.insert(make_pair(Sections::data,
                              new Section(visitor, Sections::data)));
    sections.insert(make_pair(Sections::bss,
                              new Section(visitor, Sections::bss)));
    sections.insert(make_pair(Sections::_extern,
                              new Section(visitor, Sections::_extern)));
    sections.insert(make_pair(Sections::global,
                              new Section(visitor, Sections::global)));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x120(%rbp)
addq $0x8, %rdi
movq %rdi, -0x130(%rbp)
movq %rdi, %rax
movq %rax, -0x128(%rbp)
callq 0x1c440
movq -0x120(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, (%rax)
movl $0x2, -0x24(%rbp)
movl $0x28, %edi
callq 0x62e0
movq %rax, -0x118(%rbp)
jmp 0x1be50
movq -0x118(%rbp), %rdi
movq -0x120(%rbp), %rax
movq (%rax), %rsi
callq 0x18590
jmp 0x1be68
movq -0x118(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq -0x24(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x1c4a0
movq %rdx, -0x140(%rbp)
movl %eax, -0x134(%rbp)
jmp 0x1be8f
movq -0x130(%rbp), %rdi
movq -0x140(%rbp), %rax
movl -0x134(%rbp), %ecx
movl %ecx, -0x20(%rbp)
movq %rax, -0x18(%rbp)
leaq -0x20(%rbp), %rsi
callq 0x1c460
movb %dl, -0x149(%rbp)
movq %rax, -0x148(%rbp)
jmp 0x1bec2
movq -0x120(%rbp), %rax
movb -0x149(%rbp), %cl
movq -0x148(%rbp), %rdx
movq %rdx, -0x50(%rbp)
movb %cl, -0x48(%rbp)
addq $0x8, %rax
movq %rax, -0x160(%rbp)
movl $0x0, -0x64(%rbp)
movl $0x28, %edi
callq 0x62e0
movq %rax, -0x158(%rbp)
jmp 0x1bf02
movq -0x158(%rbp), %rdi
movq -0x120(%rbp), %rax
movq (%rax), %rsi
xorl %edx, %edx
callq 0x183a0
jmp 0x1bf1c
movq -0x158(%rbp), %rax
movq %rax, -0x70(%rbp)
leaq -0x64(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0x1c4a0
movq %rdx, -0x170(%rbp)
movl %eax, -0x164(%rbp)
jmp 0x1bf43
movq -0x160(%rbp), %rdi
movq -0x170(%rbp), %rax
movl -0x164(%rbp), %ecx
movl %ecx, -0x60(%rbp)
movq %rax, -0x58(%rbp)
leaq -0x60(%rbp), %rsi
callq 0x1c460
movb %dl, -0x179(%rbp)
movq %rax, -0x178(%rbp)
jmp 0x1bf76
movq -0x120(%rbp), %rax
movb -0x179(%rbp), %cl
movq -0x178(%rbp), %rdx
movq %rdx, -0x80(%rbp)
movb %cl, -0x78(%rbp)
addq $0x8, %rax
movq %rax, -0x190(%rbp)
movl $0x1, -0x94(%rbp)
movl $0x28, %edi
callq 0x62e0
movq %rax, -0x188(%rbp)
jmp 0x1bfb9
movq -0x188(%rbp), %rdi
movq -0x120(%rbp), %rax
movq (%rax), %rsi
movl $0x1, %edx
callq 0x183a0
jmp 0x1bfd6
movq -0x188(%rbp), %rax
movq %rax, -0xa0(%rbp)
leaq -0x94(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x1c4a0
movq %rdx, -0x1a0(%rbp)
movl %eax, -0x194(%rbp)
jmp 0x1c006
movq -0x190(%rbp), %rdi
movq -0x1a0(%rbp), %rax
movl -0x194(%rbp), %ecx
movl %ecx, -0x90(%rbp)
movq %rax, -0x88(%rbp)
leaq -0x90(%rbp), %rsi
callq 0x1c460
movb %dl, -0x1a9(%rbp)
movq %rax, -0x1a8(%rbp)
jmp 0x1c042
movq -0x120(%rbp), %rax
movb -0x1a9(%rbp), %cl
movq -0x1a8(%rbp), %rdx
movq %rdx, -0xb0(%rbp)
movb %cl, -0xa8(%rbp)
addq $0x8, %rax
movq %rax, -0x1c0(%rbp)
movl $0x3, -0xc4(%rbp)
movl $0x28, %edi
callq 0x62e0
movq %rax, -0x1b8(%rbp)
jmp 0x1c08b
movq -0x1b8(%rbp), %rdi
movq -0x120(%rbp), %rax
movq (%rax), %rsi
movl $0x3, %edx
callq 0x183a0
jmp 0x1c0a8
movq -0x1b8(%rbp), %rax
movq %rax, -0xd0(%rbp)
leaq -0xc4(%rbp), %rdi
leaq -0xd0(%rbp), %rsi
callq 0x1c4a0
movq %rdx, -0x1d0(%rbp)
movl %eax, -0x1c4(%rbp)
jmp 0x1c0d8
movq -0x1c0(%rbp), %rdi
movq -0x1d0(%rbp), %rax
movl -0x1c4(%rbp), %ecx
movl %ecx, -0xc0(%rbp)
movq %rax, -0xb8(%rbp)
leaq -0xc0(%rbp), %rsi
callq 0x1c460
movb %dl, -0x1d9(%rbp)
movq %rax, -0x1d8(%rbp)
jmp 0x1c114
movq -0x120(%rbp), %rax
movb -0x1d9(%rbp), %cl
movq -0x1d8(%rbp), %rdx
movq %rdx, -0xe0(%rbp)
movb %cl, -0xd8(%rbp)
addq $0x8, %rax
movq %rax, -0x1f0(%rbp)
movl $0x4, -0xf4(%rbp)
movl $0x28, %edi
callq 0x62e0
movq %rax, -0x1e8(%rbp)
jmp 0x1c15d
movq -0x1e8(%rbp), %rdi
movq -0x120(%rbp), %rax
movq (%rax), %rsi
movl $0x4, %edx
callq 0x183a0
jmp 0x1c17a
movq -0x1e8(%rbp), %rax
movq %rax, -0x100(%rbp)
leaq -0xf4(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x1c4a0
movq %rdx, -0x200(%rbp)
movl %eax, -0x1f4(%rbp)
jmp 0x1c1aa
movq -0x1f0(%rbp), %rdi
movq -0x200(%rbp), %rax
movl -0x1f4(%rbp), %ecx
movl %ecx, -0xf0(%rbp)
movq %rax, -0xe8(%rbp)
leaq -0xf0(%rbp), %rsi
callq 0x1c460
movb %dl, -0x209(%rbp)
movq %rax, -0x208(%rbp)
jmp 0x1c1e6
movb -0x209(%rbp), %al
movq -0x208(%rbp), %rcx
movq %rcx, -0x110(%rbp)
movb %al, -0x108(%rbp)
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1c2b3
movq -0x118(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl $0x28, %esi
callq 0x62f0
jmp 0x1c2b3
movq -0x158(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl $0x28, %esi
callq 0x62f0
jmp 0x1c2b3
movq -0x188(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl $0x28, %esi
callq 0x62f0
jmp 0x1c2b3
movq -0x1b8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl $0x28, %esi
callq 0x62f0
jmp 0x1c2b3
movq -0x1e8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
movl $0x28, %esi
callq 0x62f0
movq -0x128(%rbp), %rdi
callq 0x1c4d0
movq -0x38(%rbp), %rdi
callq 0x64f0
nopl (%rax,%rax)