	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function menu_display_gl_core_draw
_menu_display_gl_core_draw:             ## @menu_display_gl_core_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	$24, %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_21
## %bb.1:
	movq	%rsi, %r15
	movq	(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_21
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	40(%rdi), %r12
	movq	(%rax), %r13
	movq	8(%rax), %rcx
	movq	16(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	testq	%rcx, %rcx
	je	LBB0_5
LBB0_6:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_menu_display_gl_core_get_default_color
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_menu_display_gl_core_viewport
	movq	_GL_TEXTURE1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glActiveTexture
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_glBindTexture
	movl	$-131, %eax
	addl	24(%rbx), %eax
	cmpl	$1, %eax
	ja	LBB0_10
## %bb.9:
	movq	_GL_ONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	jmp	LBB0_11
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_GL_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_11:
	callq	_glBlendFunc
	movl	8(%r14), %edi
	callq	_glUseProgram
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_menu_display_gl_core_get_default_mvp
LBB0_13:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	js	LBB0_15
## %bb.14:
	movq	(%rax), %rdx
	movl	$4, %esi
	callq	_glUniform4fv
LBB0_15:
	xorl	%edi, %edi
	callq	_glEnableVertexAttribArray
	movl	$1, %edi
	callq	_glEnableVertexAttribArray
	movl	$2, %edi
	callq	_glEnableVertexAttribArray
	movq	8(%rbx), %rax
	movl	24(%rax), %edx
	shll	$3, %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_gl_core_bind_scratch_vbo
	movq	_GL_FLOAT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_GL_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	xorl	%edi, %edi
	movl	$2, %esi
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_glVertexAttribPointer
	movq	8(%rbx), %rax
	movl	24(%rax), %edx
	shll	$3, %edx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_gl_core_bind_scratch_vbo
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movl	$1, %edi
	movl	$2, %esi
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_glVertexAttribPointer
	movq	8(%rbx), %rax
	movl	24(%rax), %edx
	shll	$4, %edx
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_gl_core_bind_scratch_vbo
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movl	$2, %edi
	movl	$4, %esi
	movl	$16, %r8d
	xorl	%r9d, %r9d
	callq	_glVertexAttribPointer
	movq	(%rbx), %rax
	movq	_MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r14
	jmp	LBB0_19
LBB0_17:
	movq	_MENU_DISPLAY_PRIM_TRIANGLES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r14
	jne	LBB0_20
## %bb.18:
	movq	_GL_TRIANGLES@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movl	24(%rax), %edx
	xorl	%esi, %esi
	callq	_glDrawArrays
LBB0_20:
	xorl	%edi, %edi
	callq	_glDisableVertexAttribArray
	movl	$1, %edi
	callq	_glDisableVertexAttribArray
	movl	$2, %edi
	callq	_glDisableVertexAttribArray
	movq	_GL_ARRAY_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_glBindBuffer
	movl	(%r14), %edi
	xorl	%esi, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_glBindTexture                  ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
	movq	%rcx, %r13
	callq	_menu_display_gl_core_get_default_vertices
	movq	%r13, %rcx
	movq	%rax, %r13
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:
	xorl	%eax, %eax
	callq	_menu_display_gl_core_get_default_tex_coords
	movq	%rax, %rcx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_TEXTURE1,4,2                ## @GL_TEXTURE1
	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_ONE,4,2                     ## @GL_ONE
	.comm	_GL_SRC_ALPHA,4,2               ## @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ## @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_FLOAT,4,2                   ## @GL_FLOAT
	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_MENU_DISPLAY_PRIM_TRIANGLESTRIP,8,3 ## @MENU_DISPLAY_PRIM_TRIANGLESTRIP
	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
	.comm	_MENU_DISPLAY_PRIM_TRIANGLES,8,3 ## @MENU_DISPLAY_PRIM_TRIANGLES
	.comm	_GL_TRIANGLES,4,2               ## @GL_TRIANGLES
	.comm	_GL_ARRAY_BUFFER,4,2            ## @GL_ARRAY_BUFFER
	.no_dead_strip	_menu_display_gl_core_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_core_draw
_menu_display_gl_core_draw:             ; @menu_display_gl_core_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_7
; %bb.1:
	mov	x24, x1
	ldr	x20, [x1]
	cbz	x20, LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	x25, [x0, #40]
	ldr	x8, [x0, #8]
	ldp	x23, x22, [x8]
	ldr	x21, [x8, #16]
	cbz	x23, LBB0_19
; %bb.3:
	cbz	x22, LBB0_20
LBB0_4:
	cbz	x21, LBB0_21
LBB0_5:
	mov	x0, x19
	mov	x1, x24
	bl	_menu_display_gl_core_viewport
Lloh0:
	adrp	x8, _GL_TEXTURE1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GL_TEXTURE1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_glActiveTexture
Lloh3:
	adrp	x26, _GL_TEXTURE_2D@GOTPAGE
Lloh4:
	ldr	x26, [x26, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x25
	bl	_glBindTexture
	ldr	w8, [x19, #24]
	sub	w8, w8, #131
	cmp	w8, #1
	b.hi	LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _GL_ONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_ONE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x0
	b	LBB0_9
LBB0_7:
	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_8:
Lloh8:
	adrp	x8, _GL_SRC_ALPHA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_SRC_ALPHA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
LBB0_9:
	bl	_glBlendFunc
	ldr	w0, [x20, #8]
	bl	_glUseProgram
	ldr	x0, [x19, #16]
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x24
	bl	_menu_display_gl_core_get_default_mvp
LBB0_11:
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_13
; %bb.12:
	ldr	x2, [x0]
	mov	x0, x8
	mov	w1, #4
	bl	_glUniform4fv
LBB0_13:
	mov	w0, #0
	bl	_glEnableVertexAttribArray
	mov	w0, #1
	bl	_glEnableVertexAttribArray
	mov	w0, #2
	bl	_glEnableVertexAttribArray
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #24]
	lsl	w2, w8, #3
	mov	x0, x20
	mov	x1, x23
	bl	_gl_core_bind_scratch_vbo
Lloh14:
	adrp	x23, _GL_FLOAT@GOTPAGE
Lloh15:
	ldr	x23, [x23, _GL_FLOAT@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh16:
	adrp	x24, _GL_FALSE@GOTPAGE
Lloh17:
	ldr	x24, [x24, _GL_FALSE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	w0, #0
	mov	w1, #2
	mov	w4, #8
	mov	x5, #0
	bl	_glVertexAttribPointer
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #24]
	lsl	w2, w8, #3
	mov	x0, x20
	mov	x1, x22
	bl	_gl_core_bind_scratch_vbo
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	w0, #1
	mov	w1, #2
	mov	w4, #8
	mov	x5, #0
	bl	_glVertexAttribPointer
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #24]
	lsl	w2, w8, #4
	mov	x0, x20
	mov	x1, x21
	bl	_gl_core_bind_scratch_vbo
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	w0, #2
	mov	w1, #4
	mov	w4, #16
	mov	x5, #0
	bl	_glVertexAttribPointer
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MENU_DISPLAY_PRIM_TRIANGLESTRIP@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
Lloh21:
	adrp	x8, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh23:
	adrp	x9, _MENU_DISPLAY_PRIM_TRIANGLES@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MENU_DISPLAY_PRIM_TRIANGLES@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.16:
Lloh26:
	adrp	x8, _GL_TRIANGLES@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GL_TRIANGLES@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	w2, [x8, #24]
	mov	w1, #0
	bl	_glDrawArrays
LBB0_18:
	mov	w0, #0
	bl	_glDisableVertexAttribArray
	mov	w0, #1
	bl	_glDisableVertexAttribArray
	mov	w0, #2
	bl	_glDisableVertexAttribArray
Lloh28:
	adrp	x8, _GL_ARRAY_BUFFER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GL_ARRAY_BUFFER@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_glBindBuffer
	ldr	w0, [x26]
	mov	x1, #0
	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
	b	_glBindTexture
LBB0_19:
	bl	_menu_display_gl_core_get_default_vertices
	mov	x23, x0
	cbnz	x22, LBB0_4
LBB0_20:
	bl	_menu_display_gl_core_get_default_tex_coords
	mov	x22, x0
	cbnz	x21, LBB0_5
LBB0_21:
	bl	_menu_display_gl_core_get_default_color
	mov	x21, x0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_TEXTURE1,4,2                ; @GL_TEXTURE1
	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_ONE,4,2                     ; @GL_ONE
	.comm	_GL_SRC_ALPHA,4,2               ; @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ; @GL_ONE_MINUS_SRC_ALPHA
	.comm	_GL_FLOAT,4,2                   ; @GL_FLOAT
	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_MENU_DISPLAY_PRIM_TRIANGLESTRIP,8,3 ; @MENU_DISPLAY_PRIM_TRIANGLESTRIP
	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
	.comm	_MENU_DISPLAY_PRIM_TRIANGLES,8,3 ; @MENU_DISPLAY_PRIM_TRIANGLES
	.comm	_GL_TRIANGLES,4,2               ; @GL_TRIANGLES
	.comm	_GL_ARRAY_BUFFER,4,2            ; @GL_ARRAY_BUFFER
	.no_dead_strip	_menu_display_gl_core_draw
.subsections_via_symbols
