	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_readv                      ## -- Begin function sys_readv
	.p2align	4, 0x90
_sys_readv:                             ## @sys_readv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r12d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leal	(,%r13,8), %ebx
	movl	%ebx, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%r12d, %edi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_user_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	__EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movq	%r15, %rdi
	callq	_free
	movl	%ebx, %r12d
	jmp	LBB0_12
LBB0_1:
	movq	__ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_12
LBB0_3:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.5:
	movl	%r13d, %r13d
	decq	%r13
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r14,8), %edx
	movl	4(%r15,%r14,8), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_sys_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addl	%ebx, %r12d
	cmpl	(%r15,%r14,8), %ebx
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r14), %rax
	cmpq	%r14, %r13
	movq	%rax, %r14
	jne	LBB0_6
	jmp	LBB0_9
LBB0_4:
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r15, %rdi
	callq	_free
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__ENOMEM,4,2                    ## @_ENOMEM
	.comm	__EFAULT,4,2                    ## @_EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_readv                      ; -- Begin function sys_readv
	.p2align	2
_sys_readv:                             ; @sys_readv
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	lsl	w23, w2, #3
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_user_read
	cbz	x0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, __EFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
LBB0_3:
	mov	x0, x19
	bl	_free
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, __ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, __ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w20, #0
	cbz	w22, LBB0_3
; %bb.7:
	mov	w8, w22
	sub	x22, x8, #1
	mov	x23, x19
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x23]
	mov	x0, x21
	bl	_sys_read
	tbnz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w20, w0, w20
	ldr	w8, [x23], #8
	cmp	w0, w8
	ccmp	x22, #0, #4, hs
	sub	x22, x22, #1
	b.ne	LBB0_8
	b	LBB0_3
LBB0_10:
	mov	x20, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__ENOMEM,4,2                    ; @_ENOMEM
	.comm	__EFAULT,4,2                    ; @_EFAULT
.subsections_via_symbols
