	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fetch_headers
_fetch_headers:                         ## @fetch_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_SERF_NEWLINE_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_fetch_line
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_SERF_BUCKET_READ_ERROR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	(%r12), %rax
	movq	_SERF_LINEBUF_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movl	8(%r12), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.3:
	movq	16(%r12), %rdi
	movl	$58, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rcx
	incq	%rcx
	leal	1(%rax), %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movl	%edx, %r13d
	movq	16(%r12), %rsi
	movslq	8(%r12), %r9
	leaq	(%rsi,%r9), %rax
	cmpq	%rax, %rcx
	jae	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movsbl	(%rbx), %edi
	callq	_apr_isspace
	leaq	1(%rbx), %rcx
	leal	1(%r13), %edx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	movq	16(%r12), %rsi
	movl	8(%r12), %r9d
LBB0_8:
	movl	24(%r12), %edi
	subl	%esi, %r15d
	addl	%esi, %r9d
	subl	%r13d, %r9d
	movl	$1, (%rsp)
	movl	%r15d, %edx
	movl	$1, %ecx
	movq	%rbx, %r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_serf_bucket_headers_setx
	jmp	LBB0_9
LBB0_10:
	movq	_SERF_ERROR_BAD_HTTP_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERF_NEWLINE_ANY,4,2           ## @SERF_NEWLINE_ANY
	.comm	_SERF_LINEBUF_READY,8,3         ## @SERF_LINEBUF_READY
	.comm	_SERF_ERROR_BAD_HTTP_RESPONSE,4,2 ## @SERF_ERROR_BAD_HTTP_RESPONSE
	.no_dead_strip	_fetch_headers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fetch_headers
_fetch_headers:                         ; @fetch_headers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
Lloh0:
	adrp	x8, _SERF_NEWLINE_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SERF_NEWLINE_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fetch_line
	mov	x19, x0
	bl	_SERF_BUCKET_READ_ERROR
	cbnz	x0, LBB0_10
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _SERF_LINEBUF_READY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SERF_LINEBUF_READY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	w2, [x20, #8]
	cbz	w2, LBB0_10
; %bb.3:
	ldr	x0, [x20, #16]
	mov	w1, #58
	bl	_memchr
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	add	x24, x0, #1
	add	w8, w21, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x24
	mov	x23, x8
	ldr	x1, [x20, #16]
	ldrsw	x8, [x20, #8]
	add	x9, x1, x8
	cmp	x24, x9
	b.hs	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x22
	ldrsb	w0, [x24], #1
	bl	_apr_isspace
	add	w8, w23, #1
	cbnz	w0, LBB0_5
; %bb.7:
	ldr	x1, [x20, #16]
	ldr	w8, [x20, #8]
LBB0_8:
	ldr	w0, [x20, #24]
	sub	w2, w21, w1
	add	w8, w8, w1
	sub	w5, w8, w23
	mov	w3, #1
	mov	x4, x22
	mov	w6, #1
	bl	_serf_bucket_headers_setx
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x8, _SERF_ERROR_BAD_HTTP_RESPONSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SERF_ERROR_BAD_HTTP_RESPONSE@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_10:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SERF_NEWLINE_ANY,4,2           ; @SERF_NEWLINE_ANY
	.comm	_SERF_LINEBUF_READY,8,3         ; @SERF_LINEBUF_READY
	.comm	_SERF_ERROR_BAD_HTTP_RESPONSE,4,2 ; @SERF_ERROR_BAD_HTTP_RESPONSE
	.no_dead_strip	_fetch_headers
.subsections_via_symbols
