	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function menu_thumbnail_draw
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_2:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_menu_thumbnail_draw
	.p2align	4, 0x90
_menu_thumbnail_draw:                   ## @menu_thumbnail_draw
	.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	%r12
	pushq	%rbx
	subq	$304, %rsp                      ## imm = 0x130
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.2:
	movl	%edx, %ebx
	testl	%edx, %edx
	je	LBB0_14
## %bb.3:
	movl	%ecx, %r12d
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.4:
	xorps	%xmm4, %xmm4
	ucomiss	%xmm2, %xmm4
	jae	LBB0_14
## %bb.5:
	ucomiss	%xmm3, %xmm4
	jae	LBB0_14
## %bb.6:
	movq	(%r15), %rax
	movq	_MENU_THUMBNAIL_STATUS_AVAILABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.7:
	mulss	8(%r15), %xmm2
	movaps	l___const.menu_thumbnail_draw.thumbnail_color+48(%rip), %xmm4
	movaps	%xmm4, -64(%rbp)
	movaps	l___const.menu_thumbnail_draw.thumbnail_color+32(%rip), %xmm4
	movaps	%xmm4, -80(%rbp)
	movaps	l___const.menu_thumbnail_draw.thumbnail_color+16(%rip), %xmm4
	movaps	%xmm4, -96(%rbp)
	movaps	l___const.menu_thumbnail_draw.thumbnail_color(%rip), %xmm4
	movaps	%xmm4, -112(%rbp)
	xorps	%xmm4, %xmm4
	ucomiss	%xmm2, %xmm4
	jae	LBB0_14
## %bb.8:
	movq	%rdi, %r14
	movss	%xmm0, -116(%rbp)               ## 4-byte Spill
	movss	%xmm1, -120(%rbp)               ## 4-byte Spill
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_10
## %bb.9:
	leaq	-112(%rbp), %rdi
	movaps	%xmm2, %xmm0
	movss	%xmm3, -144(%rbp)               ## 4-byte Spill
	callq	_menu_display_set_alpha
	movss	-144(%rbp), %xmm3               ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
LBB0_10:
	movl	%ebx, %eax
	cvtsi2ss	%rax, %xmm6
	movl	%r12d, %eax
	cvtsi2ss	%rax, %xmm5
	xorps	%xmm0, %xmm0
	cvtsi2ssq	24(%r15), %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ssq	16(%r15), %xmm1
	movaps	%xmm0, %xmm2
	insertps	$16, %xmm6, %xmm2               ## xmm2 = xmm2[0],xmm6[0],xmm2[2,3]
	movaps	%xmm1, %xmm4
	insertps	$16, %xmm5, %xmm4               ## xmm4 = xmm4[0],xmm5[0],xmm4[2,3]
	divps	%xmm4, %xmm2
	movshdup	%xmm2, %xmm4                    ## xmm4 = xmm2[1,1,3,3]
	ucomiss	%xmm4, %xmm2
	movaps	%xmm5, -144(%rbp)               ## 16-byte Spill
	movaps	%xmm6, -256(%rbp)               ## 16-byte Spill
	jbe	LBB0_12
## %bb.11:
	movaps	%xmm6, %xmm2
	divss	%xmm0, %xmm2
	mulss	%xmm1, %xmm2
	movaps	%xmm6, %xmm4
	jmp	LBB0_13
LBB0_12:
	movaps	%xmm5, %xmm4
	divss	%xmm1, %xmm4
	mulss	%xmm0, %xmm4
	movaps	%xmm5, %xmm2
LBB0_13:
	mulss	%xmm3, %xmm4
	movaps	%xmm4, -224(%rbp)               ## 16-byte Spill
	mulss	%xmm3, %xmm2
	movaps	%xmm2, -240(%rbp)               ## 16-byte Spill
	movq	%r14, %rdi
	callq	_menu_display_blend_begin
	leaq	-148(%rbp), %rbx
	movq	%rbx, -264(%rbp)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [0.0E+0,1.0E+0,1.0E+0,1.0E+0]
	movaps	%xmm0, -288(%rbp)
	movl	$0, -272(%rbp)
	leaq	-288(%rbp), %rdi
	movq	%r14, %rsi
	callq	_menu_display_rotate_z
	movl	$4, -328(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -312(%rbp)
	movq	$0, -296(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -320(%rbp)
	movaps	-224(%rbp), %xmm0               ## 16-byte Reload
	cvttss2si	%xmm0, %rax
	movaps	-240(%rbp), %xmm3               ## 16-byte Reload
	cvttss2si	%xmm3, %rcx
	movl	%eax, -208(%rbp)
	movl	%ecx, -204(%rbp)
	movq	$1065353216, -200(%rbp)         ## imm = 0x3F800000
	leaq	-328(%rbp), %rax
	movq	%rax, -160(%rbp)
	movq	%rbx, -168(%rbp)
	movl	12(%r15), %eax
	movl	%eax, -172(%rbp)
	movq	_MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -176(%rbp)
	movq	$0, -184(%rbp)
	movaps	-256(%rbp), %xmm1               ## 16-byte Reload
	subss	%xmm0, %xmm1
	movss	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	addss	-116(%rbp), %xmm1               ## 4-byte Folded Reload
	movss	%xmm1, -192(%rbp)
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%r14), %xmm1
	subss	-120(%rbp), %xmm1               ## 4-byte Folded Reload
	subss	%xmm3, %xmm1
	movaps	-144(%rbp), %xmm2               ## 16-byte Reload
	subss	%xmm3, %xmm2
	mulss	%xmm0, %xmm2
	subss	%xmm2, %xmm1
	movss	%xmm1, -188(%rbp)
	leaq	-208(%rbp), %rdi
	movq	%r14, %rsi
	callq	_menu_display_draw
	movq	%r14, %rdi
	callq	_menu_display_blend_end
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	addq	$304, %rsp                      ## imm = 0x130
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_THUMBNAIL_STATUS_AVAILABLE,8,3 ## @MENU_THUMBNAIL_STATUS_AVAILABLE
	.section	__TEXT,__const
	.p2align	4                               ## @__const.menu_thumbnail_draw.thumbnail_color
l___const.menu_thumbnail_draw.thumbnail_color:
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1

	.comm	_MENU_DISPLAY_PRIM_TRIANGLESTRIP,4,2 ## @MENU_DISPLAY_PRIM_TRIANGLESTRIP
.subsections_via_symbols

	.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_thumbnail_draw
lCPI0_0:
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_menu_thumbnail_draw
	.p2align	2
_menu_thumbnail_draw:                   ; @menu_thumbnail_draw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	d13, d12, [sp, #224]            ; 16-byte Folded Spill
	stp	d11, d10, [sp, #240]            ; 16-byte Folded Spill
	stp	d9, d8, [sp, #256]              ; 16-byte Folded Spill
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_11
; %bb.2:
	mov	x22, x2
	cbz	w2, LBB0_11
; %bb.3:
	mov	x21, x3
	cbz	w3, LBB0_11
; %bb.4:
	fcmp	s2, #0.0
	b.ls	LBB0_11
; %bb.5:
	fmov	s10, s3
	fcmp	s3, #0.0
	b.ls	LBB0_11
; %bb.6:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _MENU_THUMBNAIL_STATUS_AVAILABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MENU_THUMBNAIL_STATUS_AVAILABLE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	fmov	s8, s1
	fmov	s9, s0
	add	x8, sp, #144
	ldr	s0, [x20, #8]
	fmul	s0, s0, s2
Lloh6:
	adrp	x9, l___const.menu_thumbnail_draw.thumbnail_color@PAGE
Lloh7:
	add	x9, x9, l___const.menu_thumbnail_draw.thumbnail_color@PAGEOFF
	ldp	q1, q2, [x9]
	stp	q1, q2, [x8]
	ldp	q1, q2, [x9, #32]
	stp	q1, q2, [x8, #32]
	fcmp	s0, #0.0
	b.ls	LBB0_11
; %bb.8:
	mov	x19, x0
	fmov	s1, #1.00000000
	fcmp	s0, s1
	b.pl	LBB0_10
; %bb.9:
	add	x0, sp, #144
	bl	_menu_display_set_alpha
LBB0_10:
	ucvtf	s12, w22
	ucvtf	s11, w21
	fdiv	s0, s12, s11
	ldp	x9, x8, [x20, #16]
	scvtf	s1, x8
	scvtf	s2, x9
	fdiv	s3, s1, s2
	fcmp	s3, s0
	fdiv	s0, s11, s2
	fmul	s0, s0, s1
	fdiv	s1, s12, s1
	fmul	s1, s1, s2
	fcsel	s1, s11, s1, le
	fcsel	s0, s0, s12, le
	fmul	s13, s0, s10
	fmul	s10, s1, s10
	mov	x0, x19
	bl	_menu_display_blend_begin
	add	x21, sp, #12
	str	x21, [sp, #136]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp, #112]
	str	wzr, [sp, #128]
	add	x0, sp, #112
	mov	x1, x19
	bl	_menu_display_rotate_z
	mov	w8, #4
	str	w8, [sp, #16]
	add	x8, sp, #144
	stp	x8, xzr, [sp, #24]
	fcvtzu	w8, s13
	fcvtzu	w9, s10
	stp	xzr, xzr, [sp, #40]
	stp	w8, w9, [sp, #56]
Lloh10:
	adrp	x8, lCPI0_1@PAGE
Lloh11:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #64]
	add	x8, sp, #16
	stp	x21, x8, [sp, #96]
	ldr	w8, [x20, #12]
Lloh12:
	adrp	x9, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #88]
	str	xzr, [sp, #80]
	fsub	s0, s12, s13
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	fadd	s0, s0, s9
	ldr	x8, [x19]
	scvtf	s2, x8
	fsub	s2, s2, s8
	fsub	s2, s2, s10
	fsub	s3, s11, s10
	fmul	s1, s3, s1
	fsub	s1, s2, s1
	stp	s0, s1, [sp, #72]
	add	x0, sp, #56
	mov	x1, x19
	bl	_menu_display_draw
	mov	x0, x19
	bl	_menu_display_blend_end
LBB0_11:
	ldur	x8, [x29, #-104]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #256]              ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #240]            ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #224]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_THUMBNAIL_STATUS_AVAILABLE,8,3 ; @MENU_THUMBNAIL_STATUS_AVAILABLE
	.section	__TEXT,__const
	.p2align	2                               ; @__const.menu_thumbnail_draw.thumbnail_color
l___const.menu_thumbnail_draw.thumbnail_color:
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1

	.comm	_MENU_DISPLAY_PRIM_TRIANGLESTRIP,4,2 ; @MENU_DISPLAY_PRIM_TRIANGLESTRIP
.subsections_via_symbols
