	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_create_domain            ## -- Begin function iommu_create_domain
	.p2align	4, 0x90
_iommu_create_domain:                   ## @iommu_create_domain
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movl	_iommu_create_domain.iommu_initted(%rip), %eax
	cmpl	$1, %eax
	jg	LBB0_5
## %bb.1:
	leaq	_iommu_create_domain.iommu_initted(%rip), %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_atomic_cmpset_int
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	xorl	%eax, %eax
	callq	_iommu_init
	leaq	_iommu_create_domain.iommu_initted(%rip), %rdi
	movl	$2, %esi
	callq	_atomic_store_rel_int
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_cpu_spinwait
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	_iommu_create_domain.iommu_initted(%rip), %eax
	cmpl	$1, %eax
	je	LBB0_3
LBB0_5:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_IOMMU_CREATE_DOMAIN            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_iommu_create_domain.iommu_initted,4,2 ## @iommu_create_domain.iommu_initted
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iommu_create_domain            ; -- Begin function iommu_create_domain
	.p2align	2
_iommu_create_domain:                   ; @iommu_create_domain
	.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
	mov	x19, x0
	adrp	x20, _iommu_create_domain.iommu_initted@PAGE
	ldr	w8, [x20, _iommu_create_domain.iommu_initted@PAGEOFF]
	cmp	w8, #1
	b.gt	LBB0_5
; %bb.1:
Lloh0:
	adrp	x0, _iommu_create_domain.iommu_initted@PAGE
Lloh1:
	add	x0, x0, _iommu_create_domain.iommu_initted@PAGEOFF
	mov	w1, #0
	mov	w2, #1
	bl	_atomic_cmpset_int
	cbz	x0, LBB0_4
; %bb.2:
	bl	_iommu_init
Lloh2:
	adrp	x0, _iommu_create_domain.iommu_initted@PAGE
Lloh3:
	add	x0, x0, _iommu_create_domain.iommu_initted@PAGEOFF
	mov	w1, #2
	bl	_atomic_store_rel_int
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_cpu_spinwait
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, _iommu_create_domain.iommu_initted@PAGEOFF]
	cmp	w8, #1
	b.eq	LBB0_3
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IOMMU_CREATE_DOMAIN
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_iommu_create_domain.iommu_initted,4,2 ; @iommu_create_domain.iommu_initted
.subsections_via_symbols
