// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
movq %rdx, 0x8(%rsp)
movq %rsi, %r12
movq %rdi, 0x58(%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 0x268(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3e67
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x2220
movups (%r12), %xmm0
movaps %xmm0, 0x60(%rsp)
movq $0x5, 0x70(%rsp)
leaq 0x5373(%rip), %rax      # 0x91f4
movq %rax, 0x78(%rsp)
leaq 0x20(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb $0x0, (%rbx)
xorl %esi, %esi
xorl %eax, %eax
addq 0x60(%rsp,%rax), %rsi
addq $0x10, %rax
cmpq $0x20, %rax
jne 0x3e9e
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 0x3ec2
leaq 0x268(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0x14, %edx
callq 0x23f0
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3f0c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2220
movups (%r12), %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x5, 0x20(%rsp)
leaq 0x52d4(%rip), %rax      # 0x91fa
movq %rax, 0x28(%rsp)
leaq 0x48(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb $0x0, (%rbx)
xorl %esi, %esi
xorl %eax, %eax
addq 0x10(%rsp,%rax), %rsi
addq $0x10, %rax
cmpq $0x20, %rax
jne 0x3f43
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 0x3f67
leaq 0x60(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movl $0x14, %edx
callq 0x23f0
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x3fae
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 0x58(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
movq %rbp, %r9
callq 0x4116
movb %al, 0x8(%rsp)
movq 0x8fd8(%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 0x40d7
jmp 0x40bd
jmp 0x40bd
jmp 0x40e6
jmp 0x40e6
movq %rax, %r14
movq 0x268(%rsp), %rdi
cmpq %rbx, %rdi
je 0x410d
movq 0x278(%rsp), %rsi
incq %rsi
callq 0x2220
jmp 0x410d
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %rbx, %rdi
je 0x40d7
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x2220
leaq 0x268(%rsp), %rdi
callq 0x22e0
jmp 0x4100
movq %rax, %r14
movq 0x10(%rsp), %rdi
cmpq %rbx, %rdi
je 0x4100
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2220
leaq 0x468(%rsp), %rdi
callq 0x22e0
movq %r14, %rdi
callq 0x23a0
nop