	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_ops_domain_alloc
_dma_ops_domain_alloc:                  ## @dma_ops_domain_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_protection_domain_init
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	%rbx, %rdi
	callq	_dma_ops_domain_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_PAGE_MODE_3_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	(%r14), %edi
	callq	_get_zeroed_page
	movq	%rax, 8(%rbx)
	movq	_PD_DMA_OPS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IOVA_START_PFN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_init_iova_domain
	movq	_iova_domain_flush_tlb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_init_iova_flush_queue
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_reserved_iova_ranges@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_copy_reserved_iova
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_PAGE_MODE_3_LEVEL,4,2          ## @PAGE_MODE_3_LEVEL
	.comm	_PD_DMA_OPS_MASK,4,2            ## @PD_DMA_OPS_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_IOVA_START_PFN,4,2             ## @IOVA_START_PFN
	.comm	_iova_domain_flush_tlb,4,2      ## @iova_domain_flush_tlb
	.comm	_reserved_iova_ranges,4,2       ## @reserved_iova_ranges
	.no_dead_strip	_dma_ops_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_ops_domain_alloc
_dma_ops_domain_alloc:                  ; @dma_ops_domain_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x19, #8
	bl	_protection_domain_init
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_dma_ops_domain_free
	mov	x19, #0
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x8, _PAGE_MODE_3_LEVEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_MODE_3_LEVEL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w0, [x20]
	bl	_get_zeroed_page
	str	x0, [x19, #8]
Lloh5:
	adrp	x8, _PD_DMA_OPS_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PD_DMA_OPS_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	cbz	x0, LBB0_2
; %bb.5:
Lloh8:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _IOVA_START_PFN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IOVA_START_PFN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_init_iova_domain
Lloh14:
	adrp	x8, _iova_domain_flush_tlb@GOTPAGE
Lloh15:
	ldr	x8, [x8, _iova_domain_flush_tlb@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_init_iova_flush_queue
	cbnz	x0, LBB0_2
; %bb.6:
Lloh17:
	adrp	x0, _reserved_iova_ranges@GOTPAGE
Lloh18:
	ldr	x0, [x0, _reserved_iova_ranges@GOTPAGEOFF]
	mov	x1, x19
	bl	_copy_reserved_iova
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_PAGE_MODE_3_LEVEL,4,2          ; @PAGE_MODE_3_LEVEL
	.comm	_PD_DMA_OPS_MASK,4,2            ; @PD_DMA_OPS_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_IOVA_START_PFN,4,2             ; @IOVA_START_PFN
	.comm	_iova_domain_flush_tlb,4,2      ; @iova_domain_flush_tlb
	.comm	_reserved_iova_ranges,4,2       ; @reserved_iova_ranges
	.no_dead_strip	_dma_ops_domain_alloc
.subsections_via_symbols
