	.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_display_draw_polygon
LCPI0_0:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4330000000000000              ## double 4503599627370496
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_menu_display_draw_polygon
	.p2align	4, 0x90
_menu_display_draw_polygon:             ## @menu_display_draw_polygon
	.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	$160, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	48(%rbp), %r14d
	movl	40(%rbp), %r15d
	movq	56(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rdi, -40(%rbp)
	movd	%esi, %xmm0
	pinsrd	$1, %edx, %xmm0
	pinsrd	$2, %ecx, %xmm0
	pinsrd	$3, %r8d, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	movd	%r15d, %xmm1
	pinsrd	$1, %r14d, %xmm1
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [4.503599627370496E+15,4.503599627370496E+15]
	por	%xmm2, %xmm1
	subpd	%xmm2, %xmm1
	cvtpd2ps	%xmm1, %xmm1
	movddup	%xmm1, %xmm1                    ## xmm1 = xmm1[0,0]
	divps	%xmm1, %xmm0
	movaps	%xmm0, -80(%rbp)
	movd	%r9d, %xmm0
	pinsrd	$1, 16(%rbp), %xmm0
	pinsrd	$2, 24(%rbp), %xmm0
	pinsrd	$3, 32(%rbp), %xmm0
	cvtdq2ps	%xmm0, %xmm0
	divps	%xmm1, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	$4, -184(%rbp)
	leaq	-80(%rbp), %rcx
	movq	%rcx, -176(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -160(%rbp)
	movq	%rax, -168(%rbp)
	movq	_menu_disp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r12, %rdi
	callq	*%rax
	xorps	%xmm0, %xmm0
LBB0_3:
	movups	%xmm0, -96(%rbp)
	movl	%r15d, -144(%rbp)
	movl	%r14d, -140(%rbp)
	leaq	-184(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	$0, -112(%rbp)
	movq	_menu_display_white_texture@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -116(%rbp)
	movq	_MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -120(%rbp)
	movq	$0, -128(%rbp)
	movq	$1065353216, -136(%rbp)         ## imm = 0x3F800000
	leaq	-144(%rbp), %rdi
	movq	%r12, %rsi
	callq	_menu_display_draw
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	*%rax
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$160, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_menu_disp,8,3                  ## @menu_disp
	.comm	_menu_display_white_texture,4,2 ## @menu_display_white_texture
	.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,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function menu_display_draw_polygon
lCPI0_0:
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_menu_display_draw_polygon
	.p2align	2
_menu_display_draw_polygon:             ; @menu_display_draw_polygon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x0
	ldp	w21, w20, [x29, #20]
	ldr	x8, [x29, #32]
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
	scvtf	s0, w1
	ucvtf	s1, w21
	fdiv	s0, s0, s1
	scvtf	s2, w2
	ucvtf	s3, w20
	fdiv	s2, s2, s3
	stp	s0, s2, [x29, #-72]
	scvtf	s0, w3
	scvtf	s2, w4
	fdiv	s0, s0, s1
	fdiv	s2, s2, s3
	stp	s0, s2, [x29, #-64]
	scvtf	s0, w5
	fdiv	s0, s0, s1
	scvtf	s2, w6
	fdiv	s2, s2, s3
	stp	s0, s2, [x29, #-56]
	scvtf	s0, w7
	fdiv	s0, s0, s1
	ldr	s1, [x29, #16]
	scvtf	s1, s1
	fdiv	s1, s1, s3
	stp	s0, s1, [x29, #-48]
	mov	w9, #4
	str	w9, [sp]
	sub	x9, x29, #72
	stp	xzr, xzr, [sp, #24]
	stp	x9, x8, [sp, #8]
Lloh3:
	adrp	x22, _menu_disp@GOTPAGE
Lloh4:
	ldr	x22, [x22, _menu_disp@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	blr	x8
LBB0_3:
	stp	xzr, xzr, [sp, #88]
	stp	w21, w20, [sp, #40]
	mov	x8, sp
	stp	xzr, x8, [sp, #72]
Lloh5:
	adrp	x8, _menu_display_white_texture@GOTPAGE
Lloh6:
	ldr	x8, [x8, _menu_display_white_texture@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #64]
	str	xzr, [sp, #56]
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #48]
	add	x0, sp, #40
	mov	x1, x19
	bl	_menu_display_draw
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_menu_disp,8,3                  ; @menu_disp
	.comm	_menu_display_white_texture,4,2 ; @menu_display_white_texture
	.comm	_MENU_DISPLAY_PRIM_TRIANGLESTRIP,4,2 ; @MENU_DISPLAY_PRIM_TRIANGLESTRIP
.subsections_via_symbols
