	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_ops_alloc_iova
_dma_ops_alloc_iova:                    ## @dma_ops_alloc_iova
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %edi
	movq	%rsi, %r14
	callq	___roundup_pow_of_two
	movl	%eax, %r15d
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	cmpq	%rbx, %rax
	jge	LBB0_2
## %bb.1:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%rax, %rdi
	callq	_IOVA_PFN
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_alloc_iova_fast
	testq	%rax, %rax
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_IOVA_PFN
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_alloc_iova_fast
LBB0_3:
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shlq	%cl, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.no_dead_strip	_dma_ops_alloc_iova
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_ops_alloc_iova
_dma_ops_alloc_iova:                    ; @dma_ops_alloc_iova
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x0, x2
	mov	x19, x1
	bl	___roundup_pow_of_two
	mov	x20, x0
	mov	w0, #32
	bl	_DMA_BIT_MASK
	cmp	x0, x21
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	bl	_IOVA_PFN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	bl	_alloc_iova_fast
	cbnz	x0, LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_IOVA_PFN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #1
	bl	_alloc_iova_fast
LBB0_3:
Lloh0:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsl	x0, x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.no_dead_strip	_dma_ops_alloc_iova
.subsections_via_symbols
