	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_parse_firstline_        ## -- Begin function evhttp_parse_firstline_
	.p2align	4, 0x90
_evhttp_parse_firstline_:               ## @evhttp_parse_firstline_
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_ALL_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_EVBUFFER_EOL_CRLF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_evbuffer_readln
	movq	%rax, %r15
	movq	16(%r12), %rax
	testq	%r15, %r15
	je	LBB0_1
## %bb.5:
	movq	-40(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpq	(%rax), %rcx
	jbe	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_mm_free
	jmp	LBB0_3
LBB0_8:
	movq	%rcx, (%r12)
	movl	8(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.9:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_evhttp_parse_request_line
	cmpl	$-1, %eax
	je	LBB0_13
	jmp	LBB0_14
LBB0_1:
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_evbuffer_get_length
	movq	16(%r12), %rcx
	cmpq	(%rcx), %rax
	jbe	LBB0_4
LBB0_3:
	movq	_DATA_TOO_LONG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_15
LBB0_4:
	movq	_MORE_DATA_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_15
LBB0_11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_evhttp_parse_response_line
	cmpl	$-1, %eax
	jne	LBB0_14
LBB0_13:
	movq	_DATA_CORRUPTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movq	%r15, %rdi
	callq	_mm_free
LBB0_15:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ALL_DATA_READ,4,2              ## @ALL_DATA_READ
	.comm	_EVBUFFER_EOL_CRLF,4,2          ## @EVBUFFER_EOL_CRLF
	.comm	_DATA_TOO_LONG,4,2              ## @DATA_TOO_LONG
	.comm	_MORE_DATA_EXPECTED,4,2         ## @MORE_DATA_EXPECTED
	.comm	_DATA_CORRUPTED,4,2             ## @DATA_CORRUPTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evhttp_parse_firstline_        ; -- Begin function evhttp_parse_firstline_
	.p2align	2
_evhttp_parse_firstline_:               ; @evhttp_parse_firstline_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ALL_DATA_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ALL_DATA_READ@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _EVBUFFER_EOL_CRLF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVBUFFER_EOL_CRLF@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	bl	_evbuffer_readln
	ldr	x8, [x20, #16]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x9, [sp, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ls	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mm_free
	b	LBB0_9
LBB0_4:
	str	x9, [x20]
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_11
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_13
; %bb.6:
	mov	x0, x20
	mov	x1, x19
	bl	_evhttp_parse_request_line
	b	LBB0_12
LBB0_7:
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_evbuffer_get_length
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ls	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _DATA_TOO_LONG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DATA_TOO_LONG@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_10:
Lloh9:
	adrp	x8, _MORE_DATA_EXPECTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MORE_DATA_EXPECTED@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_evhttp_parse_response_line
LBB0_12:
Lloh12:
	adrp	x8, _DATA_CORRUPTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DATA_CORRUPTED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w20, w8, w22, eq
	b	LBB0_14
LBB0_13:
Lloh15:
	adrp	x8, _DATA_CORRUPTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DATA_CORRUPTED@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
LBB0_14:
	mov	x0, x19
	bl	_mm_free
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ALL_DATA_READ,4,2              ; @ALL_DATA_READ
	.comm	_EVBUFFER_EOL_CRLF,4,2          ; @EVBUFFER_EOL_CRLF
	.comm	_DATA_TOO_LONG,4,2              ; @DATA_TOO_LONG
	.comm	_MORE_DATA_EXPECTED,4,2         ; @MORE_DATA_EXPECTED
	.comm	_DATA_CORRUPTED,4,2             ; @DATA_CORRUPTED
.subsections_via_symbols
