	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function length_hist_bsearch
_length_hist_bsearch:                   ## @length_hist_bsearch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movapd	%xmm0, %xmm1
	movl	%esi, %r12d
	movq	%rdi, %r15
	decl	%r12d
	movl	$-1, %r13d
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r13d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ebx
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r13d
	cmpl	%r12d, %ebx
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %eax
	leal	(%r12,%r13), %ecx
	incl	%ecx
	shrl	$31, %ecx
	leal	(%rcx,%rax), %ebx
	incl	%ebx
	sarl	%ebx
	movslq	%ebx, %rax
	movl	(%r15,%rax,4), %edi
	callq	_DatumGetFloat8
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	ja	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	sete	%al
	ucomisd	%xmm0, %xmm1
	setb	%cl
	orb	%al, %cl
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	movl	%ebx, %r12d
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_length_hist_bsearch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function length_hist_bsearch
_length_hist_bsearch:                   ; @length_hist_bsearch
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	subs	w22, w1, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x2
	fmov	d8, d0
	mov	x20, x0
	mov	w23, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x21
	cmp	w21, w22
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w22, w23
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w21, w8, #1
	ldr	w0, [x20, w21, sxtw #2]
	bl	_DatumGetFloat8
	fcmp	d0, d8
	b.mi	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ccmp	w19, #0, #4, ls
	sub	w8, w21, #1
	csel	w22, w8, w22, eq
	csel	w21, w23, w21, eq
	b	LBB0_2
LBB0_5:
	mov	w21, #-1
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_length_hist_bsearch
.subsections_via_symbols
