	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsi_get_lane_mask
_dsi_get_lane_mask:                     ## @dsi_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %r8
	movq	_DSI_LANE_UNUSED@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	leaq	-1(%r9), %rax
	movl	%r9d, %r14d
	andl	$3, %r14d
	cmpq	$3, %rax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	andl	$-4, %r9d
	xorl	%r10d, %r10d
	xorl	%edx, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	%edx, %ecx
	shll	%cl, %edi
	cmpq	%r11, (%r8,%rdx,8)
	cmovel	%r10d, %edi
	leal	1(%rdx), %ecx
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	%eax, %edi
	cmpq	%r11, 8(%r8,%rdx,8)
	cmovel	%r10d, %ebx
	leal	2(%rdx), %ecx
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	cmpq	%r11, 16(%r8,%rdx,8)
	cmovel	%r10d, %esi
	orl	%ebx, %esi
	orl	%edi, %esi
	leal	3(%rdx), %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	cmpq	%r11, 24(%r8,%rdx,8)
	cmovel	%r10d, %eax
	orl	%esi, %eax
	addq	$4, %rdx
	cmpq	%r9, %rdx
	jne	LBB0_5
LBB0_6:
	testq	%r14, %r14
	je	LBB0_9
## %bb.7:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	movl	%edx, %ecx
	shll	%cl, %esi
	cmpq	%r11, (%r8,%rdx,8)
	cmovel	%edi, %esi
	orl	%esi, %eax
	incq	%rdx
	decq	%r14
	jne	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSI_LANE_UNUSED,8,3            ## @DSI_LANE_UNUSED
	.no_dead_strip	_dsi_get_lane_mask
.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 dsi_get_lane_mask
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dsi_get_lane_mask:                     ; @dsi_get_lane_mask
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _DSI_LANE_UNUSED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DSI_LANE_UNUSED@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	and	x11, x8, #0xfffffff8
	dup.2d	v0, x10
	movi.2d	v1, #0000000000000000
	movi.2s	v2, #2
	movi.2s	v3, #4
Lloh3:
	adrp	x12, lCPI0_0@PAGE
Lloh4:
	ldr	d4, [x12, lCPI0_0@PAGEOFF]
	add	x12, x9, #32
	movi.2s	v5, #6
	movi.2s	v6, #1
	movi.2s	v7, #8
	mov	x13, 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, [x12, #-32]
	ldp	q24, q25, [x12], #64
	cmeq.2d	v22, v22, v0
	xtn.2s	v22, v22
	cmeq.2d	v23, v23, v0
	xtn.2s	v23, v23
	cmeq.2d	v24, v24, v0
	xtn.2s	v24, v24
	cmeq.2d	v25, v25, v0
	xtn.2s	v25, v25
	ushl.2s	v26, v6, v4
	ushl.2s	v19, v6, v19
	ushl.2s	v20, v6, v20
	ushl.2s	v21, v6, v21
	bic.8b	v22, v26, v22
	bic.8b	v19, v19, v23
	bic.8b	v20, v20, v24
	bic.8b	v21, v21, v25
	orr.8b	v1, v22, v1
	orr.8b	v16, v19, v16
	orr.8b	v17, v20, v17
	orr.8b	v18, v21, v18
	add.2s	v4, v4, v7
	subs	x13, x13, #8
	b.ne	LBB0_5
; %bb.6:
	orr.8b	v0, v16, v1
	orr.8b	v0, v17, v0
	orr.8b	v0, v18, v0
	mov.s	w12, v0[1]
	fmov	w13, s0
	orr	w0, w13, w12
	cmp	x11, x8
	b.eq	LBB0_9
LBB0_7:
	mov	w12, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x9, x11, lsl #3]
	lsl	w14, w12, w11
	cmp	x13, x10
	csel	w13, wzr, w14, eq
	orr	w0, w13, w0
	add	x11, x11, #1
	cmp	x8, x11
	b.ne	LBB0_8
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DSI_LANE_UNUSED,8,3            ; @DSI_LANE_UNUSED
	.no_dead_strip	_dsi_get_lane_mask
.subsections_via_symbols
