	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcie_msi_setup
_tegra_pcie_msi_setup:                  ## @tegra_pcie_msi_setup
	.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	%rdi, %rbx
	callq	_pci_host_bridge_from_priv
	movq	%rax, %r15
	movq	(%rbx), %rdi
	callq	_to_platform_device
	movq	%rax, %r12
	movq	(%rbx), %r14
	leaq	40(%rbx), %rdi
	callq	_mutex_init
	leaq	16(%rbx), %r13
	movq	%r14, 24(%rbx)
	movq	_tegra_msi_setup_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_tegra_msi_teardown_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %edi
	movq	_INT_PCI_MSI_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_msi_domain_ops@GOTPCREL(%rip), %rdx
	movq	%r13, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	%r12d, 8(%rbx)
	movq	_tegra_pcie_msi_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_NO_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_tegra_msi_irq_chip@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movq	%rbx, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_set_coherent_mask
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	36(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_ATTR_NO_KERNEL_MAPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_dma_alloc_attrs
	movl	%eax, 32(%rbx)
	testl	%eax, %eax
	je	LBB0_10
## %bb.14:
	movq	%r13, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_13
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_8:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_11:
	movl	8(%rbx), %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_12:
	movl	12(%rbx), %edi
	callq	_irq_domain_remove
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tegra_msi_setup_irq,4,2        ## @tegra_msi_setup_irq
	.comm	_tegra_msi_teardown_irq,4,2     ## @tegra_msi_teardown_irq
	.comm	_INT_PCI_MSI_NR,4,2             ## @INT_PCI_MSI_NR
	.comm	_msi_domain_ops,4,2             ## @msi_domain_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"msi"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get IRQ: %d\n"

	.comm	_tegra_pcie_msi_irq,4,2         ## @tegra_pcie_msi_irq
	.comm	_IRQF_NO_THREAD,4,2             ## @IRQF_NO_THREAD
	.comm	_tegra_msi_irq_chip,4,2         ## @tegra_msi_irq_chip
L_.str.3:                               ## @.str.3
	.asciz	"failed to request IRQ: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to set DMA coherent mask: %d\n"

	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DMA_ATTR_NO_KERNEL_MAPPING,4,2 ## @DMA_ATTR_NO_KERNEL_MAPPING
L_.str.5:                               ## @.str.5
	.asciz	"failed to allocate DMA memory for MSI\n"

	.no_dead_strip	_tegra_pcie_msi_setup
.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_setup
_tegra_pcie_msi_setup:                  ; @tegra_pcie_msi_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_pci_host_bridge_from_priv
	mov	x21, x0
	ldr	x0, [x19]
	bl	_to_platform_device
	mov	x23, x0
	mov	x0, x19
	ldr	x20, [x0], #40
	bl	_mutex_init
Lloh0:
	adrp	x8, _tegra_msi_teardown_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tegra_msi_teardown_irq@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x22, x19
	str	w8, [x22, #16]!
	str	x20, [x22, #8]
Lloh3:
	adrp	x8, _tegra_msi_setup_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tegra_msi_setup_irq@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _INT_PCI_MSI_NR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INT_PCI_MSI_NR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, _msi_domain_ops@GOTPAGE
Lloh10:
	ldr	x2, [x2, _msi_domain_ops@GOTPAGEOFF]
	mov	x3, x22
	bl	_irq_domain_add_linear
	stur	w0, [x22, #-4]
	cbz	w0, LBB0_6
; %bb.1:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_platform_get_irq_byname
	mov	x23, x0
	tbnz	w0, #31, LBB0_7
; %bb.2:
	str	w23, [x19, #8]
Lloh13:
	adrp	x8, _tegra_pcie_msi_irq@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tegra_pcie_msi_irq@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _IRQF_NO_THREAD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQF_NO_THREAD@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x8, _tegra_msi_irq_chip@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tegra_msi_irq_chip@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x4, x19
	bl	_request_irq
	tbnz	w0, #31, LBB0_8
; %bb.3:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x20
	bl	_dma_set_coherent_mask
	tbnz	w0, #31, LBB0_9
; %bb.4:
Lloh22:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, x19, #36
Lloh25:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x8, _DMA_ATTR_NO_KERNEL_MAPPING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _DMA_ATTR_NO_KERNEL_MAPPING@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_dma_alloc_attrs
	str	w0, [x19, #32]
	cbz	w0, LBB0_10
; %bb.5:
	mov	w23, #0
	str	x22, [x21]
	b	LBB0_13
LBB0_6:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
LBB0_7:
	str	x23, [sp]
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_12
LBB0_8:
	mov	x23, x0
	str	x23, [sp]
Lloh38:
	adrp	x1, l_.str.3@PAGE
Lloh39:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_12
LBB0_9:
	mov	x23, x0
	str	x23, [sp]
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_11
LBB0_10:
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
LBB0_12:
	ldr	w0, [x19, #12]
	bl	_irq_domain_remove
LBB0_13:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_tegra_msi_setup_irq,4,2        ; @tegra_msi_setup_irq
	.comm	_tegra_msi_teardown_irq,4,2     ; @tegra_msi_teardown_irq
	.comm	_INT_PCI_MSI_NR,4,2             ; @INT_PCI_MSI_NR
	.comm	_msi_domain_ops,4,2             ; @msi_domain_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create IRQ domain\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"msi"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get IRQ: %d\n"

	.comm	_tegra_pcie_msi_irq,4,2         ; @tegra_pcie_msi_irq
	.comm	_IRQF_NO_THREAD,4,2             ; @IRQF_NO_THREAD
	.comm	_tegra_msi_irq_chip,4,2         ; @tegra_msi_irq_chip
l_.str.3:                               ; @.str.3
	.asciz	"failed to request IRQ: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to set DMA coherent mask: %d\n"

	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DMA_ATTR_NO_KERNEL_MAPPING,4,2 ; @DMA_ATTR_NO_KERNEL_MAPPING
l_.str.5:                               ; @.str.5
	.asciz	"failed to allocate DMA memory for MSI\n"

	.no_dead_strip	_tegra_pcie_msi_setup
.subsections_via_symbols
