// File: /workspace/github_c_makefile_star2_O3/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 $0xb8, %rsp
testq %rdi, %rdi
je 0x5b9e
movq %rsi, %rbx
movq %rdi, %r15
cmpq $0x2, %rdi
jne 0x591e
movl 0x48(%rbx), %eax
cmpl (%rbx), %eax
jle 0x5b9e
leaq 0x48(%rbx), %rax
leaq 0x28(%rsp), %rdx
movl $0x9, %ecx
movq %rdx, %rdi
movq %rbx, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %rbx, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %rax, %rdi
movq %rdx, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x5b9e
movl $0x2, %ecx
movl $0x2, %ebp
movl $0xf0, %edi
movl $0x1, %eax
shlq %cl, %rax
incq %rcx
addl $0x2, %ebp
addq $0xc0, %rdi
cmpq %r15, %rax
jb 0x592d
callq 0x21a0
movq %rax, %r14
leaq (%r15,%r15,8), %rax
leaq (%rbx,%rax,8), %rcx
movq %rcx, 0x18(%rsp)
leaq -0x48(%rbx,%rax,8), %rax
leaq 0x28(%rsp), %r15
movq %r14, 0x8(%rsp)
movq %rbx, 0x20(%rsp)
movq %rbx, %rdx
leaq 0x48(%rdx), %r8
movq %rdx, %r12
negq %r12
movq %r8, 0x10(%rsp)
cmpq %rax, %rdx
jae 0x5ae3
decl %ebp
je 0x5ac0
movq %rax, %rcx
subq %rdx, %rcx
sarq $0x3, %rcx
movabsq $-0x71c71c71c71c71c7, %rsi # imm = 0x8E38E38E38E38E39
imulq %rsi, %rcx
shrq %rcx
leaq (%rcx,%rcx,8), %rdi
movl (%r8,%rdi,8), %ecx
movl (%rdx), %esi
movl (%rax), %ebx
cmpl %esi, %ecx
jle 0x59cd
leaq (%r8,%rdi,8), %r10
cmpl %ebx, %ecx
cmovll %ecx, %ebx
cmovgq %rax, %r10
jmp 0x59d9
cmpl %esi, %ebx
cmovgel %esi, %ebx
movq %rax, %r10
cmovgq %rdx, %r10
movq %rdx, %r8
movq %rax, %r9
cmpq %rax, %r10
je 0x5a08
movl $0x9, %ecx
movq %r15, %rdi
movq %r10, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %r10, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %rax, %r9
movq %rdx, %r8
jmp 0x5a63
movq %rax, %r10
subq %r8, %r10
leaq (%r12,%r8), %r13
movq %r8, %rcx
addq $0x48, %r8
addq $-0x48, %r10
addq $0x48, %r13
cmpl %ebx, 0x48(%rcx)
jg 0x5a12
leaq -0x48(%r8), %r11
addq $-0x48, %r9
movq %r9, %rcx
movq %rcx, %r9
cmpq %rcx, %r8
ja 0x5a42
leaq -0x48(%r9), %rcx
cmpl (%r9), %ebx
jg 0x5a31
movl $0x9, %ecx
movq %r15, %rdi
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %r8, %rdi
cmpq %r8, %r9
jbe 0x5a73
movq %r9, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %r9, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
jmp 0x5a08
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %rax, %rdi
movq %r15, %rsi
rep  movsq (%rsi), %es:(%rdi)
cmpq %r10, %r13
jg 0x5aff
cmpq $0x481, %r10            # imm = 0x481
jl 0x5aa8
addq $0x48, %r8
movq %r8, (%r14)
movq %rax, 0x8(%r14)
movl %ebp, 0x10(%r14)
addq $0x18, %r14
movq 0x10(%rsp), %r8
cmpq $0x481, %r13            # imm = 0x481
cmovlq %rdx, %r11
movq %r11, %rax
jmp 0x5982
subq %rdx, %rax
sarq $0x3, %rax
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rcx, %rax
incq %rax
movq %rax, %rdi
movq %rdx, %rsi
callq 0x5735
cmpq 0x8(%rsp), %r14
je 0x5b2e
movq -0x18(%r14), %rdx
movq -0x10(%r14), %rax
movl -0x8(%r14), %ebp
addq $-0x18, %r14
jmp 0x5973
cmpq $0x481, %r13            # imm = 0x481
jl 0x5b17
movq %rdx, (%r14)
movq %r11, 0x8(%r14)
movl %ebp, 0x10(%r14)
addq $0x18, %r14
addq $0x48, %r8
cmpq $0x481, %r10            # imm = 0x481
cmovlq %rax, %r8
movq %r8, %rdx
jmp 0x5973
movq 0x8(%rsp), %rdi
callq 0x2040
movq 0x20(%rsp), %r10
leaq 0x48(%r10), %r9
movq 0x18(%rsp), %r11
cmpq %r11, %r9
jae 0x5b9e
leaq 0x70(%rsp), %rax
cmpq %r10, %r9
jbe 0x5b95
movq %r9, %rdx
movl (%rdx), %ecx
cmpl -0x48(%rdx), %ecx
jle 0x5b95
movl $0x9, %ecx
movq %rax, %rdi
movq %rdx, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq -0x48(%rdx), %r8
movl $0x9, %ecx
movq %rdx, %rdi
movq %r8, %rsi
rep  movsq (%rsi), %es:(%rdi)
movl $0x9, %ecx
movq %r8, %rdi
movq %rax, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq %r8, %rdx
cmpq %r10, %r8
ja 0x5b58
addq $0x48, %r9
cmpq %r11, %r9
jb 0x5b50
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq