	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_gcr3_tbl_level1
_free_gcr3_tbl_level1:                  ## @free_gcr3_tbl_level1
	.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
	xorl	%ebx, %ebx
	movq	_GCR3_VALID@GOTPCREL(%rip), %r15
	movq	_PAGE_MASK@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	$512, %rbx                      ## imm = 0x200
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %edi
	testl	%edi, (%r15)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	andl	(%r12), %edi
	callq	_iommu_phys_to_virt
	movq	%rax, %rdi
	callq	_free_page
	jmp	LBB0_3
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GCR3_VALID,4,2                 ## @GCR3_VALID
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.no_dead_strip	_free_gcr3_tbl_level1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_gcr3_tbl_level1
_free_gcr3_tbl_level1:                  ; @free_gcr3_tbl_level1
	.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
	mov	x20, #0
Lloh0:
	adrp	x21, _GCR3_VALID@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GCR3_VALID@GOTPAGEOFF]
Lloh2:
	adrp	x22, _PAGE_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PAGE_MASK@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #4
	cmp	x20, #2048
	b.eq	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, x20]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x22]
	and	w0, w9, w8
	bl	_iommu_phys_to_virt
	bl	_free_page
	b	LBB0_1
LBB0_4:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GCR3_VALID,4,2                 ; @GCR3_VALID
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.no_dead_strip	_free_gcr3_tbl_level1
.subsections_via_symbols
