	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_lpae_free_pgtable
___arm_lpae_free_pgtable:               ## @__arm_lpae_free_pgtable
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_ARM_LPAE_START_LVL
	cmpl	%r15d, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_ARM_LPAE_GRANULE
LBB0_3:
	movq	_ARM_LPAE_MAX_LEVELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax), %r14
	cmpl	%r15d, %ecx
	cmoveq	%r12, %r14
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r12, %r14
	je	LBB0_9
## %bb.4:
	leal	1(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%r14, %r13
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %r12d
	addq	$4, %r13
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	12(%rbx), %edx
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_iopte_leaf
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_iopte_deref
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rdx
	callq	___arm_lpae_free_pgtable
	jmp	LBB0_8
LBB0_9:
	addq	$8, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___arm_lpae_free_pages          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ## @ARM_LPAE_MAX_LEVELS
	.no_dead_strip	___arm_lpae_free_pgtable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_lpae_free_pgtable
___arm_lpae_free_pgtable:               ; @__arm_lpae_free_pgtable
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_ARM_LPAE_START_LVL
	cmp	w0, w21
	b.ne	LBB0_2
; %bb.1:
	ldr	x22, [x20]
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_ARM_LPAE_GRANULE
	mov	x22, x0
LBB0_3:
Lloh0:
	adrp	x8, _ARM_LPAE_MAX_LEVELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_LPAE_MAX_LEVELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, #1
	add	x9, x19, x22
	cmp	w8, w21
	csel	x25, x19, x9, eq
	cmp	x25, x19
	b.eq	LBB0_9
; %bb.4:
	add	w23, w21, #1
	mov	x26, x19
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x26, x25
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x26], #4
	cbz	w24, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x20, #12]
	mov	x0, x24
	mov	x1, x21
	bl	_iopte_leaf
	cbnz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x24
	mov	x1, x20
	bl	_iopte_deref
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	___arm_lpae_free_pgtable
	b	LBB0_5
LBB0_9:
	add	x2, x20, #8
	mov	x0, x19
	mov	x1, 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
	b	___arm_lpae_free_pages
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ; @ARM_LPAE_MAX_LEVELS
	.no_dead_strip	___arm_lpae_free_pgtable
.subsections_via_symbols
