	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_fault_do_one
_dmar_fault_do_one:                     ## @dmar_fault_do_one
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movl	%r8d, %ebx
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %r12d
	leaq	-52(%rbp), %rsi
	movl	%edx, %edi
	callq	_dmar_get_fault_reason
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %eax
	movq	_INTR_REMAP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movl	%ebx, %r12d
	sarl	$8, %r12d
	movzbl	%bl, %ebx
	movl	%ebx, %edi
	callq	_PCI_SLOT
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_PCI_FUNC
	shrq	$48, %r14
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movq	%r14, %r8
	movl	%r13d, %r9d
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_pr_err
	addq	$16, %rsp
	jmp	LBB0_3
LBB0_2:
	testl	%r12d, %r12d
	leaq	L_.str.3(%rip), %rax
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	leaq	L_.str.2(%rip), %r15
	cmoveq	%rax, %r15
	movl	%ebx, %r12d
	sarl	$8, %r12d
	movzbl	%bl, %ebx
	movl	%ebx, %edi
	callq	_PCI_SLOT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_PCI_FUNC
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r13
	pushq	%r14
	callq	_pr_err
	addq	$32, %rsp
LBB0_3:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_REMAP,4,2                 ## @INTR_REMAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[INTR-REMAP] Request device [%02x:%02x.%d] fault index %llx [fault reason %02d] %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"[%s] Request device [%02x:%02x.%d] PASID %x fault addr %llx [fault reason %02d] %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"DMA Read"

L_.str.3:                               ## @.str.3
	.asciz	"DMA Write"

	.no_dead_strip	_dmar_fault_do_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_fault_do_one
_dmar_fault_do_one:                     ; @dmar_fault_do_one
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x23, x4
	mov	x22, x3
	mov	x20, x2
	mov	x24, x1
	sub	x1, x29, #68
	mov	x0, x2
	bl	_dmar_get_fault_reason
	mov	x21, x0
	ldur	w8, [x29, #-68]
Lloh0:
	adrp	x9, _INTR_REMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTR_REMAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	asr	w24, w23, #8
	and	w22, w23, #0xff
	mov	x0, x22
	bl	_PCI_SLOT
	mov	x23, x0
	mov	x0, x22
	bl	_PCI_FUNC
                                        ; kill: def $w0 killed $w0 def $x0
	lsr	x8, x19, #48
	stp	x20, x21, [sp, #32]
	stp	x0, x8, [sp, #16]
	stp	x24, x23, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, l_.str.2@PAGE
Lloh6:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh7:
	adrp	x9, l_.str.3@PAGE
Lloh8:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w24, #0
	csel	x25, x9, x8, eq
	asr	w26, w23, #8
	and	w23, w23, #0xff
	mov	x0, x23
	bl	_PCI_SLOT
	mov	x24, x0
	mov	x0, x23
	bl	_PCI_FUNC
                                        ; kill: def $w0 killed $w0 def $x0
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	stp	x20, x21, [sp, #48]
	stp	x22, x19, [sp, #32]
	stp	x24, x0, [sp, #16]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	stp	x25, x26, [sp]
LBB0_3:
	bl	_pr_err
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_REMAP,4,2                 ; @INTR_REMAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[INTR-REMAP] Request device [%02x:%02x.%d] fault index %llx [fault reason %02d] %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"[%s] Request device [%02x:%02x.%d] PASID %x fault addr %llx [fault reason %02d] %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"DMA Read"

l_.str.3:                               ; @.str.3
	.asciz	"DMA Write"

	.no_dead_strip	_dmar_fault_do_one
.subsections_via_symbols
