	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_fault_handler
_iommu_fault_handler:                   ## @iommu_fault_handler
	.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	%rsi, %r12
	movq	8(%rsi), %rbx
	movq	%rbx, %rdi
	callq	_to_omap_domain
	movq	_IRQ_NONE@GOTPCREL(%rip), %r13
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_iommu_report_fault
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r14
	movl	4(%r12), %esi
	movq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_report_iommu_fault
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movq	_MMU_IRQENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_iommu_write_reg
	movq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_iopgd_offset
	movq	%rax, %r15
	movq	(%rax), %rdi
	callq	_iopgd_is_table
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_iopte_offset
	movq	%rax, %rbx
	movl	(%r12), %edx
	movl	4(%r12), %edi
	movq	-48(%rbp), %r8
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rcx
	movq	%r15, %r9
	xorl	%eax, %eax
	pushq	(%rbx)
	pushq	%rbx
	pushq	(%r15)
	callq	_dev_err
	addq	$32, %rsp
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %edx
	movl	4(%r12), %edi
	movq	-48(%rbp), %r8
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rcx
	movq	%r15, %r9
	xorl	%eax, %eax
	pushq	(%r15)
	callq	_dev_err
	addq	$16, %rsp
LBB0_6:
	movq	%r13, %r15
LBB0_7:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_MMU_IRQENABLE,4,2              ## @MMU_IRQENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: errs:0x%08x da:0x%08x pgd:0x%p *pgd:px%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: errs:0x%08x da:0x%08x pgd:0x%p *pgd:0x%08x pte:0x%p *pte:0x%08x\n"

	.no_dead_strip	_iommu_fault_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_fault_handler
_iommu_fault_handler:                   ; @iommu_fault_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	ldr	x21, [x1, #8]
	mov	x0, x21
	bl	_to_omap_domain
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	add	x1, sp, #24
	mov	x0, x20
	bl	_iommu_report_fault
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w1, [x20, #4]
	ldr	x2, [sp, #24]
	mov	x0, x21
	mov	w3, #0
	bl	_report_iommu_fault
	cbz	w0, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _MMU_IRQENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMU_IRQENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_iommu_write_reg
	ldr	x1, [sp, #24]
	mov	x0, x20
	bl	_iopgd_offset
	mov	x21, x0
	ldr	x0, [x0]
	bl	_iopgd_is_table
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x1, [sp, #24]
	mov	x0, x21
	bl	_iopte_offset
	ldp	w2, w8, [x20]
	ldr	x4, [sp, #24]
	ldr	x6, [x21]
	ldr	x9, [x0]
	stp	x0, x9, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldp	w2, w0, [x20]
	ldr	x4, [sp, #24]
	ldr	x6, [x21]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x3, x19
	mov	x5, x21
	bl	_dev_err
LBB0_8:
Lloh9:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_MMU_IRQENABLE,4,2              ; @MMU_IRQENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: errs:0x%08x da:0x%08x pgd:0x%p *pgd:px%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: errs:0x%08x da:0x%08x pgd:0x%p *pgd:0x%08x pte:0x%p *pte:0x%08x\n"

	.no_dead_strip	_iommu_fault_handler
.subsections_via_symbols
