	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_link_speed_and_width
_get_link_speed_and_width:              ## @get_link_speed_and_width
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IB_WIDTH_1X@GOTPCREL(%rip), %rax
	movq	_IB_SPEED_SDR@GOTPCREL(%rip), %rcx
	cmpl	$39999, %edi                    ## imm = 0x9C3F
	jg	LBB0_4
## %bb.1:
	cmpl	$10000, %edi                    ## imm = 0x2710
	je	LBB0_9
## %bb.2:
	cmpl	$20000, %edi                    ## imm = 0x4E20
	je	LBB0_10
## %bb.3:
	cmpl	$25000, %edi                    ## imm = 0x61A8
	je	LBB0_8
	jmp	LBB0_13
LBB0_4:
	cmpl	$40000, %edi                    ## imm = 0x9C40
	je	LBB0_11
## %bb.5:
	cmpl	$50000, %edi                    ## imm = 0xC350
	je	LBB0_12
## %bb.6:
	cmpl	$100000, %edi                   ## imm = 0x186A0
	jne	LBB0_13
## %bb.7:
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_IB_SPEED_EDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_9:
	movq	_IB_SPEED_QDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_10:
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rax
	movq	_IB_SPEED_DDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_11:
	movq	_IB_WIDTH_4X@GOTPCREL(%rip), %rax
	movq	_IB_SPEED_QDR@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_12:
	movq	_IB_SPEED_HDR@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %ecx
	movl	%ecx, (%rsi)
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SPEED_SDR,4,2               ## @IB_SPEED_SDR
	.comm	_IB_WIDTH_1X,4,2                ## @IB_WIDTH_1X
	.comm	_IB_SPEED_QDR,4,2               ## @IB_SPEED_QDR
	.comm	_IB_SPEED_DDR,4,2               ## @IB_SPEED_DDR
	.comm	_IB_WIDTH_4X,4,2                ## @IB_WIDTH_4X
	.comm	_IB_SPEED_EDR,4,2               ## @IB_SPEED_EDR
	.comm	_IB_SPEED_HDR,4,2               ## @IB_SPEED_HDR
	.no_dead_strip	_get_link_speed_and_width
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_link_speed_and_width
_get_link_speed_and_width:              ; @get_link_speed_and_width
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IB_WIDTH_1X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_WIDTH_1X@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IB_SPEED_SDR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_SPEED_SDR@GOTPAGEOFF]
	mov	w10, #39999
	mov	w11, #40000
Lloh4:
	adrp	x12, _IB_WIDTH_4X@GOTPAGE
Lloh5:
	ldr	x12, [x12, _IB_WIDTH_4X@GOTPAGEOFF]
Lloh6:
	adrp	x13, _IB_SPEED_QDR@GOTPAGE
Lloh7:
	ldr	x13, [x13, _IB_SPEED_QDR@GOTPAGEOFF]
Lloh8:
	adrp	x14, _IB_WIDTH_1X@GOTPAGE
Lloh9:
	ldr	x14, [x14, _IB_WIDTH_1X@GOTPAGEOFF]
	mov	w15, #50000
Lloh10:
	adrp	x16, _IB_SPEED_HDR@GOTPAGE
Lloh11:
	ldr	x16, [x16, _IB_SPEED_HDR@GOTPAGEOFF]
	sub	w17, w0, #24, lsl #12           ; =98304
Lloh12:
	adrp	x3, _IB_WIDTH_4X@GOTPAGE
Lloh13:
	ldr	x3, [x3, _IB_WIDTH_4X@GOTPAGEOFF]
	cmp	w17, #1696
Lloh14:
	adrp	x17, _IB_SPEED_EDR@GOTPAGE
Lloh15:
	ldr	x17, [x17, _IB_SPEED_EDR@GOTPAGEOFF]
	csel	x17, x17, x9, eq
	csel	x3, x3, x8, eq
	cmp	w0, w15
	csel	x15, x16, x17, eq
	csel	x14, x14, x3, eq
	cmp	w0, w11
	csel	x11, x13, x15, eq
	csel	x12, x12, x14, eq
	mov	w13, #10000
Lloh16:
	adrp	x14, _IB_WIDTH_1X@GOTPAGE
Lloh17:
	ldr	x14, [x14, _IB_WIDTH_1X@GOTPAGEOFF]
Lloh18:
	adrp	x15, _IB_SPEED_QDR@GOTPAGE
Lloh19:
	ldr	x15, [x15, _IB_SPEED_QDR@GOTPAGEOFF]
Lloh20:
	adrp	x16, _IB_WIDTH_4X@GOTPAGE
Lloh21:
	ldr	x16, [x16, _IB_WIDTH_4X@GOTPAGEOFF]
	mov	w17, #20000
Lloh22:
	adrp	x3, _IB_SPEED_DDR@GOTPAGE
Lloh23:
	ldr	x3, [x3, _IB_SPEED_DDR@GOTPAGEOFF]
	mov	w4, #25000
Lloh24:
	adrp	x5, _IB_WIDTH_1X@GOTPAGE
Lloh25:
	ldr	x5, [x5, _IB_WIDTH_1X@GOTPAGEOFF]
	cmp	w0, w4
Lloh26:
	adrp	x4, _IB_SPEED_EDR@GOTPAGE
Lloh27:
	ldr	x4, [x4, _IB_SPEED_EDR@GOTPAGEOFF]
	csel	x9, x4, x9, eq
	csel	x8, x5, x8, eq
	cmp	w0, w17
	csel	x9, x3, x9, eq
	csel	x8, x16, x8, eq
	cmp	w0, w13
	csel	x9, x15, x9, eq
	csel	x8, x14, x8, eq
	cmp	w0, w10
	csel	x9, x11, x9, gt
	csel	x8, x12, x8, gt
	ldr	w9, [x9]
	str	w9, [x1]
	ldr	w8, [x8]
	str	w8, [x2]
	ret
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SPEED_SDR,4,2               ; @IB_SPEED_SDR
	.comm	_IB_WIDTH_1X,4,2                ; @IB_WIDTH_1X
	.comm	_IB_SPEED_QDR,4,2               ; @IB_SPEED_QDR
	.comm	_IB_SPEED_DDR,4,2               ; @IB_SPEED_DDR
	.comm	_IB_WIDTH_4X,4,2                ; @IB_WIDTH_4X
	.comm	_IB_SPEED_EDR,4,2               ; @IB_SPEED_EDR
	.comm	_IB_SPEED_HDR,4,2               ; @IB_SPEED_HDR
	.no_dead_strip	_get_link_speed_and_width
.subsections_via_symbols
