	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gl1_gfx_frame
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gl1_gfx_frame:                         ## @gl1_gfx_frame
	.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
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rbp), %r12
	movq	_gl1_video_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%esi, %esi
	callq	_gl1_context_bind_hw_render
	movl	$0, (%r12)
	movq	$0, 128(%r12)
	testq	%rbx, %rbx
	je	LBB0_55
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_55
## %bb.2:
	testl	%r13d, %r13d
	je	LBB0_55
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movl	$0, (%r14)
	movl	40(%r12), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*120(%r12)
	movl	104(%r12), %ecx
	movl	108(%r12), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_gl1_gfx_set_viewport
LBB0_5:
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	xorps	%xmm2, %xmm2
	callq	_glClearColor
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
	movq	_GL_BLEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glEnable
	movq	_GL_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_ONE_MINUS_SRC_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_glBlendFunc
	movq	_gl1_video_width@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movq	_gl1_video_height@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	movq	_gl1_video_pitch@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	cmpl	%r15d, %r12d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_9
## %bb.6:
	cmpl	%r13d, %ebx
	jne	LBB0_9
## %bb.7:
	cmpl	%ecx, %eax
	jne	LBB0_9
## %bb.8:
	movl	%ecx, %eax
	movl	%r13d, %ebx
	movl	%r15d, %r12d
	jmp	LBB0_14
LBB0_9:
	cmpl	$5, %r15d
	jb	LBB0_14
## %bb.10:
	cmpl	$5, %r13d
	jb	LBB0_14
## %bb.11:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, (%rdx)
	movl	%r13d, (%rsi)
	movl	%ecx, (%rdi)
	movl	%r15d, %edi
	callq	_get_pot
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_get_pot
	movl	%eax, %r14d
	movq	_gl1_video_buf@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.12:
	callq	_free
LBB0_13:
	imull	%r14d, %ebx
	shll	$2, %ebx
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, (%r12)
	movq	_gl1_video_width@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_gl1_video_height@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_gl1_video_pitch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_14:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_get_pot
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_get_pot
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	xorl	$4, %r15d
	xorl	$4, %r13d
	orl	%r15d, %r13d
	setne	%al
	cmpl	$5, %r12d
	movl	%ebx, %ecx
	setb	%bl
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$5, %ecx
	setb	%cl
	orb	%al, %bl
	orb	%cl, %bl
	xorl	%r15d, %r15d
	cmpb	$1, %bl
	jne	LBB0_24
## %bb.15:
	movq	_gl1_video_buf@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.16:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	$16, %eax
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_22
## %bb.17:
	cmpl	$32, %eax
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_23
## %bb.18:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.19:
	leal	(,%r12,4), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_memcpy
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	_gl1_video_buf@GOTPCREL(%rip), %rcx
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.20:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %r13d
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	decq	%r15
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	addq	(%rcx), %rdi
	movl	%r14d, %esi
	addq	%rdx, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	_gl1_video_buf@GOTPCREL(%rip), %rcx
	addl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	addl	-56(%rbp), %r13d                ## 4-byte Folded Reload
	decq	%r15
	jne	LBB0_21
	jmp	LBB0_23
LBB0_22:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %r8d
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	movq	%rcx, %r14
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_conv_rgb565_argb8888
	movq	%r14, %rcx
LBB0_23:
	movq	(%rcx), %r15
	movq	-72(%rbp), %r14                 ## 8-byte Reload
LBB0_24:
	cmpl	%r12d, 4(%r14)
	jne	LBB0_26
## %bb.25:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, 8(%r14)
	je	LBB0_27
LBB0_26:
	movl	%r12d, 4(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
LBB0_27:
	leaq	-96(%rbp), %rdi
	callq	_video_context_driver_get_video_size
	movl	-96(%rbp), %eax
	movl	%eax, 12(%r14)
	movl	-92(%rbp), %eax
	movl	%eax, 16(%r14)
	testq	%r15, %r15
	setne	%al
	andb	%al, %bl
	cmpb	$1, %bl
	jne	LBB0_29
## %bb.28:
	movl	80(%r14), %r9d
	movq	%r15, (%rsp)
	movq	%r14, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	-84(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_draw_tex
LBB0_29:
	movq	16(%rbp), %r15
	movq	_gl1_menu_frame@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_41
## %bb.30:
	movq	24(%rbp), %rax
	cmpq	$0, 112(%rax)
	je	LBB0_41
## %bb.31:
	movq	%r14, %r13
	movq	_gl1_menu_width@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_gl1_menu_height@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_gl1_menu_pitch@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_gl1_menu_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_get_pot
	movl	%eax, %r15d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_get_pot
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_gl1_menu_size_changed@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_34
## %bb.32:
	movl	$0, (%rax)
	movq	_gl1_menu_video_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	movl	%r15d, %ebx
	je	LBB0_35
## %bb.33:
	movq	%rax, %r15
	callq	_free
	movq	$0, (%r15)
	jmp	LBB0_35
LBB0_34:
	movq	_gl1_menu_video_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	movl	%r15d, %ebx
	jne	LBB0_36
LBB0_35:
	movl	%ebx, %edi
	imull	-64(%rbp), %edi                 ## 4-byte Folded Reload
	shll	$2, %edi
	callq	_malloc
	movq	_gl1_menu_video_buf@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_36:
	cmpl	$16, %r14d
	movq	%r13, %r14
	movq	16(%rbp), %r15
	jne	LBB0_41
## %bb.37:
	testq	%rax, %rax
	je	LBB0_41
## %bb.38:
	movq	(%r12), %rsi
	movl	%ebx, %r8d
	shll	$2, %r8d
	movq	%rax, %rdi
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_conv_rgba4444_argb8888
	movq	_gl1_menu_video_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpq	$0, 72(%r14)
	je	LBB0_40
## %bb.39:
	movq	24(%rbp), %rax
	movl	104(%rax), %ecx
	movl	108(%rax), %edx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_glViewport
	movl	48(%r14), %r9d
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_draw_tex
	movl	64(%r14), %edi
	movl	60(%r14), %esi
	movl	52(%r14), %ecx
	movl	56(%r14), %edx
	callq	_glViewport
	jmp	LBB0_41
LBB0_40:
	movl	48(%r14), %r9d
	movq	%r12, (%rsp)
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_draw_tex
LBB0_41:
	testq	%r15, %r15
	movq	24(%rbp), %rbx
	je	LBB0_43
## %bb.42:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_font_driver_render_msg
LBB0_43:
	movl	40(%rbx), %edi
	movq	%rbx, %rsi
	callq	*72(%rbx)
	movq	32(%r14), %r8
	testq	%r8, %r8
	je	LBB0_45
## %bb.44:
	movq	_GL_RGBA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_UNSIGNED_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_gl1_readback
LBB0_45:
	cmpq	$0, 64(%rbx)
	je	LBB0_50
## %bb.46:
	cmpl	$0, 24(%rbx)
	jne	LBB0_50
## %bb.47:
	cmpl	$0, 60(%rbx)
	jne	LBB0_50
## %bb.48:
	cmpl	$0, 56(%rbx)
	jne	LBB0_50
## %bb.49:
	movl	40(%rbx), %edi
	movq	%rbx, %rsi
	callq	*48(%rbx)
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
LBB0_50:
	movl	40(%rbx), %edi
	movq	%rbx, %rsi
	callq	*48(%rbx)
	cmpq	$0, 32(%rbx)
	je	LBB0_54
## %bb.51:
	cmpl	$0, 24(%rbx)
	jne	LBB0_54
## %bb.52:
	cmpq	$0, 24(%r14)
	jne	LBB0_54
## %bb.53:
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_glClear
	xorl	%eax, %eax
	callq	_glFinish
LBB0_54:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_gl1_context_bind_hw_render
LBB0_55:
	movl	$1, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gl1_video_bits,4,2             ## @gl1_video_bits
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_GL_BLEND,4,2                   ## @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ## @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ## @GL_ONE_MINUS_SRC_ALPHA
	.comm	_gl1_video_width,4,2            ## @gl1_video_width
	.comm	_gl1_video_height,4,2           ## @gl1_video_height
	.comm	_gl1_video_pitch,4,2            ## @gl1_video_pitch
	.comm	_gl1_video_buf,8,3              ## @gl1_video_buf
	.comm	_gl1_menu_frame,8,3             ## @gl1_menu_frame
	.comm	_gl1_menu_width,4,2             ## @gl1_menu_width
	.comm	_gl1_menu_height,4,2            ## @gl1_menu_height
	.comm	_gl1_menu_pitch,4,2             ## @gl1_menu_pitch
	.comm	_gl1_menu_bits,4,2              ## @gl1_menu_bits
	.comm	_gl1_menu_size_changed,4,2      ## @gl1_menu_size_changed
	.comm	_gl1_menu_video_buf,8,3         ## @gl1_menu_video_buf
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ## @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl1_gfx_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gl1_gfx_frame
_gl1_gfx_frame:                         ; @gl1_gfx_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x7
	mov	x28, x6
	mov	x21, x5
	mov	x25, x3
	mov	x26, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _gl1_video_bits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gl1_video_bits@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	w1, #0
	bl	_gl1_context_bind_hw_render
	str	wzr, [x20]
	str	xzr, [x20, #128]
	cbz	x22, LBB0_52
; %bb.1:
	cbz	w26, LBB0_52
; %bb.2:
	cbz	w25, LBB0_52
; %bb.3:
	str	w23, [sp, #36]                  ; 4-byte Folded Spill
	str	x22, [sp, #24]                  ; 8-byte Folded Spill
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.4:
	str	wzr, [x19]
	ldr	x8, [x20, #120]
	ldr	w0, [x20, #40]
	mov	w1, #0
	mov	w2, #0
	blr	x8
	ldp	w3, w2, [x20, #104]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #0
	mov	w5, #1
	bl	_gl1_gfx_set_viewport
LBB0_5:
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	movi	d2, #0000000000000000
	fmov	s3, #1.00000000
	bl	_glClearColor
Lloh3:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_glClear
Lloh6:
	adrp	x8, _GL_BLEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GL_BLEND@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_glEnable
Lloh9:
	adrp	x8, _GL_SRC_ALPHA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GL_SRC_ALPHA@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GL_ONE_MINUS_SRC_ALPHA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_glBlendFunc
Lloh15:
	adrp	x27, _gl1_video_width@GOTPAGE
Lloh16:
	ldr	x27, [x27, _gl1_video_width@GOTPAGEOFF]
	ldr	w23, [x27]
Lloh17:
	adrp	x8, _gl1_video_height@GOTPAGE
Lloh18:
	ldr	x8, [x8, _gl1_video_height@GOTPAGEOFF]
	ldr	w24, [x8]
Lloh19:
	adrp	x9, _gl1_video_pitch@GOTPAGE
Lloh20:
	ldr	x9, [x9, _gl1_video_pitch@GOTPAGEOFF]
	ldr	w22, [x9]
	cmp	w23, w26
	ccmp	w24, w25, #0, eq
	ccmp	w22, w21, #0, eq
	b.eq	LBB0_11
; %bb.6:
	cmp	w26, #5
	b.lo	LBB0_12
; %bb.7:
	cmp	w25, #5
	b.lo	LBB0_12
; %bb.8:
	str	w26, [x27]
	mov	x22, x8
	str	w25, [x8]
	str	w21, [x9]
	mov	x0, x26
	bl	_get_pot
	mov	x21, x0
	mov	x0, x25
	bl	_get_pot
	mov	x23, x0
Lloh21:
	adrp	x8, _gl1_video_buf@GOTPAGE
Lloh22:
	ldr	x8, [x8, _gl1_video_buf@GOTPAGEOFF]
Lloh23:
	ldr	x0, [x8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_free
LBB0_10:
	mul	w8, w21, w23
	lsl	w0, w8, #2
	bl	_malloc
Lloh24:
	adrp	x8, _gl1_video_buf@GOTPAGE
Lloh25:
	ldr	x8, [x8, _gl1_video_buf@GOTPAGEOFF]
Lloh26:
	str	x0, [x8]
	ldr	w23, [x27]
	ldr	w24, [x22]
Lloh27:
	adrp	x8, _gl1_video_pitch@GOTPAGE
Lloh28:
	ldr	x8, [x8, _gl1_video_pitch@GOTPAGEOFF]
Lloh29:
	ldr	w22, [x8]
	b	LBB0_12
LBB0_11:
	mov	x22, x21
	mov	x24, x25
	mov	x23, x26
LBB0_12:
	mov	x0, x23
	bl	_get_pot
	mov	x27, x0
	mov	x0, x24
	bl	_get_pot
	str	w0, [sp, #32]                   ; 4-byte Folded Spill
	mov	x21, #0
	cmp	w26, #4
	ccmp	w25, #4, #0, eq
	ccmp	w23, #5, #0, eq
	ccmp	w24, #5, #0, hs
	cset	w25, lo
	cmp	w25, #1
	b.ne	LBB0_22
; %bb.13:
Lloh30:
	adrp	x9, _gl1_video_buf@GOTPAGE
Lloh31:
	ldr	x9, [x9, _gl1_video_buf@GOTPAGEOFF]
	ldr	x0, [x9]
	cbz	x0, LBB0_22
; %bb.14:
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, #16
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	str	w27, [sp, #20]                  ; 4-byte Folded Spill
	str	w25, [sp, #4]                   ; 4-byte Folded Spill
	b.eq	LBB0_20
; %bb.15:
	cmp	w8, #32
	ldr	x21, [sp, #24]                  ; 8-byte Folded Reload
	b.ne	LBB0_21
; %bb.16:
	cbz	w24, LBB0_21
; %bb.17:
	lsl	w2, w23, #2
	mov	x1, x21
	str	w2, [sp, #36]                   ; 4-byte Folded Spill
	bl	_memcpy
Lloh32:
	adrp	x9, _gl1_video_buf@GOTPAGE
Lloh33:
	ldr	x9, [x9, _gl1_video_buf@GOTPAGEOFF]
	cmp	w24, #1
	b.eq	LBB0_21
; %bb.18:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	lsl	w25, w8, #2
	mov	w8, w24
	sub	x27, x8, #1
	mov	x26, x25
	mov	x28, x22
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x9]
	add	x0, x8, w26, uxtw
	add	x1, x21, w28, uxtw
	ldr	w2, [sp, #36]                   ; 4-byte Folded Reload
	bl	_memcpy
Lloh34:
	adrp	x9, _gl1_video_buf@GOTPAGE
Lloh35:
	ldr	x9, [x9, _gl1_video_buf@GOTPAGEOFF]
	add	w28, w28, w22
	add	w26, w26, w25
	subs	x27, x27, #1
	b.ne	LBB0_19
	b	LBB0_21
LBB0_20:
	lsl	w4, w27, #2
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x23
	mov	x3, x24
	mov	x5, x22
	bl	_conv_rgb565_argb8888
Lloh36:
	adrp	x9, _gl1_video_buf@GOTPAGE
Lloh37:
	ldr	x9, [x9, _gl1_video_buf@GOTPAGEOFF]
LBB0_21:
	ldr	x21, [x9]
	ldr	x28, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w27, [sp, #20]                  ; 4-byte Folded Reload
	ldr	w25, [sp, #4]                   ; 4-byte Folded Reload
LBB0_22:
	ldr	w8, [x19, #4]
	cmp	w8, w23
	b.ne	LBB0_24
; %bb.23:
	ldr	w8, [x19, #8]
	cmp	w8, w24
	b.eq	LBB0_25
LBB0_24:
	stp	w23, w24, [x19, #4]
LBB0_25:
	add	x0, sp, #40
	bl	_video_context_driver_get_video_size
	ldr	d0, [sp, #40]
	stur	d0, [x19, #12]
	cmp	x21, #0
	cset	w8, ne
	and	w8, w25, w8
	cmp	w8, #1
	b.ne	LBB0_27
; %bb.26:
	ldr	w5, [x19, #80]
	mov	x0, x19
	mov	x1, x27
	ldr	w2, [sp, #32]                   ; 4-byte Folded Reload
	mov	x3, x23
	mov	x4, x24
	mov	x6, x21
	bl	_draw_tex
LBB0_27:
Lloh38:
	adrp	x26, _gl1_menu_frame@GOTPAGE
Lloh39:
	ldr	x26, [x26, _gl1_menu_frame@GOTPAGEOFF]
	ldr	x8, [x26]
	cbz	x8, LBB0_38
; %bb.28:
	ldr	x8, [x20, #112]
	cbz	x8, LBB0_38
; %bb.29:
	mov	x25, x28
Lloh40:
	adrp	x8, _gl1_menu_width@GOTPAGE
Lloh41:
	ldr	x8, [x8, _gl1_menu_width@GOTPAGEOFF]
Lloh42:
	ldr	w21, [x8]
Lloh43:
	adrp	x8, _gl1_menu_height@GOTPAGE
Lloh44:
	ldr	x8, [x8, _gl1_menu_height@GOTPAGEOFF]
Lloh45:
	ldr	w22, [x8]
Lloh46:
	adrp	x8, _gl1_menu_pitch@GOTPAGE
Lloh47:
	ldr	x8, [x8, _gl1_menu_pitch@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [sp, #36]                   ; 4-byte Folded Spill
Lloh49:
	adrp	x8, _gl1_menu_bits@GOTPAGE
Lloh50:
	ldr	x8, [x8, _gl1_menu_bits@GOTPAGEOFF]
Lloh51:
	ldr	w28, [x8]
	mov	x0, x21
	bl	_get_pot
	mov	x23, x0
	mov	x0, x22
	bl	_get_pot
	mov	x24, x0
Lloh52:
	adrp	x8, _gl1_menu_size_changed@GOTPAGE
Lloh53:
	ldr	x8, [x8, _gl1_menu_size_changed@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh54:
	adrp	x27, _gl1_menu_video_buf@GOTPAGE
Lloh55:
	ldr	x27, [x27, _gl1_menu_video_buf@GOTPAGEOFF]
	cbz	w9, LBB0_32
; %bb.30:
	str	wzr, [x8]
	ldr	x0, [x27]
	cbz	x0, LBB0_33
; %bb.31:
	bl	_free
	str	xzr, [x27]
	b	LBB0_33
LBB0_32:
	ldr	x0, [x27]
	cbnz	x0, LBB0_34
LBB0_33:
	mul	w8, w23, w24
	lsl	w0, w8, #2
	bl	_malloc
	str	x0, [x27]
LBB0_34:
	cmp	w28, #16
	mov	x28, x25
	b.ne	LBB0_38
; %bb.35:
	cbz	x0, LBB0_38
; %bb.36:
	ldr	x1, [x26]
	lsl	w4, w23, #2
	mov	x2, x21
	mov	x3, x22
	ldr	w5, [sp, #36]                   ; 4-byte Folded Reload
	bl	_conv_rgba4444_argb8888
	ldr	x25, [x27]
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_53
; %bb.37:
	ldp	w3, w2, [x20, #104]
	mov	w0, #0
	mov	w1, #0
	bl	_glViewport
	ldr	w5, [x19, #48]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, x22
	mov	x6, x25
	bl	_draw_tex
	ldp	w1, w0, [x19, #60]
	ldp	w3, w2, [x19, #52]
	bl	_glViewport
LBB0_38:
	cbz	x28, LBB0_40
LBB0_39:
	mov	x0, x20
	mov	x1, #0
	mov	x2, x28
	mov	x3, #0
	bl	_font_driver_render_msg
LBB0_40:
	ldr	x8, [x20, #72]
	ldr	w0, [x20, #40]
	mov	x1, x20
	blr	x8
	ldr	x4, [x19, #32]
	cbz	x4, LBB0_42
; %bb.41:
Lloh56:
	adrp	x8, _GL_RGBA@GOTPAGE
Lloh57:
	ldr	x8, [x8, _GL_RGBA@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
Lloh59:
	adrp	x8, _GL_UNSIGNED_BYTE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _GL_UNSIGNED_BYTE@GOTPAGEOFF]
Lloh61:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w1, #4
	bl	_gl1_readback
LBB0_42:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_47
; %bb.43:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_47
; %bb.44:
	ldr	w8, [x20, #60]
	cbnz	w8, LBB0_47
; %bb.45:
	ldr	w8, [x20, #56]
	cbnz	w8, LBB0_47
; %bb.46:
	ldr	x8, [x20, #48]
	ldr	w0, [x20, #40]
	mov	x1, x20
	blr	x8
Lloh62:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh64:
	ldr	w0, [x8]
	bl	_glClear
LBB0_47:
	ldr	x8, [x20, #48]
	ldr	w0, [x20, #40]
	mov	x1, x20
	blr	x8
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_51
; %bb.48:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_51
; %bb.49:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_51
; %bb.50:
Lloh65:
	adrp	x8, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh66:
	ldr	x8, [x8, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	bl	_glClear
	bl	_glFinish
LBB0_51:
	mov	x0, x19
	mov	w1, #1
	bl	_gl1_context_bind_hw_render
LBB0_52:
	mov	w0, #1
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_53:
	ldr	w5, [x19, #48]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x21
	mov	x4, x22
	mov	x6, x25
	bl	_draw_tex
	cbnz	x28, LBB0_39
	b	LBB0_40
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_gl1_video_bits,4,2             ; @gl1_video_bits
	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_GL_BLEND,4,2                   ; @GL_BLEND
	.comm	_GL_SRC_ALPHA,4,2               ; @GL_SRC_ALPHA
	.comm	_GL_ONE_MINUS_SRC_ALPHA,4,2     ; @GL_ONE_MINUS_SRC_ALPHA
	.comm	_gl1_video_width,4,2            ; @gl1_video_width
	.comm	_gl1_video_height,4,2           ; @gl1_video_height
	.comm	_gl1_video_pitch,4,2            ; @gl1_video_pitch
	.comm	_gl1_video_buf,8,3              ; @gl1_video_buf
	.comm	_gl1_menu_frame,8,3             ; @gl1_menu_frame
	.comm	_gl1_menu_width,4,2             ; @gl1_menu_width
	.comm	_gl1_menu_height,4,2            ; @gl1_menu_height
	.comm	_gl1_menu_pitch,4,2             ; @gl1_menu_pitch
	.comm	_gl1_menu_bits,4,2              ; @gl1_menu_bits
	.comm	_gl1_menu_size_changed,4,2      ; @gl1_menu_size_changed
	.comm	_gl1_menu_video_buf,8,3         ; @gl1_menu_video_buf
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_GL_UNSIGNED_BYTE,4,2           ; @GL_UNSIGNED_BYTE
	.no_dead_strip	_gl1_gfx_frame
.subsections_via_symbols
