	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_darken_text_bg
_menu_darken_text_bg:                   ## @menu_darken_text_bg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_g_menuscreen_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_border_left@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	$4, %ebx
	movl	$3, %r14d
	cmovll	%r14d, %ebx
	movq	_border_right@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$2, %eax
	movq	_g_menuscreen_w@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r9
	leal	-1(%r9), %r15d
	cmpl	%r9d, %eax
	cmovll	%eax, %r15d
	leal	-3(%rbx), %r13d
	movq	_border_top@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$4, %eax
	cmovgel	%eax, %r14d
	movq	_border_bottom@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$2, %eax
	movq	_g_menuscreen_h@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-1(%rcx), %esi
	cmpl	%ecx, %eax
	cmovll	%eax, %esi
	cmpl	%r15d, %r13d
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jg	LBB0_2
## %bb.1:
	leal	-3(%r14), %eax
	imull	%r9d, %eax
	addl	%ebx, %eax
	addl	$-3, %eax
	cltq
	leaq	(%r12,%rax,2), %rdi
	movl	%r15d, %eax
	subl	%ebx, %eax
	addl	$3, %eax
	leaq	(%rax,%rax), %rdx
	addq	$2, %rdx
	leaq	L_.memset_pattern(%rip), %rsi
	callq	_memset_pattern16
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
LBB0_2:
	leal	-2(%r14), %eax
	cmpl	%esi, %eax
	jge	LBB0_30
## %bb.3:
	leal	-2(%rbx), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_menu_text_color@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	leaq	-2(%rax), %rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r11d
	addq	$-2, %r11
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movslq	%r15d, %rdx
	movslq	%esi, %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %rdi
	subq	%rax, %rdi
	addq	$2, %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	andq	$-8, %rdi
	leaq	(%rax,%rdi), %rsi
	addq	$-2, %rsi
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movq	%r11, %rsi
	imulq	%r9, %rsi
	addq	%rsi, %rax
	leaq	(%r12,%rax,2), %r13
	leaq	(%r9,%r9), %r14
	leaq	(%r12,%rsi,2), %r8
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm2, %xmm2
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	%rdx, %r10
	movw	$-1, (%r12,%r10,2)
	incq	%r11
	addq	%r14, %r13
	addq	%r14, %r8
	cmpq	-104(%rbp), %r11                ## 8-byte Folded Reload
	je	LBB0_29
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_25 Depth 2
	movq	%r11, %r10
	imulq	%r9, %r10
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addq	%r10, %rax
	movw	$-1, (%r12,%rax,2)
	cmpl	%r15d, -52(%rbp)                ## 4-byte Folded Reload
	jge	LBB0_28
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpq	$8, -72(%rbp)                   ## 8-byte Folded Reload
	jb	LBB0_25
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r9d, %r9d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	$8, %r9
	cmpq	%r9, %rdi
	je	LBB0_24
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-4(%r13,%r9,2), %xmm3
	pmovzxwd	%xmm3, %xmm4                    ## xmm4 = xmm3[0],zero,xmm3[1],zero,xmm3[2],zero,xmm3[3],zero
	pcmpeqd	%xmm0, %xmm4
	movd	%xmm4, %eax
	notl	%eax
	testb	$1, %al
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movd	%xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, -4(%r13,%r9,2)
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=2
	pxor	%xmm2, %xmm4
	pextrb	$4, %xmm4, %eax
	testb	$1, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	pextrw	$1, %xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, -2(%r13,%r9,2)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	pextrb	$8, %xmm4, %eax
	testb	$1, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=2
	pextrw	$2, %xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, (%r13,%r9,2)
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	pextrb	$12, %xmm4, %eax
	testb	$1, %al
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	pextrw	$3, %xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, 2(%r13,%r9,2)
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=2
	movdqa	%xmm3, %xmm4
	punpckhwd	%xmm1, %xmm4            ## xmm4 = xmm4[4],xmm1[4],xmm4[5],xmm1[5],xmm4[6],xmm1[6],xmm4[7],xmm1[7]
	pcmpeqd	%xmm0, %xmm4
	pxor	%xmm2, %xmm4
	pextrb	$0, %xmm4, %eax
	testb	$1, %al
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=2
	pextrw	$4, %xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, 4(%r13,%r9,2)
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=2
	pextrb	$4, %xmm4, %eax
	testb	$1, %al
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_7 Depth=2
	pextrw	$5, %xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, 6(%r13,%r9,2)
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=2
	pextrb	$8, %xmm4, %eax
	testb	$1, %al
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=2
	pextrw	$6, %xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, 8(%r13,%r9,2)
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=2
	pextrb	$12, %xmm4, %eax
	testb	$1, %al
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_7 Depth=2
	pextrw	$7, %xmm3, %eax
	movl	%eax, %ebx
	shrl	%ebx
	andl	$31695, %ebx                    ## imm = 0x7BCF
	shrl	$3, %eax
	andl	$6339, %eax                     ## imm = 0x18C3
	subl	%eax, %ebx
	movw	%bx, 10(%r13,%r9,2)
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rdi, -72(%rbp)                 ## 8-byte Folded Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	jne	LBB0_25
	jmp	LBB0_28
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_25 Depth=2
	incq	%rax
	cmpq	%rax, %rdx
	je	LBB0_28
LBB0_25:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzwl	(%r8,%rax,2), %ebx
	cmpl	%ebx, %ecx
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=2
	movl	%ebx, %esi
	shrl	%esi
	andl	$31695, %esi                    ## imm = 0x7BCF
	shrl	$3, %ebx
	andl	$6339, %ebx                     ## imm = 0x18C3
	subl	%ebx, %esi
	movw	%si, (%r8,%rax,2)
	jmp	LBB0_27
LBB0_29:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	-48(%rbp), %r13d                ## 4-byte Reload
LBB0_30:
	cmpl	%r15d, %r13d
	jg	LBB0_32
## %bb.31:
	imull	%r9d, %eax
	addl	%ebx, %eax
	addl	$-3, %eax
	cltq
	leaq	(%r12,%rax,2), %rdi
	subl	%ebx, %r15d
	addl	$3, %r15d
	leaq	(%r15,%r15), %rdx
	addq	$2, %rdx
	movl	$255, %esi
	callq	_memset
LBB0_32:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_menuscreen_ptr,8,3           ## @g_menuscreen_ptr
	.comm	_border_left,4,2                ## @border_left
	.comm	_border_right,4,2               ## @border_right
	.comm	_g_menuscreen_w,4,2             ## @g_menuscreen_w
	.comm	_border_top,4,2                 ## @border_top
	.comm	_border_bottom,4,2              ## @border_bottom
	.comm	_g_menuscreen_h,4,2             ## @g_menuscreen_h
	.comm	_menu_text_color,4,2            ## @menu_text_color
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.short	42260                           ## 0xa514
	.short	42260                           ## 0xa514
	.short	42260                           ## 0xa514
	.short	42260                           ## 0xa514
	.short	42260                           ## 0xa514
	.short	42260                           ## 0xa514
	.short	42260                           ## 0xa514
	.short	42260                           ## 0xa514

	.no_dead_strip	_menu_darken_text_bg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_darken_text_bg
_menu_darken_text_bg:                   ; @menu_darken_text_bg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _g_menuscreen_ptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_menuscreen_ptr@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _border_left@GOTPAGE
Lloh4:
	ldr	x8, [x8, _border_left@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #3
	cmp	w8, #3
	csel	w20, w8, w9, gt
	sub	w22, w20, #3
Lloh6:
	adrp	x8, _border_right@GOTPAGE
Lloh7:
	ldr	x8, [x8, _border_right@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w8, w8, #2
Lloh9:
	adrp	x10, _g_menuscreen_w@GOTPAGE
Lloh10:
	ldr	x10, [x10, _g_menuscreen_w@GOTPAGEOFF]
Lloh11:
	ldrsw	x21, [x10]
	sub	w10, w21, #1
	cmp	w8, w21
	csel	w23, w8, w10, lt
Lloh12:
	adrp	x8, _border_top@GOTPAGE
Lloh13:
	ldr	x8, [x8, _border_top@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, #3
	csel	w25, w8, w9, gt
Lloh15:
	adrp	x8, _border_bottom@GOTPAGE
Lloh16:
	ldr	x8, [x8, _border_bottom@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _g_menuscreen_h@GOTPAGE
Lloh19:
	ldr	x9, [x9, _g_menuscreen_h@GOTPAGEOFF]
	add	w8, w8, #2
Lloh20:
	ldr	w9, [x9]
	sub	w10, w9, #1
	cmp	w8, w9
	csel	w24, w8, w10, lt
	cmp	w22, w23
	b.gt	LBB0_2
; %bb.1:
	sub	w8, w25, #3
	madd	w8, w8, w21, w20
	sub	w8, w8, #3
	add	x0, x19, w8, sxtw #1
	sub	w8, w23, w20
	add	w8, w8, #3
	lsl	x8, x8, #1
	add	x2, x8, #2
Lloh21:
	adrp	x1, l_.memset_pattern@PAGE
Lloh22:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	bl	_memset_pattern16
LBB0_2:
	sub	w8, w25, #2
	cmp	w8, w24
	b.ge	LBB0_11
; %bb.3:
	sub	w8, w20, #2
Lloh23:
	adrp	x9, _menu_text_color@GOTPAGE
Lloh24:
	ldr	x9, [x9, _menu_text_color@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	sub	x10, x25, #2
	sxtw	x11, w23
	sxtw	x12, w24
	madd	x13, x10, x21, x20
	add	x13, x19, x13, lsl #1
	sub	x13, x13, #4
	lsl	x14, x21, #1
	sub	x15, x11, x20
	add	x15, x15, #2
	mov	w16, #65535
	mov	w17, #31695
	mov	w0, #6339
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x1, x1, x11
	strh	w16, [x19, x1, lsl #1]
	add	x10, x10, #1
	add	x13, x13, x14
	cmp	x10, x12
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mul	x1, x10, x21
	add	x2, x1, x22
	strh	w16, [x19, x2, lsl #1]
	cmp	w8, w23
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x15
	mov	x3, x13
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x3, x3, #2
	subs	x2, x2, #1
	b.eq	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrh	w4, [x3]
	cmp	w9, w4
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	and	w5, w17, w4, lsr #1
	and	w4, w0, w4, lsr #3
	sub	w4, w5, w4
	strh	w4, [x3]
	b	LBB0_7
LBB0_10:
	mov	x8, x24
LBB0_11:
	cmp	w22, w23
	b.gt	LBB0_13
; %bb.12:
	mul	w8, w8, w21
	add	w8, w20, w8
	sub	w8, w8, #3
	add	x0, x19, w8, sxtw #1
	sub	w8, w23, w20
	add	w8, w8, #3
	lsl	x8, x8, #1
	add	x2, x8, #2
	mov	w1, #255
	bl	_memset
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_g_menuscreen_ptr,8,3           ; @g_menuscreen_ptr
	.comm	_border_left,4,2                ; @border_left
	.comm	_border_right,4,2               ; @border_right
	.comm	_g_menuscreen_w,4,2             ; @g_menuscreen_w
	.comm	_border_top,4,2                 ; @border_top
	.comm	_border_bottom,4,2              ; @border_bottom
	.comm	_g_menuscreen_h,4,2             ; @g_menuscreen_h
	.comm	_menu_text_color,4,2            ; @menu_text_color
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.short	42260                           ; 0xa514
	.short	42260                           ; 0xa514
	.short	42260                           ; 0xa514
	.short	42260                           ; 0xa514
	.short	42260                           ; 0xa514
	.short	42260                           ; 0xa514
	.short	42260                           ; 0xa514
	.short	42260                           ; 0xa514

	.no_dead_strip	_menu_darken_text_bg
.subsections_via_symbols
