	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_arch_leave                 ## -- Begin function efi_arch_leave
	.p2align	4, 0x90
_efi_arch_leave:                        ## @efi_arch_leave
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	_pmap_pcid_enabled@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_invpcid_works@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_PCPU_SET
	movq	(%r14), %rax
LBB0_3:
	movl	(%rbx), %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	8(%rbx), %rbx
	movq	_cpuid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PCPU_GET
	movl	(%rbx,%rax,4), %edi
	jmp	LBB0_6
LBB0_4:
	xorl	%edi, %edi
LBB0_6:
	orl	%r15d, %edi
	callq	_load_cr3
	cmpq	$0, (%r14)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_invltlb
LBB0_8:
	movq	_curthread@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vm_fault_enable_pagefaults     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curproc,8,3                    ## @curproc
	.comm	_pmap_pcid_enabled,8,3          ## @pmap_pcid_enabled
	.comm	_invpcid_works,4,2              ## @invpcid_works
	.comm	_cpuid,4,2                      ## @cpuid
	.comm	_curthread,8,3                  ## @curthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_arch_leave                 ; -- Begin function efi_arch_leave
	.p2align	2
_efi_arch_leave:                        ; @efi_arch_leave
	.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
Lloh0:
	adrp	x8, _curproc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x19, [x8]
Lloh3:
	adrp	x20, _pmap_pcid_enabled@GOTPAGE
Lloh4:
	ldr	x20, [x20, _pmap_pcid_enabled@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _invpcid_works@GOTPAGE
Lloh6:
	ldr	x9, [x9, _invpcid_works@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x19
	bl	_PCPU_SET
	ldr	x8, [x20]
LBB0_2:
	ldr	w21, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x19, [x19, #8]
Lloh8:
	adrp	x8, _cpuid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cpuid@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_PCPU_GET
	ldr	w8, [x19, x0, lsl #2]
LBB0_4:
	orr	w0, w8, w21
	bl	_load_cr3
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
; %bb.5:
	bl	_invltlb
LBB0_6:
Lloh11:
	adrp	x8, _curthread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w0, [x8]
	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	_vm_fault_enable_pagefaults
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_curproc,8,3                    ; @curproc
	.comm	_pmap_pcid_enabled,8,3          ; @pmap_pcid_enabled
	.comm	_invpcid_works,4,2              ; @invpcid_works
	.comm	_cpuid,4,2                      ; @cpuid
	.comm	_curthread,8,3                  ; @curthread
.subsections_via_symbols
