	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __xen_write_cr3
___xen_write_cr3:                       ## @__xen_write_cr3
	.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	%rsi, %r15
	movl	%edi, %r14d
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	callq	_PFN_DOWN
	movl	%eax, %edi
	callq	_pfn_to_mfn
	movq	%rax, %rbx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	testq	%rbx, %rbx
	sete	%al
	testl	%r14d, %r14d
	setne	%cl
	je	LBB0_4
## %bb.5:
	movq	_MMUEXT_NEW_BASEPTR@GOTPCREL(%rip), %r12
	jmp	LBB0_6
LBB0_4:
	movq	_MMUEXT_NEW_USER_BASEPTR@GOTPCREL(%rip), %r12
LBB0_6:
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	movl	$16, %edi
	callq	___xen_mc_entry
	movl	(%r12), %ecx
	movl	%ecx, 8(%rdx)
	movq	%rbx, (%rdx)
	movq	_DOMID_SELF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	%eax, %edi
	movq	%rdx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_MULTI_mmuext_op
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	movq	_xen_cr3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_percpu_write
	movq	_set_current_cr3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xen_mc_callback                ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMUEXT_NEW_BASEPTR,4,2         ## @MMUEXT_NEW_BASEPTR
	.comm	_MMUEXT_NEW_USER_BASEPTR,4,2    ## @MMUEXT_NEW_USER_BASEPTR
	.comm	_DOMID_SELF,4,2                 ## @DOMID_SELF
	.comm	_xen_cr3,4,2                    ## @xen_cr3
	.comm	_set_current_cr3,4,2            ## @set_current_cr3
	.no_dead_strip	___xen_write_cr3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __xen_write_cr3
___xen_write_cr3:                       ; @__xen_write_cr3
	.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, x1
	mov	x20, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PFN_DOWN
	bl	_pfn_to_mfn
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	cmp	x21, #0
	cset	w8, eq
	cmp	w20, #0
	cset	w9, ne
	and	w0, w9, w8
Lloh0:
	adrp	x8, _MMUEXT_NEW_BASEPTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMUEXT_NEW_BASEPTR@GOTPAGEOFF]
Lloh2:
	adrp	x9, _MMUEXT_NEW_USER_BASEPTR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MMUEXT_NEW_USER_BASEPTR@GOTPAGEOFF]
	csel	x22, x8, x9, ne
	bl	_WARN_ON
	mov	w0, #16
	bl	___xen_mc_entry
	ldr	w8, [x22]
	str	w8, [x1, #8]
	str	x21, [x1]
Lloh4:
	adrp	x8, _DOMID_SELF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DOMID_SELF@GOTPAGEOFF]
Lloh6:
	ldr	w4, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w2, #1
	mov	x3, #0
	bl	_MULTI_mmuext_op
	cbz	w20, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _xen_cr3@GOTPAGE
Lloh8:
	ldr	x8, [x8, _xen_cr3@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_percpu_write
Lloh10:
	adrp	x8, _set_current_cr3@GOTPAGE
Lloh11:
	ldr	x8, [x8, _set_current_cr3@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	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	_xen_mc_callback
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MMUEXT_NEW_BASEPTR,4,2         ; @MMUEXT_NEW_BASEPTR
	.comm	_MMUEXT_NEW_USER_BASEPTR,4,2    ; @MMUEXT_NEW_USER_BASEPTR
	.comm	_DOMID_SELF,4,2                 ; @DOMID_SELF
	.comm	_xen_cr3,4,2                    ; @xen_cr3
	.comm	_set_current_cr3,4,2            ; @set_current_cr3
	.no_dead_strip	___xen_write_cr3
.subsections_via_symbols
