// File: /workspace/github_cpp_makefile_star2_O1/spatialfruitsalad[P]volume2position/./tomogram.hpp
// Function: tomogram3d<unsigned short>::read_raw(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long, unsigned long, unsigned long)
void read_raw (std::string infilename, std::string type, unsigned long a, unsigned long b, unsigned long c)
    {
        sx = a;
        sy = b;
        sz = c;
        data.resize(sx*sy*sz);
        std::cout << "size: " << a*b*c << "; arraysize: " << data.size() << std::endl;
        std::ifstream infile;
        infile.open(infilename.c_str());
        if(infile.fail())
        {
            throw std::string("cannot open raw file");
        }
        if (type == "uint8_t")
        {
            for (unsigned long i = 0; i<sx*sy*sz; i++)
            {
                uint8_t number;
                infile.read ((char *)&number,sizeof (number));
                if (number > std::numeric_limits<VALUE>::max())
                    throw std::runtime_error ("Can't read file: Numbers are to big for selected class type");
                data.at(i) = VALUE(number);
            }
        }
        else if (type == "uint16_t")
        {
            for (unsigned long i = 0; i<sx*sy*sz; i++)
            {
                uint16_t number;
                infile.read ((char *)&number,sizeof (number));
                if (number > std::numeric_limits<VALUE>::max())
                    throw std::runtime_error ("Can't read file: Numbers are to big for selected class type");
                data.at(i) = VALUE(number);
            }
        }
        else if (type == "int32_t")
        {
            for (unsigned long i = 0; i<sx*sy*sz; i++)
            {
                int32_t number;
                infile.read ((char *)&number,sizeof (number));
                if (number > std::numeric_limits<VALUE>::max())
                    throw std::runtime_error ("Can't read file: Numbers are to big for selected class type");
                data.at(i) = VALUE(number);
            }
        }
        else if (type == "int")
        {
            for (unsigned long i = 0; i<sx*sy*sz; i++)
            {
                int number;
                infile.read ((char *)&number,sizeof (number));
                if (number > std::numeric_limits<VALUE>::max())
                    throw std::runtime_error ("Can't read file: Numbers are to big for selected class type");
                data.at(i) = VALUE(number);
            }
        }
        else
        {
            throw std::runtime_error ("can't read raw type");
        }

        infile.close();
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %r8, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
imulq %rcx, %r12
imulq %r9, %r12
movq %r12, %rsi
callq 0x13c6c
movq 0x17172(%rip), %r13     # 0x1cfc8
leaq 0x11c85(%rip), %rsi     # 0x17ae2
movl $0x6, %edx
movq %r13, %rdi
callq 0x3300
movq %r13, %rdi
movq %r12, %rsi
callq 0x31d0
movq %rax, %r12
leaq 0x11c5c(%rip), %rsi     # 0x17adb
movl $0xd, %edx
movq %rax, %rdi
callq 0x3300
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq %rsi
movq %r12, %rdi
callq 0x31d0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x32b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x3040
movq %rax, %rdi
callq 0x31e0
leaq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x32f0
movq (%r15), %rsi
movq %r12, %rdi
movl $0x8, %edx
callq 0x31b0
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x30(%rsp,%rax)
jne 0x61f1
leaq 0x115a2(%rip), %rsi     # 0x174a2
movq %r14, %rdi
callq 0x30a0
testl %eax, %eax
je 0x5fce
leaq 0x11370(%rip), %rsi     # 0x17287
movq %r14, %rdi
callq 0x30a0
testl %eax, %eax
je 0x603d
leaq 0x11c83(%rip), %rsi     # 0x17bb1
movq %r14, %rdi
callq 0x30a0
testl %eax, %eax
je 0x60a9
leaq 0x11bf5(%rip), %rsi     # 0x17b3a
movq %r14, %rdi
callq 0x30a0
testl %eax, %eax
jne 0x6238
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
imulq 0x28(%rbx), %rax
testq %rax, %rax
je 0x6119
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
movl $0x4, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3340
movl 0xc(%rsp), %eax
cmpl $0x10000, %eax          # imm = 0x10000
jge 0x6150
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq %rdx
cmpq %r14, %rdx
jbe 0x6187
movw %ax, (%rcx,%r14,2)
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
incq %r14
imulq 0x28(%rbx), %rax
cmpq %rax, %r14
jb 0x5f79
jmp 0x6119
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
imulq 0x28(%rbx), %rax
testq %rax, %rax
je 0x6119
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
movl $0x1, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3340
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq %rdx
cmpq %r14, %rdx
jbe 0x613f
movzbl 0xc(%rsp), %ecx
movw %cx, (%rax,%r14,2)
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
incq %r14
imulq 0x28(%rbx), %rax
cmpq %rax, %r14
jb 0x5ff2
jmp 0x6119
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
imulq 0x28(%rbx), %rax
testq %rax, %rax
je 0x6119
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
movl $0x2, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3340
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
sarq %rdx
cmpq %r14, %rdx
jbe 0x6198
movzwl 0xc(%rsp), %ecx
movw %cx, (%rax,%r14,2)
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
incq %r14
imulq 0x28(%rbx), %rax
cmpq %rax, %r14
jb 0x6061
jmp 0x6119
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
imulq 0x28(%rbx), %rax
testq %rax, %rax
je 0x6119
xorl %r14d, %r14d
leaq 0x10(%rsp), %r15
leaq 0xc(%rsp), %r12
movl $0x4, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x3340
movl 0xc(%rsp), %eax
cmpl $0x10000, %eax          # imm = 0x10000
jge 0x61a9
movq (%rbx), %rcx
movq 0x8(%rbx), %rdx
subq %rcx, %rdx
sarq %rdx
cmpq %r14, %rdx
jbe 0x61e0
movw %ax, (%rcx,%r14,2)
movq 0x20(%rbx), %rax
imulq 0x18(%rbx), %rax
incq %r14
imulq 0x28(%rbx), %rax
cmpq %rax, %r14
jb 0x60c9
leaq 0x10(%rsp), %rdi
callq 0x3070
leaq 0x10(%rsp), %rdi
callq 0x3080
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11623(%rip), %rdi     # 0x17769
movq %r14, %rsi
xorl %eax, %eax
callq 0x33a0
movl $0x10, %edi
callq 0x3150
movq %rax, %r14
leaq 0x1199a(%rip), %rsi     # 0x17afe
movq %rax, %rdi
callq 0x30e0
movq 0x16e7d(%rip), %rsi     # 0x1cff0
movq 0x16e46(%rip), %rdx     # 0x1cfc0
movq %r14, %rdi
callq 0x3420
jmp 0x626a
leaq 0x115db(%rip), %rdi     # 0x17769
movq %r14, %rsi
xorl %eax, %eax
callq 0x33a0
leaq 0x115ca(%rip), %rdi     # 0x17769
movq %r14, %rsi
xorl %eax, %eax
callq 0x33a0
movl $0x10, %edi
callq 0x3150
movq %rax, %r14
leaq 0x11941(%rip), %rsi     # 0x17afe
movq %rax, %rdi
callq 0x30e0
movq 0x16e24(%rip), %rsi     # 0x1cff0
movq 0x16ded(%rip), %rdx     # 0x1cfc0
movq %r14, %rdi
callq 0x3420
jmp 0x626a
leaq 0x11582(%rip), %rdi     # 0x17769
movq %r14, %rsi
xorl %eax, %eax
callq 0x33a0
movl $0x20, %edi
callq 0x3150
movq %rax, %r14
addq $0x10, %rax
movq %rax, (%r14)
movb $0x1, %bpl
leaq 0x118da(%rip), %rsi     # 0x17ae9
leaq 0x118e7(%rip), %rdx     # 0x17afd
movq %r14, %rdi
callq 0x131be
xorl %ebp, %ebp
leaq 0x16b59(%rip), %rsi     # 0x1cd80
movq 0x16d7a(%rip), %rdx     # 0x1cfa8
movq %r14, %rdi
callq 0x3420
jmp 0x626a
movl $0x10, %edi
callq 0x3150
movq %rax, %r14
leaq 0x118f2(%rip), %rsi     # 0x17b3e
movq %rax, %rdi
callq 0x30e0
movq 0x16d95(%rip), %rsi     # 0x1cff0
movq 0x16d5e(%rip), %rdx     # 0x1cfc0
movq %r14, %rdi
callq 0x3420
jmp 0x627a
movq %rax, %rbx
testb %bpl, %bpl
jne 0x627d
jmp 0x6298
jmp 0x627a
jmp 0x6295
movq %rax, %rbx
movq %r14, %rdi
callq 0x3210
jmp 0x6298
jmp 0x6295
jmp 0x6295
jmp 0x6295
jmp 0x6295
jmp 0x6295
jmp 0x6295
jmp 0x6295
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3080
movq %rbx, %rdi
callq 0x3440