	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_copyout                   ## -- Begin function test_copyout
	.p2align	4, 0x90
_test_copyout:                          ## @test_copyout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	andl	$2147483647, %esi               ## imm = 0x7FFFFFFF
	movq	_image_size@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	cmpl	%esi, %edi
	jge	LBB0_2
## %bb.1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_2:
	movl	%esi, %eax
	leaq	(%rax,%rcx), %r8
	movl	%edi, %r9d
	subl	%esi, %r9d
	cmpq	%rdi, %r8
	movslq	%r9d, %r8
	cmovbeq	%rcx, %r8
	movq	_image@GOTPCREL(%rip), %rcx
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rdx, %rdi
	movq	%rax, %rsi
	movq	%r8, %rdx
	callq	_memcpy
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_image_size,4,2                 ## @image_size
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_image,8,3                      ## @image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_copyout                   ; -- Begin function test_copyout
	.p2align	2
_test_copyout:                          ; @test_copyout
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	and	w9, w1, #0x7fffffff
Lloh0:
	adrp	x8, _image_size@GOTPAGE
Lloh1:
	ldr	x8, [x8, _image_size@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x10, x3, w9, uxtw
	sub	w11, w8, w9
	sxtw	x11, w11
	cmp	x10, x8
	csel	x8, x11, x3, hi
Lloh6:
	adrp	x10, _image@GOTPAGE
Lloh7:
	ldr	x10, [x10, _image@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x1, x10, w9, uxtw #2
	mov	x0, x2
	mov	x2, x8
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_image_size,4,2                 ; @image_size
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_image,8,3                      ; @image
.subsections_via_symbols
