	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcie_msi_irq
_tegra_pcie_msi_irq:                    ## @tegra_pcie_msi_irq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	8(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	_AFI_MSI_VEC0@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_AFI_MSI_VEC0@GOTPCREL(%rip), %r12
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	$8, %rax
	je	LBB0_12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leaq	(,%rax,4), %rcx
	movq	(%r12), %rsi
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rsi
	movq	%r15, %rdi
	movq	%rax, %r12
	callq	_afi_readl
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	shll	$5, %r12d
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_AFI_MSI_VEC0@GOTPCREL(%rip), %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	callq	_dev_info
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_AFI_MSI_VEC0@GOTPCREL(%rip), %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_afi_readl
	movq	%rax, -64(%rbp)
	incl	%r14d
	testq	%rax, %rax
	je	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-64(%rbp), %rdi
	movl	$32, %esi
	callq	_find_first_bit
                                        ## kill: def $eax killed $eax def $rax
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx), %r13d
	movq	(%r12), %rdx
	addq	%rbx, %rdx
	movq	%r15, %rdi
	callq	_afi_writel
	movl	4(%r15), %edi
	movl	%r13d, %esi
	callq	_irq_find_mapping
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, %r12d
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r12d, %edi
	callq	_generic_handle_irq
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_12:
	testl	%r14d, %r14d
	jne	LBB0_13
## %bb.14:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AFI_MSI_VEC0,8,3               ## @AFI_MSI_VEC0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled MSI\n"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected MSI\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.no_dead_strip	_tegra_pcie_msi_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcie_msi_irq
_tegra_pcie_msi_irq:                    ; @tegra_pcie_msi_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x26, #0
	mov	w25, #0
Lloh0:
	adrp	x27, _AFI_MSI_VEC0@GOTPAGE
Lloh1:
	ldr	x27, [x27, _AFI_MSI_VEC0@GOTPAGEOFF]
	ldr	x20, [x1, #8]
	mov	w28, #1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	cmp	x26, #8
	b.eq	LBB0_11
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x27]
	lsl	x22, x26, #2
	add	x1, x8, x22
	mov	x0, x19
	bl	_afi_readl
	str	x0, [sp, #8]
	cbz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	w21, w26, #5
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x20
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	bl	_dev_info
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x27]
	add	x1, x8, x22
	mov	x0, x19
	bl	_afi_readl
	str	x0, [sp, #8]
	add	w25, w25, #1
	cbz	x0, LBB0_1
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #8
	mov	w1, #32
	bl	_find_first_bit
	add	w23, w0, w21
	lsl	w1, w28, w0
	ldr	x8, [x27]
	add	x2, x8, x22
	mov	x0, x19
	bl	_afi_writel
	ldr	w0, [x19, #4]
	mov	x1, x23
	bl	_irq_find_mapping
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x24, x0
	ldr	w1, [x19]
	mov	x0, x23
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_generic_handle_irq
	b	LBB0_6
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x20
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_11:
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	adrp	x9, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQ_NONE@GOTPAGEOFF]
	cmp	w25, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AFI_MSI_VEC0,8,3               ; @AFI_MSI_VEC0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled MSI\n"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected MSI\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.no_dead_strip	_tegra_pcie_msi_irq
.subsections_via_symbols
