// File: /workspace/github_c_makefile_star2_O1/lh3[P]fermi-lite/bfc.c
// Function: ks_mergesort_ec
static bfc_ec1buf_t *ec1buf_init(const bfc_opt_t *opt, const bfc_ch_t *ch)
{
	bfc_ec1buf_t *e;
	e = calloc(1, sizeof(bfc_ec1buf_t));
	e->opt = opt, e->ch = ch;
	return e;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, 0x20(%rsp)
movq %rdx, %rax
testq %rdx, %rdx
jne 0x4e00
leaq (,%r15,8), %rax
leaq (%rax,%rax,8), %rdi
callq 0x21b0
movq %rax, 0x28(%rsp)
cmpq $0x2, %r15
jb 0x5070
movq %r14, 0x30(%rsp)
movq %rax, 0x38(%rsp)
movq %rbx, 0x40(%rsp)
leaq (%r15,%r15,8), %rax
movq %rax, 0x8(%rsp)
leaq -0x48(,%rax,8), %rax
movq %rax, 0x48(%rsp)
xorl %ecx, %ecx
movl $0x1, %eax
movq %rax, 0x10(%rsp)
xorl %eax, %eax
movl %eax, %edx
movl %eax, %eax
movq 0x20(%rsp,%rax,8), %rbx
movl $0x1, %eax
movl %edx, 0x1c(%rsp)
subl %edx, %eax
movq %rax, 0x50(%rsp)
movq 0x20(%rsp,%rax,8), %r9
testq %rcx, %rcx
movq %rcx, 0x58(%rsp)
je 0x4f7e
movq 0x8(%rsp), %rax
leaq (%rbx,%rax,8), %rax
movq %rax, 0x70(%rsp)
movq 0x10(%rsp), %rax
leaq (%rax,%rax,8), %rax
movq %rax, 0x68(%rsp)
leaq (%rbx,%rax,8), %rax
movq %rax, 0x60(%rsp)
movl $0x2, %ebp
shlq %cl, %rbp
xorl %edx, %edx
movq 0x10(%rsp), %rax
leaq (%rdx,%rax), %rcx
movq 0x70(%rsp), %r13
movq %rbx, %r8
cmpq %r15, %rcx
ja 0x4ed3
leaq (%rdx,%rdx,8), %rcx
movq 0x60(%rsp), %rax
leaq (%rax,%rcx,8), %r13
leaq (%rdx,%rbp), %rcx
cmpq %r15, %rcx
cmovaeq %r15, %rcx
leaq (%rcx,%rcx,8), %rcx
leaq (%rbx,%rcx,8), %r8
leaq (,%rdx,8), %rcx
leaq (%rcx,%rcx,8), %r11
leaq (%rbx,%r11), %rax
movq 0x68(%rsp), %rcx
leaq (%rax,%rcx,8), %r10
addq %r9, %r11
cmpq %r13, %rax
jae 0x4f21
cmpq %r8, %r10
jae 0x4f21
movl (%r10), %ecx
cmpl (%rax), %ecx
jg 0x4f09
movq %rax, %rsi
addq $0x48, %rax
jmp 0x4f10
movq %r10, %rsi
addq $0x48, %r10
movl $0x9, %ecx
movq %r11, %rdi
rep  movsq (%rsi), %es:(%rdi)
addq $0x48, %r11
jmp 0x4eef
cmpq %r13, %rax
jae 0x4f47
leaq 0x48(%r11), %r14
leaq 0x48(%rax), %r12
movl $0x9, %ecx
movq %r11, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r14, %r11
movq %r12, %rax
cmpq %r13, %r12
jb 0x4f26
cmpq %r8, %r10
jae 0x4f6d
leaq 0x48(%r11), %rax
leaq 0x48(%r10), %r14
movl $0x9, %ecx
movq %r11, %rdi
movq %r10, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r14, %r10
movq %rax, %r11
cmpq %r8, %r14
jb 0x4f4c
addq %rbp, %rdx
cmpq %r15, %rdx
jb 0x4e9d
jmp 0x500b
testq %r15, %r15
jle 0x500b
movq 0x8(%rsp), %rax
leaq (%rbx,%rax,8), %rax
movq 0x48(%rsp), %rdx
testq %rdx, %rdx
je 0x4fc8
leaq 0x48(%rbx), %r10
movl 0x48(%rbx), %ecx
leaq 0x48(%r9), %r11
leaq 0x90(%r9), %r8
cmpl (%rbx), %ecx
jle 0x4fd9
movl $0x9, %ecx
movq %r9, %rdi
movq %r10, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %r11, %rdi
jmp 0x4fd4
leaq 0x48(%r9), %r8
movl $0x9, %ecx
movq %r9, %rdi
movq %rbx, %rsi
jmp 0x4ff2
movl $0x9, %ecx
movq %r9, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %r11, %rdi
movq %r10, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x90, %rbx
addq $-0x90, %rdx
movq %r8, %r9
cmpq %rax, %rbx
jb 0x4f95
movl $0x2, %edx
movq 0x58(%rsp), %rcx
shlq %cl, %rdx
incq %rcx
movq %rdx, 0x10(%rsp)
cmpq %r15, %rdx
movq 0x50(%rsp), %rax
jb 0x4e42
cmpl $0x1, 0x1c(%rsp)
movq 0x40(%rsp), %rbx
movq 0x38(%rsp), %rax
movq 0x30(%rsp), %rdi
je 0x5070
testq %r15, %r15
jle 0x5070
movq 0x8(%rsp), %rcx
leaq (%rdi,%rcx,8), %r9
movq %rax, %rdx
leaq 0x48(%rdi), %r8
movl $0x9, %ecx
movq %rdx, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x48, %rdx
movq %r8, %rdi
cmpq %r9, %r8
jb 0x5055
testq %rbx, %rbx
je 0x5084
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rdi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040