// File: /workspace/github_cpp_makefile_star2_O1/jstaursky[P]hutch/src/hutch.cpp
// Function: Hutch::preconfigure(int)
void Hutch::preconfigure (int4 cpu_arch)
{
    this->arch = cpu_arch;
    switch (cpu_arch) {
    case IA32:
        docname    = "../../processors/x86/languages/x86.sla";
        cpucontext = { { "addrsize", 1 }, { "opsize", 1 } };

        break;
    default:
        // IA32 is default.
        cpucontext = { { "addrsize", 1 }, { "opsize", 1 } };
        break;
    }

    Element* ast_root = docstorage.openDocument (this->docname)->getRoot ();
    docstorage.registerTag (ast_root);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movl %esi, 0x20(%rdi)
testl %esi, %esi
je 0x76fea
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb32f(%rip), %rsi      # 0x82290
leaq 0xb330(%rip), %rdx      # 0x82298
movq %rsp, %r15
movq %r15, %rdi
callq 0x3f8a0
leaq 0x28(%rsp), %r14
movl $0x1, -0x8(%r14)
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xb309(%rip), %rsi      # 0x82299
leaq 0xb308(%rip), %rdx      # 0x8229f
movq %r14, %rdi
callq 0x3f8a0
leaq 0x50(%rsp), %r12
movl $0x1, -0x8(%r12)
leaq 0x150(%rbx), %rdi
movq %rsp, %rsi
movq %r12, %rdx
callq 0x3fc50
movq $-0x50, %r14
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x76fdb
movq (%r13), %rsi
incq %rsi
callq 0x40870
addq $-0x28, %r13
addq $0x28, %r14
jne 0x76fc6
jmp 0x77099
movq 0x8(%rbx), %rdx
leaq 0xb274(%rip), %rcx      # 0x82269
movl $0x26, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x417c0
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0xb27b(%rip), %rsi      # 0x82290
leaq 0xb27c(%rip), %rdx      # 0x82298
movq %rsp, %r15
movq %r15, %rdi
callq 0x3f8a0
leaq 0x28(%rsp), %r14
movl $0x1, -0x8(%r14)
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xb255(%rip), %rsi      # 0x82299
leaq 0xb254(%rip), %rdx      # 0x8229f
movq %r14, %rdi
callq 0x3f8a0
leaq 0x50(%rsp), %r12
movl $0x1, -0x8(%r12)
leaq 0x150(%rbx), %rdi
movq %rsp, %rsi
movq %r12, %rdx
callq 0x3fc50
movq $-0x50, %r14
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0x7708f
movq (%r13), %rsi
incq %rsi
callq 0x40870
addq $-0x28, %r13
addq $0x28, %r14
jne 0x7707a
leaq 0x28(%rbx), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x40a90
movq 0x78(%rax), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x40470
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rsi
movq %r12, %rdi
callq 0x42909
movb $0x1, %al
jmp 0x770e6
movq %rax, %rbx
xorl %eax, %eax
jmp 0x770e6
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x77165
movq %rsp, %r15
movq -0x28(%r14), %rdi
leaq -0x18(%r14), %rax
cmpq %rdi, %rax
je 0x7710b
movq (%rax), %rsi
incq %rsi
callq 0x40870
addq $-0x28, %r14
cmpq %r15, %r14
jne 0x770f3
jmp 0x77165
movq %rax, %rbx
movq %rsp, %rsi
movq %r12, %rdi
callq 0x428d6
movb $0x1, %al
jmp 0x77137
movq %rax, %rbx
xorl %eax, %eax
jmp 0x77137
movq %rax, %rbx
xorl %eax, %eax
movq %r15, %r14
cmpq %r14, %r15
sete %cl
orb %al, %cl
jne 0x77165
movq %rsp, %r15
movq -0x28(%r14), %rdi
leaq -0x18(%r14), %rax
cmpq %rdi, %rax
je 0x7715c
movq (%rax), %rsi
incq %rsi
callq 0x40870
addq $-0x28, %r14
cmpq %r15, %r14
jne 0x77144
movq %rbx, %rdi
callq 0x41f00
nop