	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function as_get_pte
_as_get_pte:                            ## @as_get_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	%esi, %edi
	callq	_iova_pd_index
	movq	(%r12), %rcx
	movl	%eax, %r14d
	cmpq	$0, (%rcx,%r14,8)
	je	LBB0_1
## %bb.9:
	movl	8(%r12), %edi
	callq	_page_address
	movl	(%rax,%r14,4), %edi
	callq	_smmu_pde_to_dma
	movl	%eax, %r13d
LBB0_10:
	movl	%r13d, (%rbx)
	movq	(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_smmu_pte_offset          ## TAILCALL
LBB0_1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movq	___GFP_DMA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	16(%r12), %rbx
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	movq	_SMMU_SIZE_PT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	movq	%rax, %rsi
	xorl	%edx, %edx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_dma_map_page
	movl	%eax, %r13d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_4:
	callq	___free_page
LBB0_5:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_smmu_dma_addr_valid
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	(%r12), %rax
	movq	%rbx, (%rax,%r14,8)
	movq	_SMMU_PDE_ATTR@GOTPCREL(%rip), %rax
	movq	_SMMU_PDE_NEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	%r13d, %edi
	callq	_SMMU_MK_PDE
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_tegra_smmu_set_pde
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_SMMU_SIZE_PT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %esi
	callq	_dma_unmap_page
	movq	%rbx, %rdi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	___GFP_DMA,4,2                  ## @__GFP_DMA
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.comm	_SMMU_SIZE_PT,4,2               ## @SMMU_SIZE_PT
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_SMMU_PDE_ATTR,4,2              ## @SMMU_PDE_ATTR
	.comm	_SMMU_PDE_NEXT,4,2              ## @SMMU_PDE_NEXT
	.no_dead_strip	_as_get_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function as_get_pte
_as_get_pte:                            ; @as_get_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, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_iova_pd_index
	ldr	x8, [x21]
	mov	w25, w0
	ldr	x8, [x8, w0, uxtw #3]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w0, [x21, #8]
	bl	_page_address
	ldr	w0, [x0, x25, lsl #2]
	bl	_smmu_pde_to_dma
	mov	x24, x0
LBB0_2:
	str	w24, [x20]
	ldr	x8, [x21]
	ldr	x0, [x8, x25, lsl #3]
	mov	x1, x19
	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	_tegra_smmu_pte_offset
LBB0_3:
	ldr	x23, [x21, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, ___GFP_DMA@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_DMA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, ___GFP_ZERO@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___GFP_ZERO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_alloc_page
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
	ldr	w0, [x23]
Lloh9:
	adrp	x26, _SMMU_SIZE_PT@GOTPAGE
Lloh10:
	ldr	x26, [x26, _SMMU_SIZE_PT@GOTPAGEOFF]
	ldr	w3, [x26]
Lloh11:
	adrp	x27, _DMA_TO_DEVICE@GOTPAGE
Lloh12:
	ldr	x27, [x27, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x1, x22
	mov	w2, #0
	bl	_dma_map_page
	mov	x24, x0
	ldr	w0, [x23]
	mov	x1, x24
	bl	_dma_mapping_error
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x22
	bl	___free_page
LBB0_6:
	mov	x0, #0
	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
LBB0_7:
	mov	x0, x23
	mov	x1, x24
	bl	_smmu_dma_addr_valid
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x8, [x21]
	str	x22, [x8, x25, lsl #3]
Lloh13:
	adrp	x8, _SMMU_PDE_ATTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SMMU_PDE_ATTR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _SMMU_PDE_NEXT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SMMU_PDE_NEXT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x24
	bl	_SMMU_MK_PDE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_tegra_smmu_set_pde
	b	LBB0_2
LBB0_9:
	ldr	w0, [x23]
	ldr	w2, [x26]
	ldr	w3, [x27]
	mov	x1, x24
	bl	_dma_unmap_page
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	___GFP_DMA,4,2                  ; @__GFP_DMA
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.comm	_SMMU_SIZE_PT,4,2               ; @SMMU_SIZE_PT
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_SMMU_PDE_ATTR,4,2              ; @SMMU_PDE_ATTR
	.comm	_SMMU_PDE_NEXT,4,2              ; @SMMU_PDE_NEXT
	.no_dead_strip	_as_get_pte
.subsections_via_symbols
