	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_display_gl1_draw
_menu_display_gl1_draw:                 ## @menu_display_gl1_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, %r15
	movq	(%rdi), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_3
## %bb.4:
	cmpq	$0, 16(%rcx)
	je	LBB0_5
LBB0_6:
	cmpq	$0, 32(%rcx)
	je	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_menu_display_gl1_viewport
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_glEnable
	movl	(%rbx), %edi
	movl	24(%r15), %esi
	callq	_glBindTexture
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_menu_display_gl1_get_default_mvp
	movq	%rax, %rbx
LBB0_10:
	movq	_GL_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	xorl	%eax, %eax
	callq	_glPushMatrix
	movq	%rbx, %rdi
	callq	_glLoadMatrixf
	movq	_GL_MODELVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	xorl	%eax, %eax
	callq	_glPushMatrix
	xorl	%eax, %eax
	callq	_glLoadIdentity
	movq	_GL_COLOR_ARRAY@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_glEnableClientState
	movq	_GL_VERTEX_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnableClientState
	movq	_GL_TEXTURE_COORD_ARRAY@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_glEnableClientState
	movq	_GL_FLOAT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	(%r15), %rax
	movq	(%rax), %rcx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_glVertexPointer
	movl	(%rbx), %esi
	movq	(%r15), %rax
	movl	24(%rax), %ecx
	movl	$4, %edi
	xorl	%edx, %edx
	callq	_glColorPointer
	movl	(%rbx), %esi
	movq	(%r15), %rax
	movq	16(%rax), %rcx
	movl	$2, %edi
	xorl	%edx, %edx
	callq	_glTexCoordPointer
	movl	8(%r15), %edi
	callq	_menu_display_prim_to_gl1_enum
	movq	(%r15), %rcx
	movl	8(%rcx), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_glDrawArrays
	movl	(%r14), %edi
	callq	_glDisableClientState
	movl	(%r13), %edi
	callq	_glDisableClientState
	movq	_GL_VERTEX_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glDisableClientState
	movq	_GL_MODELVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	xorl	%eax, %eax
	callq	_glPopMatrix
	movq	_GL_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glMatrixMode
	xorl	%eax, %eax
	callq	_glPopMatrix
	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_gl1_get_default_vertices
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	cmpq	$0, 16(%rcx)
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_menu_display_gl1_get_default_tex_coords
	movq	(%r15), %rcx
	movq	%rax, 16(%rcx)
	cmpq	$0, 32(%rcx)
	jne	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_menu_display_gl1_get_default_tex_coords
	movq	(%r15), %rcx
	movq	%rax, 32(%rcx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_PROJECTION,4,2              ## @GL_PROJECTION
	.comm	_GL_MODELVIEW,4,2               ## @GL_MODELVIEW
	.comm	_GL_COLOR_ARRAY,4,2             ## @GL_COLOR_ARRAY
	.comm	_GL_VERTEX_ARRAY,4,2            ## @GL_VERTEX_ARRAY
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ## @GL_TEXTURE_COORD_ARRAY
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
	.comm	_vertices3,8,3                  ## @vertices3
	.no_dead_strip	_menu_display_gl1_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_gl1_draw
_menu_display_gl1_draw:                 ; @menu_display_gl1_draw
	.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
	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]
	cbz	x9, LBB0_9
; %bb.3:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_10
LBB0_4:
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_11
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_menu_display_gl1_viewport
Lloh0:
	adrp	x21, _GL_TEXTURE_2D@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_glEnable
	ldr	w0, [x21]
	ldr	w1, [x19, #24]
	bl	_glBindTexture
	ldr	x21, [x19, #16]
	cbnz	x21, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_menu_display_gl1_get_default_mvp
	mov	x21, x0
LBB0_7:
Lloh2:
	adrp	x20, _GL_PROJECTION@GOTPAGE
Lloh3:
	ldr	x20, [x20, _GL_PROJECTION@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_glMatrixMode
	bl	_glPushMatrix
	mov	x0, x21
	bl	_glLoadMatrixf
Lloh4:
	adrp	x21, _GL_MODELVIEW@GOTPAGE
Lloh5:
	ldr	x21, [x21, _GL_MODELVIEW@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_glMatrixMode
	bl	_glPushMatrix
	bl	_glLoadIdentity
Lloh6:
	adrp	x24, _GL_COLOR_ARRAY@GOTPAGE
Lloh7:
	ldr	x24, [x24, _GL_COLOR_ARRAY@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_glEnableClientState
Lloh8:
	adrp	x23, _GL_VERTEX_ARRAY@GOTPAGE
Lloh9:
	ldr	x23, [x23, _GL_VERTEX_ARRAY@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_glEnableClientState
Lloh10:
	adrp	x25, _GL_TEXTURE_COORD_ARRAY@GOTPAGE
Lloh11:
	ldr	x25, [x25, _GL_TEXTURE_COORD_ARRAY@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_glEnableClientState
Lloh12:
	adrp	x26, _GL_FLOAT@GOTPAGE
Lloh13:
	ldr	x26, [x26, _GL_FLOAT@GOTPAGEOFF]
	ldr	w1, [x26]
	ldr	x8, [x19]
	ldr	x3, [x8]
	mov	w0, #2
	mov	w2, #0
	bl	_glVertexPointer
	ldr	w1, [x26]
	ldr	x8, [x19]
	ldr	w3, [x8, #24]
	mov	w0, #4
	mov	w2, #0
	bl	_glColorPointer
	ldr	w1, [x26]
	ldr	x8, [x19]
	ldr	x3, [x8, #16]
	mov	w0, #2
	mov	w2, #0
	bl	_glTexCoordPointer
	ldr	w0, [x19, #8]
	bl	_menu_display_prim_to_gl1_enum
	ldr	x8, [x19]
	ldr	w2, [x8, #8]
	mov	w1, #0
	bl	_glDrawArrays
	ldr	w0, [x24]
	bl	_glDisableClientState
	ldr	w0, [x25]
	bl	_glDisableClientState
	ldr	w0, [x23]
	bl	_glDisableClientState
	ldr	w0, [x21]
	bl	_glMatrixMode
	bl	_glPopMatrix
	ldr	w0, [x20]
	bl	_glMatrixMode
	bl	_glPopMatrix
	ldr	w8, [x22]
	str	w8, [x22, #4]
LBB0_8:
	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
LBB0_9:
	bl	_menu_display_gl1_get_default_vertices
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_4
LBB0_10:
	bl	_menu_display_gl1_get_default_tex_coords
	ldr	x8, [x19]
	str	x0, [x8, #16]
	ldr	x8, [x8, #32]
	cbnz	x8, LBB0_5
LBB0_11:
	bl	_menu_display_gl1_get_default_tex_coords
	ldr	x8, [x19]
	str	x0, [x8, #32]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_PROJECTION,4,2              ; @GL_PROJECTION
	.comm	_GL_MODELVIEW,4,2               ; @GL_MODELVIEW
	.comm	_GL_COLOR_ARRAY,4,2             ; @GL_COLOR_ARRAY
	.comm	_GL_VERTEX_ARRAY,4,2            ; @GL_VERTEX_ARRAY
	.comm	_GL_TEXTURE_COORD_ARRAY,4,2     ; @GL_TEXTURE_COORD_ARRAY
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
	.comm	_vertices3,8,3                  ; @vertices3
	.no_dead_strip	_menu_display_gl1_draw
.subsections_via_symbols
