	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_copyin                     ## -- Begin function efi_copyin
	.p2align	4, 0x90
_efi_copyin:                            ## @efi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	%rdi, %rax
	movq	_stage_offset_set@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_stage_offset@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	_staging@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	subq	%rsi, %rdi
	movq	_stage_offset@GOTPCREL(%rip), %rdx
	movq	%rdi, (%rdx)
	movl	$1, (%rcx)
LBB0_3:
	addq	%rsi, %rdi
	leaq	(%rdi,%rbx), %rcx
	movq	_staging_end@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jbe	LBB0_5
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_memmove
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stage_offset_set,4,2           ## @stage_offset_set
	.comm	_staging,8,3                    ## @staging
	.comm	_stage_offset,8,3               ## @stage_offset
	.comm	_staging_end,8,3                ## @staging_end
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_copyin                     ; -- Begin function efi_copyin
	.p2align	2
_efi_copyin:                            ; @efi_copyin
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x8, x0
Lloh0:
	adrp	x10, _stage_offset_set@GOTPAGE
Lloh1:
	ldr	x10, [x10, _stage_offset_set@GOTPAGEOFF]
	ldr	w9, [x10]
	cbz	w9, LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _stage_offset@GOTPAGE
Lloh3:
	ldr	x9, [x9, _stage_offset@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x9, _staging@GOTPAGE
Lloh6:
	ldr	x9, [x9, _staging@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x9, x9, x1
Lloh8:
	adrp	x11, _stage_offset@GOTPAGE
Lloh9:
	ldr	x11, [x11, _stage_offset@GOTPAGEOFF]
Lloh10:
	str	x9, [x11]
	mov	w11, #1
	str	w11, [x10]
LBB0_3:
	add	x0, x9, x1
	add	x9, x0, x19
Lloh11:
	adrp	x10, _staging_end@GOTPAGE
Lloh12:
	ldr	x10, [x10, _staging_end@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ls	LBB0_5
; %bb.4:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _errno@GOTPAGE
Lloh18:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	mov	w19, #-1
	b	LBB0_6
LBB0_5:
	mov	x1, x8
	mov	x2, x19
	bl	_memmove
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_stage_offset_set,4,2           ; @stage_offset_set
	.comm	_staging,8,3                    ; @staging
	.comm	_stage_offset,8,3               ; @stage_offset
	.comm	_staging_end,8,3                ; @staging_end
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
