	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp2_to_ptys_speed
_mlxsw_sp2_to_ptys_speed:               ## @mlxsw_sp2_to_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
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movl	%esi, %edi
	callq	_mlxsw_sp_port_mask_width_get
	movq	_MLXSW_SP2_PORT_LINK_MODE_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	_mlxsw_sp2_port_link_mode@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,2), %rsi
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rsi
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rdx,%rdi)
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, 8(%rdx,%rdi)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	orq	16(%rdx,%rdi), %rcx
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
LBB0_7:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_SP2_PORT_LINK_MODE_LEN,4,2 ## @MLXSW_SP2_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sp2_port_link_mode,8,3   ## @mlxsw_sp2_port_link_mode
	.no_dead_strip	_mlxsw_sp2_to_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_sp2_to_ptys_speed
_mlxsw_sp2_to_ptys_speed:               ; @mlxsw_sp2_to_ptys_speed
	.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, x2
	mov	x0, x1
	bl	_mlxsw_sp_port_mask_width_get
Lloh0:
	adrp	x8, _MLXSW_SP2_PORT_LINK_MODE_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_SP2_PORT_LINK_MODE_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x10, _mlxsw_sp2_port_link_mode@GOTPAGE
Lloh4:
	ldr	x10, [x10, _mlxsw_sp2_port_link_mode@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x10, x10, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #24
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x10]
	tst	w11, w0
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x10, #8]
	orr	x8, x11, x8
	b	LBB0_2
LBB0_6:
	mov	x8, #0
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_SP2_PORT_LINK_MODE_LEN,4,2 ; @MLXSW_SP2_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sp2_port_link_mode,8,3   ; @mlxsw_sp2_port_link_mode
	.no_dead_strip	_mlxsw_sp2_to_ptys_speed
.subsections_via_symbols
