	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __arm_lpae_map
___arm_lpae_map:                        ## @__arm_lpae_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	$40, %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, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	16(%rbp), %r15
	leaq	8(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r14), %edx
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_iopte_leaf
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %edi
	movq	%r14, %rsi
	callq	_iopte_deref
	movq	%rax, %r15
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	incl	%r13d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r14, %rsi
	callq	_ARM_LPAE_BLOCK_SIZE
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_ARM_LPAE_GRANULE
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%r14, %rdx
	callq	_ARM_LPAE_LVL_IDX
	cltq
	leaq	(%r15,%rax,4), %r15
	cmpq	%r12, %rbx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%r12, (%rax)
	jne	LBB0_17
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ARM_LPAE_MAX_LEVELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	setle	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	callq	_READ_ONCE
	testl	%eax, %eax
	je	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	cmpl	$0, 16(%r14)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ARM_LPAE_PTE_SW_SYNC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	___arm_lpae_sync_pte
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %r12
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	___arm_lpae_alloc_pages
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	callq	_arm_lpae_install_table
	testl	%eax, %eax
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	___arm_lpae_free_pages
	jmp	LBB0_14
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_18:
	movq	_selftest_running@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_17:
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movq	%r15, %r9
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_arm_lpae_init_pte              ## TAILCALL
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ## @ARM_LPAE_MAX_LEVELS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ARM_LPAE_PTE_SW_SYNC,4,2       ## @ARM_LPAE_PTE_SW_SYNC
	.comm	_selftest_running,4,2           ## @selftest_running
	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	___arm_lpae_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __arm_lpae_map
___arm_lpae_map:                        ; @__arm_lpae_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x5
	stp	w2, w4, [sp, #8]                ; 8-byte Folded Spill
	mov	x23, x3
	mov	x22, x1
	mov	x24, x0
	add	x25, x0, #8
Lloh0:
	adrp	x21, _ARM_LPAE_MAX_LEVELS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ARM_LPAE_MAX_LEVELS@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_iopte_leaf
	cbnz	w0, LBB0_15
; %bb.2:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x24
	bl	_iopte_deref
	mov	x26, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x24
	bl	_ARM_LPAE_BLOCK_SIZE
	mov	x20, x0
	mov	x0, x24
	bl	_ARM_LPAE_GRANULE
	mov	x27, x0
	mov	x0, x22
	mov	x1, x19
	mov	x2, x24
	bl	_ARM_LPAE_LVL_IDX
	add	x28, x26, w0, sxtw #2
	cmp	x20, x23
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25]
	tst	x8, x23
	b.ne	LBB0_16
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w8, w19
	cset	w0, le
	bl	_WARN_ON
	cbnz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x28]
	bl	_READ_ONCE
	cbz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldr	w8, [x24, #16]
	cbnz	w8, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh2:
	adrp	x8, _ARM_LPAE_PTE_SW_SYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARM_LPAE_PTE_SW_SYNC@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x28
	mov	x1, x25
	bl	___arm_lpae_sync_pte
	b	LBB0_1
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x27
	mov	x2, x25
	bl	___arm_lpae_alloc_pages
	cbz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	mov	x1, x28
	mov	w2, #0
	mov	x3, x25
	bl	_arm_lpae_install_table
	cbz	w0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	mov	x0, x26
	mov	x1, x27
	mov	x2, x25
	bl	___arm_lpae_free_pages
	b	LBB0_1
LBB0_14:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
Lloh10:
	adrp	x8, _selftest_running@GOTPAGE
Lloh11:
	ldr	x8, [x8, _selftest_running@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
Lloh13:
	adrp	x8, _EEXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	mov	x0, x24
	mov	x1, x22
	ldp	w2, w3, [sp, #8]                ; 8-byte Folded Reload
	mov	x4, x19
	mov	x5, x28
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_arm_lpae_init_pte
LBB0_17:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARM_LPAE_MAX_LEVELS,4,2        ; @ARM_LPAE_MAX_LEVELS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ARM_LPAE_PTE_SW_SYNC,4,2       ; @ARM_LPAE_PTE_SW_SYNC
	.comm	_selftest_running,4,2           ; @selftest_running
	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	___arm_lpae_map
.subsections_via_symbols
