	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_from_ptys_speed
_mlxsw_sp1_from_ptys_speed:             ## @mlxsw_sp1_from_ptys_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MLXSW_SP1_PORT_LINK_MODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	jle	LBB0_5
## %bb.1:
	movq	_mlxsw_sp1_port_link_mode@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	$4, %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, -4(%rdx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rdx
	decq	%rcx
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	%rdx, %rax
LBB0_5:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP1_PORT_LINK_MODE_LEN,4,2 ## @MLXSW_SP1_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sp1_port_link_mode,8,3   ## @mlxsw_sp1_port_link_mode
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.no_dead_strip	_mlxsw_sp1_from_ptys_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp1_from_ptys_speed
_mlxsw_sp1_from_ptys_speed:             ; @mlxsw_sp1_from_ptys_speed
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MLXSW_SP1_PORT_LINK_MODE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP1_PORT_LINK_MODE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _mlxsw_sp1_port_link_mode@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mlxsw_sp1_port_link_mode@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x8, x8, #4
Lloh6:
	adrp	x10, _SPEED_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SPEED_UNKNOWN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x8, #-4]
	tst	w11, w1
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
; %bb.4:
	mov	x8, x10
LBB0_5:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh8:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP1_PORT_LINK_MODE_LEN,4,2 ; @MLXSW_SP1_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sp1_port_link_mode,8,3   ; @mlxsw_sp1_port_link_mode
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.no_dead_strip	_mlxsw_sp1_from_ptys_speed
.subsections_via_symbols
