	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_bus_dmamap_create
_dmar_bus_dmamap_create:                ## @dmar_bus_dmamap_create
	.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	%rdx, %r14
	movq	%rdi, %r15
	movq	_M_DMAR_DMAMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	20(%rdi), %edi
	callq	_DOMAINSET_PREF
	movq	_M_NOWAIT@GOTPCREL(%rip), %r13
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r13), %ecx
	movl	$24, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_malloc_domainset
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpq	$0, 8(%r15)
	jne	LBB0_5
## %bb.3:
	movl	16(%r15), %r12d
	movl	20(%r15), %edi
	shll	$2, %r12d
	movq	_M_DMAR_DMAMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_DOMAINSET_PREF
	movl	(%r13), %ecx
	movl	%r12d, %edi
	movq	_M_DMAR_DMAMAP@GOTPCREL(%rip), %r12
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_malloc_domainset
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	addq	$16, %rdi
	callq	_TAILQ_INIT
	movq	%r15, 8(%rbx)
	movq	$1, (%rbx)
	incl	(%r15)
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_free_domain
LBB0_1:
	movq	$0, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_DMAR_DMAMAP,4,2              ## @M_DMAR_DMAMAP
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dmar_bus_dmamap_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dmar_bus_dmamap_create
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dmar_bus_dmamap_create:                ; @dmar_bus_dmamap_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x24, _M_DMAR_DMAMAP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _M_DMAR_DMAMAP@GOTPAGEOFF]
	ldr	w21, [x24]
	ldr	w0, [x0, #20]
	bl	_DOMAINSET_PREF
	mov	x2, x0
Lloh2:
	adrp	x25, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _M_NOWAIT@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh4:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w0, #24
	mov	x1, x21
	bl	_malloc_domainset
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_3
; %bb.2:
	ldp	w8, w0, [x20, #16]
	lsl	w22, w8, #2
	ldr	w23, [x24]
	bl	_DOMAINSET_PREF
	mov	x2, x0
	ldr	w3, [x25]
	mov	x0, x22
	mov	x1, x23
	bl	_malloc_domainset
	str	x0, [x20, #8]
	cbz	x0, LBB0_4
LBB0_3:
	add	x0, x21, #16
	bl	_TAILQ_INIT
	mov	w0, #0
	str	x20, [x21, #8]
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	str	x21, [x19]
	b	LBB0_6
LBB0_4:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_free_domain
LBB0_5:
	str	xzr, [x19]
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M_DMAR_DMAMAP,4,2              ; @M_DMAR_DMAMAP
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dmar_bus_dmamap_create
.subsections_via_symbols
