	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_pcib_pex_ctrl
_tegra_pcib_pex_ctrl:                   ## @tegra_pcib_pex_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	_TEGRA_PCIB_MAX_PORTS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_panic
LBB0_2:
	cmpl	$2, %ebx
	je	LBB0_7
## %bb.3:
	cmpl	$1, %ebx
	je	LBB0_6
## %bb.4:
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.5:
	movq	_AFI_PEX0_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_7:
	movq	_AFI_PEX2_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_AFI_PEX1_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_panic
                                        ## implicit-def: $eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEGRA_PCIB_MAX_PORTS,4,2       ## @TEGRA_PCIB_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid port number: %d\n"

	.comm	_AFI_PEX0_CTRL,4,2              ## @AFI_PEX0_CTRL
	.comm	_AFI_PEX1_CTRL,4,2              ## @AFI_PEX1_CTRL
	.comm	_AFI_PEX2_CTRL,4,2              ## @AFI_PEX2_CTRL
	.no_dead_strip	_tegra_pcib_pex_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_pcib_pex_ctrl
_tegra_pcib_pex_ctrl:                   ; @tegra_pcib_pex_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _TEGRA_PCIB_MAX_PORTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEGRA_PCIB_MAX_PORTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.gt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_panic
LBB0_2:
	cmp	w19, #2
	b.eq	LBB0_6
; %bb.3:
	cmp	w19, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w19, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _AFI_PEX0_CTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AFI_PEX0_CTRL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
Lloh8:
	adrp	x8, _AFI_PEX2_CTRL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AFI_PEX2_CTRL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _AFI_PEX1_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AFI_PEX1_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_panic
                                        ; implicit-def: $w0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TEGRA_PCIB_MAX_PORTS,4,2       ; @TEGRA_PCIB_MAX_PORTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid port number: %d\n"

	.comm	_AFI_PEX0_CTRL,4,2              ; @AFI_PEX0_CTRL
	.comm	_AFI_PEX1_CTRL,4,2              ; @AFI_PEX1_CTRL
	.comm	_AFI_PEX2_CTRL,4,2              ; @AFI_PEX2_CTRL
	.no_dead_strip	_tegra_pcib_pex_ctrl
.subsections_via_symbols
