	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_get_fault_reason
_dmar_get_fault_reason:                 ## @dmar_get_fault_reason
	.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, %r14
	movl	%edi, %ebx
	cmpl	$32, %edi
	jl	LBB0_7
## %bb.1:
	leal	-32(%rbx), %r15d
	movq	_irq_remap_fault_reasons@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_4
## %bb.2:
	movq	_INTR_REMAP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	cmpl	$48, %ebx
	jb	LBB0_7
## %bb.5:
	leal	-48(%rbx), %r15d
	movq	_dma_remap_sm_fault_reasons@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_7
## %bb.6:
	movq	_DMA_REMAP@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%r12), %rax
	movl	%r15d, %ecx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_dma_remap_fault_reasons@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_9
## %bb.8:
	movq	_DMA_REMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	L_.str(%rip), %rax
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_irq_remap_fault_reasons,8,3    ## @irq_remap_fault_reasons
	.comm	_INTR_REMAP,4,2                 ## @INTR_REMAP
	.comm	_dma_remap_sm_fault_reasons,8,3 ## @dma_remap_sm_fault_reasons
	.comm	_DMA_REMAP,4,2                  ## @DMA_REMAP
	.comm	_dma_remap_fault_reasons,8,3    ## @dma_remap_fault_reasons
	.comm	_UNKNOWN,4,2                    ## @UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown"

	.no_dead_strip	_dmar_get_fault_reason
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_get_fault_reason
_dmar_get_fault_reason:                 ; @dmar_get_fault_reason
	.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
	subs	w21, w0, #32
	b.lt	LBB0_7
; %bb.1:
Lloh0:
	adrp	x22, _irq_remap_fault_reasons@GOTPAGE
Lloh1:
	ldr	x22, [x22, _irq_remap_fault_reasons@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _INTR_REMAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INTR_REMAP@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	subs	w21, w20, #48
	b.lo	LBB0_7
; %bb.4:
Lloh4:
	adrp	x22, _dma_remap_sm_fault_reasons@GOTPAGE
Lloh5:
	ldr	x22, [x22, _dma_remap_sm_fault_reasons@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _DMA_REMAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_REMAP@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x22]
	ldr	x0, [x8, w21, uxtw #3]
	b	LBB0_10
LBB0_7:
Lloh8:
	adrp	x21, _dma_remap_fault_reasons@GOTPAGE
Lloh9:
	ldr	x21, [x21, _dma_remap_fault_reasons@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, w20
	b.le	LBB0_9
; %bb.8:
Lloh10:
	adrp	x8, _DMA_REMAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_REMAP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x21]
	ldr	x0, [x8, w20, sxtw #3]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _UNKNOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UNKNOWN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
LBB0_10:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_irq_remap_fault_reasons,8,3    ; @irq_remap_fault_reasons
	.comm	_INTR_REMAP,4,2                 ; @INTR_REMAP
	.comm	_dma_remap_sm_fault_reasons,8,3 ; @dma_remap_sm_fault_reasons
	.comm	_DMA_REMAP,4,2                  ; @DMA_REMAP
	.comm	_dma_remap_fault_reasons,8,3    ; @dma_remap_fault_reasons
	.comm	_UNKNOWN,4,2                    ; @UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown"

	.no_dead_strip	_dmar_get_fault_reason
.subsections_via_symbols
