	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcie_enable_legacy_interrupts
_tegra_pcie_enable_legacy_interrupts:   ## @tegra_pcie_enable_legacy_interrupts
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_to_dw_pcie_from_pp
	movq	%rax, %rdi
	callq	_to_tegra_pcie
	movq	%rax, %r14
	movq	_APPL_INTR_EN_L0_0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_appl_readl
	movq	_APPL_INTR_EN_L0_0_SYS_INTR_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_APPL_INTR_EN_L0_0_INT_INT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_appl_writel
	movq	_APPL_INTR_EN_L1_8_0@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_appl_readl
	movl	%eax, %ebx
	movq	_APPL_INTR_EN_L1_8_INTX_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_APPL_INTR_EN_L1_8_AUTO_BW_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_APPL_INTR_EN_L1_8_BW_MGT_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_CONFIG_PCIEAER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_APPL_INTR_EN_L1_8_AER_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_2:
	orl	%ecx, %ebx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_appl_writel                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_APPL_INTR_EN_L0_0,4,2          ## @APPL_INTR_EN_L0_0
	.comm	_APPL_INTR_EN_L0_0_SYS_INTR_EN,4,2 ## @APPL_INTR_EN_L0_0_SYS_INTR_EN
	.comm	_APPL_INTR_EN_L0_0_INT_INT_EN,4,2 ## @APPL_INTR_EN_L0_0_INT_INT_EN
	.comm	_APPL_INTR_EN_L1_8_0,4,2        ## @APPL_INTR_EN_L1_8_0
	.comm	_APPL_INTR_EN_L1_8_INTX_EN,4,2  ## @APPL_INTR_EN_L1_8_INTX_EN
	.comm	_APPL_INTR_EN_L1_8_AUTO_BW_INT_EN,4,2 ## @APPL_INTR_EN_L1_8_AUTO_BW_INT_EN
	.comm	_APPL_INTR_EN_L1_8_BW_MGT_INT_EN,4,2 ## @APPL_INTR_EN_L1_8_BW_MGT_INT_EN
	.comm	_CONFIG_PCIEAER,4,2             ## @CONFIG_PCIEAER
	.comm	_APPL_INTR_EN_L1_8_AER_INT_EN,4,2 ## @APPL_INTR_EN_L1_8_AER_INT_EN
	.no_dead_strip	_tegra_pcie_enable_legacy_interrupts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcie_enable_legacy_interrupts
_tegra_pcie_enable_legacy_interrupts:   ; @tegra_pcie_enable_legacy_interrupts
	.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
	bl	_to_dw_pcie_from_pp
	bl	_to_tegra_pcie
	mov	x19, x0
Lloh0:
	adrp	x20, _APPL_INTR_EN_L0_0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _APPL_INTR_EN_L0_0@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_appl_readl
Lloh2:
	adrp	x8, _APPL_INTR_EN_L0_0_SYS_INTR_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _APPL_INTR_EN_L0_0_SYS_INTR_EN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh5:
	adrp	x9, _APPL_INTR_EN_L0_0_INT_INT_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _APPL_INTR_EN_L0_0_INT_INT_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	w2, [x20]
	mov	x0, x19
	bl	_appl_writel
Lloh8:
	adrp	x20, _APPL_INTR_EN_L1_8_0@GOTPAGE
Lloh9:
	ldr	x20, [x20, _APPL_INTR_EN_L1_8_0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_appl_readl
Lloh10:
	adrp	x8, _APPL_INTR_EN_L1_8_INTX_EN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _APPL_INTR_EN_L1_8_INTX_EN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh13:
	adrp	x9, _APPL_INTR_EN_L1_8_AUTO_BW_INT_EN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _APPL_INTR_EN_L1_8_AUTO_BW_INT_EN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _APPL_INTR_EN_L1_8_BW_MGT_INT_EN@GOTPAGE
Lloh17:
	ldr	x10, [x10, _APPL_INTR_EN_L1_8_BW_MGT_INT_EN@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh18:
	ldr	w9, [x10]
	orr	w21, w8, w9
Lloh19:
	adrp	x8, _CONFIG_PCIEAER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CONFIG_PCIEAER@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_IS_ENABLED
Lloh22:
	adrp	x8, _APPL_INTR_EN_L1_8_AER_INT_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _APPL_INTR_EN_L1_8_AER_INT_EN@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w8, wzr, w8, eq
	orr	w1, w21, w8
	ldr	w2, [x20]
	mov	x0, x19
	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
	b	_appl_writel
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_APPL_INTR_EN_L0_0,4,2          ; @APPL_INTR_EN_L0_0
	.comm	_APPL_INTR_EN_L0_0_SYS_INTR_EN,4,2 ; @APPL_INTR_EN_L0_0_SYS_INTR_EN
	.comm	_APPL_INTR_EN_L0_0_INT_INT_EN,4,2 ; @APPL_INTR_EN_L0_0_INT_INT_EN
	.comm	_APPL_INTR_EN_L1_8_0,4,2        ; @APPL_INTR_EN_L1_8_0
	.comm	_APPL_INTR_EN_L1_8_INTX_EN,4,2  ; @APPL_INTR_EN_L1_8_INTX_EN
	.comm	_APPL_INTR_EN_L1_8_AUTO_BW_INT_EN,4,2 ; @APPL_INTR_EN_L1_8_AUTO_BW_INT_EN
	.comm	_APPL_INTR_EN_L1_8_BW_MGT_INT_EN,4,2 ; @APPL_INTR_EN_L1_8_BW_MGT_INT_EN
	.comm	_CONFIG_PCIEAER,4,2             ; @CONFIG_PCIEAER
	.comm	_APPL_INTR_EN_L1_8_AER_INT_EN,4,2 ; @APPL_INTR_EN_L1_8_AER_INT_EN
	.no_dead_strip	_tegra_pcie_enable_legacy_interrupts
.subsections_via_symbols
