	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_parse_headers_          ## -- Begin function evhttp_parse_headers_
	.p2align	4, 0x90
_evhttp_parse_headers_:                 ## @evhttp_parse_headers_
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_MORE_DATA_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_EVBUFFER_EOL_CRLF@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_evbuffer_readln
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	leaq	-64(%rbp), %r13
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_evhttp_append_to_last_header
	cmpl	$-1, %eax
	je	LBB0_20
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_mm_free
	movl	(%r14), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_evbuffer_readln
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	addq	-64(%rbp), %rax
	movq	%rax, (%r12)
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%rcx), %rax
	jg	LBB0_18
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%rbx), %eax
	cmpb	$9, %al
	je	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$32, %al
	je	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	testb	%al, %al
	je	LBB0_19
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %r12
	movq	%r15, %r13
	movq	%rbx, -56(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strsep
	movq	-56(%rbp), %r15
	testq	%r15, %r15
	je	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r14
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strspn
	movslq	%eax, %rdi
	addq	%r15, %rdi
	movq	%rdi, -56(%rbp)
	callq	_evutil_rtrim_lws_
	movq	-56(%rbp), %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_evhttp_add_header
	cmpl	$-1, %eax
	movq	%r13, %r15
	movq	%r12, %r14
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	leaq	-64(%rbp), %r13
	jne	LBB0_3
LBB0_20:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_21
LBB0_12:
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_13:
	movq	_MORE_DATA_EXPECTED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_22
## %bb.14:
	cmpq	$0, 8(%r12)
	je	LBB0_22
## %bb.15:
	movq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_evbuffer_get_length
	addq	%rbx, %rax
	movq	8(%r12), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_22
## %bb.16:
	movq	_DATA_TOO_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_22
LBB0_18:
	movq	_DATA_TOO_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_21:
	movq	%rbx, %rdi
	callq	_mm_free
LBB0_22:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ALL_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rbx, %rdi
	callq	_mm_free
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_CORRUPTED,4,2             ## @DATA_CORRUPTED
	.comm	_MORE_DATA_EXPECTED,4,2         ## @MORE_DATA_EXPECTED
	.comm	_EVBUFFER_EOL_CRLF,4,2          ## @EVBUFFER_EOL_CRLF
	.comm	_DATA_TOO_LONG,4,2              ## @DATA_TOO_LONG
	.comm	_ALL_DATA_READ,4,2              ## @ALL_DATA_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":"

L_.str.1:                               ## @.str.1
	.asciz	" "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_parse_headers_          ; -- Begin function evhttp_parse_headers_
	.p2align	2
_evhttp_parse_headers_:                 ; @evhttp_parse_headers_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _DATA_CORRUPTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA_CORRUPTED@GOTPAGEOFF]
Lloh2:
	adrp	x25, _MORE_DATA_EXPECTED@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MORE_DATA_EXPECTED@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
	ldr	w19, [x25]
	ldr	x23, [x0, #16]
Lloh5:
	adrp	x28, _EVBUFFER_EOL_CRLF@GOTPAGE
Lloh6:
	ldr	x28, [x28, _EVBUFFER_EOL_CRLF@GOTPAGEOFF]
	ldr	w2, [x28]
	add	x1, sp, #24
	mov	x0, x21
	bl	_evbuffer_readln
	cbz	x0, LBB0_16
; %bb.1:
	mov	x22, x0
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
Lloh7:
	adrp	x24, l_.str@PAGE
Lloh8:
	add	x24, x24, l_.str@PAGEOFF
Lloh9:
	adrp	x25, l_.str.1@PAGE
Lloh10:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_evhttp_append_to_last_header
	cmn	w0, #1
	b.eq	LBB0_11
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_mm_free
	ldr	w2, [x28]
	add	x1, sp, #24
	mov	x0, x21
	bl	_evbuffer_readln
	mov	x22, x0
	cbz	x0, LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldp	x10, x9, [x20]
	add	x8, x10, x8
	str	x8, [x20]
	cbz	x9, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x22]
	cmp	w8, #9
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #32
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w8, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x22, [sp, #16]
	add	x0, sp, #16
	mov	x1, x24
	bl	_strsep
	ldr	x27, [sp, #16]
	cbz	x27, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x0, x27
	mov	x1, x25
	bl	_strspn
	add	x0, x27, w0, sxtw
	str	x0, [sp, #16]
	bl	_evutil_rtrim_lws_
	ldr	x2, [sp, #16]
	mov	x0, x23
	mov	x1, x26
	bl	_evhttp_add_header
	cmn	w0, #1
	b.ne	LBB0_3
LBB0_11:
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_13
LBB0_12:
Lloh11:
	adrp	x8, _DATA_TOO_LONG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DATA_TOO_LONG@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
LBB0_13:
	mov	x0, x22
	bl	_mm_free
	b	LBB0_19
LBB0_14:
Lloh14:
	adrp	x8, _ALL_DATA_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ALL_DATA_READ@GOTPAGEOFF]
Lloh16:
	ldr	w19, [x8]
	mov	x0, x22
	bl	_mm_free
LBB0_15:
Lloh17:
	adrp	x25, _MORE_DATA_EXPECTED@GOTPAGE
Lloh18:
	ldr	x25, [x25, _MORE_DATA_EXPECTED@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x25]
	cmp	w19, w8
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_19
; %bb.18:
	ldr	x22, [x20]
	mov	x0, x21
	bl	_evbuffer_get_length
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh19:
	adrp	x9, _DATA_TOO_LONG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _DATA_TOO_LONG@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	add	x10, x0, x22
	cmp	x10, x8
	csel	w19, w9, w19, gt
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_CORRUPTED,4,2             ; @DATA_CORRUPTED
	.comm	_MORE_DATA_EXPECTED,4,2         ; @MORE_DATA_EXPECTED
	.comm	_EVBUFFER_EOL_CRLF,4,2          ; @EVBUFFER_EOL_CRLF
	.comm	_DATA_TOO_LONG,4,2              ; @DATA_TOO_LONG
	.comm	_ALL_DATA_READ,4,2              ; @ALL_DATA_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":"

l_.str.1:                               ; @.str.1
	.asciz	" "

.subsections_via_symbols
