	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iopgtable_clear_entry_core
_iopgtable_clear_entry_core:            ## @iopgtable_clear_entry_core
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_iopgd_offset
	movq	%rax, %r13
	movl	%ebx, %edi
	callq	_iopgd_index
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_iopte_index
	movl	(%r13), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	callq	_iopgd_is_table
	testq	%rax, %rax
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	je	LBB0_11
## %bb.3:
	movslq	%r15d, %r15
	shlq	$2, %r15
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_iopte_offset
	movq	_IOPTE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	_IOPTE_LARGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_IOLARGE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_iopte_offset
	movl	$16, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_11:
	movq	_IOPGD_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	(%r13), %eax
	movq	_IOPGD_SUPER@GOTPCREL(%rip), %rcx
	notl	%eax
	movl	$1, %r15d
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.12:
	movq	_IOSUPER_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_iopgd_offset
	movq	%rax, %r13
	movl	$16, %r15d
LBB0_13:
	movl	%r15d, %eax
	imulq	%rax, %r12
	jmp	LBB0_14
LBB0_4:
	movl	$1, %ebx
LBB0_6:
	movl	%ebx, %ecx
	imulq	%rcx, %r12
	leal	(,%rbx,4), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	%r13, %rdi
	callq	_iopgd_page_paddr
	movl	4(%r14), %edi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_flush_iopte_range
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_iopte_offset
	movq	_PTRS_PER_IOPTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.7:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax,%rdx,4)
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_9
LBB0_10:
	movl	$1, %r15d
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_iopte_free
LBB0_14:
	movslq	-44(%rbp), %rbx                 ## 4-byte Folded Reload
	shlq	$2, %rbx
	leal	(,%r15,4), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_flush_iopte_range
LBB0_15:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOPTE_SIZE,8,3                 ## @IOPTE_SIZE
	.comm	_IOPTE_LARGE,4,2                ## @IOPTE_LARGE
	.comm	_IOLARGE_MASK,4,2               ## @IOLARGE_MASK
	.comm	_PTRS_PER_IOPTE,4,2             ## @PTRS_PER_IOPTE
	.comm	_IOPGD_SIZE,8,3                 ## @IOPGD_SIZE
	.comm	_IOPGD_SUPER,4,2                ## @IOPGD_SUPER
	.comm	_IOSUPER_MASK,4,2               ## @IOSUPER_MASK
	.no_dead_strip	_iopgtable_clear_entry_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iopgtable_clear_entry_core
_iopgtable_clear_entry_core:            ; @iopgtable_clear_entry_core
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x19, x0
	bl	_iopgd_offset
	mov	x20, x0
	mov	x0, x22
	bl	_iopgd_index
	mov	x21, x0
	mov	x0, x22
	bl	_iopte_index
	mov	x23, x0
	ldr	w0, [x20]
	cbz	w0, LBB0_4
; %bb.1:
	bl	_iopgd_is_table
	cbz	x0, LBB0_5
; %bb.2:
	sbfiz	x23, x23, #2, #32
	mov	x0, x20
	mov	x1, x22
	bl	_iopte_offset
Lloh0:
	adrp	x8, _IOPTE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOPTE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x25, [x8]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _IOPTE_LARGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOPTE_LARGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _IOLARGE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IOLARGE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w1, w8, w22
	mov	x0, x20
	bl	_iopte_offset
	mov	w24, #16
	b	LBB0_8
LBB0_4:
	mov	x22, #0
	b	LBB0_16
LBB0_5:
Lloh9:
	adrp	x8, _IOPGD_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IOPGD_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _IOPGD_SUPER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IOPGD_SUPER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_13
; %bb.6:
Lloh15:
	adrp	x8, _IOSUPER_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IOSUPER_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w1, w8, w22
	mov	x0, x19
	bl	_iopgd_offset
	mov	x20, x0
	mov	w23, #16
	b	LBB0_14
LBB0_7:
	mov	w24, #1
LBB0_8:
	mov	w8, w24
	mul	x22, x25, x8
	lsl	w2, w24, #2
	mov	w1, #0
	bl	_memset
	mov	x0, x20
	bl	_iopgd_page_paddr
	mov	x1, x0
	ldr	w0, [x19, #4]
	mov	x2, x23
	mov	x3, x24
	bl	_flush_iopte_range
	mov	x0, x20
	mov	w1, #0
	bl	_iopte_offset
	mov	x1, x0
Lloh18:
	adrp	x8, _PTRS_PER_IOPTE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PTRS_PER_IOPTE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x9, x1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbnz	w10, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_12:
	mov	w23, #1
	mov	x0, x19
	mov	w2, #1
	bl	_iopte_free
	b	LBB0_15
LBB0_13:
	mov	w23, #1
LBB0_14:
	mov	w8, w23
	mul	x22, x24, x8
LBB0_15:
	sbfiz	x21, x21, #2, #32
	lsl	w2, w23, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
	ldp	w1, w0, [x19]
	mov	x2, x21
	mov	x3, x23
	bl	_flush_iopte_range
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IOPTE_SIZE,8,3                 ; @IOPTE_SIZE
	.comm	_IOPTE_LARGE,4,2                ; @IOPTE_LARGE
	.comm	_IOLARGE_MASK,4,2               ; @IOLARGE_MASK
	.comm	_PTRS_PER_IOPTE,4,2             ; @PTRS_PER_IOPTE
	.comm	_IOPGD_SIZE,8,3                 ; @IOPGD_SIZE
	.comm	_IOPGD_SUPER,4,2                ; @IOPGD_SUPER
	.comm	_IOSUPER_MASK,4,2               ; @IOSUPER_MASK
	.no_dead_strip	_iopgtable_clear_entry_core
.subsections_via_symbols
