	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_display_gl_draw
_menu_display_gl_draw:                  ## @menu_display_gl_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
	pushq	%rax
	.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_11
## %bb.1:
	movq	%rsi, %r14
	movq	(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_11
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	cmpq	$0, 24(%rcx)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 16(%rcx)
	je	LBB0_5
LBB0_6:
	cmpq	$0, 8(%rcx)
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_menu_display_gl_viewport
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	_glBindTexture
	movq	16(%r12), %rax
	movl	8(%r12), %edi
	movq	(%rbx), %rsi
	callq	*8(%rax)
	movq	16(%r12), %rax
	movq	(%rax), %r13
	movl	8(%r12), %r15d
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_menu_display_gl_get_default_mvp
	movq	%rax, %rsi
LBB0_10:
	movl	%r15d, %edi
	callq	*%r13
	movl	8(%rbx), %edi
	callq	_menu_display_prim_to_gl_enum
	movq	(%rbx), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_glDrawArrays
	movl	(%r12), %eax
	movl	%eax, 4(%r12)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_menu_display_gl_get_default_vertices
	movq	(%rbx), %rcx
	movq	%rax, 24(%rcx)
	cmpq	$0, 16(%rcx)
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_menu_display_gl_get_default_tex_coords
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	cmpq	$0, 8(%rcx)
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_menu_display_gl_get_default_tex_coords
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.no_dead_strip	_menu_display_gl_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_gl_draw
_menu_display_gl_draw:                  ; @menu_display_gl_draw
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x1
	ldr	x22, [x1]
	cbz	x22, LBB0_8
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_9
; %bb.3:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_10
LBB0_4:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_11
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_menu_display_gl_viewport
Lloh0:
	adrp	x8, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TEXTURE_2D@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_glBindTexture
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	ldr	w0, [x22, #8]
	ldr	x1, [x19]
	blr	x8
	ldr	x8, [x22, #16]
	ldr	x23, [x8]
	ldr	w21, [x22, #8]
	ldr	x1, [x19, #16]
	cbnz	x1, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_menu_display_gl_get_default_mvp
	mov	x1, x0
LBB0_7:
	mov	x0, x21
	blr	x23
	ldr	w0, [x19, #8]
	bl	_menu_display_prim_to_gl_enum
	ldr	x8, [x19]
	ldr	w2, [x8]
	mov	w1, #0
	bl	_glDrawArrays
	ldr	w8, [x22]
	str	w8, [x22, #4]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	_menu_display_gl_get_default_vertices
	ldr	x8, [x19]
	str	x0, [x8, #24]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_4
LBB0_10:
	bl	_menu_display_gl_get_default_tex_coords
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_5
LBB0_11:
	bl	_menu_display_gl_get_default_tex_coords
	ldr	x8, [x19]
	str	x0, [x8, #8]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.no_dead_strip	_menu_display_gl_draw
.subsections_via_symbols
