	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_prepare_iovec              ## -- Begin function tcp_prepare_iovec
	.p2align	4, 0x90
_tcp_prepare_iovec:                     ## @tcp_prepare_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
	movq	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rwm_prepare_iovec
	testl	%eax, %eax
	js	LBB0_1
## %bb.14:
	movl	%eax, (%r12)
	movl	(%r14), %ebx
	jmp	LBB0_15
LBB0_1:
	movl	%ebx, (%r12)
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	movl	%ebx, %eax
	cmpl	$4, %ebx
	jae	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %ecx
	andl	$-4, %ecx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r15,%rsi,8), %xmm2
	movdqu	16(%r15,%rsi,8), %xmm3
	movdqu	32(%r15,%rsi,8), %xmm4
	movdqu	48(%r15,%rsi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_8
## %bb.9:
	testb	$1, %dl
	je	LBB0_11
LBB0_10:
	movdqu	(%r15,%rsi,8), %xmm2
	movdqu	16(%r15,%rsi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_11:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rcx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%r15,%rcx,8), %ebx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
LBB0_13:
	xorl	%edi, %edi
	cmpl	(%r14), %ebx
	setl	%dil
	callq	_assert
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	testb	$1, %dl
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_prepare_iovec              ; -- Begin function tcp_prepare_iovec
	.p2align	2
_tcp_prepare_iovec:                     ; @tcp_prepare_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	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w3, [x3]
	mov	x0, x19
	mov	x1, x20
	bl	_rwm_prepare_iovec
	tbnz	w0, #31, LBB0_2
; %bb.1:
	str	w0, [x22]
	ldr	w21, [x19]
	b	LBB0_12
LBB0_2:
	str	w21, [x22]
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w8, w21
	cmp	w21, #8
	b.hs	LBB0_6
; %bb.4:
	mov	x9, #0
	mov	w21, #0
	b	LBB0_9
LBB0_5:
	mov	w21, #0
	b	LBB0_11
LBB0_6:
	and	x9, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x10, x20, #32
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x11, x11, #8
	b.ne	LBB0_7
; %bb.8:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w21, s0
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_9:
	add	x10, x20, x9, lsl #3
	sub	x8, x8, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #8
	add	w21, w21, w9
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	w8, [x19]
	cmp	w21, w8
	cset	w0, lt
	bl	_assert
LBB0_12:
	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
