	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_linux32_copyinuio              ## -- Begin function linux32_copyinuio
	.p2align	4, 0x90
_linux32_copyinuio:                     ## @linux32_copyinuio
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rdx)
	movq	_UIO_MAXIOV@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_13
LBB0_2:
	movq	%rdx, %r14
	movl	%esi, %ebx
	movl	%esi, %edi
	shll	$4, %edi
	addl	$32, %edi
	movq	_M_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	movq	%rax, %r13
	movq	%rax, %r15
	addq	$32, %r15
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	shlq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %rdi
	leaq	-80(%rbp), %rsi
	movl	$16, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-72(%rbp), %edi
	callq	_PTRIN
	movl	%eax, 40(%r13,%r12)
	movq	-80(%rbp), %rax
	movq	%rax, 32(%r13,%r12)
	addq	$16, %r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.8:
	movq	%r15, 24(%r13)
	movl	%ebx, (%r13)
	movq	_UIO_USERSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	$-1, 4(%r13)
	movq	$0, 8(%r13)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_M_IOV@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdx
	movq	%rax, %rsi
	subq	%rcx, %rsi
	cmpq	%rsi, %rdx
	jg	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%rdx, %rcx
	movq	%rcx, 8(%r13)
	addq	$16, %r15
	decl	%ebx
	jne	LBB0_9
	jmp	LBB0_12
LBB0_3:
	movq	%r15, 24(%r13)
	movl	%ebx, (%r13)
	movq	_UIO_USERSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movl	$-1, 4(%r13)
	movq	$0, 8(%r13)
LBB0_12:
	movq	%r13, (%r14)
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_6:
	movl	%eax, %r14d
	movq	_M_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_free
LBB0_13:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%rdi), %esi
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_UIO_MAXIOV,4,2                 ## @UIO_MAXIOV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_M_IOV,4,2                      ## @M_IOV
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_UIO_USERSPACE,4,2              ## @UIO_USERSPACE
	.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	_linux32_copyinuio              ; -- Begin function linux32_copyinuio
	.p2align	2
_linux32_copyinuio:                     ; @linux32_copyinuio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [x2]
Lloh0:
	adrp	x8, _UIO_MAXIOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UIO_MAXIOV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ge	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_12
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	lsl	w8, w1, #4
	add	w0, w8, #32
Lloh6:
	adrp	x24, _M_IOV@GOTPAGE
Lloh7:
	ldr	x24, [x24, _M_IOV@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh8:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_malloc
	mov	x21, x0
	add	x25, x0, #32
	cmp	w20, #0
	b.le	LBB0_9
; %bb.3:
	mov	x26, #0
	mov	w8, w20
	lsl	x27, x8, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x22, x26
	mov	x1, sp
	mov	w2, #16
	bl	_copyin
	cbnz	w0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #8]
	bl	_PTRIN
	add	x8, x21, x26
	str	w0, [x8, #40]
	ldr	x9, [sp]
	str	x9, [x8, #32]
	add	x26, x26, #16
	cmp	x27, x26
	b.ne	LBB0_4
; %bb.6:
	mov	x8, #0
	str	x25, [x21, #24]
Lloh11:
	adrp	x9, _UIO_USERSPACE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UIO_USERSPACE@GOTPAGEOFF]
	mov	w10, #-1
	stp	w20, w10, [x21]
Lloh13:
	ldr	w9, [x9]
	str	w9, [x21, #16]
	str	xzr, [x21, #8]
Lloh14:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh15:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	mov	w10, #32
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x21, x10]
	sub	x12, x9, x8
	cmp	x11, x12
	b.gt	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, x11
	str	x8, [x21, #8]
	add	x10, x10, #16
	subs	w20, w20, #1
	b.ne	LBB0_7
	b	LBB0_10
LBB0_9:
	str	x25, [x21, #24]
Lloh17:
	adrp	x8, _UIO_USERSPACE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _UIO_USERSPACE@GOTPAGEOFF]
	mov	w9, #-1
	stp	w20, w9, [x21]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	xzr, [x21, #8]
LBB0_10:
	mov	w23, #0
	str	x21, [x19]
	b	LBB0_12
LBB0_11:
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x21
	bl	_free
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_free
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_UIO_MAXIOV,4,2                 ; @UIO_MAXIOV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_M_IOV,4,2                      ; @M_IOV
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_UIO_USERSPACE,4,2              ; @UIO_USERSPACE
	.comm	_INT_MAX,8,3                    ; @INT_MAX
.subsections_via_symbols
