// File: istellartech[P]OpenTsiolkovsky/src/../lib/csv.h
// Function: io::LineReader::init(std::unique_ptr<io::ByteSourceBase, std::default_delete<io::ByteSourceBase>>)
void init(std::unique_ptr<ByteSourceBase>byte_source){
                        file_line = 0;

                        buffer = new char[3*block_len];
                        try{
                                data_begin = 0;
                                data_end = byte_source->read(buffer, 2*block_len);

                                // Ignore UTF-8 BOM
                                if(data_end >= 3 && buffer[0] == '\xEF' && buffer[1] == '\xBB' && buffer[2] == '\xBF')
                                        data_begin = 3;

                                if(data_end == 2*block_len){
                                        reader.init(std::move(byte_source));
                                        reader.start_read(buffer + 2*block_len, block_len);
                                }
                        }catch(...){
                                delete[]buffer;
                                throw;
                        }
                }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rsi, -0x40(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x0, 0x1c8(%rax)
movl $0x3000000, %edi        # imm = 0x3000000
callq 0x6040
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movq -0x38(%rbp), %rax
movq %rcx, 0xb8(%rax)
movl $0x0, 0xc0(%rax)
callq 0x3f830
movq %rax, %rdi
movq -0x38(%rbp), %rax
movq 0xb8(%rax), %rsi
movq (%rdi), %rax
movq (%rax), %rax
movl $0x2000000, %edx        # imm = 0x2000000
callq *%rax
movl %eax, -0x2c(%rbp)
jmp 0x3f3e1
movq -0x38(%rbp), %rax
movl -0x2c(%rbp), %ecx
movl %ecx, 0xc4(%rax)
cmpl $0x3, 0xc4(%rax)
jl 0x3f450
movq -0x38(%rbp), %rax
movq 0xb8(%rax), %rax
movsbl (%rax), %eax
cmpl $-0x11, %eax
jne 0x3f450
movq -0x38(%rbp), %rax
movq 0xb8(%rax), %rax
movsbl 0x1(%rax), %eax
cmpl $-0x45, %eax
jne 0x3f450
movq -0x38(%rbp), %rax
movq 0xb8(%rax), %rax
movsbl 0x2(%rax), %eax
cmpl $-0x41, %eax
jne 0x3f450
movq -0x38(%rbp), %rax
movl $0x3, 0xc0(%rax)
jmp 0x3f450
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x3f4c2
movq -0x38(%rbp), %rax
cmpl $0x2000000, 0xc4(%rax)  # imm = 0x2000000
jne 0x3f4f0
movq -0x40(%rbp), %rsi
leaq -0x28(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x3f8f0
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x3f850
jmp 0x3f484
leaq -0x28(%rbp), %rdi
callq 0x3ebd0
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rsi
addq $0x2000000, %rsi        # imm = 0x2000000
movl $0x1000000, %edx        # imm = 0x1000000
callq 0x3f920
jmp 0x3f4ab
jmp 0x3f4f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x3ebd0
movq -0x18(%rbp), %rdi
callq 0x61d0
movq -0x38(%rbp), %rax
movq 0xb8(%rax), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, %rax
je 0x3f4e9
movq -0x50(%rbp), %rdi
callq 0x65d0
callq 0x6630
jmp 0x3f51e
jmp 0x3f507
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x66f0
jmp 0x3f505
jmp 0x3f50d
addq $0x50, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x67a0
movq %rax, %rdi
callq 0x8700
nop