	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_v7s_init_pte
_arm_v7s_init_pte:                      ## @arm_v7s_init_pte
	.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	$40, %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, %r15d
	movl	%edx, %ebx
	movq	%rdi, %r12
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.3:
	movq	%rsi, %r13
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	16(%rbp), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%rbx,%r12,8)
	jne	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpq	%r12, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%r12,8), %rdi
	movl	%r15d, %esi
	callq	_ARM_V7S_PTE_IS_TABLE
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %edi
	callq	_ARM_V7S_BLOCK_SIZE
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_ARM_V7S_LVL_IDX
	movq	16(%rbp), %r9
	subq	%rax, %r9
	sarq	$3, %r9
	movq	%r14, %rdx
	imulq	%r12, %rdx
	addq	%r13, %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	___arm_v7s_unmap
	xorl	%edi, %edi
	cmpq	%r14, %rax
	movq	16(%rbp), %rbx
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_1:
	movl	%ecx, %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_arm_v7s_prot_to_pte
	movq	%rax, %r13
	jmp	LBB0_2
LBB0_7:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_arm_v7s_prot_to_pte
	movq	%rax, %r13
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	cmpl	$2, %r14d
	jl	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_arm_v7s_pte_to_cont
	movq	%rax, %r13
LBB0_9:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_2:
	movl	%ebx, %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	callq	_paddr_to_iopte
	orq	%rax, %r13
	movq	16(%rbp), %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movq	%r12, %rcx
	callq	___arm_v7s_set_pte
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_11:
	movq	_selftest_running@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	movq	_EEXIST@GOTPCREL(%rip), %rcx
LBB0_13:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_selftest_running,4,2           ## @selftest_running
	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	_arm_v7s_init_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_v7s_init_pte
_arm_v7s_init_pte:                      ; @arm_v7s_init_pte
	.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	x20, x6
	mov	x19, x5
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x21, x0
	cmp	w5, #0
	b.le	LBB0_7
; %bb.1:
	mov	x25, x1
	mov	x27, #0
	mov	w28, w19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, x27, lsl #3]
	cbnz	x8, LBB0_12
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x28, x27
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x27, lsl #3]
	mov	x1, x22
	bl	_ARM_V7S_PTE_IS_TABLE
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_ARM_V7S_BLOCK_SIZE
	mov	x26, x0
	mov	x0, x25
	mov	x1, x22
	bl	_ARM_V7S_LVL_IDX
	sub	x8, x20, x0
	asr	x5, x8, #3
	madd	x2, x26, x27, x25
	mov	x0, x21
	mov	x1, #0
	mov	x3, x26
	mov	x4, x22
	bl	___arm_v7s_unmap
	cmp	x0, x26
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_3
; %bb.6:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_7:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_arm_v7s_prot_to_pte
	b	LBB0_10
LBB0_8:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_arm_v7s_prot_to_pte
	mov	x24, x0
	cmp	w19, #2
	b.lt	LBB0_11
; %bb.9:
	mov	x0, x24
	mov	x1, x22
	bl	_arm_v7s_pte_to_cont
LBB0_10:
	mov	x24, x0
LBB0_11:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_paddr_to_iopte
	orr	x1, x0, x24
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	___arm_v7s_set_pte
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh2:
	adrp	x8, _selftest_running@GOTPAGE
Lloh3:
	ldr	x8, [x8, _selftest_running@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh5:
	adrp	x8, _EEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_selftest_running,4,2           ; @selftest_running
	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	_arm_v7s_init_pte
.subsections_via_symbols
