	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_read_setup_vecs_      ## -- Begin function evbuffer_read_setup_vecs_
	.p2align	4, 0x90
_evbuffer_read_setup_vecs_:             ## @evbuffer_read_setup_vecs_
	.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
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_ASSERT_EVBUFFER_LOCKED
	movq	(%rbx), %r12
	movq	(%r12), %rdi
	callq	_CHAIN_SPACE_LEN
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %r12
LBB0_2:
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_8
## %bb.3:
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	addq	$8, %r13
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r14
	movq	%r14, %rdi
	callq	_CHAIN_SPACE_LEN
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	subq	%r15, %r12
	cmpq	%r12, %rax
	cmovbeq	%rax, %r12
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	cmoveq	%rax, %r12
	movq	%r14, %rdi
	callq	_CHAIN_SPACE_PTR
	movl	%eax, (%r13)
	movq	%r12, -8(%r13)
	incq	%rbx
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%r12, %r15
	addq	$16, %r13
	cmpq	-48(%rbp), %r15                 ## 8-byte Folded Reload
	jb	LBB0_5
LBB0_7:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	movq	%r12, (%r15)
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_read_setup_vecs_      ; -- Begin function evbuffer_read_setup_vecs_
	.p2align	2
_evbuffer_read_setup_vecs_:             ; @evbuffer_read_setup_vecs_
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x5
	mov	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	bl	_ASSERT_EVBUFFER_LOCKED
	ldr	x25, [x22]
	ldr	x0, [x25]
	bl	_CHAIN_SPACE_LEN
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x25, [x25]
LBB0_2:
	mov	w22, #0
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.3:
	cbz	x21, LBB0_7
; %bb.4:
	mov	x22, #0
	mov	x26, #0
	add	x27, x24, #8
	mov	x24, x25
	mov	w23, w23
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x24]
	mov	x0, x24
	bl	_CHAIN_SPACE_LEN
	sub	x8, x21, x26
	cmp	x0, x8
	ccmp	w20, #0, #4, hi
	csel	x28, x8, x0, ne
	mov	x0, x24
	bl	_CHAIN_SPACE_PTR
	str	w0, [x27]
	stur	x28, [x27, #-8]
	add	x22, x22, #1
	cmp	x22, x23
	b.hs	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #16
	add	x26, x28, x26
	cmp	x26, x21
	b.lo	LBB0_5
LBB0_7:
	str	x25, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
