	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viommu_fault_handler
_viommu_fault_handler:                  ## @viommu_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, %rbx
	movq	%rdi, %r15
	movl	(%rsi), %r13d
	movl	12(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movl	4(%rbx), %edi
	callq	_le64_to_cpu
	cmpl	$129, %r13d
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rcx, %rsi
	cmpl	$130, %r13d
	leaq	L_.str(%rip), %rdx
	cmovneq	%rsi, %rdx
	movq	_VIRTIO_IOMMU_FAULT_F_ADDRESS@GOTPCREL(%rip), %rcx
	movl	(%r15), %edi
	testl	%r12d, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_VIRTIO_IOMMU_FAULT_F_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r12d, %ecx
	leaq	L_.str.5(%rip), %rcx
	leaq	L_.str.4(%rip), %r9
	cmoveq	%rcx, %r9
	movq	_VIRTIO_IOMMU_FAULT_F_WRITE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%r12d, %esi
	leaq	L_.str.6(%rip), %r10
	cmoveq	%rcx, %r10
	movq	_VIRTIO_IOMMU_FAULT_F_EXEC@GOTPCREL(%rip), %rsi
	andl	(%rsi), %r12d
	leaq	L_.str.7(%rip), %rbx
	cmoveq	%rcx, %rbx
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_dev_err_ratelimited
	addq	$16, %rsp
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err_ratelimited
LBB0_3:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"domain"

L_.str.1:                               ## @.str.1
	.asciz	"page"

L_.str.2:                               ## @.str.2
	.asciz	"unknown"

	.comm	_VIRTIO_IOMMU_FAULT_F_ADDRESS,4,2 ## @VIRTIO_IOMMU_FAULT_F_ADDRESS
L_.str.3:                               ## @.str.3
	.asciz	"%s fault from EP %u at %#llx [%s%s%s]\n"

	.comm	_VIRTIO_IOMMU_FAULT_F_READ,4,2  ## @VIRTIO_IOMMU_FAULT_F_READ
L_.str.4:                               ## @.str.4
	.asciz	"R"

L_.str.5:                               ## @.str.5
	.space	1

	.comm	_VIRTIO_IOMMU_FAULT_F_WRITE,4,2 ## @VIRTIO_IOMMU_FAULT_F_WRITE
L_.str.6:                               ## @.str.6
	.asciz	"W"

	.comm	_VIRTIO_IOMMU_FAULT_F_EXEC,4,2  ## @VIRTIO_IOMMU_FAULT_F_EXEC
L_.str.7:                               ## @.str.7
	.asciz	"X"

L_.str.8:                               ## @.str.8
	.asciz	"%s fault from EP %u\n"

	.no_dead_strip	_viommu_fault_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viommu_fault_handler
_viommu_fault_handler:                  ; @viommu_fault_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	w23, [x1]
	ldr	w0, [x1, #12]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	mov	x19, x0
	ldr	w0, [x21, #4]
	bl	_le64_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w23, #129
	csel	x8, x9, x8, eq
Lloh4:
	adrp	x9, l_.str@PAGE
Lloh5:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w23, #130
	csel	x2, x9, x8, eq
Lloh6:
	adrp	x8, _VIRTIO_IOMMU_FAULT_F_ADDRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIRTIO_IOMMU_FAULT_F_ADDRESS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	w8, [x22]
	tst	w9, w20
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, _VIRTIO_IOMMU_FAULT_F_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VIRTIO_IOMMU_FAULT_F_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, l_.str.4@PAGE
Lloh13:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh14:
	adrp	x11, l_.str.5@PAGE
Lloh15:
	add	x11, x11, l_.str.5@PAGEOFF
	tst	w9, w20
	csel	x9, x11, x10, eq
Lloh16:
	adrp	x10, _VIRTIO_IOMMU_FAULT_F_WRITE@GOTPAGE
Lloh17:
	ldr	x10, [x10, _VIRTIO_IOMMU_FAULT_F_WRITE@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
Lloh19:
	adrp	x12, l_.str.6@PAGE
Lloh20:
	add	x12, x12, l_.str.6@PAGEOFF
	tst	w10, w20
Lloh21:
	adrp	x10, _VIRTIO_IOMMU_FAULT_F_EXEC@GOTPAGE
Lloh22:
	ldr	x10, [x10, _VIRTIO_IOMMU_FAULT_F_EXEC@GOTPAGEOFF]
	csel	x12, x11, x12, eq
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x13, l_.str.7@PAGE
Lloh25:
	add	x13, x13, l_.str.7@PAGEOFF
	tst	w10, w20
	csel	x10, x11, x13, eq
	stp	x12, x10, [sp, #16]
	stp	x0, x9, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_3:
	mov	x0, x8
	mov	x3, x19
	bl	_dev_err_ratelimited
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"domain"

l_.str.1:                               ; @.str.1
	.asciz	"page"

l_.str.2:                               ; @.str.2
	.asciz	"unknown"

	.comm	_VIRTIO_IOMMU_FAULT_F_ADDRESS,4,2 ; @VIRTIO_IOMMU_FAULT_F_ADDRESS
l_.str.3:                               ; @.str.3
	.asciz	"%s fault from EP %u at %#llx [%s%s%s]\n"

	.comm	_VIRTIO_IOMMU_FAULT_F_READ,4,2  ; @VIRTIO_IOMMU_FAULT_F_READ
l_.str.4:                               ; @.str.4
	.asciz	"R"

l_.str.5:                               ; @.str.5
	.space	1

	.comm	_VIRTIO_IOMMU_FAULT_F_WRITE,4,2 ; @VIRTIO_IOMMU_FAULT_F_WRITE
l_.str.6:                               ; @.str.6
	.asciz	"W"

	.comm	_VIRTIO_IOMMU_FAULT_F_EXEC,4,2  ; @VIRTIO_IOMMU_FAULT_F_EXEC
l_.str.7:                               ; @.str.7
	.asciz	"X"

l_.str.8:                               ; @.str.8
	.asciz	"%s fault from EP %u\n"

	.no_dead_strip	_viommu_fault_handler
.subsections_via_symbols
