	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_search_eol            ## -- Begin function evbuffer_search_eol
	.p2align	4, 0x90
_evbuffer_search_eol:                   ## @evbuffer_search_eol
	.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
	movl	%r8d, %r12d
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	movq	%rdx, %rbx
	cmpq	$0, 16(%rdx)
	je	LBB0_2
## %bb.4:
	movq	%r15, %rdi
	callq	_EVBUFFER_LOCK
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_EVBUFFER_LOCK
	movq	(%r15), %rax
	movq	%rax, 16(%r13)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r13)
LBB0_6:
	addl	$-128, %r12d
	cmpl	$4, %r12d
	ja	LBB0_20
## %bb.7:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_16:
	movq	%r13, %rdi
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_2:
	movq	%r13, %rdi
	callq	_PTR_NOT_FOUND
	testq	%r14, %r14
	je	LBB0_23
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_22
LBB0_15:
	movq	%r13, %rdi
	movl	$10, %esi
LBB0_17:
	callq	_evbuffer_strchr
	movl	$1, %r12d
	testl	%eax, %eax
	jns	LBB0_18
	jmp	LBB0_20
LBB0_19:
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %rdi
	movq	%r15, %rsi
	movl	$2, %ecx
	movq	%r13, %r8
	callq	_evbuffer_search
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r13)
	movups	-64(%rbp), %xmm0
	movups	%xmm0, (%r13)
	movl	$2, %r12d
	cmpq	$0, (%r13)
	jns	LBB0_18
	jmp	LBB0_20
LBB0_10:
	movq	(%r13), %rbx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_evbuffer_strchr
	testl	%eax, %eax
	js	LBB0_20
## %bb.11:
	movl	$1, %r12d
	cmpq	%rbx, (%r13)
	je	LBB0_18
## %bb.12:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_evbuffer_ptr_subtract
	testl	%eax, %eax
	js	LBB0_18
## %bb.13:
	leaq	-64(%rbp), %rdi
	callq	_evbuffer_getchr
	cmpb	$13, %al
	jne	LBB0_18
## %bb.14:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movl	$24, %edx
	callq	_memcpy
	movl	$2, %r12d
	jmp	LBB0_18
LBB0_8:
	movq	%r13, %rdi
	callq	_evbuffer_find_eol_char
	testl	%eax, %eax
	js	LBB0_20
## %bb.9:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$24, %edx
	callq	_memcpy
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_evbuffer_strspn
	movq	%rax, %r12
LBB0_18:
	movq	%r15, %rdi
	callq	_EVBUFFER_UNLOCK
	testq	%r14, %r14
	je	LBB0_23
LBB0_22:
	movq	%r12, (%r14)
LBB0_23:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r15, %rdi
	callq	_EVBUFFER_UNLOCK
	movq	%r13, %rdi
	callq	_PTR_NOT_FOUND
	xorl	%r12d, %r12d
	testq	%r14, %r14
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_19
	.long	L0_0_set_10
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_search_eol            ; -- Begin function evbuffer_search_eol
	.p2align	2
_evbuffer_search_eol:                   ; @evbuffer_search_eol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
	mov	x21, x8
	cbz	x1, LBB0_3
; %bb.1:
	mov	x23, x1
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, x20
	bl	_EVBUFFER_LOCK
	mov	x0, x21
	mov	x1, x23
	mov	w2, #24
	bl	_memcpy
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	bl	_EVBUFFER_LOCK
	ldr	x8, [x20]
	stp	xzr, x8, [x21, #8]
	str	xzr, [x21]
LBB0_4:
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_22
; %bb.5:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	x0, x21
	mov	w1, #0
	bl	_evbuffer_strchr
	tbz	w0, #31, LBB0_16
	b	LBB0_22
LBB0_7:
	mov	x0, x21
	bl	_PTR_NOT_FOUND
	cbz	x19, LBB0_21
; %bb.8:
	mov	x22, #0
	b	LBB0_20
LBB0_9:
	mov	x0, x21
	mov	w1, #10
	bl	_evbuffer_strchr
	tbz	w0, #31, LBB0_16
	b	LBB0_22
LBB0_10:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w22, #2
	add	x8, sp, #8
	mov	x0, x20
	mov	w2, #2
	mov	x3, x21
	bl	_evbuffer_search
	ldur	q0, [sp, #8]
	str	q0, [x21]
	ldr	x8, [sp, #24]
	str	x8, [x21, #16]
	ldr	x8, [x21]
	tbz	x8, #63, LBB0_19
	b	LBB0_22
LBB0_11:
	ldr	x22, [x21]
	mov	x0, x21
	mov	w1, #10
	bl	_evbuffer_strchr
	tbnz	w0, #31, LBB0_22
; %bb.12:
	ldr	x8, [x21]
	cmp	x8, x22
	b.eq	LBB0_16
; %bb.13:
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
	mov	w22, #1
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_evbuffer_ptr_subtract
	tbnz	w0, #31, LBB0_19
; %bb.14:
	add	x0, sp, #8
	bl	_evbuffer_getchr
	cmp	w0, #13
	b.ne	LBB0_16
; %bb.15:
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #24
	bl	_memcpy
	mov	w22, #2
	b	LBB0_19
LBB0_16:
	mov	w22, #1
	b	LBB0_19
LBB0_17:
	mov	x0, x21
	bl	_evbuffer_find_eol_char
	tbnz	w0, #31, LBB0_22
; %bb.18:
	add	x0, sp, #8
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_evbuffer_strspn
	mov	x22, x0
LBB0_19:
	mov	x0, x20
	bl	_EVBUFFER_UNLOCK
	cbz	x19, LBB0_21
LBB0_20:
	str	x22, [x19]
LBB0_21:
	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
	add	sp, sp, #96
	ret
LBB0_22:
	mov	x0, x20
	bl	_EVBUFFER_UNLOCK
	mov	x0, x21
	bl	_PTR_NOT_FOUND
	mov	x22, #0
	cbnz	x19, LBB0_20
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

.subsections_via_symbols
