	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gx_frame
_gx_frame:                              ## @gx_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	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	_GX_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movb	$0, -176(%rbp)
	testq	%r12, %r12
	je	LBB0_42
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_42
LBB0_2:
	cmpq	$0, 56(%r12)
	je	LBB0_42
## %bb.3:
	movl	$4, %r14d
	movl	$4, %r13d
	testq	%rax, %rax
	je	LBB0_42
LBB0_5:
	movq	(%rax), %rcx
	cmpq	%rcx, (%r12)
	movl	%r15d, -308(%rbp)               ## 4-byte Spill
	movq	%rbx, -336(%rbp)                ## 8-byte Spill
	movl	%r13d, -320(%rbp)               ## 4-byte Spill
	jne	LBB0_6
## %bb.7:
	movq	8(%rax), %rdx
	cmpq	%rdx, 8(%r12)
	jne	LBB0_8
## %bb.9:
	cmpl	$0, 16(%r12)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_6:
	movq	8(%rax), %rdx
LBB0_8:
	movq	%rcx, (%r12)
	movq	%rdx, 8(%r12)
	movl	$1, 16(%r12)
LBB0_10:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_gx_resize
	movq	_GX_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_11:
	movl	%esi, -312(%rbp)                ## 4-byte Spill
	movq	_g_vsync@GOTPCREL(%rip), %rbx
	movq	_g_draw_done@GOTPCREL(%rip), %r13
	movq	_g_video_cond@GOTPCREL(%rip), %r15
	cmpq	$0, (%rbx)
	jne	LBB0_14
	.p2align	4, 0x90
LBB0_13:
	cmpq	$0, 56(%r12)
	je	LBB0_16
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%r13)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r15), %edi
	callq	_OSSleepThread
	cmpq	$0, (%rbx)
	jne	LBB0_14
	jmp	LBB0_13
LBB0_16:
	movq	_g_tex@GOTPCREL(%rip), %r15
	movl	12(%r15), %edi
	movl	%r14d, %esi
	callq	_MIN
	movl	%eax, %r14d
	movl	8(%r15), %edi
	movl	-320(%rbp), %esi                ## 4-byte Reload
	callq	_MIN
	movl	%eax, %r15d
	movq	_gx_old_width@GOTPCREL(%rip), %rax
	movq	_gx_old_height@GOTPCREL(%rip), %rcx
	cmpl	(%rax), %r14d
	jne	LBB0_18
## %bb.17:
	cmpl	(%rcx), %r15d
	je	LBB0_19
LBB0_18:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	callq	_init_texture
	movq	_gx_old_width@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movq	_gx_old_height@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
LBB0_19:
	movq	_g_current_framebuf@GOTPCREL(%rip), %rax
	xorb	$1, (%rax)
	movl	$0, (%r13)
	movq	-336(%rbp), %rdi                ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.20:
	cmpq	$0, 72(%r12)
	je	LBB0_22
## %bb.21:
	movq	_g_tex@GOTPCREL(%rip), %r13
	movl	4(%r13), %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	-308(%rbp), %r8d                ## 4-byte Reload
	callq	_convert_texture32
	jmp	LBB0_25
LBB0_22:
	cmpq	$0, 56(%r12)
	movq	_g_tex@GOTPCREL(%rip), %r13
	movl	4(%r13), %esi
	je	LBB0_24
## %bb.23:
	movl	%r14d, %edx
	movl	%r15d, %ecx
	movl	-308(%rbp), %r8d                ## 4-byte Reload
	callq	_convert_texture16_conv
	jmp	LBB0_25
LBB0_24:
	movl	-308(%rbp), %r8d                ## 4-byte Reload
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_convert_texture16
LBB0_25:
	cmpq	$1, 72(%r12)
	movl	4(%r13), %edi
	movb	$2, %cl
	sbbb	$0, %cl
	shll	%cl, %r14d
	imull	%r15d, %r14d
	movl	%r14d, %esi
	callq	_DCFlushRange
LBB0_26:
	cmpq	$0, 56(%r12)
	je	LBB0_29
## %bb.27:
	cmpq	$0, 24(%r12)
	je	LBB0_29
## %bb.28:
	leaq	-316(%rbp), %rdi
	leaq	-324(%rbp), %rsi
	leaq	-304(%rbp), %rdx
	callq	_menu_display_get_fb_size
	movq	24(%r12), %rdi
	movq	_menu_tex@GOTPCREL(%rip), %r14
	movl	4(%r14), %esi
	movl	-316(%rbp), %edx
	movl	-324(%rbp), %ecx
	movq	-304(%rbp), %r8
	callq	_convert_texture16
	movl	4(%r14), %edi
	movl	-316(%rbp), %esi
	imull	-304(%rbp), %esi
	callq	_DCFlushRange
LBB0_29:
	xorl	%eax, %eax
	callq	_GX_InvalidateTexAll
	movq	_GX_PNMTX0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GX_SetCurrentMtx
	movq	_GX_TEXMAP0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_g_tex@GOTPCREL(%rip), %rdi
	callq	_GX_LoadTexObj
	movq	_display_list@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_display_list_size@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_GX_CallDispList
	cmpq	$0, 56(%r12)
	je	LBB0_31
## %bb.30:
	movq	_GX_PNMTX1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GX_SetCurrentMtx
	movl	(%r14), %esi
	movq	_menu_tex@GOTPCREL(%rip), %rdi
	callq	_GX_LoadTexObj
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_GX_CallDispList
LBB0_31:
	xorl	%edi, %edi
	callq	__CPU_ISR_Disable
	movq	_referenceRetraceCount@GOTPCREL(%rip), %r13
	movq	_retraceCount@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	cmpq	%rax, (%r13)
	jle	LBB0_32
## %bb.33:
	cmpq	$0, (%rbx)
	movq	24(%rbp), %rbx
	je	LBB0_35
## %bb.34:
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
	movq	(%r14), %rax
	jmp	LBB0_35
LBB0_32:
	movq	24(%rbp), %rbx
LBB0_35:
	movq	%rax, (%r13)
	xorl	%edi, %edi
	callq	__CPU_ISR_Restore
	xorl	%eax, %eax
	callq	_GX_DrawDone
	cmpq	$0, (%rbx)
	je	LBB0_37
## %bb.36:
	movb	$0, -304(%rbp)
	leaq	-176(%rbp), %rcx
	movq	%r12, %rdi
	movl	$15, %esi
	movl	$35, %edx
	callq	_gx_blit_line
	movq	_FONT_HEIGHT@GOTPCREL(%rip), %rax
	cmpq	$1, 40(%r12)
	movl	$0, %ebx
	adcl	$1, %ebx
	imull	(%rax), %ebx
	addl	$35, %ebx
	movq	_SYSMEM1_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	xorl	%eax, %eax
	callq	_SYS_GetArena1Size
	subl	%eax, %r14d
	movl	(%r15), %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-304(%rbp), %r15
	movq	%r15, %rdi
	movl	$128, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	movq	%r12, %rdi
	movl	$15, %esi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_gx_blit_line
LBB0_37:
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_38
## %bb.39:
	cmpq	$0, 56(%r12)
	movq	_g_current_framebuf@GOTPCREL(%rip), %rbx
	jne	LBB0_41
## %bb.40:
	xorl	%eax, %eax
	cmpq	$1, 40(%r12)
	adcl	$1, %eax
	leal	(,%rax,8), %esi
	subl	%eax, %esi
	imull	$-35, %eax, %edx
	addl	48(%r12), %edx
	movq	%r12, %rdi
	callq	_gx_blit_line
	movq	_GX_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -312(%rbp)                ## 4-byte Spill
	jmp	LBB0_41
LBB0_38:
	movq	_g_current_framebuf@GOTPCREL(%rip), %rbx
LBB0_41:
	movq	32(%r12), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	-312(%rbp), %esi                ## 4-byte Reload
	callq	_GX_CopyDisp
	xorl	%eax, %eax
	callq	_GX_Flush
	movq	32(%r12), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_VIDEO_SetNextFramebuffer
	xorl	%eax, %eax
	callq	_VIDEO_Flush
	xorl	%edi, %edi
	callq	__CPU_ISR_Disable
	incq	(%r13)
	xorl	%edi, %edi
	callq	__CPU_ISR_Restore
LBB0_42:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_44
## %bb.43:
	movl	$1, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
	.comm	_GX_TRUE,4,2                    ## @GX_TRUE
	.comm	_g_vsync,8,3                    ## @g_vsync
	.comm	_g_draw_done,4,2                ## @g_draw_done
	.comm	_g_video_cond,4,2               ## @g_video_cond
	.comm	_g_tex,16,2                     ## @g_tex
	.comm	_gx_old_width,4,2               ## @gx_old_width
	.comm	_gx_old_height,4,2              ## @gx_old_height
	.comm	_g_current_framebuf,4,2         ## @g_current_framebuf
	.comm	_menu_tex,8,2                   ## @menu_tex
	.comm	_GX_PNMTX0,4,2                  ## @GX_PNMTX0
	.comm	_GX_TEXMAP0,4,2                 ## @GX_TEXMAP0
	.comm	_display_list,4,2               ## @display_list
	.comm	_display_list_size,4,2          ## @display_list_size
	.comm	_GX_PNMTX1,4,2                  ## @GX_PNMTX1
	.comm	_referenceRetraceCount,8,3      ## @referenceRetraceCount
	.comm	_retraceCount,8,3               ## @retraceCount
	.comm	_FONT_HEIGHT,4,2                ## @FONT_HEIGHT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MEM1: %8d / %8d"

	.comm	_SYSMEM1_SIZE,4,2               ## @SYSMEM1_SIZE
	.no_dead_strip	_gx_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gx_frame
_gx_frame:                              ; @gx_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #400
	.cfi_def_cfa_offset 400
	stp	x28, x27, [sp, #304]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #320]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #336]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #352]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #368]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #384]            ; 16-byte Folded Spill
	add	x29, sp, #384
	.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	x22, x7
	mov	x20, x6
	mov	x23, x5
	mov	x25, x3
	mov	x26, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	bl	_config_get_ptr
Lloh3:
	adrp	x8, _GX_FALSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GX_FALSE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x8]
	strb	wzr, [sp, #160]
	cbz	x19, LBB0_42
; %bb.1:
	mov	x1, x0
	cbz	x24, LBB0_3
; %bb.2:
	cbnz	x1, LBB0_6
	b	LBB0_42
LBB0_3:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_42
; %bb.4:
	cbz	x1, LBB0_42
; %bb.5:
	mov	w26, #4
	mov	w25, #4
LBB0_6:
	ldr	x9, [x19]
	ldr	x8, [x1]
Lloh6:
	adrp	x21, _GX_TRUE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _GX_TRUE@GOTPAGEOFF]
	cmp	x9, x8
	stp	x20, x22, [sp, #8]              ; 16-byte Folded Spill
	b.ne	LBB0_10
; %bb.7:
	ldr	x10, [x19, #8]
	ldr	x9, [x1, #8]
	cmp	x10, x9
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_12
; %bb.9:
	str	w11, [sp, #4]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_10:
	ldr	x9, [x1, #8]
LBB0_11:
	stp	x8, x9, [x19]
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_12:
	mov	x0, x19
	bl	_gx_resize
	ldr	w8, [x21]
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
LBB0_13:
Lloh8:
	adrp	x27, _g_vsync@GOTPAGE
Lloh9:
	ldr	x27, [x27, _g_vsync@GOTPAGEOFF]
Lloh10:
	adrp	x20, _g_draw_done@GOTPAGE
Lloh11:
	ldr	x20, [x20, _g_draw_done@GOTPAGEOFF]
Lloh12:
	adrp	x28, _g_video_cond@GOTPAGE
Lloh13:
	ldr	x28, [x28, _g_video_cond@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #56]
	ldr	w9, [x20]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x28]
	bl	_OSSleepThread
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	cbz	x8, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_15
LBB0_18:
Lloh14:
	adrp	x28, _g_tex@GOTPAGE
Lloh15:
	ldr	x28, [x28, _g_tex@GOTPAGEOFF]
	ldr	w0, [x28, #12]
	mov	x1, x26
	bl	_MIN
	mov	x26, x0
	ldr	w0, [x28, #8]
	mov	x1, x25
	bl	_MIN
	mov	x25, x0
Lloh16:
	adrp	x22, _gx_old_width@GOTPAGE
Lloh17:
	ldr	x22, [x22, _gx_old_width@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh18:
	adrp	x21, _gx_old_height@GOTPAGE
Lloh19:
	ldr	x21, [x21, _gx_old_height@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w26, w8
	ccmp	w0, w9, #0, eq
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	bl	_init_texture
	str	w26, [x22]
	str	w25, [x21]
LBB0_20:
	str	wzr, [x20]
Lloh20:
	adrp	x21, _g_current_framebuf@GOTPAGE
Lloh21:
	ldr	x21, [x21, _g_current_framebuf@GOTPAGEOFF]
	ldr	w8, [x21]
	eor	w8, w8, #0x1
	str	w8, [x21]
	cbz	x24, LBB0_27
; %bb.21:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_23
; %bb.22:
	ldr	w1, [x28, #4]
	mov	x0, x24
	mov	x2, x26
	mov	x3, x25
	mov	x4, x23
	bl	_convert_texture32
	b	LBB0_26
LBB0_23:
	ldr	x8, [x19, #56]
	ldr	w1, [x28, #4]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x24
	mov	x2, x26
	mov	x3, x25
	mov	x4, x23
	bl	_convert_texture16_conv
	b	LBB0_26
LBB0_25:
	mov	w4, w23
	mov	x0, x24
	mov	x2, x26
	mov	x3, x25
	bl	_convert_texture16
LBB0_26:
	ldr	w0, [x28, #4]
	ldr	x8, [x19, #72]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, ne
	lsl	w8, w26, w8
	mul	w1, w8, w25
	bl	_DCFlushRange
LBB0_27:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_30
; %bb.28:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_30
; %bb.29:
	add	x0, sp, #28
	add	x1, sp, #24
	add	x2, sp, #32
	bl	_menu_display_get_fb_size
	ldr	x0, [x19, #24]
Lloh22:
	adrp	x20, _menu_tex@GOTPAGE
Lloh23:
	ldr	x20, [x20, _menu_tex@GOTPAGEOFF]
	ldr	w1, [x20, #4]
	ldp	w3, w2, [sp, #24]
	ldr	x4, [sp, #32]
	bl	_convert_texture16
	ldr	w0, [x20, #4]
	ldp	w8, w9, [sp, #28]
	mul	w1, w8, w9
	bl	_DCFlushRange
LBB0_30:
	bl	_GX_InvalidateTexAll
Lloh24:
	adrp	x8, _GX_PNMTX0@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GX_PNMTX0@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_GX_SetCurrentMtx
Lloh27:
	adrp	x20, _GX_TEXMAP0@GOTPAGE
Lloh28:
	ldr	x20, [x20, _GX_TEXMAP0@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh29:
	adrp	x0, _g_tex@GOTPAGE
Lloh30:
	ldr	x0, [x0, _g_tex@GOTPAGEOFF]
	bl	_GX_LoadTexObj
Lloh31:
	adrp	x23, _display_list@GOTPAGE
Lloh32:
	ldr	x23, [x23, _display_list@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh33:
	adrp	x24, _display_list_size@GOTPAGE
Lloh34:
	ldr	x24, [x24, _display_list_size@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_GX_CallDispList
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_32
; %bb.31:
Lloh35:
	adrp	x8, _GX_PNMTX1@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GX_PNMTX1@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_GX_SetCurrentMtx
	ldr	w1, [x20]
Lloh38:
	adrp	x0, _menu_tex@GOTPAGE
Lloh39:
	ldr	x0, [x0, _menu_tex@GOTPAGEOFF]
	bl	_GX_LoadTexObj
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_GX_CallDispList
LBB0_32:
	mov	w0, #0
	bl	__CPU_ISR_Disable
Lloh40:
	adrp	x23, _referenceRetraceCount@GOTPAGE
Lloh41:
	ldr	x23, [x23, _referenceRetraceCount@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh42:
	adrp	x20, _retraceCount@GOTPAGE
Lloh43:
	ldr	x20, [x20, _retraceCount@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x9, x8
	b.le	LBB0_35
; %bb.33:
	ldr	x9, [x27]
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w25, [sp, #4]                   ; 4-byte Folded Reload
Lloh44:
	adrp	x26, _GX_TRUE@GOTPAGE
Lloh45:
	ldr	x26, [x26, _GX_TRUE@GOTPAGEOFF]
	cbz	x9, LBB0_36
; %bb.34:
	bl	_VIDEO_WaitVSync
	ldr	x8, [x20]
	b	LBB0_36
LBB0_35:
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w25, [sp, #4]                   ; 4-byte Folded Reload
Lloh46:
	adrp	x26, _GX_TRUE@GOTPAGE
Lloh47:
	ldr	x26, [x26, _GX_TRUE@GOTPAGEOFF]
LBB0_36:
	str	x8, [x23]
	mov	w0, #0
	bl	__CPU_ISR_Restore
	bl	_GX_DrawDone
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	cbz	x8, LBB0_38
; %bb.37:
	strb	wzr, [sp, #32]
	add	x3, sp, #160
	mov	x0, x19
	mov	w1, #15
	mov	w2, #35
	bl	_gx_blit_line
Lloh48:
	adrp	x8, _FONT_HEIGHT@GOTPAGE
Lloh49:
	ldr	x8, [x8, _FONT_HEIGHT@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	x9, [x19, #40]
	cmp	x9, #0
	mov	w9, #1
	cinc	w9, w9, eq
	mul	w8, w9, w8
	add	w22, w8, #35
Lloh51:
	adrp	x20, _SYSMEM1_SIZE@GOTPAGE
Lloh52:
	ldr	x20, [x20, _SYSMEM1_SIZE@GOTPAGEOFF]
	mov	x27, x21
	ldr	w21, [x20]
	bl	_SYS_GetArena1Size
	sub	w3, w21, w0
	mov	x21, x27
	ldr	w4, [x20]
Lloh53:
	adrp	x2, l_.str@PAGE
Lloh54:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #32
	mov	w1, #128
	bl	_snprintf
	add	x3, sp, #32
	mov	x0, x19
	mov	w1, #15
	mov	x2, x22
	bl	_gx_blit_line
LBB0_38:
	cbz	x24, LBB0_41
; %bb.39:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_41
; %bb.40:
	ldr	x8, [x19, #40]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, eq
	lsl	w9, w8, #3
	sub	w1, w9, w8
	ldr	w9, [x19, #48]
	mov	w10, #-35
	madd	w2, w8, w10, w9
	mov	x0, x19
	mov	x3, x24
	bl	_gx_blit_line
	ldr	w25, [x26]
LBB0_41:
	ldr	x8, [x19, #32]
	ldrsw	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x25
	bl	_GX_CopyDisp
	bl	_GX_Flush
	ldr	x8, [x19, #32]
	ldrsw	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	bl	_VIDEO_SetNextFramebuffer
	bl	_VIDEO_Flush
	mov	w0, #0
	bl	__CPU_ISR_Disable
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	mov	w0, #0
	bl	__CPU_ISR_Restore
LBB0_42:
	ldur	x8, [x29, #-96]
Lloh55:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh56:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh57:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
	mov	w0, #1
	ldp	x29, x30, [sp, #384]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #368]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #352]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #336]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #320]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #304]            ; 16-byte Folded Reload
	add	sp, sp, #400
	ret
LBB0_44:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
	.comm	_GX_TRUE,4,2                    ; @GX_TRUE
	.comm	_g_vsync,8,3                    ; @g_vsync
	.comm	_g_draw_done,4,2                ; @g_draw_done
	.comm	_g_video_cond,4,2               ; @g_video_cond
	.comm	_g_tex,16,2                     ; @g_tex
	.comm	_gx_old_width,4,2               ; @gx_old_width
	.comm	_gx_old_height,4,2              ; @gx_old_height
	.comm	_g_current_framebuf,4,2         ; @g_current_framebuf
	.comm	_menu_tex,8,2                   ; @menu_tex
	.comm	_GX_PNMTX0,4,2                  ; @GX_PNMTX0
	.comm	_GX_TEXMAP0,4,2                 ; @GX_TEXMAP0
	.comm	_display_list,4,2               ; @display_list
	.comm	_display_list_size,4,2          ; @display_list_size
	.comm	_GX_PNMTX1,4,2                  ; @GX_PNMTX1
	.comm	_referenceRetraceCount,8,3      ; @referenceRetraceCount
	.comm	_retraceCount,8,3               ; @retraceCount
	.comm	_FONT_HEIGHT,4,2                ; @FONT_HEIGHT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MEM1: %8d / %8d"

	.comm	_SYSMEM1_SIZE,4,2               ; @SYSMEM1_SIZE
	.no_dead_strip	_gx_frame
.subsections_via_symbols
