	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsearch_lower_bound
_bsearch_lower_bound:                   ## @bsearch_lower_bound
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	leal	-1(%rdx), %r14d
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r15,%rbx), %r14d
	decl	%r14d
	cmpl	%ebx, %r14d
	jl	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	subl	%ebx, %eax
	movl	%eax, %r15d
	shrl	$31, %r15d
	addl	%eax, %r15d
	sarl	%r15d
	leal	(%r15,%rbx), %eax
	imull	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %rdi
	addq	%r12, %rdi
	movq	%r13, %rsi
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	%r15d, %ebx
	incl	%ebx
	cmpl	%ebx, %r14d
	jge	LBB0_3
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	incl	%r14d
	xorl	%edi, %edi
	cmpl	%r14d, %ebx
	sete	%dil
	callq	_assert
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bsearch_lower_bound
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsearch_lower_bound
_bsearch_lower_bound:                   ; @bsearch_lower_bound
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	subs	w24, w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	mov	x23, x0
	mov	w19, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w24, w19
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w25, w19, w8, asr #1
	mul	w8, w25, w21
	add	x0, x22, w8, sxtw
	mov	x1, x23
	blr	x20
	sub	w8, w25, #1
	cmp	w0, #0
	csel	w24, w24, w8, lt
	csinc	w19, w19, w25, ge
	cmp	w24, w19
	b.ge	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
	add	w8, w24, #1
	cmp	w19, w8
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bsearch_lower_bound
.subsections_via_symbols
