	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function csiphy_get_lane_mask
LCPI0_0:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_csiphy_get_lane_mask:                  ## @csiphy_get_lane_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	16(%rdi), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_11
## %bb.1:
	movq	8(%rdi), %rdx
	cmpl	$8, %ecx
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_10
LBB0_3:
	movl	%ecx, %esi
	andl	$-8, %esi
	movd	%eax, %xmm0
	leaq	-8(%rsi), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r8, %rax
	andq	$-2, %rax
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,4), %xmm3
	movdqu	16(%rdx,%rdi,4), %xmm4
	movdqu	32(%rdx,%rdi,4), %xmm5
	movdqu	48(%rdx,%rdi,4), %xmm6
	pslld	$23, %xmm3
	paddd	%xmm2, %xmm3
	cvttps2dq	%xmm3, %xmm3
	por	%xmm0, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm2, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm1, %xmm4
	pslld	$23, %xmm5
	paddd	%xmm2, %xmm5
	cvttps2dq	%xmm5, %xmm0
	por	%xmm3, %xmm0
	pslld	$23, %xmm6
	paddd	%xmm2, %xmm6
	cvttps2dq	%xmm6, %xmm1
	por	%xmm4, %xmm1
	addq	$16, %rdi
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rdx,%rdi,4), %xmm2
	movdqu	16(%rdx,%rdi,4), %xmm3
	pslld	$23, %xmm2
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm2, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm2
	por	%xmm2, %xmm1
LBB0_9:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%rcx, %rsi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdx,%rsi,4), %edi
	btsl	%edi, %eax
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_csiphy_get_lane_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csiphy_get_lane_mask
_csiphy_get_lane_mask:                  ; @csiphy_get_lane_mask
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w9, [x0, #16]
	mov	w10, #1
	lsl	w0, w10, w9
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.1:
	ldr	x8, [x8, #8]
	cmp	w9, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	and	x10, x9, #0xfffffff0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w0
	movi.2d	v1, #0000000000000000
	add	x11, x8, #32
	movi.4s	v2, #1
	mov	x12, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	ushl.4s	v5, v2, v5
	ushl.4s	v6, v2, v6
	ushl.4s	v7, v2, v7
	ushl.4s	v16, v2, v16
	orr.16b	v0, v5, v0
	orr.16b	v1, v6, v1
	orr.16b	v3, v7, v3
	orr.16b	v4, v16, v4
	subs	x12, x12, #16
	b.ne	LBB0_4
; %bb.5:
	orr.16b	v0, v1, v0
	orr.16b	v0, v3, v0
	orr.16b	v0, v4, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w0, w11, w12
	cmp	x10, x9
	b.eq	LBB0_8
LBB0_6:
	add	x8, x8, x10, lsl #2
	sub	x9, x9, x10
	mov	w10, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	lsl	w11, w10, w11
	orr	w0, w11, w0
	subs	x9, x9, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_csiphy_get_lane_mask
.subsections_via_symbols
