// File: /workspace/github_c_makefile_star2_O2/lh3[P]fermi-lite/bfc.c
// Function: ks_introsort_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
testq %rdi, %rdi
je 0x48d7
movq %rsi, %rbp
movq %rdi, %r14
cmpq $0x2, %rdi
jne 0x48e6
movl 0x48(%rbp), %eax
cmpl (%rbp), %eax
jle 0x48d7
leaq 0x48(%rbp), %rax
pushq $0x9
popq %rdx
leaq 0x30(%rsp), %r8
movq %rdx, %rcx
movq %r8, %rdi
movq %rbp, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rdx, %rcx
movq %rbp, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rdx, %rcx
movq %rax, %rdi
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x2
popq %rcx
pushq $0x2
popq %rbx
movl $0xf0, %edi
pushq $0x1
popq %rax
movq %rax, %rdx
shlq %cl, %rdx
incq %rcx
addl $0x2, %ebx
addq $0xc0, %rdi
cmpq %r14, %rdx
jb 0x48f4
callq 0x21a0
movq %rax, %r13
imulq $0x48, %r14, %rax
leaq (%rax,%rbp), %rcx
movq %rcx, 0x10(%rsp)
leaq (%rax,%rbp), %r8
addq $-0x48, %r8
pushq $0x48
popq %r14
pushq $-0x1
popq %r15
pushq $0x9
popq %r12
movq %r13, 0x8(%rsp)
movq %r13, (%rsp)
movq %rbp, 0x18(%rsp)
leaq 0x48(%rbp), %rax
movq %rax, 0x20(%rsp)
movq %rbp, %rax
negq %rax
movq %rax, 0x28(%rsp)
decl %ebx
cmpq %r8, %rbp
jae 0x4abc
movq %r8, %rax
subq %rbp, %rax
cqto
idivq %r14
testl %ebx, %ebx
jne 0x4987
incq %rax
movq %rax, %rdi
movq %rbp, %rsi
callq 0x46f8
movl %r15d, %ebx
movq %rbp, %r8
jmp 0x4959
shrq %rax
imulq $0x48, %rax, %r9
movq 0x20(%rsp), %rdx
movl (%rdx,%r9), %eax
movl (%rbp), %ecx
movl (%r8), %r10d
cmpl %ecx, %eax
jle 0x49b1
addq %rdx, %r9
cmpl %r10d, %eax
cmovll %eax, %r10d
cmovgq %r8, %r9
jmp 0x49bf
cmpl %ecx, %r10d
cmovgel %ecx, %r10d
movq %r8, %r9
cmovgq %rbp, %r9
movq %rbp, %rax
movq %r8, %rdx
cmpq %r8, %r9
je 0x49ec
movq %r12, %rcx
leaq 0x30(%rsp), %rdi
movq %r9, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r12, %rcx
movq %r9, %rdi
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r8, %rdx
movq %rbp, %rax
jmp 0x4a54
movq %r8, %r9
subq %rax, %r9
movq 0x28(%rsp), %rcx
leaq (%rcx,%rax), %r11
movq %rax, %rcx
addq $0x48, %rax
addq $-0x48, %r9
addq $0x48, %r11
cmpl %r10d, 0x48(%rcx)
jg 0x49fb
movq %r12, %r14
leaq -0x48(%rax), %r15
addq $-0x48, %rdx
movq %rdx, %rcx
movq %rcx, %rdx
cmpq %rcx, %rax
ja 0x4a2f
leaq -0x48(%rdx), %rcx
cmpl (%rdx), %r10d
jg 0x4a1e
movq %r14, %r12
movq %r14, %rcx
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r14, %rcx
movq %rax, %rdi
cmpq %rax, %rdx
jbe 0x4a64
movq %rdx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r12, %rcx
movq %rdx, %rdi
leaq 0x30(%rsp), %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x49ec
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r12, %rcx
movq %r8, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
cmpq %r9, %r11
jg 0x4adf
cmpq $0x481, %r9             # imm = 0x481
jl 0x4a9e
addq $0x48, %rax
movq (%rsp), %rcx
movq %rax, (%rcx)
movq %r8, 0x8(%rcx)
movl %ebx, 0x10(%rcx)
addq $0x18, %rcx
movq %rcx, (%rsp)
cmpq $0x481, %r11            # imm = 0x481
cmovlq %rbp, %r15
movq %r15, %r8
movq %r14, %r12
pushq $0x48
popq %r14
pushq $-0x1
popq %r15
jmp 0x4957
movq (%rsp), %rax
cmpq 0x8(%rsp), %rax
je 0x4b20
movq -0x18(%rax), %rbp
movq -0x10(%rax), %r8
movl -0x8(%rax), %ebx
leaq -0x18(%rax), %r13
movq %r13, (%rsp)
jmp 0x4943
cmpq $0x481, %r11            # imm = 0x481
jl 0x4afe
movq (%rsp), %rcx
movq %rbp, (%rcx)
movq %r15, 0x8(%rcx)
movl %ebx, 0x10(%rcx)
addq $0x18, %rcx
movq %rcx, (%rsp)
movq %r14, %r12
pushq $-0x1
popq %r15
addq $0x48, %rax
cmpq $0x481, %r9             # imm = 0x481
cmovlq %r8, %rax
movq %rax, %rbp
pushq $0x48
popq %r14
jmp 0x4943
movq 0x8(%rsp), %rdi
callq 0x2040
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x481e