	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux32_copyiniov              ## -- Begin function linux32_copyiniov
	.p2align	4, 0x90
_linux32_copyiniov:                     ## @linux32_copyiniov
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	$0, (%rdx)
	movq	_UIO_MAXIOV@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jl	LBB0_7
## %bb.1:
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	(,%r12,8), %edi
	movq	_M_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r13
	testl	%r12d, %r12d
	jle	LBB0_6
## %bb.2:
	movl	%r12d, %r14d
	shlq	$3, %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r12), %rdi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi
	callq	_PTRIN
	movl	%eax, 4(%r13,%r12)
	movl	-48(%rbp), %eax
	movl	%eax, (%r13,%r12)
	addq	$8, %r12
	cmpq	%r12, %r14
	jne	LBB0_3
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	%eax, %ebx
	movq	_M_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_free
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIO_MAXIOV,4,2                 ## @UIO_MAXIOV
	.comm	_M_IOV,4,2                      ## @M_IOV
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux32_copyiniov              ; -- Begin function linux32_copyiniov
	.p2align	2
_linux32_copyiniov:                     ; @linux32_copyiniov
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x3
	str	xzr, [x2]
Lloh0:
	adrp	x8, _UIO_MAXIOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UIO_MAXIOV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	lsl	w0, w1, #3
Lloh3:
	adrp	x24, _M_IOV@GOTPAGE
Lloh4:
	ldr	x24, [x24, _M_IOV@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_malloc
	mov	x21, x0
	cmp	w23, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x25, #0
	mov	w8, w23
	lsl	x23, x8, #3
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x20, x25
	add	x1, sp, #8
	mov	w2, #8
	bl	_copyin
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [sp, #12]
	bl	_PTRIN
	add	x8, x21, x25
	ldr	w9, [sp, #8]
	stp	w9, w0, [x8]
	add	x25, x25, #8
	cmp	x23, x25
	b.ne	LBB0_3
LBB0_5:
	mov	w22, #0
	str	x21, [x19]
	b	LBB0_7
LBB0_6:
	mov	x22, x0
	ldr	w1, [x24]
	mov	x0, x21
	bl	_free
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_UIO_MAXIOV,4,2                 ; @UIO_MAXIOV
	.comm	_M_IOV,4,2                      ; @M_IOV
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
.subsections_via_symbols
