	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_clear_faults
_dmar_clear_faults:                     ## @dmar_clear_faults
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	callq	_DMAR_CAP_NFR
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	movq	_DMAR_FRCD2_F32@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movl	(%r14), %edi
	callq	_DMAR_CAP_NFR
	cmpl	%eax, %r15d
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_DMAR_CAP_FRO
	movl	%eax, %ebx
	addl	%r15d, %ebx
	shll	$4, %ebx
	orl	$12, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_dmar_read4
	movl	(%r12), %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_dmar_write4
	jmp	LBB0_4
LBB0_5:
	movq	_DMAR_FSTS_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_dmar_read4
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dmar_write4                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_FRCD2_F32,4,2             ## @DMAR_FRCD2_F32
	.comm	_DMAR_FSTS_REG,4,2              ## @DMAR_FSTS_REG
	.no_dead_strip	_dmar_clear_faults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_clear_faults
_dmar_clear_faults:                     ; @dmar_clear_faults
	.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	x19, x0
	ldr	w0, [x0]
	bl	_DMAR_CAP_NFR
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w21, #0
Lloh0:
	adrp	x22, _DMAR_FRCD2_F32@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMAR_FRCD2_F32@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w0, [x19]
	bl	_DMAR_CAP_NFR
	cmp	w21, w0
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_DMAR_CAP_FRO
	add	w8, w0, w21
	mov	w20, #12
	bfi	w20, w8, #4, #28
	mov	x0, x19
	mov	x1, x20
	bl	_dmar_read4
	ldr	w2, [x22]
	tst	w2, w0
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_dmar_write4
	b	LBB0_2
LBB0_5:
Lloh2:
	adrp	x20, _DMAR_FSTS_REG@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DMAR_FSTS_REG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_dmar_read4
	mov	x2, x0
	ldr	w1, [x20]
	mov	x0, x19
	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
	b	_dmar_write4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_FRCD2_F32,4,2             ; @DMAR_FRCD2_F32
	.comm	_DMAR_FSTS_REG,4,2              ; @DMAR_FSTS_REG
	.no_dead_strip	_dmar_clear_faults
.subsections_via_symbols
