	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_domain_unload_emit_wait
_dmar_domain_unload_emit_wait:          ## @dmar_domain_unload_emit_wait
	.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
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	_dmamap_link@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_TAILQ_NEXT
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_dmar_batch_coalesce@GOTPCREL(%rip), %rcx
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	(%rcx)
	xorl	%eax, %eax
	testl	%edx, %edx
	sete	%al
	jmp	LBB0_3
LBB0_1:
	movl	$1, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dmamap_link,4,2                ## @dmamap_link
	.comm	_dmar_batch_coalesce,4,2        ## @dmar_batch_coalesce
	.no_dead_strip	_dmar_domain_unload_emit_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_domain_unload_emit_wait
_dmar_domain_unload_emit_wait:          ; @dmar_domain_unload_emit_wait
	.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	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _dmamap_link@GOTPAGE
Lloh1:
	ldr	x9, [x9, _dmamap_link@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x8
	bl	_TAILQ_NEXT
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	add	w9, w8, #1
Lloh3:
	adrp	x10, _dmar_batch_coalesce@GOTPAGE
Lloh4:
	ldr	x10, [x10, _dmar_batch_coalesce@GOTPAGEOFF]
	str	w9, [x19]
Lloh5:
	ldr	w9, [x10]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dmamap_link,4,2                ; @dmamap_link
	.comm	_dmar_batch_coalesce,4,2        ; @dmar_batch_coalesce
	.no_dead_strip	_dmar_domain_unload_emit_wait
.subsections_via_symbols
