	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function release_pgd
_release_pgd:                           ## @release_pgd
	.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
	movl	(%rdi), %edi
	callq	_pgd_flags
	movq	__PAGE_PRESENT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.1:
	movl	(%r14), %edi
	callq	_pgd_pfn
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, %edi
	callq	___va
	movq	%rax, %r12
	movq	_PTRS_PER_PTE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_release_pte
	incq	%rbx
	movl	(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_3
LBB0_4:
	movq	%r12, %rdi
	callq	_free_page
	xorl	%edi, %edi
	callq	___pgd
	movl	%eax, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PAGE_PRESENT,4,2              ## @_PAGE_PRESENT
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PTRS_PER_PTE,4,2               ## @PTRS_PER_PTE
	.no_dead_strip	_release_pgd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function release_pgd
_release_pgd:                           ; @release_pgd
	.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
	ldr	w0, [x0]
	bl	_pgd_flags
Lloh0:
	adrp	x8, __PAGE_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PAGE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.1:
	ldr	w0, [x19]
	bl	_pgd_pfn
Lloh3:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w0, w0, w8
	bl	___va
	mov	x20, x0
Lloh6:
	adrp	x21, _PTRS_PER_PTE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PTRS_PER_PTE@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x22, lsl #2]
	bl	_release_pte
	add	x22, x22, #1
	ldr	w8, [x21]
	cmp	x22, x8
	b.lo	LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_free_page
	mov	w0, #0
	bl	___pgd
	str	w0, [x19]
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	__PAGE_PRESENT,4,2              ; @_PAGE_PRESENT
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PTRS_PER_PTE,4,2               ; @PTRS_PER_PTE
	.no_dead_strip	_release_pgd
.subsections_via_symbols
