	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function menu_darken_bg
LCPI0_0:
	.long	2077195215                      ## 0x7bcf7bcf
	.long	2077195215                      ## 0x7bcf7bcf
	.long	2077195215                      ## 0x7bcf7bcf
	.long	2077195215                      ## 0x7bcf7bcf
LCPI0_1:
	.long	415439043                       ## 0x18c318c3
	.long	415439043                       ## 0x18c318c3
	.long	415439043                       ## 0x18c318c3
	.long	415439043                       ## 0x18c318c3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_menu_darken_bg
	.p2align	4, 0x90
_menu_darken_bg:                        ## @menu_darken_bg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edx, %r10d
	shrl	$31, %r10d
	addl	%edx, %r10d
	sarl	%r10d
	incl	%edx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.1:
	cmpl	$3, %edx
	jb	LBB0_32
## %bb.2:
	leal	-1(%r10), %r8d
	cmpl	$7, %r8d
	jb	LBB0_3
## %bb.4:
	movq	%rdi, %rax
	subq	%rsi, %rax
	cmpq	$32, %rax
	jb	LBB0_3
## %bb.5:
	incq	%r8
	movq	%r8, %rax
	andq	$-8, %rax
	subl	%eax, %r10d
	leaq	(%rdi,%rax,4), %r9
	leaq	(%rsi,%rax,4), %rdx
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [2077195215,2077195215,2077195215,2077195215]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [415439043,415439043,415439043,415439043]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx,4), %xmm2
	movdqu	16(%rsi,%rcx,4), %xmm3
	movdqa	%xmm2, %xmm4
	psrld	$1, %xmm4
	movdqa	%xmm3, %xmm5
	psrld	$1, %xmm5
	pand	%xmm0, %xmm4
	pand	%xmm0, %xmm5
	psrld	$3, %xmm2
	psrld	$3, %xmm3
	pand	%xmm1, %xmm2
	psubd	%xmm2, %xmm4
	pand	%xmm1, %xmm3
	psubd	%xmm3, %xmm5
	movdqu	%xmm4, (%rdi,%rcx,4)
	movdqu	%xmm5, 16(%rdi,%rcx,4)
	addq	$8, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.7:
	cmpq	%rax, %r8
	je	LBB0_32
## %bb.8:
	testb	$1, %r10b
	jne	LBB0_10
LBB0_9:
	movl	%r10d, %eax
	cmpl	$1, %r10d
	jne	LBB0_12
	jmp	LBB0_32
LBB0_14:
	cmpl	$3, %edx
	jb	LBB0_32
## %bb.15:
	leal	-1(%r10), %r9d
	cmpl	$7, %r9d
	jb	LBB0_25
## %bb.16:
	movq	%rdi, %rax
	subq	%rsi, %rax
	cmpq	$32, %rax
	jb	LBB0_25
## %bb.17:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rcx, %rax
	andq	$-2, %rax
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [2077195215,2077195215,2077195215,2077195215]
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rdx,4), %xmm1
	movdqu	16(%rsi,%rdx,4), %xmm2
	psrld	$1, %xmm1
	psrld	$1, %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, (%rdi,%rdx,4)
	movdqu	%xmm2, 16(%rdi,%rdx,4)
	movdqu	32(%rsi,%rdx,4), %xmm1
	movdqu	48(%rsi,%rdx,4), %xmm2
	psrld	$1, %xmm1
	psrld	$1, %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, 32(%rdi,%rdx,4)
	movdqu	%xmm2, 48(%rdi,%rdx,4)
	addq	$16, %rdx
	addq	$-2, %rax
	jne	LBB0_20
## %bb.21:
	testb	$1, %cl
	je	LBB0_23
LBB0_22:
	movdqu	(%rsi,%rdx,4), %xmm0
	movdqu	16(%rsi,%rdx,4), %xmm1
	psrld	$1, %xmm0
	psrld	$1, %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [2077195215,2077195215,2077195215,2077195215]
	pand	%xmm2, %xmm0
	pand	%xmm2, %xmm1
	movdqu	%xmm0, (%rdi,%rdx,4)
	movdqu	%xmm1, 16(%rdi,%rdx,4)
LBB0_23:
	cmpq	%r8, %r9
	je	LBB0_32
## %bb.24:
	subl	%r8d, %r10d
	leaq	(%rdi,%r8,4), %rdi
	leaq	(%rsi,%r8,4), %rsi
LBB0_25:
	leal	-1(%r10), %r8d
	movl	%r10d, %eax
	andl	$3, %eax
	je	LBB0_29
## %bb.26:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %ecx
	addq	$4, %rsi
	shrl	%ecx
	andl	$2077195215, %ecx               ## imm = 0x7BCF7BCF
	movl	%ecx, (%rdi)
	addq	$4, %rdi
	incl	%edx
	cmpl	%edx, %eax
	jne	LBB0_27
## %bb.28:
	subl	%edx, %r10d
LBB0_29:
	cmpl	$3, %r8d
	jb	LBB0_32
## %bb.30:
	movl	%r10d, %eax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %edx
	shrl	%edx
	andl	$2077195215, %edx               ## imm = 0x7BCF7BCF
	movl	%edx, (%rdi,%rcx,4)
	movl	4(%rsi,%rcx,4), %edx
	shrl	%edx
	andl	$2077195215, %edx               ## imm = 0x7BCF7BCF
	movl	%edx, 4(%rdi,%rcx,4)
	movl	8(%rsi,%rcx,4), %edx
	shrl	%edx
	andl	$2077195215, %edx               ## imm = 0x7BCF7BCF
	movl	%edx, 8(%rdi,%rcx,4)
	movl	12(%rsi,%rcx,4), %edx
	shrl	%edx
	andl	$2077195215, %edx               ## imm = 0x7BCF7BCF
	movl	%edx, 12(%rdi,%rcx,4)
	addq	$4, %rcx
	cmpl	%ecx, %eax
	jne	LBB0_31
	jmp	LBB0_32
LBB0_3:
	movq	%rdi, %r9
	movq	%rsi, %rdx
	testb	$1, %r10b
	je	LBB0_9
LBB0_10:
	leal	-1(%r10), %eax
	movl	(%rdx), %ecx
	addq	$4, %rdx
	movl	%ecx, %esi
	shrl	%esi
	andl	$2077195215, %esi               ## imm = 0x7BCF7BCF
	shrl	$3, %ecx
	andl	$415439043, %ecx                ## imm = 0x18C318C3
	subl	%ecx, %esi
	movl	%esi, (%r9)
	addq	$4, %r9
	cmpl	$1, %r10d
	je	LBB0_32
LBB0_12:
	movl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %ecx
	movl	%ecx, %edi
	shrl	%edi
	andl	$2077195215, %edi               ## imm = 0x7BCF7BCF
	shrl	$3, %ecx
	andl	$415439043, %ecx                ## imm = 0x18C318C3
	subl	%ecx, %edi
	movl	%edi, (%r9,%rsi,4)
	movl	4(%rdx,%rsi,4), %ecx
	movl	%ecx, %edi
	shrl	%edi
	andl	$2077195215, %edi               ## imm = 0x7BCF7BCF
	shrl	$3, %ecx
	andl	$415439043, %ecx                ## imm = 0x18C318C3
	subl	%ecx, %edi
	movl	%edi, 4(%r9,%rsi,4)
	addq	$2, %rsi
	cmpl	%esi, %eax
	jne	LBB0_13
LBB0_32:
	popq	%rbp
	retq
LBB0_18:
	xorl	%edx, %edx
	testb	$1, %cl
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_darken_bg                 ; -- Begin function menu_darken_bg
	.p2align	2
_menu_darken_bg:                        ; @menu_darken_bg
	.cfi_startproc
; %bb.0:
	cmp	w2, #0
	cinc	w8, w2, lt
	asr	w8, w8, #1
	add	w9, w2, #1
	cmp	w9, #3
	cbz	w3, LBB0_9
; %bb.1:
	b.lo	LBB0_17
; %bb.2:
	sub	w9, w8, #1
	cmp	w9, #15
	b.lo	LBB0_7
; %bb.3:
	sub	x10, x0, x1
	cmp	x10, #64
	b.lo	LBB0_7
; %bb.4:
	add	x9, x9, #1
	and	x10, x9, #0x1fffffff0
	sub	w8, w8, w10
	lsl	x12, x10, #2
	add	x11, x0, x12
	add	x12, x1, x12
	add	x13, x0, #32
	add	x14, x1, #32
	mov	w15, #31695
	movk	w15, #31695, lsl #16
	dup.4s	v0, w15
	mov	w15, #6339
	movk	w15, #6339, lsl #16
	dup.4s	v1, w15
	mov	x15, x10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x14, #-32]
	ldp	q4, q5, [x14], #64
	ushr.4s	v6, v2, #1
	ushr.4s	v7, v3, #1
	ushr.4s	v16, v4, #1
	ushr.4s	v17, v5, #1
	and.16b	v6, v6, v0
	and.16b	v7, v7, v0
	and.16b	v16, v16, v0
	and.16b	v17, v17, v0
	ushr.4s	v2, v2, #3
	ushr.4s	v3, v3, #3
	ushr.4s	v4, v4, #3
	ushr.4s	v5, v5, #3
	and.16b	v2, v2, v1
	and.16b	v3, v3, v1
	and.16b	v4, v4, v1
	and.16b	v5, v5, v1
	sub.4s	v2, v6, v2
	sub.4s	v3, v7, v3
	sub.4s	v4, v16, v4
	stp	q2, q3, [x13, #-32]
	sub.4s	v2, v17, v5
	stp	q4, q2, [x13], #64
	subs	x15, x15, #16
	b.ne	LBB0_5
; %bb.6:
	mov	x0, x11
	mov	x1, x12
	cmp	x9, x10
	b.eq	LBB0_17
LBB0_7:
	mov	w9, #31695
	movk	w9, #31695, lsl #16
	mov	w10, #6339
	movk	w10, #6339, lsl #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x1], #4
	and	w12, w9, w11, lsr #1
	and	w11, w10, w11, lsr #3
	sub	w11, w12, w11
	str	w11, [x0], #4
	sub	w8, w8, #1
	cbnz	w8, LBB0_8
	b	LBB0_17
LBB0_9:
	b.lo	LBB0_17
; %bb.10:
	sub	w9, w8, #1
	cmp	w9, #15
	b.lo	LBB0_15
; %bb.11:
	sub	x10, x0, x1
	cmp	x10, #64
	b.lo	LBB0_15
; %bb.12:
	add	x9, x9, #1
	and	x10, x9, #0x1fffffff0
	sub	w8, w8, w10
	lsl	x12, x10, #2
	add	x11, x0, x12
	add	x12, x1, x12
	add	x13, x0, #32
	add	x14, x1, #32
	mov	w15, #31695
	movk	w15, #31695, lsl #16
	dup.4s	v0, w15
	mov	x15, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x14, #-32]
	ldp	q3, q4, [x14], #64
	ushr.4s	v1, v1, #1
	ushr.4s	v2, v2, #1
	ushr.4s	v3, v3, #1
	ushr.4s	v4, v4, #1
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	stp	q1, q2, [x13, #-32]
	stp	q3, q4, [x13], #64
	subs	x15, x15, #16
	b.ne	LBB0_13
; %bb.14:
	mov	x0, x11
	mov	x1, x12
	cmp	x9, x10
	b.eq	LBB0_17
LBB0_15:
	mov	w9, #31695
	movk	w9, #31695, lsl #16
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x1], #4
	and	w10, w9, w10, lsr #1
	str	w10, [x0], #4
	subs	w8, w8, #1
	b.ne	LBB0_16
LBB0_17:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
