	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_extend_mmu_update
_xen_extend_mmu_update:                 ## @xen_extend_mmu_update
	.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	%rdi, %r14
	movq	___HYPERVISOR_mmu_update@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_xen_mc_extend_args
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	%rax, %r15
	movq	%rdx, %rbx
	movq	_mmu_update_extended@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_ADD_STATS
	movq	_mmu_update_histo@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$-1, %esi
	callq	_ADD_STATS
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	incq	%rcx
	movq	%rcx, 8(%rax)
	movq	_MMU_UPDATE_HISTO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	cmovbq	%rcx, %rax
	shlq	$2, %rax
	addq	(%r12), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_mmu_update@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_ADD_STATS
	movl	$4, %edi
	callq	___xen_mc_entry
	movq	%rax, %r15
	movq	%rdx, %rdi
	movq	_DOMID_SELF@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_MULTI_mmu_update
	movq	_mmu_update_histo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$4, %rax
LBB0_3:
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_ADD_STATS
	movl	(%r14), %eax
	movl	%eax, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___HYPERVISOR_mmu_update,4,2    ## @__HYPERVISOR_mmu_update
	.comm	_mmu_update_extended,4,2        ## @mmu_update_extended
	.comm	_mmu_update_histo,8,3           ## @mmu_update_histo
	.comm	_MMU_UPDATE_HISTO,8,3           ## @MMU_UPDATE_HISTO
	.comm	_mmu_update,4,2                 ## @mmu_update
	.comm	_DOMID_SELF,4,2                 ## @DOMID_SELF
	.no_dead_strip	_xen_extend_mmu_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_extend_mmu_update
_xen_extend_mmu_update:                 ; @xen_extend_mmu_update
	.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, x0
Lloh0:
	adrp	x8, ___HYPERVISOR_mmu_update@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___HYPERVISOR_mmu_update@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_xen_mc_extend_args
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x21, x1
Lloh3:
	adrp	x8, _mmu_update_extended@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmu_update_extended@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_ADD_STATS
Lloh6:
	adrp	x22, _mmu_update_histo@GOTPAGE
Lloh7:
	ldr	x22, [x22, _mmu_update_histo@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #-1
	bl	_ADD_STATS
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	add	x10, x9, #1
Lloh8:
	adrp	x11, _MMU_UPDATE_HISTO@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MMU_UPDATE_HISTO@GOTPAGEOFF]
	str	x10, [x8, #8]
Lloh10:
	ldr	x8, [x11]
	ldr	x11, [x22]
	cmp	x10, x8
	csinc	x8, xzr, x9, hs
	add	x8, x11, x8, lsl #2
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _mmu_update@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmu_update@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_ADD_STATS
	mov	w0, #4
	bl	___xen_mc_entry
	mov	x20, x0
	mov	x0, x1
Lloh14:
	adrp	x8, _DOMID_SELF@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DOMID_SELF@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x1, x20
	mov	w2, #1
	mov	x3, #0
	bl	_MULTI_mmu_update
Lloh17:
	adrp	x8, _mmu_update_histo@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mmu_update_histo@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x8, x8, #4
LBB0_3:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_ADD_STATS
	ldr	w8, [x19]
	str	w8, [x20]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	___HYPERVISOR_mmu_update,4,2    ; @__HYPERVISOR_mmu_update
	.comm	_mmu_update_extended,4,2        ; @mmu_update_extended
	.comm	_mmu_update_histo,8,3           ; @mmu_update_histo
	.comm	_MMU_UPDATE_HISTO,8,3           ; @MMU_UPDATE_HISTO
	.comm	_mmu_update,4,2                 ; @mmu_update
	.comm	_DOMID_SELF,4,2                 ; @DOMID_SELF
	.no_dead_strip	_xen_extend_mmu_update
.subsections_via_symbols
