	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___pcie_print_link_status       ## -- Begin function __pcie_print_link_status
	.p2align	4, 0x90
___pcie_print_link_status:              ## @__pcie_print_link_status
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	$0, -80(%rbp)
	leaq	-44(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_pcie_bandwidth_capable
	movl	%eax, %r13d
	leaq	-80(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	callq	_pcie_bandwidth_available
	movl	%eax, %r15d
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	%r13d, %r15d
	jl	LBB0_3
## %bb.2:
	movslq	%r13d, %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	subl	%eax, %r13d
	movl	-44(%rbp), %edi
	callq	_PCIE_SPEED2STR
	movl	-48(%rbp), %r9d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_pci_info
	jmp	LBB0_8
LBB0_3:
	cmpl	%r13d, %r15d
	jge	LBB0_8
## %bb.4:
	movslq	%r15d, %rax
	imulq	$274877907, %rax, %r12          ## imm = 0x10624DD3
	movq	%r12, %rax
	shrq	$63, %rax
	sarq	$38, %r12
	addl	%eax, %r12d
	imull	$1000, %r12d, %eax              ## imm = 0x3E8
	subl	%eax, %r15d
	movl	-60(%rbp), %edi
	callq	_PCIE_SPEED2STR
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-64(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.6:
	callq	_pci_name
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rax
LBB0_7:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movslq	%r13d, %rax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$38, %rbx
	addl	%eax, %ebx
	imull	$1000, %ebx, %eax               ## imm = 0x3E8
	subl	%eax, %r13d
	movl	-44(%rbp), %edi
	callq	_PCIE_SPEED2STR
	movl	%eax, %r10d
	movl	-48(%rbp), %r11d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	pushq	%r13
	pushq	%rbx
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_pci_info
	addq	$48, %rsp
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u.%03u Gb/s available PCIe bandwidth (%s x%d link)\n"

L_.str.1:                               ## @.str.1
	.asciz	"%u.%03u Gb/s available PCIe bandwidth, limited by %s x%d link at %s (capable of %u.%03u Gb/s with %s x%d link)\n"

L_.str.2:                               ## @.str.2
	.asciz	"<unknown>"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___pcie_print_link_status       ; -- Begin function __pcie_print_link_status
	.p2align	2
___pcie_print_link_status:              ; @__pcie_print_link_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #40]
	add	x1, sp, #48
	add	x2, sp, #56
	bl	_pcie_bandwidth_capable
	mov	x20, x0
	add	x1, sp, #40
	add	x2, sp, #52
	add	x3, sp, #60
	mov	x0, x19
	bl	_pcie_bandwidth_available
	cbz	w21, LBB0_3
; %bb.1:
	cmp	w0, w20
	b.lt	LBB0_3
; %bb.2:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w20, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w21, w8, w9
	mov	w8, #1000
	msub	w20, w21, w8, w20
	ldr	w0, [sp, #48]
	bl	_PCIE_SPEED2STR
	mov	x4, x0
	ldr	w5, [sp, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	b	LBB0_8
LBB0_3:
	cmp	w0, w20
	b.ge	LBB0_9
; %bb.4:
	mov	w26, #19923
	movk	w26, #4194, lsl #16
	smull	x8, w0, w26
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w21, w8, w9
	mov	w27, #1000
	msub	w22, w21, w27, w0
	ldr	w0, [sp, #52]
	bl	_PCIE_SPEED2STR
	mov	x23, x0
	ldr	w24, [sp, #60]
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_pci_name
	mov	x25, x0
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x25, l_.str.2@PAGE
Lloh3:
	add	x25, x25, l_.str.2@PAGEOFF
LBB0_7:
	smull	x8, w20, w26
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w26, w8, w9, asr #6
	msub	w20, w26, w27, w20
	ldr	w0, [sp, #48]
	bl	_PCIE_SPEED2STR
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #56]
	stp	x0, x8, [sp, #24]
	stp	x25, x26, [sp]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x20, [sp, #16]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
LBB0_8:
	bl	_pci_info
LBB0_9:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u.%03u Gb/s available PCIe bandwidth (%s x%d link)\n"

l_.str.1:                               ; @.str.1
	.asciz	"%u.%03u Gb/s available PCIe bandwidth, limited by %s x%d link at %s (capable of %u.%03u Gb/s with %s x%d link)\n"

l_.str.2:                               ; @.str.2
	.asciz	"<unknown>"

.subsections_via_symbols
