	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shift_mono
_shift_mono:                            ## @shift_mono
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_11
## %bb.1:
	movl	%edx, %ecx
	movl	%esi, %r9d
	cmpl	$8, %esi
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	movl	%r9d, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm0
	leaq	-8(%rdx), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r8, %rax
	andq	$-2, %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rsi,4), %xmm1
	movdqu	16(%rdi,%rsi,4), %xmm2
	movdqu	32(%rdi,%rsi,4), %xmm3
	movdqu	48(%rdi,%rsi,4), %xmm4
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, (%rdi,%rsi,4)
	movdqu	%xmm2, 16(%rdi,%rsi,4)
	psrad	%xmm0, %xmm3
	psrad	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rdi,%rsi,4)
	movdqu	%xmm4, 48(%rdi,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rdi,%rsi,4), %xmm1
	movdqu	16(%rdi,%rsi,4), %xmm2
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, (%rdi,%rsi,4)
	movdqu	%xmm2, 16(%rdi,%rsi,4)
LBB0_9:
	cmpq	%r9, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	sarl	%cl, (%rdi,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %r9
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
LBB0_4:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_shift_mono
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shift_mono
_shift_mono:                            ; @shift_mono
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w8, w1
	cmp	w1, #16
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	and	x9, x8, #0xfffffff0
	dup.4s	v0, w2
	add	x10, x0, #32
	neg.4s	v0, v0
	mov	x11, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x10, #-32]
	ldp	q3, q4, [x10]
	sshl.4s	v1, v1, v0
	sshl.4s	v2, v2, v0
	sshl.4s	v3, v3, v0
	sshl.4s	v4, v4, v0
	stp	q1, q2, [x10, #-32]
	stp	q3, q4, [x10], #64
	subs	x11, x11, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x0, x9, lsl #2
	sub	x8, x8, x9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10]
	asr	w9, w9, w2
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_7
LBB0_8:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_shift_mono
.subsections_via_symbols
