	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_search_range          ## -- Begin function evbuffer_search_range
	.p2align	4, 0x90
_evbuffer_search_range:                 ## @evbuffer_search_range
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_EVBUFFER_LOCK
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	16(%rbx), %r12
	jmp	LBB0_3
LBB0_2:
	movq	$0, (%rbx)
	movq	(%r14), %r12
	movq	%r12, 16(%rbx)
	movl	$0, 8(%rbx)
LBB0_3:
	testq	%r13, %r13
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:
	movq	16(%r13), %rax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_20
## %bb.7:
	movq	_EV_SSIZE_MAX@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jb	LBB0_20
## %bb.8:
	testq	%r12, %r12
	je	LBB0_19
## %bb.9:
	movl	8(%rbx), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movsbl	(%rcx), %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%r12), %rax
	movslq	8(%rbx), %rcx
	subq	%rcx, %rax
	addq	%rax, (%rbx)
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	24(%r12), %r12
	movq	%r12, 16(%rbx)
	movl	$0, 8(%rbx)
	xorl	%eax, %eax
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	testq	%r12, %r12
	je	LBB0_19
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	8(%r12), %r13
	addq	(%r12), %r13
	cltq
	addq	%rax, %r13
	movq	16(%r12), %rdx
	subq	%rax, %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	subq	%r13, %rax
	addq	%rax, (%rbx)
	addl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_evbuffer_ptr_memcmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	(%rbx)
	movslq	8(%rbx), %rax
	incq	%rax
	movl	%eax, 8(%rbx)
	cmpq	%rax, 16(%r12)
	je	LBB0_17
	jmp	LBB0_18
LBB0_12:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_20
## %bb.13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rbx), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rcx
	jle	LBB0_20
LBB0_19:
	movq	%rbx, %rdi
	callq	_PTR_NOT_FOUND
LBB0_20:
	movq	%r14, %rdi
	callq	_EVBUFFER_UNLOCK
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_SSIZE_MAX,8,3               ## @EV_SSIZE_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_search_range          ; -- Begin function evbuffer_search_range
	.p2align	2
_evbuffer_search_range:                 ; @evbuffer_search_range
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	x20, x8
	bl	_EVBUFFER_LOCK
	cbz	x24, LBB0_3
; %bb.1:
	mov	x0, x20
	mov	x1, x24
	mov	w2, #24
	bl	_memcpy
	ldr	x26, [x20, #16]
	cbz	x21, LBB0_4
LBB0_2:
	ldr	x27, [x21, #16]
	cbnz	x22, LBB0_5
	b	LBB0_18
LBB0_3:
	str	xzr, [x20]
	ldr	x26, [x19]
	str	x26, [x20, #16]
	str	wzr, [x20, #8]
	cbnz	x21, LBB0_2
LBB0_4:
	mov	x27, #0
	cbz	x22, LBB0_18
LBB0_5:
Lloh0:
	adrp	x8, _EV_SSIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_SSIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.lo	LBB0_18
; %bb.6:
	cbz	x26, LBB0_17
; %bb.7:
	ldrb	w9, [x23]
	ldr	w8, [x20, #8]
	sxtb	w24, w9
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	cmp	x26, x27
	b.eq	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x26, #16]
	ldrsw	x9, [x20, #8]
	ldr	x10, [x20]
	sub	x8, x8, x9
	add	x8, x8, x10
	str	x8, [x20]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	w8, #0
	ldr	x26, [x26, #24]
	str	x26, [x20, #16]
	str	wzr, [x20, #8]
	cbz	x26, LBB0_17
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x26]
	ldrsw	x10, [x26, #8]
	sxtw	x8, w8
	add	x9, x9, x10
	add	x25, x9, x8
	ldr	x9, [x26, #16]
	sub	x2, x9, x8
	mov	x0, x25
	mov	x1, x24
	bl	_memchr
	cbz	x0, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20]
	sub	x9, x0, x25
	add	x8, x8, x9
	str	x8, [x20]
	ldr	w8, [x20, #8]
	add	w8, w8, w9
	str	w8, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_evbuffer_ptr_memcmp
	cbz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	ldrsw	x8, [x20, #8]
	add	x9, x8, #1
	str	w9, [x20, #8]
	ldr	x10, [x26, #16]
	cmp	x10, x9
	b.eq	LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x8, x9
	cbnz	x26, LBB0_11
	b	LBB0_17
LBB0_15:
	cbz	x21, LBB0_18
; %bb.16:
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x8, x8, x22
	cmp	x8, x9
	b.le	LBB0_18
LBB0_17:
	mov	x0, x20
	bl	_PTR_NOT_FOUND
LBB0_18:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_EVBUFFER_UNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_SSIZE_MAX,8,3               ; @EV_SSIZE_MAX
.subsections_via_symbols
