	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcib_port_disable
_tegra_pcib_port_disable:               ## @tegra_pcib_port_disable
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax,%rsi,8), %r15
	movl	8(%r15), %esi
	callq	_AFI_RD4
	movq	_AFI_PEX_CTRL_RST_L@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	movl	8(%r15), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_AFI_WR4
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_AFI_RD4
	movl	$10, %edi
	callq	_DELAY
	movq	_AFI_PEX_CTRL_CLKREQ_EN@GOTPCREL(%rip), %rax
	movq	_AFI_PEX_CTRL_REFCLK_EN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	notq	%rdx
	andq	%rbx, %rdx
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_AFI_WR4
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	cmpl	$2, %ecx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmovgeq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_printf                  ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AFI_PEX_CTRL_RST_L,8,3         ## @AFI_PEX_CTRL_RST_L
	.comm	_AFI_PEX_CTRL_CLKREQ_EN,8,3     ## @AFI_PEX_CTRL_CLKREQ_EN
	.comm	_AFI_PEX_CTRL_REFCLK_EN,8,3     ## @AFI_PEX_CTRL_REFCLK_EN
	.comm	_bootverbose,8,3                ## @bootverbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" port %d (%d lane%s): Disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"s"

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_tegra_pcib_port_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcib_port_disable
_tegra_pcib_port_disable:               ; @tegra_pcib_port_disable
	.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, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, x1, lsl #3]
	ldr	w1, [x21, #8]
	bl	_AFI_RD4
Lloh0:
	adrp	x8, _AFI_PEX_CTRL_RST_L@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFI_PEX_CTRL_RST_L@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	bic	x20, x0, x8
	ldr	w1, [x21, #8]
	mov	x0, x19
	mov	x2, x20
	bl	_AFI_WR4
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_AFI_RD4
	mov	w0, #10
	bl	_DELAY
Lloh3:
	adrp	x8, _AFI_PEX_CTRL_CLKREQ_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AFI_PEX_CTRL_CLKREQ_EN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _AFI_PEX_CTRL_REFCLK_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AFI_PEX_CTRL_REFCLK_EN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	orr	x8, x9, x8
	bic	x2, x20, x8
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_AFI_WR4
Lloh9:
	adrp	x8, _bootverbose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
	ldp	w3, w2, [x21]
Lloh14:
	adrp	x9, l_.str.1@PAGE
Lloh15:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w3, #1
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	csel	x4, x9, x8, gt
	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	_device_printf
LBB0_2:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AFI_PEX_CTRL_RST_L,8,3         ; @AFI_PEX_CTRL_RST_L
	.comm	_AFI_PEX_CTRL_CLKREQ_EN,8,3     ; @AFI_PEX_CTRL_CLKREQ_EN
	.comm	_AFI_PEX_CTRL_REFCLK_EN,8,3     ; @AFI_PEX_CTRL_REFCLK_EN
	.comm	_bootverbose,8,3                ; @bootverbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" port %d (%d lane%s): Disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"s"

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_tegra_pcib_port_disable
.subsections_via_symbols
