	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_search_boundary
_do_search_boundary:                    ## @do_search_boundary
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r8d
	movl	%edx, %eax
	cltd
	idivl	%ecx
	cmpl	%esi, %edi
	je	LBB0_6
## %bb.1:
	jle	LBB0_4
## %bb.2:
	addl	%edi, %edx
	subl	%ecx, %edx
	subl	%r8d, %edx
	movl	%edx, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %edi
	cmpl	%esi, %edi
	jl	LBB0_3
	jmp	LBB0_6
LBB0_4:
	addl	%ecx, %r8d
	addl	%edi, %r8d
	subl	%edx, %r8d
	movl	%r8d, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	subl	%ecx, %edi
	cmpl	%esi, %edi
	jg	LBB0_5
LBB0_6:
	movl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_do_search_boundary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_search_boundary
_do_search_boundary:                    ; @do_search_boundary
	.cfi_startproc
; %bb.0:
	sdiv	w8, w2, w3
	mul	w8, w8, w3
	sub	w9, w2, w8
	cmp	w0, w1
	b.eq	LBB0_11
; %bb.1:
	b.le	LBB0_7
; %bb.2:
	sub	w8, w0, w8
	cmp	w1, w8
	csel	w10, w1, w8, gt
	add	w10, w10, w2
	add	w9, w9, w0
	cmp	w10, w9
	cinc	w11, w9, ne
	sub	w11, w10, w11
	cmp	w3, #1
	csinc	w12, w3, wzr, hi
	cmp	w10, w9
	udiv	w9, w11, w12
	cinc	w9, w9, ne
	add	w10, w9, #1
	mov	x9, x8
	cmp	w10, #4
	b.lo	LBB0_9
; %bb.3:
	mov	w12, #0
	and	w11, w10, #0xfffffffc
	madd	w9, w11, w3, w8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w12, #4
	cmp	w12, w11
	b.ne	LBB0_4
; %bb.5:
	cmp	w10, w11
	b.ne	LBB0_9
; %bb.6:
	sub	w9, w11, #1
	mul	w9, w9, w3
	add	w0, w8, w9
	ret
LBB0_7:
	add	w8, w3, w2
	add	w8, w8, w0
	sub	w0, w8, w9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	w0, w0, w3
	cmp	w0, w1
	b.gt	LBB0_8
	b	LBB0_11
LBB0_9:
	sub	w0, w9, w3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	w0, w0, w3
	cmp	w0, w1
	b.lt	LBB0_10
LBB0_11:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_do_search_boundary
.subsections_via_symbols
