	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_io_pgtable_ops_to_data
	movq	%rax, %rbx
	movq	16(%rax), %r14
	movq	%rax, %rdi
	callq	_ARM_LPAE_START_LVL
	movq	_IOMMU_READ@GOTPCREL(%rip), %rdx
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%r13d, %ecx
	je	LBB0_1
## %bb.2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movb	(%rbx), %cl
	movq	%r12, %rax
	shrq	%cl, %rax
	movl	$1, %edi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movb	8(%rbx), %cl
	movq	%r15, %rax
	shrq	%cl, %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_4:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_arm_lpae_prot_to_pte
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	___arm_lpae_map
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_wmb
	movl	%ebx, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOMMU_READ,4,2                 ## @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_ERANGE,4,2                     ## @ERANGE
	.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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_io_pgtable_ops_to_data
	mov	x24, x0
	ldr	x22, [x0, #16]
	bl	_ARM_LPAE_START_LVL
Lloh0:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IOMMU_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOMMU_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w23
	b.eq	LBB0_4
; %bb.1:
	mov	x25, x0
	ldr	x8, [x24]
	lsr	x8, x21, x8
	cbz	x8, LBB0_5
; %bb.2:
	mov	w0, #1
	bl	_WARN_ON
	cbz	x0, LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ERANGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	ldr	x8, [x24, #8]
	lsr	x8, x20, x8
	cmp	x8, #0
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_3
LBB0_6:
	mov	x0, x24
	mov	x1, x23
	bl	_arm_lpae_prot_to_pte
	mov	x4, x0
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x5, x25
	mov	x6, x22
	bl	___arm_lpae_map
	mov	x19, x0
	bl	_wmb
	mov	x0, x19
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IOMMU_READ,4,2                 ; @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_arm_lpae_map
.subsections_via_symbols
