	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_copy_finish                ## -- Begin function efi_copy_finish
	.p2align	4, 0x90
_efi_copy_finish:                       ## @efi_copy_finish
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_staging@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_staging_end@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	cmpq	%r11, %rax
	jae	LBB0_13
## %bb.1:
	movq	_stage_offset@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	leaq	4(%rax), %rcx
	cmpq	%rcx, %r11
	cmovaq	%r11, %rcx
	movq	%rax, %r9
	notq	%r9
	addq	%rcx, %r9
	cmpq	$28, %r9
	jb	LBB0_12
## %bb.2:
	addq	$31, %rsi
	cmpq	$32, %rsi
	jb	LBB0_12
## %bb.3:
	shrq	$2, %r9
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r10d
	andl	$3, %r10d
	cmpq	$24, %rcx
	jae	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rax,%rsi,4), %xmm0
	movups	16(%rax,%rsi,4), %xmm1
	movups	%xmm0, (%rdx,%rsi,4)
	movups	%xmm1, 16(%rdx,%rsi,4)
	movups	32(%rax,%rsi,4), %xmm0
	movups	48(%rax,%rsi,4), %xmm1
	movups	%xmm0, 32(%rdx,%rsi,4)
	movups	%xmm1, 48(%rdx,%rsi,4)
	movups	64(%rax,%rsi,4), %xmm0
	movups	80(%rax,%rsi,4), %xmm1
	movups	%xmm0, 64(%rdx,%rsi,4)
	movups	%xmm1, 80(%rdx,%rsi,4)
	movups	96(%rax,%rsi,4), %xmm0
	movups	112(%rax,%rsi,4), %xmm1
	movups	%xmm0, 96(%rdx,%rsi,4)
	movups	%xmm1, 112(%rdx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rdi
	jne	LBB0_6
LBB0_7:
	testq	%r10, %r10
	je	LBB0_10
## %bb.8:
	leaq	(%rdx,%rsi,4), %rdi
	addq	$16, %rdi
	leaq	(%rax,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r10
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rcx), %xmm0
	movups	(%rsi,%rcx), %xmm1
	movups	%xmm0, -16(%rdi,%rcx)
	movups	%xmm1, (%rdi,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %r10
	jne	LBB0_9
LBB0_10:
	cmpq	%r8, %r9
	je	LBB0_13
## %bb.11:
	leaq	(%rax,%r8,4), %rax
	leaq	(%rdx,%r8,4), %rdx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %ecx
	addq	$4, %rax
	movl	%ecx, (%rdx)
	addq	$4, %rdx
	cmpq	%r11, %rax
	jb	LBB0_12
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_staging,8,3                    ## @staging
	.comm	_stage_offset,8,3               ## @stage_offset
	.comm	_staging_end,8,3                ## @staging_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_copy_finish                ; -- Begin function efi_copy_finish
	.p2align	2
_efi_copy_finish:                       ; @efi_copy_finish
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _staging@GOTPAGE
Lloh1:
	ldr	x8, [x8, _staging@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x8]
Lloh3:
	adrp	x8, _staging_end@GOTPAGE
Lloh4:
	ldr	x8, [x8, _staging_end@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x13, x8
	b.hs	LBB0_7
; %bb.1:
	mov	x9, x13
Lloh6:
	adrp	x10, _stage_offset@GOTPAGE
Lloh7:
	ldr	x10, [x10, _stage_offset@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x10]
	sub	x10, x13, x11
	add	x12, x13, #4
	cmp	x8, x12
	csel	x12, x8, x12, hi
	mvn	x14, x13
	add	x12, x12, x14
	cmp	x12, #60
	b.lo	LBB0_6
; %bb.2:
	add	x11, x11, #63
	cmp	x11, #64
	b.lo	LBB0_6
; %bb.3:
	lsr	x9, x12, #2
	add	x11, x9, #1
	and	x12, x11, #0x7ffffffffffffff0
	lsl	x14, x12, #2
	add	x9, x13, x14
	add	x14, x10, x14
	add	x13, x13, #32
	add	x10, x10, #32
	mov	x15, x12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x15, x15, #16
	b.ne	LBB0_4
; %bb.5:
	mov	x10, x14
	cmp	x11, x12
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x10], #4
	cmp	x9, x8
	b.lo	LBB0_6
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_staging,8,3                    ; @staging
	.comm	_stage_offset,8,3               ; @stage_offset
	.comm	_staging_end,8,3                ; @staging_end
.subsections_via_symbols
