	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_call_phys_epilog           ## -- Begin function efi_call_phys_epilog
	.p2align	4, 0x90
_efi_call_phys_epilog:                  ## @efi_call_phys_epilog
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%edi, %edi
	callq	_get_cpu_gdt_table
	movq	%rax, -56(%rbp)
	movq	_GDT_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, -48(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_load_gdt
	xorl	%eax, %eax
	callq	_read_cr4_safe
	movq	%rax, %rbx
	movq	_X86_CR4_PAE@GOTPCREL(%rip), %rax
	andq	(%rax), %rbx
	movq	_efi_bak_pg_dir_pointer@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %r12d
	movq	_swapper_pg_dir@GOTPCREL(%rip), %r15
	movq	(%r15), %r13
	xorl	%edi, %edi
	callq	_pgd_index
	movl	%r12d, (%r13,%rax,4)
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movl	4(%rax), %r14d
	movq	(%r15), %rbx
	movl	$4194304, %edi                  ## imm = 0x400000
	callq	_pgd_index
	movl	%r14d, (%rbx,%rax,4)
LBB0_2:
	xorl	%eax, %eax
	callq	___flush_tlb_all
	movq	_efi_rt_eflags@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_local_irq_restore
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GDT_SIZE,8,3                   ## @GDT_SIZE
	.comm	_X86_CR4_PAE,8,3                ## @X86_CR4_PAE
	.comm	_efi_bak_pg_dir_pointer,8,3     ## @efi_bak_pg_dir_pointer
	.comm	_swapper_pg_dir,8,3             ## @swapper_pg_dir
	.comm	_efi_rt_eflags,4,2              ## @efi_rt_eflags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efi_call_phys_epilog           ; -- Begin function efi_call_phys_epilog
	.p2align	2
_efi_call_phys_epilog:                  ; @efi_call_phys_epilog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	w0, #0
	bl	_get_cpu_gdt_table
Lloh0:
	adrp	x8, _GDT_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GDT_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x8, x8, #1
	stp	x0, x8, [sp]
	mov	x0, sp
	bl	_load_gdt
	bl	_read_cr4_safe
Lloh3:
	adrp	x8, _X86_CR4_PAE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X86_CR4_PAE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x19, _efi_bak_pg_dir_pointer@GOTPAGE
Lloh7:
	ldr	x19, [x19, _efi_bak_pg_dir_pointer@GOTPAGEOFF]
	and	x21, x8, x0
	ldr	x8, [x19]
	ldr	w22, [x8]
Lloh8:
	adrp	x20, _swapper_pg_dir@GOTPAGE
Lloh9:
	ldr	x20, [x20, _swapper_pg_dir@GOTPAGEOFF]
	ldr	x23, [x20]
	mov	w0, #0
	bl	_pgd_index
	str	w22, [x23, x0, lsl #2]
	cbnz	x21, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w19, [x8, #4]
	ldr	x20, [x20]
	mov	w0, #4194304
	bl	_pgd_index
	str	w19, [x20, x0, lsl #2]
LBB0_2:
	bl	___flush_tlb_all
Lloh10:
	adrp	x8, _efi_rt_eflags@GOTPAGE
Lloh11:
	ldr	x8, [x8, _efi_rt_eflags@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_local_irq_restore
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GDT_SIZE,8,3                   ; @GDT_SIZE
	.comm	_X86_CR4_PAE,8,3                ; @X86_CR4_PAE
	.comm	_efi_bak_pg_dir_pointer,8,3     ; @efi_bak_pg_dir_pointer
	.comm	_swapper_pg_dir,8,3             ; @swapper_pg_dir
	.comm	_efi_rt_eflags,4,2              ; @efi_rt_eflags
.subsections_via_symbols
