	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evbuffer_add_iovec             ## -- Begin function evbuffer_add_iovec
	.p2align	4, 0x90
_evbuffer_add_iovec:                    ## @evbuffer_add_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_EVBUFFER_LOCK
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	%ebx, %r12d
	cmpl	$5, %ebx
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_evbuffer_expand_fast_
	jmp	LBB0_12
LBB0_4:
	movl	%r12d, %eax
	andl	$3, %eax
	testq	%rax, %rax
	movl	$4, %ecx
	cmovneq	%rax, %rcx
	movq	%r12, %rax
	subq	%rcx, %rax
	leaq	32(%r15), %rcx
	pxor	%xmm0, %xmm0
	movq	%rax, %rdx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-32(%rcx), %xmm2
	movdqu	-16(%rcx), %xmm3
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	paddq	%xmm2, %xmm0
	movdqu	(%rcx), %xmm2
	movdqu	16(%rcx), %xmm3
	punpcklqdq	%xmm3, %xmm2            ## xmm2 = xmm2[0],xmm3[0]
	paddq	%xmm2, %xmm1
	addq	$64, %rcx
	addq	$-4, %rdx
	jne	LBB0_5
## %bb.6:
	paddq	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddq	%xmm1, %xmm0
	movq	%xmm0, %rsi
LBB0_7:
	movq	%r12, %rcx
	subq	%rax, %rcx
	shlq	$4, %rax
	addq	%r15, %rax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addq	(%rax), %rsi
	addq	$16, %rax
	decq	%rcx
	jne	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_evbuffer_expand_fast_
	xorl	%ebx, %ebx
	testq	%rax, %rax
	js	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %esi
	movq	(%r15), %rdx
	movq	%r14, %rdi
	callq	_evbuffer_add
	testq	%rax, %rax
	js	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	(%r15), %rbx
	addq	$16, %r15
	decq	%r12
	jne	LBB0_10
LBB0_12:
	movq	%r14, %rdi
	callq	_EVBUFFER_UNLOCK
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	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_add_iovec             ; -- Begin function evbuffer_add_iovec
	.p2align	2
_evbuffer_add_iovec:                    ; @evbuffer_add_iovec
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_EVBUFFER_LOCK
	cmp	w21, #0
	b.le	LBB0_3
; %bb.1:
	mov	w22, w21
	cmp	w21, #9
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	x1, #0
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #2
	bl	_evbuffer_expand_fast_
	mov	x21, #0
	b	LBB0_12
LBB0_4:
	ands	x8, x22, #0x7
	mov	w9, #8
	csel	x8, x9, x8, eq
	sub	x8, x22, x8
	add	x10, x20, #64
	movi.2d	v0, #0000000000000000
	mov	x9, x8
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x11, x10, #64
	ld2.2d	{ v4, v5 }, [x11]
	sub	x11, x10, #32
	ld2.2d	{ v6, v7 }, [x11]
	add	x11, x10, #128
	ld2.2d	{ v16, v17 }, [x10], #32
	ld2.2d	{ v18, v19 }, [x10]
	add.2d	v0, v4, v0
	add.2d	v1, v6, v1
	add.2d	v2, v16, v2
	add.2d	v3, v18, v3
	mov	x10, x11
	subs	x9, x9, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x1, d0
LBB0_7:
	add	x9, x20, x8, lsl #4
	sub	x8, x22, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #16
	add	x1, x10, x1
	subs	x8, x8, #1
	b.ne	LBB0_8
; %bb.9:
	mov	x0, x19
	mov	w2, #2
	bl	_evbuffer_expand_fast_
	mov	x21, #0
	tbnz	x0, #63, LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #8]
	ldr	x2, [x20]
	mov	x0, x19
	bl	_evbuffer_add
	tbnz	x0, #63, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20], #16
	add	x21, x8, x21
	subs	x22, x22, #1
	b.ne	LBB0_10
LBB0_12:
	mov	x0, x19
	bl	_EVBUFFER_UNLOCK
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
