// File: /workspace/github_cpp_makefile_star2_O3/nmmmnu[P]HM3/hm3/diskfile/diskfilebuilder_impl.h
// Function: bool hm3::diskfile::DiskFileBuilder::createFromIterator<hm3::Pair const*>(StringRef const&, hm3::Pair const* const&, hm3::Pair const* const&, bool) const
bool DiskFileBuilder::createFromIterator(const StringRef &filename, const ITERATOR &begin, const ITERATOR &end,
			bool keepTombstones) const{

	std::ofstream fileMeta(filenameMeta(filename),	std::ios::out | std::ios::binary);
	std::ofstream fileIndx(filenameIndx(filename),	std::ios::out | std::ios::binary);
	std::ofstream fileData(filenameData(filename),	std::ios::out | std::ios::binary);

	return _writeIteratorToFile(begin, end, fileMeta, fileIndx, fileData, keepTombstones);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x668, %rsp            # imm = 0x668
movl %r8d, %ebp
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
movq 0x8(%rsi), %rsi
leaq 0x278(%rsp), %rbx
movq (%r12), %rdx
addq %rsi, %rdx
movq %rbx, -0x10(%rbx)
leaq 0x268(%rsp), %r13
movq %r13, %rdi
callq 0x3744
leaq 0x468(%rsp), %rdi
movq %r13, %rsi
movl $0x14, %edx
callq 0x23f0
movq %r15, 0x58(%rsp)
movq 0x268(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3e7c
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x2220
movq %r14, %r15
movups (%r12), %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x5, 0x70(%rsp)
leaq 0x535b(%rip), %rax      # 0x91f4
movq %rax, 0x78(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb $0x0, (%rbx)
movq 0x60(%rsp), %rsi
addq $0x5, %rsi
leaq 0x10(%rsp), %rdi
callq 0x2320
movl $0x8, %r14d
leaq 0x10(%rsp), %r13
movq 0x58(%rsp,%r14), %rdx
movq 0x60(%rsp,%r14), %rsi
movq %r13, %rdi
callq 0x2050
addq $0x10, %r14
cmpq $0x28, %r14
jne 0x3ed0
leaq 0x268(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0x14, %edx
callq 0x23f0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3f1a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2220
movups (%r12), %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x5, 0x20(%rsp)
leaq 0x52c6(%rip), %rax      # 0x91fa
movq %rax, 0x28(%rsp)
leaq 0x48(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb $0x0, (%rbx)
movq 0x10(%rsp), %rsi
addq $0x5, %rsi
leaq 0x38(%rsp), %rdi
callq 0x2320
movl $0x8, %r14d
leaq 0x38(%rsp), %r12
movq 0x8(%rsp,%r14), %rdx
movq 0x10(%rsp,%r14), %rsi
movq %r12, %rdi
callq 0x2050
addq $0x10, %r14
cmpq $0x28, %r14
jne 0x3f6b
leaq 0x60(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movl $0x14, %edx
callq 0x23f0
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3fb2
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2220
movzbl %bpl, %eax
movl %eax, (%rsp)
leaq 0x468(%rsp), %r12
leaq 0x268(%rsp), %r13
leaq 0x60(%rsp), %rbp
movq 0x8(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0x411a
movb %al, 0x8(%rsp)
movq 0x8fd4(%rip), %rax      # 0xcfc8
movq (%rax), %r14
movq 0x18(%rax), %r15
leaq 0x68(%rsp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0x60(%rsp,%rax)
callq 0x21c0
movl $0xf8, %ebx
addq %rbx, %rbp
movq %rbp, %rdi
callq 0x2080
leaq 0x270(%rsp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0x268(%rsp,%rax)
callq 0x21c0
addq %rbx, %r13
movq %r13, %rdi
callq 0x2080
leaq 0x470(%rsp), %rdi
movq %r14, -0x8(%rdi)
movq -0x18(%r14), %rax
movq %r15, 0x468(%rsp,%rax)
callq 0x21c0
addq %rbx, %r12
movq %r12, %rdi
callq 0x2080
movb 0x8(%rsp), %al
addq $0x668, %rsp            # imm = 0x668
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
leaq 0x60(%rsp), %rdi
callq 0x22e0
jmp 0x40db
jmp 0x40c1
jmp 0x40c1
jmp 0x40ea
jmp 0x40ea
movq %rax, %r14
movq 0x268(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4111
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x2220
jmp 0x4111
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x40db
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2220
leaq 0x268(%rsp), %rdi
callq 0x22e0
jmp 0x4104
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4104
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2220
leaq 0x468(%rsp), %rdi
callq 0x22e0
movq %r14, %rdi
callq 0x23a0
nop