	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __xen_pgd_pin
___xen_pgd_pin:                         ## @__xen_pgd_pin
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_xen_mc_batch
	movq	_USER_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_xen_pin_page@GOTPCREL(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	___xen_pgd_walk
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_xen_mc_issue
	xorl	%eax, %eax
	callq	_kmap_flush_unused
	xorl	%eax, %eax
	callq	_xen_mc_batch
LBB0_2:
	movq	_MMUEXT_PIN_L3_TABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	___pa
	movl	%eax, %edi
	callq	_PFN_DOWN
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_xen_do_pin
	xorl	%edi, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xen_mc_issue                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USER_LIMIT,4,2                 ## @USER_LIMIT
	.comm	_MMUEXT_PIN_L3_TABLE,4,2        ## @MMUEXT_PIN_L3_TABLE
	.comm	_MMUEXT_PIN_L4_TABLE,4,2        ## @MMUEXT_PIN_L4_TABLE
	.comm	_PT_PGD,4,2                     ## @PT_PGD
	.comm	_PT_PMD,4,2                     ## @PT_PMD
	.comm	_TASK_SIZE,4,2                  ## @TASK_SIZE
	.no_dead_strip	___xen_pgd_pin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __xen_pgd_pin
___xen_pgd_pin:                         ; @__xen_pgd_pin
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_xen_mc_batch
Lloh0:
	adrp	x8, _USER_LIMIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USER_LIMIT@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x2, _xen_pin_page@GOTPAGE
Lloh4:
	ldr	x2, [x2, _xen_pin_page@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	___xen_pgd_walk
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	bl	_xen_mc_issue
	bl	_kmap_flush_unused
	bl	_xen_mc_batch
LBB0_2:
Lloh5:
	adrp	x8, _MMUEXT_PIN_L3_TABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMUEXT_PIN_L3_TABLE@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	mov	x0, x19
	bl	___pa
	bl	_PFN_DOWN
	mov	x1, x0
	mov	x0, x20
	bl	_xen_do_pin
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xen_mc_issue
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_USER_LIMIT,4,2                 ; @USER_LIMIT
	.comm	_MMUEXT_PIN_L3_TABLE,4,2        ; @MMUEXT_PIN_L3_TABLE
	.comm	_MMUEXT_PIN_L4_TABLE,4,2        ; @MMUEXT_PIN_L4_TABLE
	.comm	_PT_PGD,4,2                     ; @PT_PGD
	.comm	_PT_PMD,4,2                     ; @PT_PMD
	.comm	_TASK_SIZE,4,2                  ; @TASK_SIZE
	.no_dead_strip	___xen_pgd_pin
.subsections_via_symbols
