	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_v7s_map
___arm_v7s_map:                         ## @__arm_v7s_map
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%r9d, %edi
	callq	_ARM_V7S_LVL_SHIFT
	movq	%r12, %rbx
	movl	%eax, %ecx
	shrq	%cl, %rbx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ARM_V7S_LVL_IDX
	movslq	%eax, %r13
	shlq	$3, %r13
	addq	16(%rbp), %r13
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movl	%r14d, %r8d
LBB0_3:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_arm_v7s_init_pte
	jmp	LBB0_8
LBB0_4:
	movq	%r12, %r15
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$2, %r14d
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rdi
	callq	_READ_ONCE
	testq	%rax, %rax
	je	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%r13, %rdi
	movl	$1, %esi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	___arm_v7s_pte_sync
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r14), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	___arm_v7s_alloc_table
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_arm_v7s_install_table
	testq	%rax, %rax
	movq	%r15, %r13
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	___arm_v7s_free_table
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ARM_V7S_PTE_IS_TABLE
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	1(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_iopte_deref
	movq	%rax, %r12
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_ARM_V7S_LVL_SHIFT
	movq	%r15, %rbx
	movl	%eax, %ecx
	shrq	%cl, %rbx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	callq	_ARM_V7S_LVL_IDX
	cltq
	leaq	(%r12,%rax,8), %r13
	testl	%ebx, %ebx
	je	LBB0_5
	jmp	LBB0_2
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_ARM_V7S_PTE_IS_TABLE
	movl	$0, %ebx
	testq	%rax, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_18
	jmp	LBB0_19
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_2:
	movl	%r14d, %r8d
	jmp	LBB0_3
LBB0_20:
	movq	_selftest_running@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_7:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_selftest_running,4,2           ## @selftest_running
	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	___arm_v7s_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_v7s_map
___arm_v7s_map:                         ; @__arm_v7s_map
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x25, x6
	mov	x24, x5
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x5
	bl	_ARM_V7S_LVL_SHIFT
	lsr	x27, x23, x0
	mov	x0, x21
	mov	x1, x24
	bl	_ARM_V7S_LVL_IDX
	add	x26, x25, w0, sxtw #3
	cbz	w27, LBB0_13
; %bb.1:
	mov	x25, x24
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x25
	mov	x5, x27
	mov	x6, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_arm_v7s_init_pte
LBB0_3:                                 ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [x26]
	bl	_READ_ONCE
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x28, x0
	mov	x0, x26
	mov	w1, #1
	mov	x2, x22
	bl	___arm_v7s_pte_sync
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_13 Depth=1
	add	w25, w24, #1
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x25
	mov	x2, x22
	bl	___arm_v7s_alloc_table
	cbz	x0, LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x27, x0
	mov	x1, x26
	mov	w2, #0
	mov	x3, x22
	bl	_arm_v7s_install_table
	mov	x28, x0
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x27
	mov	x1, x25
	mov	x2, x22
	bl	___arm_v7s_free_table
LBB0_8:                                 ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x28
	mov	x1, x24
	bl	_ARM_V7S_PTE_IS_TABLE
	cbz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_13 Depth=1
	add	w25, w24, #1
LBB0_10:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x28
	mov	x1, x24
	mov	x2, x22
	bl	_iopte_deref
	mov	x27, x0
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x25
	bl	_ARM_V7S_LVL_SHIFT
	lsr	x28, x23, x0
	mov	x0, x21
	mov	x1, x25
	bl	_ARM_V7S_LVL_IDX
	add	x26, x27, w0, sxtw #3
	mov	x24, x25
	cbz	w28, LBB0_13
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x24
	bl	_ARM_V7S_PTE_IS_TABLE
	cbnz	x0, LBB0_10
	b	LBB0_11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cmp	w24, #2
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.14:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	mov	x27, x28
	b	LBB0_2
LBB0_16:
Lloh5:
	adrp	x8, _selftest_running@GOTPAGE
Lloh6:
	ldr	x8, [x8, _selftest_running@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_selftest_running,4,2           ; @selftest_running
	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	___arm_v7s_map
.subsections_via_symbols
