	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_ops_get_pte
_dma_ops_get_pte:                       ## @dma_ops_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rsi, %rdi
	callq	_APERTURE_RANGE_INDEX
	movq	(%rbx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %r15
	movq	%r12, %rdi
	callq	_APERTURE_PAGE_INDEX
	movq	(%r15,%rax,8), %r15
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_PM_LEVEL_INDEX
	cltq
	leaq	(%r15,%rax,4), %r15
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_PM_MAP_4k@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_alloc_pte
	movq	%rax, %r15
	movq	-48(%rbp), %r13
	movq	(%rbx), %rbx
	movq	%r12, %rdi
	callq	_APERTURE_PAGE_INDEX
	movq	%r13, (%rbx,%rax,8)
LBB0_5:
	movq	%r14, %rdi
	callq	_update_domain
LBB0_6:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM_MAP_4k,4,2                  ## @PM_MAP_4k
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_dma_ops_get_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_ops_get_pte
_dma_ops_get_pte:                       ; @dma_ops_get_pte
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_APERTURE_RANGE_INDEX
	ldr	x22, [x21, x0, lsl #3]
	cbz	x22, LBB0_3
; %bb.1:
	ldr	x21, [x22]
	mov	x0, x20
	bl	_APERTURE_PAGE_INDEX
	ldr	x21, [x21, x0, lsl #3]
	cbz	x21, LBB0_4
; %bb.2:
	mov	w0, #0
	mov	x1, x20
	bl	_PM_LEVEL_INDEX
	add	x21, x21, w0, sxtw #2
	b	LBB0_5
LBB0_3:
	mov	x21, #0
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _PM_MAP_4k@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM_MAP_4k@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_alloc_pte
	mov	x21, x0
	ldr	x23, [sp, #8]
	ldr	x22, [x22]
	mov	x0, x20
	bl	_APERTURE_PAGE_INDEX
	str	x23, [x22, x0, lsl #3]
LBB0_5:
	mov	x0, x19
	bl	_update_domain
LBB0_6:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PM_MAP_4k,4,2                  ; @PM_MAP_4k
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_dma_ops_get_pte
.subsections_via_symbols
