	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_lpae_split_blk_unmap
_arm_lpae_split_blk_unmap:              ## @arm_lpae_split_blk_unmap
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movq	16(%rbp), %r14
	callq	_ARM_LPAE_GRANULE
	movq	%rax, %r12
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_ARM_LPAE_BLOCK_SIZE
	movq	%rax, %r15
	movq	_ARM_LPAE_MAX_LEVELS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r13d, (%rax)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	callq	___arm_lpae_alloc_pages
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%r12, %r15
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_6
## %bb.5:
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_ARM_LPAE_LVL_IDX
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_6:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_iopte_to_paddr
	movq	%rax, %r12
	movl	%r14d, %edi
	callq	_iopte_prot
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	cmpq	$4, %r15
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	jae	LBB0_11
LBB0_7:
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rcx
	callq	_arm_lpae_install_table
	cmpl	%ebx, %eax
	jne	LBB0_15
## %bb.8:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	js	LBB0_17
## %bb.9:
	movq	%r12, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_io_pgtable_tlb_add_page
	jmp	LBB0_2
LBB0_11:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	shrq	$2, %r14
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	xorl	%r15d, %r15d
	movq	-104(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	addq	%rax, %r12
	addq	$4, %r13
	cmpq	%r15, %r14
	je	LBB0_7
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, %rbx
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r13, %r8
	callq	___arm_lpae_init_pte
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	jmp	LBB0_12
LBB0_15:
	movl	%eax, %r14d
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	___arm_lpae_free_pages
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	leal	-1(%r15), %esi
	movl	%r14d, %edi
	callq	_iopte_type
	movq	_ARM_LPAE_PTE_TYPE_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.16:
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_iopte_deref
	movq	%rax, %r13
LBB0_17:
	movq	%r12, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	movq	%r13, %r9
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___arm_lpae_unmap               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ## @ARM_LPAE_MAX_LEVELS
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ARM_LPAE_PTE_TYPE_TABLE,8,3    ## @ARM_LPAE_PTE_TYPE_TABLE
	.no_dead_strip	_arm_lpae_split_blk_unmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_lpae_split_blk_unmap
_arm_lpae_split_blk_unmap:              ; @arm_lpae_split_blk_unmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x6
	mov	x20, x5
	mov	x24, x4
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	bl	_ARM_LPAE_GRANULE
	mov	x25, x0
	mov	x0, x20
	mov	x1, x23
	bl	_ARM_LPAE_BLOCK_SIZE
	mov	x28, x0
Lloh0:
	adrp	x8, _ARM_LPAE_MAX_LEVELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARM_LPAE_MAX_LEVELS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
LBB0_1:
	mov	x19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x23
	bl	___arm_lpae_alloc_pages
	cbz	x0, LBB0_1
; %bb.4:
	cmp	x28, x19
	stp	x22, x21, [sp]                  ; 16-byte Folded Spill
	stp	x26, x0, [sp, #32]              ; 16-byte Folded Spill
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_ARM_LPAE_LVL_IDX
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_7
LBB0_6:
	mov	w8, #-1
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
LBB0_7:
	mov	x0, x24
	mov	x1, x23
	bl	_iopte_to_paddr
	mov	x22, x0
	mov	x0, x24
	bl	_iopte_prot
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	cmp	x25, #4
	b.hs	LBB0_11
LBB0_8:
	ldp	x1, x22, [sp, #32]              ; 16-byte Folded Reload
	mov	x0, x22
	mov	x2, x24
	mov	x3, x23
	bl	_arm_lpae_install_table
	cmp	w0, w24
	b.ne	LBB0_15
; %bb.9:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	tbnz	w8, #31, LBB0_17
; %bb.10:
	mov	x0, x23
	ldp	x1, x2, [sp]                    ; 16-byte Folded Reload
	mov	x3, x19
	bl	_io_pgtable_tlb_add_page
	b	LBB0_2
LBB0_11:
	mov	x21, x0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	lsr	x26, x8, #2
	ldr	x27, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	mov	w25, w8
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x22, x22, x28
	add	x27, x27, #4
	sub	x25, x25, #1
	subs	x26, x26, #1
	b.eq	LBB0_8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cbz	x25, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x27
	bl	___arm_lpae_init_pte
	b	LBB0_12
LBB0_15:
	mov	x21, x0
	mov	x0, x22
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x23
	bl	___arm_lpae_free_pages
	sub	w1, w20, #1
	mov	x0, x21
	bl	_iopte_type
Lloh6:
	adrp	x8, _ARM_LPAE_PTE_TYPE_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARM_LPAE_PTE_TYPE_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.16:
	mov	x0, x21
	mov	x1, x23
	bl	_iopte_deref
	mov	x22, x0
LBB0_17:
	mov	x0, x23
	ldp	x1, x2, [sp]                    ; 16-byte Folded Reload
	mov	x3, x19
	mov	x4, x20
	mov	x5, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	___arm_lpae_unmap
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ; @ARM_LPAE_MAX_LEVELS
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ARM_LPAE_PTE_TYPE_TABLE,8,3    ; @ARM_LPAE_PTE_TYPE_TABLE
	.no_dead_strip	_arm_lpae_split_blk_unmap
.subsections_via_symbols
