	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcie_get_resources
_tegra_pcie_get_resources:              ## @tegra_pcie_get_resources
	.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, %r12
	movq	56(%rdi), %r14
	movq	%r14, %rdi
	callq	_to_platform_device
	movq	%rax, %r15
	movq	48(%r12), %r13
	movq	%r12, %rdi
	callq	_tegra_pcie_clocks_get
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	callq	_tegra_pcie_resets_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_25:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_tegra_pcie_phys_get
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	40(%r12), %rdi
	jmp	LBB0_10
LBB0_11:
	movl	(%rbx), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	32(%r12), %rdi
LBB0_10:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_23:
	cmpq	$0, (%r13)
	je	LBB0_25
## %bb.24:
	movq	%r12, %rdi
	callq	_tegra_pcie_phys_put
	jmp	LBB0_25
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_13:
	movl	(%rbx), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	leaq	16(%r12), %rsi
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%r12)
	movq	16(%r12), %rax
	movq	_SZ_4K@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rcx, %rax
	decq	%rax
	movq	%rax, 24(%r12)
	movq	%r14, %rdi
	callq	_devm_ioremap_resource
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	8(%r12), %rdi
	jmp	LBB0_10
LBB0_14:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_18
## %bb.19:
	movl	%ebx, (%r12)
	movq	_tegra_pcie_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rcx
	movl	%ebx, %edi
	movq	%r12, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_22
LBB0_18:
	leaq	L_.str.7(%rip), %rsi
LBB0_22:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_23
LBB0_20:
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get clocks: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get resets: %d\n"

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

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.3:                               ## @.str.3
	.asciz	"pads"

L_.str.4:                               ## @.str.4
	.asciz	"afi"

L_.str.5:                               ## @.str.5
	.asciz	"cs"

	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_SZ_4K,8,3                      ## @SZ_4K
L_.str.6:                               ## @.str.6
	.asciz	"intr"

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

	.comm	_tegra_pcie_isr,4,2             ## @tegra_pcie_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.8:                               ## @.str.8
	.asciz	"PCIE"

L_.str.9:                               ## @.str.9
	.asciz	"failed to register IRQ: %d\n"

	.no_dead_strip	_tegra_pcie_get_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcie_get_resources
_tegra_pcie_get_resources:              ; @tegra_pcie_get_resources
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x20, [x0, #56]
	mov	x0, x20
	bl	_to_platform_device
	mov	x21, x0
	ldr	x23, [x19, #48]
	mov	x0, x19
	bl	_tegra_pcie_clocks_get
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_tegra_pcie_resets_get
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x8, [x23]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_tegra_pcie_phys_get
	tbnz	w0, #31, LBB0_15
LBB0_8:
Lloh4:
	adrp	x22, _IORESOURCE_MEM@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x19, #40]
	b	LBB0_12
LBB0_10:
	ldr	w1, [x22]
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.11:
	ldr	x0, [x19, #32]
LBB0_12:
	bl	_PTR_ERR
	mov	x22, x0
LBB0_13:
	ldr	x8, [x23]
	cbz	x8, LBB0_5
; %bb.14:
	mov	x0, x19
	bl	_tegra_pcie_phys_put
	b	LBB0_5
LBB0_15:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_16:
	ldr	w1, [x22]
Lloh12:
	adrp	x2, l_.str.5@PAGE
Lloh13:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_19
; %bb.17:
	add	x1, x19, #16
	ldr	q0, [x0]
	str	q0, [x19, #16]
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x9, _SZ_4K@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SZ_4K@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x8, x8, x9
	sub	x8, x8, #1
	str	x8, [x19, #24]
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x0, [x19, #8]
	b	LBB0_12
LBB0_19:
Lloh17:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_20:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_platform_get_irq_byname
	mov	x22, x0
	tbnz	w0, #31, LBB0_23
; %bb.21:
	str	w22, [x19]
Lloh22:
	adrp	x8, _tegra_pcie_isr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _tegra_pcie_isr@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x3, l_.str.8@PAGE
Lloh29:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x22
	mov	x4, x19
	bl	_request_irq
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.22:
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_24
LBB0_23:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_24:
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get clocks: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get resets: %d\n"

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

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.3:                               ; @.str.3
	.asciz	"pads"

l_.str.4:                               ; @.str.4
	.asciz	"afi"

l_.str.5:                               ; @.str.5
	.asciz	"cs"

	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_SZ_4K,8,3                      ; @SZ_4K
l_.str.6:                               ; @.str.6
	.asciz	"intr"

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

	.comm	_tegra_pcie_isr,4,2             ; @tegra_pcie_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.8:                               ; @.str.8
	.asciz	"PCIE"

l_.str.9:                               ; @.str.9
	.asciz	"failed to register IRQ: %d\n"

	.no_dead_strip	_tegra_pcie_get_resources
.subsections_via_symbols
