	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serf_headers_read_iovec
_serf_headers_read_iovec:               ## @serf_headers_read_iovec
	.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	$0, (%r8)
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movq	%r8, %r15
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	callq	_serf_headers_read
	movq	-48(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdx
	movslq	(%r15), %rsi
	leal	1(%rsi), %edi
	shlq	$4, %rsi
	movq	%rdx, (%r14,%rsi)
	movq	%rcx, 8(%r14,%rsi)
	movl	%edi, (%r15)
	movq	_SERF_READ_ALL_AVAIL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	%rcx, %r12
	je	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	jne	LBB0_3
LBB0_7:
	movq	_APR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SERF_READ_ALL_AVAIL,8,3        ## @SERF_READ_ALL_AVAIL
	.comm	_APR_SUCCESS,8,3                ## @APR_SUCCESS
	.no_dead_strip	_serf_headers_read_iovec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serf_headers_read_iovec
_serf_headers_read_iovec:               ; @serf_headers_read_iovec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	str	wzr, [x4]
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _SERF_READ_ALL_AVAIL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SERF_READ_ALL_AVAIL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x23
	mov	x1, x22
	bl	_serf_headers_read
	ldr	x8, [sp]
	cbz	x8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [sp, #8]
	ldrsw	x10, [x19]
	add	x11, x20, x10, lsl #4
	stp	x9, x8, [x11]
	add	w9, w10, #1
	str	w9, [x19]
	ldr	x9, [x24]
	cmp	x22, x9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	x22, x22, x8
	b.eq	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w21, w21, #1
	b.ne	LBB0_2
LBB0_7:
Lloh2:
	adrp	x8, _APR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APR_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SERF_READ_ALL_AVAIL,8,3        ; @SERF_READ_ALL_AVAIL
	.comm	_APR_SUCCESS,8,3                ; @APR_SUCCESS
	.no_dead_strip	_serf_headers_read_iovec
.subsections_via_symbols
