	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_verify_iovec                   ## -- Begin function verify_iovec
	.p2align	4, 0x90
_verify_iovec:                          ## @verify_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movq	_VERIFY_READ@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	16(%rbx), %rdi
	movq	%r15, %rdx
	callq	_move_addr_to_kernel
	testq	%rax, %rax
	jns	LBB0_4
	jmp	LBB0_20
LBB0_1:
	xorl	%r15d, %r15d
LBB0_4:
	movq	%r15, 16(%rbx)
	movl	(%rbx), %edx
	shll	$3, %edx
	movq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, 8(%rbx)
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_7
## %bb.8:
	cmpl	$1, %r8d
	jne	LBB0_10
## %bb.9:
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_16:
	testb	$1, %r8b
	je	LBB0_20
## %bb.17:
	movq	(%r14,%rdx,8), %rcx
	movq	_INT_MAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	subq	%rax, %rsi
	cmpq	%rsi, %rcx
	jbe	LBB0_19
## %bb.18:
	movq	%rsi, (%r14,%rdx,8)
	movq	%rsi, %rcx
LBB0_19:
	addq	%rcx, %rax
	jmp	LBB0_20
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_10:
	movl	%r8d, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	movq	_INT_MAX@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	%rcx, %rax
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rdx,8), %rcx
	movq	(%rdi), %rbx
	subq	%rax, %rbx
	cmpq	%rbx, %rcx
	jbe	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, (%r14,%rdx,8)
	movq	%rbx, %rcx
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	%rax, %rcx
	movq	8(%r14,%rdx,8), %rax
	movq	(%rdi), %rbx
	subq	%rcx, %rbx
	cmpq	%rbx, %rax
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, 8(%r14,%rdx,8)
	movq	%rbx, %rax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_VERIFY_READ,4,2                ## @VERIFY_READ
	.comm	_EFAULT,8,3                     ## @EFAULT
	.comm	_INT_MAX,8,3                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_verify_iovec                   ; -- Begin function verify_iovec
	.p2align	2
_verify_iovec:                          ; @verify_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, x1
	mov	x20, x0
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x8, _VERIFY_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERIFY_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [x20, #16]
	mov	x2, x21
	bl	_move_addr_to_kernel
	tbz	x0, #63, LBB0_4
	b	LBB0_6
LBB0_3:
	mov	x21, #0
LBB0_4:
	str	x21, [x20, #16]
	ldr	w8, [x20]
	lsl	w2, w8, #3
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_copy_from_user
	cbz	x0, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_6:
	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
LBB0_7:
	str	x19, [x20, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x0, #0
Lloh6:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, x10, x0
	add	x19, x19, #8
	subs	x8, x8, #1
	b.eq	LBB0_6
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	ldr	x11, [x9]
	sub	x11, x11, x0
	cmp	x10, x11
	b.ls	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	x11, [x19]
	mov	x10, x11
	b	LBB0_9
LBB0_12:
	mov	x0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VERIFY_READ,4,2                ; @VERIFY_READ
	.comm	_EFAULT,8,3                     ; @EFAULT
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
