	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function speed2ptys_link_modes
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.space	4
	.space	4
LCPI0_1:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_speed2ptys_link_modes:                 ## @speed2ptys_link_modes
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MLX4_LINK_MODES_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.2:
	movq	_ptys2ethtool_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpl	$4, %r8d
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %ecx
	andl	$-4, %ecx
	movq	%rdi, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	(,%r8,8), %rax
	andq	$-32, %rax
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = <0,1,u,u>
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = <2,2,u,u>
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = <4,4,u,u>
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm5, %xmm7
	paddd	%xmm8, %xmm7
	movdqu	(%rsi,%rdx), %xmm4
	movdqu	16(%rsi,%rdx), %xmm6
	pcmpeqq	%xmm0, %xmm4
	pcmpeqq	%xmm0, %xmm6
	movdqa	%xmm5, %xmm2
	pslld	$23, %xmm2
	paddd	%xmm10, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pslld	$23, %xmm7
	paddd	%xmm10, %xmm7
	cvttps2dq	%xmm7, %xmm7
	pmovsxdq	%xmm2, %xmm2
	pand	%xmm4, %xmm2
	por	%xmm2, %xmm1
	pmovsxdq	%xmm7, %xmm2
	pand	%xmm6, %xmm2
	por	%xmm2, %xmm3
	paddd	%xmm9, %xmm5
	addq	$32, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
## %bb.6:
	por	%xmm1, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	por	%xmm3, %xmm0
	movq	%xmm0, %rax
	cmpq	%r8, %rcx
	je	LBB0_9
LBB0_7:
	xorl	%r9d, %r9d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	shll	%cl, %edx
	cmpq	%rdi, (%rsi,%rcx,8)
	movslq	%edx, %rdx
	cmovneq	%r9, %rdx
	orq	%rdx, %rax
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_LINK_MODES_SZ,4,2         ## @MLX4_LINK_MODES_SZ
	.comm	_ptys2ethtool_map,8,3           ## @ptys2ethtool_map
	.no_dead_strip	_speed2ptys_link_modes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function speed2ptys_link_modes
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_speed2ptys_link_modes:                 ; @speed2ptys_link_modes
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MLX4_LINK_MODES_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_LINK_MODES_SZ@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ptys2ethtool_map@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ptys2ethtool_map@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	cmp	w9, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	x8, #0
	b	LBB0_7
LBB0_3:
	mov	x0, #0
	ret
LBB0_4:
	and	x11, x9, #0xfffffff8
	dup.2d	v0, x0
	movi.2d	v1, #0000000000000000
	movi.2s	v2, #2
	movi.2s	v3, #4
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d4, [x8, lCPI0_0@PAGEOFF]
	add	x8, x10, #32
	movi.2s	v5, #6
	movi.2s	v6, #1
	movi.2s	v7, #8
	mov	x12, x11
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add.2s	v19, v4, v2
	add.2s	v20, v4, v3
	add.2s	v21, v4, v5
	ldp	q22, q23, [x8, #-32]
	ldp	q24, q25, [x8], #64
	cmeq.2d	v22, v22, v0
	cmeq.2d	v23, v23, v0
	cmeq.2d	v24, v24, v0
	cmeq.2d	v25, v25, v0
	ushl.2s	v26, v6, v4
	ushl.2s	v19, v6, v19
	ushl.2s	v20, v6, v20
	ushl.2s	v21, v6, v21
	sshll.2d	v26, v26, #0
	sshll.2d	v19, v19, #0
	sshll.2d	v20, v20, #0
	sshll.2d	v21, v21, #0
	and.16b	v22, v26, v22
	and.16b	v19, v19, v23
	and.16b	v20, v20, v24
	and.16b	v21, v21, v25
	orr.16b	v1, v22, v1
	orr.16b	v16, v19, v16
	orr.16b	v17, v20, v17
	orr.16b	v18, v21, v18
	add.2s	v4, v4, v7
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	orr.16b	v0, v16, v1
	orr.16b	v0, v17, v0
	orr.16b	v0, v18, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	x8, d0
	cmp	x11, x9
	b.eq	LBB0_9
LBB0_7:
	mov	w12, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x11, lsl #3]
	lsl	w14, w12, w11
	sxtw	x14, w14
	cmp	x13, x0
	csel	x13, x14, xzr, eq
	orr	x8, x13, x8
	add	x11, x11, #1
	cmp	x9, x11
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_LINK_MODES_SZ,4,2         ; @MLX4_LINK_MODES_SZ
	.comm	_ptys2ethtool_map,8,3           ; @ptys2ethtool_map
	.no_dead_strip	_speed2ptys_link_modes
.subsections_via_symbols
