	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_report_fault
_iommu_report_fault:                    ## @iommu_report_fault
	.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	%rsi, %r15
	movq	%rdi, %r14
	movq	_MMU_IRQSTATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_iommu_read_reg
	movl	%eax, %ebx
	movq	_MMU_IRQ_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_1
## %bb.2:
	movq	_MMU_FAULT_AD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iommu_read_reg
	movl	%eax, (%r15)
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_iommu_write_reg
	jmp	LBB0_3
LBB0_1:
	movl	$0, (%r15)
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMU_IRQSTATUS,4,2              ## @MMU_IRQSTATUS
	.comm	_MMU_IRQ_MASK,4,2               ## @MMU_IRQ_MASK
	.comm	_MMU_FAULT_AD,4,2               ## @MMU_FAULT_AD
	.no_dead_strip	_iommu_report_fault
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_report_fault
_iommu_report_fault:                    ; @iommu_report_fault
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MMU_IRQSTATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MMU_IRQSTATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_iommu_read_reg
Lloh2:
	adrp	x8, _MMU_IRQ_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MMU_IRQ_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ands	w21, w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _MMU_FAULT_AD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MMU_FAULT_AD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_iommu_read_reg
	str	w0, [x19]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_iommu_write_reg
	b	LBB0_3
LBB0_2:
	str	wzr, [x19]
LBB0_3:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MMU_IRQSTATUS,4,2              ; @MMU_IRQSTATUS
	.comm	_MMU_IRQ_MASK,4,2               ; @MMU_IRQ_MASK
	.comm	_MMU_FAULT_AD,4,2               ; @MMU_FAULT_AD
	.no_dead_strip	_iommu_report_fault
.subsections_via_symbols
