	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_v7s_split_blk_unmap
_arm_v7s_split_blk_unmap:               ## @arm_v7s_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
	movq	%r9, -120(%rbp)                 ## 8-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edi
	movq	%rbx, %rdx
	callq	___arm_v7s_alloc_table
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movl	$2, %edi
	callq	_ARM_V7S_PTES_PER_LVL
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	$2, %edi
	callq	_ARM_V7S_LVL_SHIFT
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	shrq	%cl, %r12
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_ARM_V7S_LVL_IDX
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_arm_v7s_pte_to_prot
	movl	%eax, %edi
	movl	$2, %esi
	movq	%rbx, %rdx
	callq	_arm_v7s_prot_to_pte
	movq	%rax, %r13
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r12d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	jl	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_arm_v7s_pte_to_cont
	movq	%rax, %r13
LBB0_3:
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jle	LBB0_8
## %bb.4:
	movslq	-96(%rbp), %rbx                 ## 4-byte Folded Reload
	movl	%ecx, %r14d
	movslq	-56(%rbp), %rsi                 ## 4-byte Folded Reload
	leaq	(,%rbx,8), %rdi
	xorl	%r12d, %r12d
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	%rbx, %r12
	addq	%rax, %r13
	addq	%rdi, %r15
	cmpq	%r14, %r12
	jge	LBB0_8
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r12, %rsi
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	callq	___arm_v7s_set_pte
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_8:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rcx
	callq	_arm_v7s_install_table
	cmpq	%rbx, %rax
	jne	LBB0_11
## %bb.9:
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_io_pgtable_tlb_add_page
	movq	%rbx, %rax
	jmp	LBB0_14
LBB0_11:
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$2, %esi
	movq	%r13, %rdx
	callq	___arm_v7s_free_table
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_ARM_V7S_PTE_IS_TABLE
	testl	%eax, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movl	$1, %esi
	movq	%r13, %rdx
	callq	_iopte_deref
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$2, %r8d
	movq	%rax, %r9
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___arm_v7s_unmap                ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_arm_v7s_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_v7s_split_blk_unmap
_arm_v7s_split_blk_unmap:               ; @arm_v7s_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	x24, x5
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #2
	mov	x2, x22
	bl	___arm_v7s_alloc_table
	cbz	x0, LBB0_12
; %bb.1:
	mov	x25, x0
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	w0, #2
	bl	_ARM_V7S_PTES_PER_LVL
	mov	x27, x0
	mov	w0, #2
	bl	_ARM_V7S_LVL_SHIFT
	lsr	x26, x19, x0
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	x0, x20
	mov	w1, #2
	bl	_ARM_V7S_LVL_IDX
	mov	x21, x0
	mov	x0, x23
	mov	w1, #1
	bl	_arm_v7s_pte_to_prot
	mov	w1, #2
	mov	x2, x22
	bl	_arm_v7s_prot_to_pte
	mov	x28, x0
	cmp	w26, #1
	stp	x24, x23, [sp, #24]             ; 16-byte Folded Spill
	str	x25, [sp, #40]                  ; 8-byte Folded Spill
	b.le	LBB0_3
; %bb.2:
	mov	x0, x28
	mov	w1, #2
	bl	_arm_v7s_pte_to_cont
	mov	x28, x0
LBB0_3:
	cmp	w27, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x24, #0
	sxtw	x20, w26
	mov	x8, x27
	sxtw	x27, w21
	lsl	x23, x20, #3
	ldr	x21, [sp, #40]                  ; 8-byte Folded Reload
	mov	w25, w8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, x19
	add	x21, x21, x23
	add	x24, x24, x20
	cmp	x24, x25
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x27, x24
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x28
	mov	x2, x26
	mov	x3, x22
	bl	___arm_v7s_set_pte
	b	LBB0_5
LBB0_8:
	ldp	x20, x23, [sp, #32]             ; 16-byte Folded Reload
	mov	x0, x23
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x20
	mov	x3, x22
	bl	_arm_v7s_install_table
	cmp	x0, x20
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x22
	ldp	x1, x2, [sp, #8]                ; 16-byte Folded Reload
	mov	x3, x19
	bl	_io_pgtable_tlb_add_page
	b	LBB0_13
LBB0_10:
	mov	x21, x0
	mov	x0, x23
	mov	w1, #2
	mov	x2, x22
	bl	___arm_v7s_free_table
	mov	x0, x21
	mov	w1, #1
	bl	_ARM_V7S_PTE_IS_TABLE
	cbz	w0, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	w1, #1
	mov	x2, x22
	bl	_iopte_deref
	mov	x5, x0
	mov	x0, x22
	ldp	x1, x2, [sp, #8]                ; 16-byte Folded Reload
	mov	x3, x19
	mov	w4, #2
	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_v7s_unmap
LBB0_12:
	mov	x19, #0
LBB0_13:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_arm_v7s_split_blk_unmap
.subsections_via_symbols
