	.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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_ocrdma_mbx_get_link_speed
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_OCRDMA_PHYS_LINK_SPEED_ZERO@GOTPCREL(%rip), %rbx
LBB0_2:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.get_link_speed_and_width(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.get_link_speed_and_width.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_IB_WIDTH_1X@GOTPCREL(%rip), %rax
	movq	_IB_SPEED_SDR@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, (%r15)
	movl	(%rax), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_PHYS_LINK_SPEED_ZERO,4,2 ## @OCRDMA_PHYS_LINK_SPEED_ZERO
	.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
	.no_dead_strip	_get_link_speed_and_width
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.get_link_speed_and_width
l_switch.table.get_link_speed_and_width:
	.quad	_IB_SPEED_QDR
	.quad	_IB_SPEED_DDR
	.quad	_IB_SPEED_SDR
	.quad	_IB_SPEED_QDR

	.p2align	3                               ## @switch.table.get_link_speed_and_width.1
l_switch.table.get_link_speed_and_width.1:
	.quad	_IB_WIDTH_4X
	.quad	_IB_WIDTH_4X
	.quad	_IB_WIDTH_1X
	.quad	_IB_WIDTH_1X

.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:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	add	x21, sp, #12
	add	x1, sp, #12
	mov	x2, #0
	bl	_ocrdma_mbx_get_link_speed
Lloh0:
	adrp	x8, _OCRDMA_PHYS_LINK_SPEED_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_PHYS_LINK_SPEED_ZERO@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x21, x8, eq
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh2:
	adrp	x9, l_switch.table.get_link_speed_and_width@PAGE
Lloh3:
	add	x9, x9, l_switch.table.get_link_speed_and_width@PAGEOFF
	ldr	x9, [x9, x8]
Lloh4:
	adrp	x10, l_switch.table.get_link_speed_and_width.1@PAGE
Lloh5:
	add	x10, x10, l_switch.table.get_link_speed_and_width.1@PAGEOFF
	ldr	x8, [x10, x8]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _IB_WIDTH_1X@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_WIDTH_1X@GOTPAGEOFF]
Lloh8:
	adrp	x9, _IB_SPEED_SDR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_SPEED_SDR@GOTPAGEOFF]
LBB0_3:
	ldr	w9, [x9]
	str	w9, [x20]
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_PHYS_LINK_SPEED_ZERO,4,2 ; @OCRDMA_PHYS_LINK_SPEED_ZERO
	.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
	.no_dead_strip	_get_link_speed_and_width
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.get_link_speed_and_width
l_switch.table.get_link_speed_and_width:
	.quad	_IB_SPEED_QDR
	.quad	_IB_SPEED_DDR
	.quad	_IB_SPEED_SDR
	.quad	_IB_SPEED_QDR

	.p2align	3                               ; @switch.table.get_link_speed_and_width.1
l_switch.table.get_link_speed_and_width.1:
	.quad	_IB_WIDTH_4X
	.quad	_IB_WIDTH_4X
	.quad	_IB_WIDTH_1X
	.quad	_IB_WIDTH_1X

.subsections_via_symbols
