	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_report_downtraining       ## -- Begin function pcie_report_downtraining
	.p2align	4, 0x90
_pcie_report_downtraining:              ## @pcie_report_downtraining
	.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
	movq	%rdi, %rbx
	callq	_pci_is_pcie
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_ENDPOINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_LEG_END@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_UPSTREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
LBB0_4:
	movl	8(%rbx), %edi
	callq	_PCI_FUNC
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	cmpq	$0, (%rbx)
	je	LBB0_7
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___pcie_print_link_status       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_TYPE_ENDPOINT,8,3      ## @PCI_EXP_TYPE_ENDPOINT
	.comm	_PCI_EXP_TYPE_LEG_END,8,3       ## @PCI_EXP_TYPE_LEG_END
	.comm	_PCI_EXP_TYPE_UPSTREAM,8,3      ## @PCI_EXP_TYPE_UPSTREAM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcie_report_downtraining       ; -- Begin function pcie_report_downtraining
	.p2align	2
_pcie_report_downtraining:              ; @pcie_report_downtraining
	.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, x0
	bl	_pci_is_pcie
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_pci_pcie_type
Lloh0:
	adrp	x8, _PCI_EXP_TYPE_ENDPOINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_TYPE_ENDPOINT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_pci_pcie_type
Lloh3:
	adrp	x8, _PCI_EXP_TYPE_LEG_END@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_TYPE_LEG_END@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pci_pcie_type
Lloh6:
	adrp	x8, _PCI_EXP_TYPE_UPSTREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EXP_TYPE_UPSTREAM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_PCI_FUNC
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___pcie_print_link_status
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_TYPE_ENDPOINT,8,3      ; @PCI_EXP_TYPE_ENDPOINT
	.comm	_PCI_EXP_TYPE_LEG_END,8,3       ; @PCI_EXP_TYPE_LEG_END
	.comm	_PCI_EXP_TYPE_UPSTREAM,8,3      ; @PCI_EXP_TYPE_UPSTREAM
.subsections_via_symbols
