	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xen_release_ptpage
_xen_release_ptpage:                    ## @xen_release_ptpage
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_pfn_to_page
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PagePinned
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_PageHighMem
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	_PT_PTE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	_USE_SPLIT_PTLOCKS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_MMUEXT_UNPIN_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_pin_pagetable_pfn
LBB0_5:
	movq	%r14, %rdi
	callq	_PFN_PHYS
	movl	%eax, %edi
	callq	___va
	movl	%eax, %edi
	callq	_make_lowmem_page_readwrite
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ClearPagePinned                ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PT_PTE,4,2                     ## @PT_PTE
	.comm	_USE_SPLIT_PTLOCKS,8,3          ## @USE_SPLIT_PTLOCKS
	.comm	_MMUEXT_UNPIN_TABLE,4,2         ## @MMUEXT_UNPIN_TABLE
	.no_dead_strip	_xen_release_ptpage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xen_release_ptpage
_xen_release_ptpage:                    ; @xen_release_ptpage
	.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	x21, x1
	mov	x20, x0
	bl	_pfn_to_page
	mov	x19, x0
	bl	_PagePinned
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_PageHighMem
	cbnz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _PT_PTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PT_PTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _USE_SPLIT_PTLOCKS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _USE_SPLIT_PTLOCKS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	w8, w21
	ccmp	x9, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MMUEXT_UNPIN_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MMUEXT_UNPIN_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_pin_pagetable_pfn
LBB0_4:
	mov	x0, x20
	bl	_PFN_PHYS
	bl	___va
	bl	_make_lowmem_page_readwrite
LBB0_5:
	mov	x0, 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	_ClearPagePinned
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PT_PTE,4,2                     ; @PT_PTE
	.comm	_USE_SPLIT_PTLOCKS,8,3          ; @USE_SPLIT_PTLOCKS
	.comm	_MMUEXT_UNPIN_TABLE,4,2         ; @MMUEXT_UNPIN_TABLE
	.no_dead_strip	_xen_release_ptpage
.subsections_via_symbols
