	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serf_headers_readline
_serf_headers_readline:                 ## @serf_headers_readline
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SERF_NEWLINE_CRLF@GOTPCREL(%rip), %r15
	testl	%esi, (%r15)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	movq	%r8, %rdx
	callq	_select_value
	movq	(%rbx), %rax
	movq	_READ_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_APR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	movq	_APR_EGENERAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_consume_chunk
	movq	(%rbx), %rcx
	movq	_READ_CRLF@GOTPCREL(%rip), %rdx
	movq	_READ_TERM@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	cmpq	(%rdi), %rcx
	je	LBB0_6
## %bb.5:
	movq	_SERF_NEWLINE_NONE@GOTPCREL(%rip), %rsi
LBB0_6:
	cmpq	(%rdx), %rcx
	cmoveq	%r15, %rsi
	movl	(%rsi), %ecx
	movl	%ecx, (%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERF_NEWLINE_CRLF,4,2          ## @SERF_NEWLINE_CRLF
	.comm	_APR_EGENERAL,4,2               ## @APR_EGENERAL
	.comm	_READ_DONE,8,3                  ## @READ_DONE
	.comm	_APR_EOF,4,2                    ## @APR_EOF
	.comm	_READ_CRLF,8,3                  ## @READ_CRLF
	.comm	_READ_TERM,8,3                  ## @READ_TERM
	.comm	_SERF_NEWLINE_NONE,4,2          ## @SERF_NEWLINE_NONE
	.no_dead_strip	_serf_headers_readline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serf_headers_readline
_serf_headers_readline:                 ; @serf_headers_readline
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _SERF_NEWLINE_CRLF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SERF_NEWLINE_CRLF@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x2
	ldr	x20, [x0]
	mov	x0, x20
	mov	x1, x3
	mov	x2, x4
	bl	_select_value
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _READ_DONE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _READ_DONE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _APR_EOF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _APR_EOF@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _APR_EGENERAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _APR_EGENERAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_consume_chunk
	ldr	x8, [x20]
Lloh11:
	adrp	x9, _READ_CRLF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _READ_CRLF@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _READ_TERM@GOTPAGE
Lloh15:
	ldr	x10, [x10, _READ_TERM@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh17:
	adrp	x8, _SERF_NEWLINE_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SERF_NEWLINE_NONE@GOTPAGEOFF]
	csel	x8, x21, x8, eq
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SERF_NEWLINE_CRLF,4,2          ; @SERF_NEWLINE_CRLF
	.comm	_APR_EGENERAL,4,2               ; @APR_EGENERAL
	.comm	_READ_DONE,8,3                  ; @READ_DONE
	.comm	_APR_EOF,4,2                    ; @APR_EOF
	.comm	_READ_CRLF,8,3                  ; @READ_CRLF
	.comm	_READ_TERM,8,3                  ; @READ_TERM
	.comm	_SERF_NEWLINE_NONE,4,2          ; @SERF_NEWLINE_NONE
	.no_dead_strip	_serf_headers_readline
.subsections_via_symbols
