	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_pin_page
_xen_pin_page:                          ## @xen_pin_page
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_TestSetPagePinned
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r12, %rdi
	callq	_PageHighMem
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	%r12, %rdi
	callq	_lowmem_page_address
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_page_to_pfn
	movq	%rax, %r15
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	___xen_mc_entry
	movq	_PT_PTE@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_xen_pte_lock
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	_PAGE_KERNEL_RO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pfn_pte
	movq	_PT_PGD@GOTPCREL(%rip), %rdx
	movl	$0, %ecx
	cmpl	%r14d, (%rdx)
	jne	LBB0_7
## %bb.6:
	movq	_UVMF_TLB_FLUSH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_MULTI_update_va_mapping
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	movq	_MMUEXT_PIN_L1_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_xen_do_pin
	movq	_xen_pte_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_xen_mc_callback
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_PTE,4,2                     ## @PT_PTE
	.comm	_PAGE_KERNEL_RO,4,2             ## @PAGE_KERNEL_RO
	.comm	_PT_PGD,4,2                     ## @PT_PGD
	.comm	_UVMF_TLB_FLUSH,4,2             ## @UVMF_TLB_FLUSH
	.comm	_MMUEXT_PIN_L1_TABLE,4,2        ## @MMUEXT_PIN_L1_TABLE
	.comm	_xen_pte_unlock,4,2             ## @xen_pte_unlock
	.no_dead_strip	_xen_pin_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_pin_page
_xen_pin_page:                          ; @xen_pin_page
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x23, x1
	mov	x22, x0
	mov	x0, x1
	bl	_TestSetPagePinned
	cbz	w0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x0, x23
	bl	_PageHighMem
	cbz	x0, LBB0_5
; %bb.3:
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x23
	bl	_lowmem_page_address
	mov	x21, x0
	mov	x0, x23
	bl	_page_to_pfn
	mov	x20, x0
	mov	w0, #0
	bl	___xen_mc_entry
	mov	x24, x0
Lloh0:
	adrp	x8, _PT_PTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_PTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x23
	mov	x1, x22
	bl	_xen_pte_lock
	mov	x22, x0
	b	LBB0_8
LBB0_7:
	mov	x22, #0
LBB0_8:
Lloh3:
	adrp	x8, _PAGE_KERNEL_RO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_KERNEL_RO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pfn_pte
	mov	x2, x0
Lloh6:
	adrp	x8, _PT_PGD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PT_PGD@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _UVMF_TLB_FLUSH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _UVMF_TLB_FLUSH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w19
	csel	w3, w9, wzr, eq
	mov	x0, x24
	mov	x1, x21
	bl	_MULTI_update_va_mapping
	cbz	x22, LBB0_1
; %bb.9:
Lloh12:
	adrp	x8, _MMUEXT_PIN_L1_TABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MMUEXT_PIN_L1_TABLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_xen_do_pin
Lloh15:
	adrp	x8, _xen_pte_unlock@GOTPAGE
Lloh16:
	ldr	x8, [x8, _xen_pte_unlock@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_xen_mc_callback
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_PTE,4,2                     ; @PT_PTE
	.comm	_PAGE_KERNEL_RO,4,2             ; @PAGE_KERNEL_RO
	.comm	_PT_PGD,4,2                     ; @PT_PGD
	.comm	_UVMF_TLB_FLUSH,4,2             ; @UVMF_TLB_FLUSH
	.comm	_MMUEXT_PIN_L1_TABLE,4,2        ; @MMUEXT_PIN_L1_TABLE
	.comm	_xen_pte_unlock,4,2             ; @xen_pte_unlock
	.no_dead_strip	_xen_pin_page
.subsections_via_symbols
