	.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_display_vk_draw
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_menu_display_vk_draw:                  ## @menu_display_vk_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	%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
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movq	(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_22
## %bb.2:
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	32(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	8(%rax), %rbx
	movq	16(%rax), %r15
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	testq	%rbx, %rbx
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_menu_display_vk_get_default_tex_coords
	movq	%rax, %rbx
LBB0_6:
	movq	(%r12), %rax
	cmpq	$0, 32(%rax)
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_menu_display_vk_get_default_tex_coords
	movq	(%r12), %rcx
	movq	%rax, 32(%rcx)
LBB0_8:
	leaq	32(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	cmovneq	%rcx, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	callq	_menu_display_vk_get_default_color
	movq	%rax, %r15
LBB0_10:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_menu_display_vk_viewport
	movq	_VULKAN_DIRTY_DYNAMIC_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 52(%r14)
	movl	48(%r14), %edi
	movq	40(%r14), %rsi
	movq	(%r12), %rax
	movl	24(%rax), %edx
	shll	$5, %edx
	leaq	-64(%rbp), %rcx
	callq	_vulkan_buffer_chain_alloc
	testl	%eax, %eax
	je	LBB0_22
## %bb.11:
	movq	(%r12), %rax
	movl	24(%rax), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	-64(%rbp), %rcx
	xorl	%edx, %edx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cvttss2si	(%r13,%rdx), %esi
	movl	%esi, 28(%rcx,%rdx,4)
	movaps	%xmm0, %xmm1
	subss	4(%r13,%rdx), %xmm1
	movss	%xmm1, (%rcx,%rdx,4)
	cvttss2si	(%rbx,%rdx), %esi
	movl	%esi, 24(%rcx,%rdx,4)
	cvttss2si	4(%rbx,%rdx), %esi
	movl	%esi, 20(%rcx,%rdx,4)
	movups	(%r15,%rdx,2), %xmm1
	cvttps2dq	%xmm1, %xmm1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	movdqu	%xmm1, 4(%rcx,%rdx,4)
	addq	$8, %rdx
	decl	%eax
	jne	LBB0_13
LBB0_14:
	movq	24(%r14), %rbx
	movl	12(%r12), %edi
	movl	16(%r14), %esi
	callq	_to_display_pipeline
	movl	(%rbx,%rax,4), %eax
	movl	%eax, -72(%rbp)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)
	cmpl	$0, 4(%rax)
	je	LBB0_16
## %bb.15:
	leaq	8(%r14), %rax
	jmp	LBB0_19
LBB0_3:
	xorl	%eax, %eax
	callq	_menu_display_vk_get_default_vertices
	movq	%rax, %r13
	testq	%rbx, %rbx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_16:
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.17:
	leaq	4(%r14), %rax
	jmp	LBB0_19
LBB0_18:
	movq	%r14, %rax
LBB0_19:
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)
	movl	8(%r12), %eax
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_menu_display_vk_get_default_mvp
LBB0_21:
	movl	%eax, -88(%rbp)
	movl	$4, -104(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	(%r12), %rax
	movl	24(%rax), %eax
	movl	%eax, -100(%rbp)
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vulkan_draw_triangles
LBB0_22:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VULKAN_DIRTY_DYNAMIC_BIT,4,2   ## @VULKAN_DIRTY_DYNAMIC_BIT
	.comm	_VK_NULL_HANDLE,4,2             ## @VK_NULL_HANDLE
	.no_dead_strip	_menu_display_vk_draw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function menu_display_vk_draw
_menu_display_vk_draw:                  ; @menu_display_vk_draw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x0, LBB0_30
; %bb.1:
	mov	x21, x1
	ldr	x19, [x1]
	cbz	x19, LBB0_30
; %bb.2:
	mov	x20, x0
	ldr	x25, [x0, #32]
	ldr	x8, [x0]
	ldp	x22, x23, [x8]
	ldr	x24, [x8, #16]
	cbz	x22, LBB0_18
; %bb.3:
	cbnz	x23, LBB0_5
LBB0_4:
	bl	_menu_display_vk_get_default_tex_coords
	mov	x23, x0
LBB0_5:
	ldr	x8, [x20]
	ldr	x8, [x8, #32]
	cbnz	x8, LBB0_7
; %bb.6:
	bl	_menu_display_vk_get_default_tex_coords
	ldr	x8, [x20]
	str	x0, [x8, #32]
LBB0_7:
	add	x8, x19, #32
	cmp	x25, #0
	csel	x25, x8, x25, eq
	cbnz	x24, LBB0_9
; %bb.8:
	bl	_menu_display_vk_get_default_color
	mov	x24, x0
LBB0_9:
	mov	x0, x20
	mov	x1, x21
	bl	_menu_display_vk_viewport
Lloh0:
	adrp	x8, _VULKAN_DIRTY_DYNAMIC_BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VULKAN_DIRTY_DYNAMIC_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w0, w9, [x19, #48]
	orr	w8, w9, w8
	str	w8, [x19, #52]
	ldr	x1, [x19, #40]
	ldr	x8, [x20]
	ldr	w8, [x8, #24]
	lsl	w2, w8, #5
	add	x3, sp, #40
	bl	_vulkan_buffer_chain_alloc
	cbz	w0, LBB0_30
; %bb.10:
	ldr	x8, [x20]
	ldr	w8, [x8, #24]
	cbz	w8, LBB0_22
; %bb.11:
	ldr	x9, [sp, #40]
	mov	w11, #0
	subs	w10, w8, #1
	b.eq	LBB0_19
; %bb.12:
	add	x12, x9, x10, lsl #5
	add	x14, x12, #4
	lsl	x12, x10, #3
	add	x15, x12, #8
	add	x12, x24, w10, uxtw #4
	add	x13, x12, #16
	add	x12, x23, x15
	cmp	x9, x12
	ccmp	x23, x14, #2, lo
	cset	w12, lo
	cmp	x9, x13
	ccmp	x24, x14, #2, lo
	cset	w13, lo
	cmp	x22, x14
	add	x14, x22, x15
	ccmp	x9, x14, #2, lo
	b.lo	LBB0_19
; %bb.13:
	tbnz	w12, #0, LBB0_19
; %bb.14:
	tbnz	w13, #0, LBB0_19
; %bb.15:
	add	x14, x10, #1
	mov	x15, x9
	and	x11, x14, #0x1fffffffe
	add	x9, x9, x11, lsl #5
	add	x10, x24, x11, lsl #4
	lsl	x13, x11, #3
	add	x12, x23, x13
	add	x13, x22, x13
	fmov.2s	v0, #1.00000000
	mov	x16, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ld2.2s	{ v1, v2 }, [x22], #16
	fsub.2s	v3, v0, v2
	ld2.2s	{ v4, v5 }, [x23], #16
	ld4.2s	{ v16, v17, v18, v19 }, [x24], #32
	fcvtzs.2s	v6, v19
	mov.d	v3[1], v6[0]
	mov.d	v18[1], v17[0]
	fcvtzs.4s	v6, v18
	mov.d	v16[1], v5[0]
	mov.d	v4[1], v1[0]
	fcvtzs.4s	v1, v16
	fcvtzs.4s	v2, v4
	uzp1.4s	v4, v3, v6
	uzp2.4s	v3, v3, v6
	uzp2.4s	v5, v1, v2
	stp	q3, q5, [x15, #32]
	uzp1.4s	v1, v1, v2
	stp	q4, q1, [x15], #64
	subs	x16, x16, #2
	b.ne	LBB0_16
; %bb.17:
	cmp	x14, x11
	b.ne	LBB0_20
	b	LBB0_22
LBB0_18:
	bl	_menu_display_vk_get_default_vertices
	mov	x22, x0
	cbnz	x23, LBB0_5
	b	LBB0_4
LBB0_19:
	mov	x10, x24
	mov	x12, x23
	mov	x13, x22
LBB0_20:
	sub	w8, w8, w11
	add	x9, x9, #28
	fmov	s0, #1.00000000
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	s1, [x13]
	fcvtzs	w11, s1
	str	w11, [x9]
	ldr	s1, [x13, #4]
	fsub	s1, s0, s1
	stur	s1, [x9, #-28]
	ldr	d1, [x12], #8
	fcvtzs.2s	v1, v1
	rev64.2s	v1, v1
	stur	d1, [x9, #-8]
	ldr	q1, [x10], #16
	fcvtzs.4s	v1, v1
	rev64.4s	v1, v1
	ext.16b	v1, v1, v1, #8
	stur	q1, [x9, #-24]
	add	x9, x9, #32
	add	x13, x13, #8
	subs	w8, w8, #1
	b.ne	LBB0_21
LBB0_22:
	ldr	x22, [x19, #24]
	ldr	w0, [x20, #12]
	ldr	w1, [x19, #16]
	bl	_to_display_pipeline
	ldr	w8, [x22, x0, lsl #2]
	str	w8, [sp, #32]
	str	x25, [sp, #24]
	ldr	w8, [x25, #4]
	cbz	w8, LBB0_24
; %bb.23:
	add	x8, x19, #8
	b	LBB0_27
LBB0_24:
	ldr	w8, [x25]
	cbz	w8, LBB0_26
; %bb.25:
	add	x8, x19, #4
	b	LBB0_27
LBB0_26:
	mov	x8, x19
LBB0_27:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	ldr	w0, [x20, #8]
	cbnz	w0, LBB0_29
; %bb.28:
	mov	x0, x21
	bl	_menu_display_vk_get_default_mvp
LBB0_29:
	str	w0, [sp, #16]
	mov	w8, #4
	add	x9, sp, #40
	str	x9, [sp, #8]
	ldr	x9, [x20]
	ldr	w9, [x9, #24]
	stp	w8, w9, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_vulkan_draw_triangles
LBB0_30:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VULKAN_DIRTY_DYNAMIC_BIT,4,2   ; @VULKAN_DIRTY_DYNAMIC_BIT
	.comm	_VK_NULL_HANDLE,4,2             ; @VK_NULL_HANDLE
	.no_dead_strip	_menu_display_vk_draw
.subsections_via_symbols
