	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function virt_efi_reset_system
_virt_efi_reset_system:                 ## @virt_efi_reset_system
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	_efi_runtime_lock@GOTPCREL(%rip), %rdi
	callq	_down_interruptible
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warn                        ## TAILCALL
LBB0_2:
	movq	_EFI_RESET_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_efi_rts_work@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_reset_system@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movq	%r14, %r8
	callq	___efi_call_virt
	movq	_efi_runtime_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_up                             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_efi_runtime_lock,4,2           ## @efi_runtime_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to invoke the reset_system() runtime service:\ncould not get exclusive access to the firmware\n"

	.comm	_EFI_RESET_SYSTEM,4,2           ## @EFI_RESET_SYSTEM
	.comm	_efi_rts_work,4,2               ## @efi_rts_work
	.comm	_reset_system,4,2               ## @reset_system
	.no_dead_strip	_virt_efi_reset_system
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function virt_efi_reset_system
_virt_efi_reset_system:                 ; @virt_efi_reset_system
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x0, _efi_runtime_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _efi_runtime_lock@GOTPAGEOFF]
	bl	_down_interruptible
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_warn
LBB0_2:
Lloh4:
	adrp	x8, _EFI_RESET_SYSTEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFI_RESET_SYSTEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _efi_rts_work@GOTPAGE
Lloh8:
	ldr	x9, [x9, _efi_rts_work@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
Lloh10:
	adrp	x8, _reset_system@GOTPAGE
Lloh11:
	ldr	x8, [x8, _reset_system@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	___efi_call_virt
Lloh13:
	adrp	x0, _efi_runtime_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _efi_runtime_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_up
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_efi_runtime_lock,4,2           ; @efi_runtime_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to invoke the reset_system() runtime service:\ncould not get exclusive access to the firmware\n"

	.comm	_EFI_RESET_SYSTEM,4,2           ; @EFI_RESET_SYSTEM
	.comm	_efi_rts_work,4,2               ; @efi_rts_work
	.comm	_reset_system,4,2               ; @reset_system
	.no_dead_strip	_virt_efi_reset_system
.subsections_via_symbols
