	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copyin                         ## -- Begin function copyin
	.p2align	4, 0x90
_copyin:                                ## @copyin
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movq	(%rcx), %r12
	leaq	-68(%rbp), %rcx
	movq	%rcx, (%rax)
	callq	_setjmp
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movq	(%r13), %rax
	movq	$0, (%rax)
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_1:
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rcx
	leaq	-56(%rbp), %r8
	callq	_pmap_map_user_ptr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rsi
	movq	%r13, %r12
	movq	-56(%rbp), %r13
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_memmove
	addq	%r13, %rbx
	addq	%r13, %r14
	subq	%r13, %r15
	movq	%r12, %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_3
LBB0_6:
	movq	(%r13), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_curthread,8,3                  ## @curthread
	.comm	_EFAULT,4,2                     ## @EFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copyin                         ; -- Begin function copyin
	.p2align	2
_copyin:                                ; @copyin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _curthread@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	ldp	x9, x8, [x24]
	ldr	x22, [x8]
	add	x8, sp, #28
	str	x8, [x9]
	bl	_setjmp
	cbz	x0, LBB0_2
LBB0_1:
	ldr	x8, [x24]
	str	xzr, [x8]
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_2:
	cbz	x19, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #16
	add	x4, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_pmap_map_user_ptr
	cbnz	x0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x23, x1, [sp, #8]
	mov	x0, x20
	mov	x2, x23
	bl	_memmove
	add	x21, x21, x23
	add	x20, x20, x23
	subs	x19, x19, x23
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
	ldr	x8, [x24]
	str	xzr, [x8]
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.comm	_EFAULT,4,2                     ; @EFAULT
.subsections_via_symbols
