	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gx_set_video_mode
LCPI0_0:
	.long	0x3fcccccd                      ## float 1.60000002
LCPI0_1:
	.long	0x3fe38e39                      ## float 1.77777779
LCPI0_2:
	.long	0x3faaaaab                      ## float 1.33333337
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2
LCPI0_3:
	.long	0x42480000                      ## float 50
	.long	0x42485206                      ## float 50.080101
LCPI0_4:
	.long	0x426fc28f                      ## float 59.9399986
	.long	0x426f4ded                      ## float 59.8260994
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gx_set_video_mode:                     ## @gx_set_video_mode
	.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	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %rbx
	xorl	%edi, %edi
	callq	_VIDEO_SetPostRetraceCallback
	movq	_g_draw_done@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
	xorl	%eax, %eax
	callq	_VIDEO_GetNextField
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$1, %edi
	callq	_VIDEO_SetBlack
	xorl	%eax, %eax
	callq	_VIDEO_Flush
	movl	(%rbx), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_VIDEO_HaveComponentCable
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_VIDEO_GetCurrentTvMode
	movl	%eax, %r12d
	leal	-128(%r12), %eax
	cmpl	$3, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_3
## %bb.4:
	movslq	%eax, %rcx
	leaq	l_switch.table.gx_set_video_mode(%rip), %rax
	movq	(%rax,%rcx,8), %rax
	leaq	l_switch.table.gx_set_video_mode.3(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	jmp	LBB0_5
LBB0_3:
	movq	_VI_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_VI_MAX_HEIGHT_NTSC@GOTPCREL(%rip), %rcx
	movq	_VI_MAX_WIDTH_NTSC@GOTPCREL(%rip), %rax
LBB0_5:
	movl	%r14d, %edx
	movl	(%rax), %r14d
	movl	(%rcx), %r15d
	movq	_max_height@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.6:
	testl	%edx, %edx
	jne	LBB0_8
LBB0_7:
	leaq	-80(%rbp), %rdi
	callq	_VIDEO_GetPreferredMode
	movl	-80(%rbp), %r13d
	movl	-76(%rbp), %edx
	movq	_max_height@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	shrl	$31, %eax
	addl	%r15d, %eax
	sarl	%eax
	cmpl	%eax, %edx
	jbe	LBB0_9
## %bb.10:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.12:
	movq	_VI_INTERLACE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movq	_VI_NON_INTERLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %ebx
	jmp	LBB0_14
LBB0_11:
	movq	_VI_PROGRESSIVE@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %esi
	movl	$1, %ebx
LBB0_14:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r15d, %edx
	cmovbl	%edx, %r15d
	cmpl	%r14d, %r13d
	cmovael	%r14d, %r13d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_VI_TVMODE
	movq	_gx_mode@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movl	%r13d, 4(%r12)
	movl	%r15d, %edi
	movl	$480, %esi                      ## imm = 0x1E0
	callq	_MIN
	movl	%eax, 8(%r12)
	movq	_VI_NON_INTERLACE@GOTPCREL(%rip), %rdx
	movq	_max_height@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rdx), %ecx
	jne	LBB0_16
## %bb.15:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, %eax
	cmpl	%ecx, %r15d
	jbe	LBB0_17
	jmp	LBB0_18
LBB0_16:
	cmpl	%eax, %r15d
	ja	LBB0_18
LBB0_17:
	movl	%r15d, %eax
LBB0_18:
	movl	%eax, 12(%r12)
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%esi, 16(%r12)
	imull	%ebx, %eax
	movl	%eax, 20(%r12)
	movq	_gx_system_xOrigin@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leal	(%rsi,%rax), %ecx
	movl	$720, %edx                      ## imm = 0x2D0
	subl	%esi, %edx
	cmpl	$721, %ecx                      ## imm = 0x2D1
	cmovbl	%eax, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	_gx_used_system_xOrigin@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	subl	%esi, %r14d
	shrl	%r14d
	testq	%rax, %rax
	jle	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_gx_isValidXOrigin
	decl	%r14d
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	incl	%r14d
	jmp	LBB0_24
LBB0_21:
	jns	LBB0_24
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_gx_isValidXOrigin
	incl	%r14d
	testq	%rax, %rax
	je	LBB0_22
## %bb.23:
	decl	%r14d
LBB0_24:
	movq	_gx_xOrigin@GOTPCREL(%rip), %rcx
	movl	%r14d, 24(%r12)
	movl	(%r13), %eax
	subl	20(%r12), %eax
	movl	%r14d, (%rcx)
	addl	%ebx, %ebx
	xorl	%edx, %edx
	divl	%ebx
	movq	_gx_yOrigin@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, 28(%r12)
	movq	_gx_xOriginNeg@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_gx_xOriginPos@GOTPCREL(%rip), %r15
	movl	$0, (%r15)
	decl	%r14d
	movl	%r14d, %edi
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	callq	_gx_isValidXOrigin
	testq	%rax, %rax
	je	LBB0_26
## %bb.53:                              ##   in Loop: Header=BB0_25 Depth=1
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	24(%r12), %ecx
	leal	(%rcx,%rax), %edi
	addl	$-2, %edi
	jmp	LBB0_25
LBB0_26:
	movl	24(%r12), %eax
	movl	(%r15), %ecx
	leal	(%rax,%rcx), %edi
	incl	%edi
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	callq	_gx_isValidXOrigin
	testq	%rax, %rax
	je	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_28 Depth=1
	movl	(%r15), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movl	24(%r12), %ecx
	leal	(%rcx,%rax), %edi
	addl	$2, %edi
	jmp	LBB0_28
LBB0_29:
	movq	_gx_yOriginNeg@GOTPCREL(%rip), %rbx
	movl	$0, (%rbx)
	movq	_gx_yOriginPos@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movl	28(%r12), %edi
	decl	%edi
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	callq	_gx_isValidYOrigin
	testq	%rax, %rax
	je	LBB0_31
## %bb.54:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	(%rbx), %eax
	leal	-1(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	28(%r12), %ecx
	leal	(%rcx,%rax), %edi
	addl	$-2, %edi
	jmp	LBB0_30
LBB0_31:
	movl	28(%r12), %eax
	movl	(%r14), %ecx
	leal	(%rax,%rcx), %edi
	incl	%edi
	callq	_gx_isValidYOrigin
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	movl	28(%r12), %ecx
	leal	(%rcx,%rax), %edi
	addl	$2, %edi
	callq	_gx_isValidYOrigin
	testq	%rax, %rax
	jne	LBB0_32
LBB0_33:
	movq	_VI_INTERLACE@GOTPCREL(%rip), %r13
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	(%r13), %edi
	jne	LBB0_34
## %bb.35:
	movq	_VI_XFBMODE_DF@GOTPCREL(%rip), %rax
	jmp	LBB0_36
LBB0_34:
	movq	_VI_XFBMODE_SF@GOTPCREL(%rip), %rax
LBB0_36:
	movq	_VI_NON_INTERLACE@GOTPCREL(%rip), %rbx
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	_GX_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 48(%r12)
	movq	%rax, 56(%r12)
	movq	32(%r12), %rax
	movq	(%rax), %rcx
	movabsq	$25769803782, %rdx              ## imm = 0x600000006
	movq	%rdx, (%rcx)
	movq	8(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	16(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	24(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	32(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	40(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	48(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	56(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	64(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	72(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	80(%rax), %rcx
	movq	%rdx, (%rcx)
	movq	88(%rax), %rax
	movq	%rdx, (%rax)
	cmpl	(%rbx), %edi
	je	LBB0_39
## %bb.37:
	cmpq	$0, 8(%r15)
	je	LBB0_39
## %bb.38:
	movq	40(%r12), %rax
	movl	$8, (%rax)
	movl	$12, %ecx
	movl	$10, %esi
	movl	$8, %edx
	jmp	LBB0_40
LBB0_39:
	movq	40(%r12), %rax
	movl	$0, (%rax)
	movl	$22, %ecx
	movl	$21, %esi
	xorl	%edx, %edx
LBB0_40:
	movl	%edx, 4(%rax)
	movl	%esi, 8(%rax)
	movl	%ecx, 12(%rax)
	movl	%esi, 16(%rax)
	movl	%edx, 20(%rax)
	movl	%edx, 24(%rax)
	movl	4(%r12), %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 16(%rdx)
	movl	12(%r12), %eax
	movl	%eax, 20(%rdx)
	xorl	%ecx, %ecx
	cmpl	(%rbx), %edi
	sete	%cl
	movl	%ecx, (%rdx)
	movl	$1, 4(%rdx)
	movl	8(%r12), %eax
	movl	$2, %esi
	subl	%ecx, %esi
	cltd
	idivl	%esi
	andl	$-4, %eax
	cmpl	$240, %eax
	movl	$240, %r14d
	cmovbl	%eax, %r14d
	movl	4(%r15), %ecx
	leal	-133(%rcx), %edx
	cmpl	$2, %edx
	jb	LBB0_44
## %bb.41:
	addl	$-131, %ecx
	cmpl	$1, %ecx
	ja	LBB0_46
## %bb.42:
	movl	$424, %ecx                      ## imm = 0x1A8
	cmpl	$239, %eax
	ja	LBB0_49
## %bb.43:
	movl	%r14d, %eax
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	jmp	LBB0_48
LBB0_44:
	movl	$384, %ecx                      ## imm = 0x180
	cmpl	$239, %eax
	ja	LBB0_49
## %bb.45:
	movl	%r14d, %eax
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	jmp	LBB0_48
LBB0_46:
	movl	$320, %ecx                      ## imm = 0x140
	cmpl	$239, %eax
	ja	LBB0_49
## %bb.47:
	movl	%r14d, %eax
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_2(%rip), %xmm0
LBB0_48:
	cvttss2si	%xmm0, %rcx
	andl	$-4, %ecx
LBB0_49:
	cmpl	$424, %ecx                      ## imm = 0x1A8
	movl	$424, %edi                      ## imm = 0x1A8
	cmovbl	%ecx, %edi
	leal	(%rdi,%rdi), %r15d
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_menu_display_set_width
	movl	%r14d, %edi
	callq	_menu_display_set_height
	movq	%r15, %rdi
	callq	_menu_display_set_framebuffer_pitch
	movl	4(%r12), %edx
	movl	8(%r12), %ecx
	movl	$1, (%rsp)
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_GX_SetViewportJitter
	movl	4(%r12), %edx
	movl	8(%r12), %ecx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_GX_SetDispCopySrc
	movl	8(%r12), %edi
	movl	12(%r12), %esi
	callq	_GX_GetYScaleFactor
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movl	4(%r12), %edi
	callq	_VIDEO_PadFramebufferWidth
	movq	%rax, %r14
	cvttss2si	-56(%rbp), %edi         ## 4-byte Folded Reload
	callq	_GX_SetDispCopyYScale
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_GX_SetDispCopyDst
	movq	56(%r12), %rdi
	movq	_GX_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	32(%r12), %rsi
	movq	40(%r12), %rcx
	callq	_GX_SetCopyFilter
	movq	_GX_MAX_Z24@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movabsq	$1095216660480, %rsi            ## imm = 0xFF00000000
	xorl	%edi, %edi
	callq	_GX_SetCopyClear
	movq	48(%r12), %rdi
	movl	12(%r12), %eax
	addl	%eax, %eax
	cmpl	%eax, 20(%r12)
	jne	LBB0_50
## %bb.51:
	movq	_GX_ENABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_52
LBB0_50:
	movq	_GX_DISABLE@GOTPCREL(%rip), %rax
LBB0_52:
	movl	(%rax), %esi
	callq	_GX_SetFieldMode
	movq	_GX_PF_RGB8_Z24@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GX_ZC_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GX_SetPixelFmt
	xorl	%eax, %eax
	callq	_GX_InvalidateTexAll
	xorl	%eax, %eax
	callq	_GX_Flush
	movq	%r12, %rdi
	callq	_VIDEO_Configure
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	_COLOR_BLACK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_VIDEO_ClearFrameBuffer
	movq	8(%rbx), %rax
	movl	4(%rax), %esi
	movl	(%r14), %edx
	movq	%r12, %rdi
	callq	_VIDEO_ClearFrameBuffer
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_VIDEO_SetNextFramebuffer
	movq	_g_current_framebuf@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_retrace_callback@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_VIDEO_SetPostRetraceCallback
	xorl	%edi, %edi
	callq	_VIDEO_SetBlack
	xorl	%eax, %eax
	callq	_VIDEO_Flush
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
	movl	(%r12), %eax
	movl	4(%r12), %esi
	movl	8(%r12), %edx
	andl	$3, %eax
	cmpl	(%r13), %eax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_LOG
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	_VI_NON_INTERLACE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	sete	%al
	cmpl	$128, -96(%rbp)                 ## 4-byte Folded Reload
	leaq	LCPI0_3(%rip), %rcx
	leaq	LCPI0_4(%rip), %rdx
	cmoveq	%rcx, %rdx
	movss	(%rdx,%rax,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -60(%rbp)
	movq	_RARCH_DRIVER_CTL_SET_REFRESH_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-60(%rbp), %rsi
	callq	_driver_ctl
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_draw_done,4,2                ## @g_draw_done
	.comm	_VI_MAX_WIDTH_PAL,4,2           ## @VI_MAX_WIDTH_PAL
	.comm	_VI_MAX_HEIGHT_PAL,4,2          ## @VI_MAX_HEIGHT_PAL
	.comm	_max_height,4,2                 ## @max_height
	.comm	_VI_MAX_WIDTH_MPAL,4,2          ## @VI_MAX_WIDTH_MPAL
	.comm	_VI_MAX_HEIGHT_MPAL,4,2         ## @VI_MAX_HEIGHT_MPAL
	.comm	_VI_MAX_WIDTH_EURGB60,4,2       ## @VI_MAX_WIDTH_EURGB60
	.comm	_VI_MAX_HEIGHT_EURGB60,4,2      ## @VI_MAX_HEIGHT_EURGB60
	.comm	_VI_NTSC,4,2                    ## @VI_NTSC
	.comm	_VI_MAX_WIDTH_NTSC,4,2          ## @VI_MAX_WIDTH_NTSC
	.comm	_VI_MAX_HEIGHT_NTSC,4,2         ## @VI_MAX_HEIGHT_NTSC
	.comm	_VI_NON_INTERLACE,4,2           ## @VI_NON_INTERLACE
	.comm	_VI_PROGRESSIVE,4,2             ## @VI_PROGRESSIVE
	.comm	_VI_INTERLACE,4,2               ## @VI_INTERLACE
	.comm	_gx_mode,72,3                   ## @gx_mode
	.comm	_gx_system_xOrigin,8,3          ## @gx_system_xOrigin
	.comm	_gx_used_system_xOrigin,4,2     ## @gx_used_system_xOrigin
	.comm	_gx_xOrigin,4,2                 ## @gx_xOrigin
	.comm	_gx_yOrigin,4,2                 ## @gx_yOrigin
	.comm	_gx_xOriginNeg,4,2              ## @gx_xOriginNeg
	.comm	_gx_xOriginPos,4,2              ## @gx_xOriginPos
	.comm	_gx_yOriginNeg,4,2              ## @gx_yOriginNeg
	.comm	_gx_yOriginPos,4,2              ## @gx_yOriginPos
	.comm	_VI_XFBMODE_DF,4,2              ## @VI_XFBMODE_DF
	.comm	_VI_XFBMODE_SF,4,2              ## @VI_XFBMODE_SF
	.comm	_GX_FALSE,8,3                   ## @GX_FALSE
	.comm	_GX_TRUE,4,2                    ## @GX_TRUE
	.comm	_GX_MAX_Z24,4,2                 ## @GX_MAX_Z24
	.comm	_GX_ENABLE,4,2                  ## @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ## @GX_DISABLE
	.comm	_GX_PF_RGB8_Z24,4,2             ## @GX_PF_RGB8_Z24
	.comm	_GX_ZC_LINEAR,4,2               ## @GX_ZC_LINEAR
	.comm	_COLOR_BLACK,4,2                ## @COLOR_BLACK
	.comm	_g_current_framebuf,8,3         ## @g_current_framebuf
	.comm	_retrace_callback,8,3           ## @retrace_callback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[GX]: Resolution: %dx%d (%s)\n"

L_.str.1:                               ## @.str.1
	.asciz	"interlaced"

L_.str.2:                               ## @.str.2
	.asciz	"progressive"

	.comm	_RARCH_DRIVER_CTL_SET_REFRESH_RATE,4,2 ## @RARCH_DRIVER_CTL_SET_REFRESH_RATE
	.no_dead_strip	_gx_set_video_mode
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.gx_set_video_mode
l_switch.table.gx_set_video_mode:
	.quad	_VI_MAX_WIDTH_PAL
	.quad	_VI_MAX_WIDTH_MPAL
	.quad	_VI_MAX_WIDTH_EURGB60

	.p2align	3                               ## @switch.table.gx_set_video_mode.3
l_switch.table.gx_set_video_mode.3:
	.quad	_VI_MAX_HEIGHT_PAL
	.quad	_VI_MAX_HEIGHT_MPAL
	.quad	_VI_MAX_HEIGHT_EURGB60

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function gx_set_video_mode
lCPI0_0:
	.long	10                              ; 0xa
	.long	12                              ; 0xc
lCPI0_1:
	.long	21                              ; 0x15
	.long	22                              ; 0x16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_gx_set_video_mode:                     ; @gx_set_video_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x24, x2
	mov	x22, x1
	mov	x20, x0
	bl	_config_get_ptr
	mov	x27, x0
	mov	x0, #0
	bl	_VIDEO_SetPostRetraceCallback
Lloh0:
	adrp	x8, _g_draw_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _g_draw_done@GOTPAGEOFF]
Lloh2:
	str	wzr, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_VIDEO_WaitVSync
	bl	_VIDEO_GetNextField
	cbz	w0, LBB0_1
; %bb.2:
	mov	w0, #1
	bl	_VIDEO_SetBlack
	bl	_VIDEO_Flush
	ldr	w28, [x27]
	bl	_VIDEO_HaveComponentCable
	mov	x21, x0
	bl	_VIDEO_GetCurrentTvMode
	sub	w8, w0, #128
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.3:
	sbfiz	x9, x8, #3, #32
Lloh3:
	adrp	x8, l_switch.table.gx_set_video_mode@PAGE
Lloh4:
	add	x8, x8, l_switch.table.gx_set_video_mode@PAGEOFF
	ldr	x8, [x8, x9]
Lloh5:
	adrp	x10, l_switch.table.gx_set_video_mode.3@PAGE
Lloh6:
	add	x10, x10, l_switch.table.gx_set_video_mode.3@PAGEOFF
	ldr	x9, [x10, x9]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _VI_NTSC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VI_NTSC@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x9, _VI_MAX_HEIGHT_NTSC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VI_MAX_HEIGHT_NTSC@GOTPAGEOFF]
Lloh12:
	adrp	x8, _VI_MAX_WIDTH_NTSC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VI_MAX_WIDTH_NTSC@GOTPAGEOFF]
LBB0_5:
	ldr	w25, [x8]
	ldr	w8, [x9]
Lloh14:
	adrp	x9, _max_height@GOTPAGE
Lloh15:
	ldr	x9, [x9, _max_height@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
	cbz	w22, LBB0_7
; %bb.6:
	cbnz	w24, LBB0_8
LBB0_7:
	mov	x19, x0
	add	x0, sp, #16
	bl	_VIDEO_GetPreferredMode
	mov	x0, x19
	ldp	w22, w24, [sp, #16]
Lloh17:
	adrp	x8, _max_height@GOTPAGE
Lloh18:
	ldr	x8, [x8, _max_height@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
LBB0_8:
	cmp	w8, #0
	cinc	w9, w8, lt
	cmp	w24, w9, asr #1
Lloh20:
	adrp	x23, _VI_NON_INTERLACE@GOTPAGE
Lloh21:
	ldr	x23, [x23, _VI_NON_INTERLACE@GOTPAGEOFF]
Lloh22:
	adrp	x10, _VI_INTERLACE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _VI_INTERLACE@GOTPAGEOFF]
	b.ls	LBB0_10
; %bb.9:
Lloh24:
	adrp	x9, _VI_PROGRESSIVE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VI_PROGRESSIVE@GOTPAGEOFF]
	cmp	w21, #0
	csel	x9, x10, x9, eq
	ldr	w21, [x9]
	mov	w26, #1
	b	LBB0_11
LBB0_10:
	ldr	w21, [x23]
	mov	w26, #2
LBB0_11:
	cmp	w24, w8
	csel	w24, w24, w8, lo
	cmp	w22, w25
	csel	w19, w22, w25, lo
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x1, x21
	bl	_VI_TVMODE
Lloh26:
	adrp	x22, _gx_mode@GOTPAGE
Lloh27:
	ldr	x22, [x22, _gx_mode@GOTPAGEOFF]
	stp	w0, w19, [x22]
	mov	x0, x24
	mov	w1, #480
	bl	_MIN
	str	w0, [x22, #8]
	ldr	w9, [x23]
Lloh28:
	adrp	x8, _max_height@GOTPAGE
Lloh29:
	ldr	x8, [x8, _max_height@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w21, w9
	mov	x19, x23
	b.ne	LBB0_13
; %bb.12:
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
LBB0_13:
	cmp	w24, w8
	b.hi	LBB0_15
; %bb.14:
	mov	x8, x24
LBB0_15:
	stp	w8, w28, [x22, #12]
	mul	w8, w8, w26
	str	w8, [x22, #20]
Lloh31:
	adrp	x8, _gx_system_xOrigin@GOTPAGE
Lloh32:
	ldr	x8, [x8, _gx_system_xOrigin@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	add	w9, w28, w8
	mov	w10, #720
	sub	w10, w10, w28
	cmp	w9, #720
	ccmp	w8, #0, #4, hi
	csel	w9, w10, w8, ne
Lloh34:
	adrp	x10, _gx_used_system_xOrigin@GOTPAGE
Lloh35:
	ldr	x10, [x10, _gx_used_system_xOrigin@GOTPAGEOFF]
Lloh36:
	str	w9, [x10]
	sub	w9, w25, w28
	lsr	w24, w9, #1
	cmp	x8, #1
	b.lt	LBB0_18
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_gx_isValidXOrigin
	sub	w24, w24, #1
	cbz	x0, LBB0_16
; %bb.17:
	add	w24, w24, #1
	b	LBB0_21
LBB0_18:
	tbz	x8, #63, LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_gx_isValidXOrigin
	add	w24, w24, #1
	cbz	x0, LBB0_19
; %bb.20:
	sub	w24, w24, #1
LBB0_21:
Lloh37:
	adrp	x8, _gx_xOrigin@GOTPAGE
Lloh38:
	ldr	x8, [x8, _gx_xOrigin@GOTPAGEOFF]
Lloh39:
	str	w24, [x8]
Lloh40:
	adrp	x8, _max_height@GOTPAGE
Lloh41:
	ldr	x8, [x8, _max_height@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x22, #20]
	sub	w8, w8, w9
	lsl	w9, w26, #1
	udiv	w8, w8, w9
Lloh43:
	adrp	x9, _gx_yOrigin@GOTPAGE
Lloh44:
	ldr	x9, [x9, _gx_yOrigin@GOTPAGEOFF]
Lloh45:
	str	w8, [x9]
Lloh46:
	adrp	x26, _gx_xOriginNeg@GOTPAGE
Lloh47:
	ldr	x26, [x26, _gx_xOriginNeg@GOTPAGEOFF]
	stp	w24, w8, [x22, #24]
	str	wzr, [x26]
Lloh48:
	adrp	x25, _gx_xOriginPos@GOTPAGE
Lloh49:
	ldr	x25, [x25, _gx_xOriginPos@GOTPAGEOFF]
	str	wzr, [x25]
	sub	w0, w24, #1
	bl	_gx_isValidXOrigin
	cbz	x0, LBB0_23
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x26]
	sub	w8, w8, #1
	str	w8, [x26]
	ldr	w9, [x22, #24]
	add	w8, w9, w8
	sub	w0, w8, #1
	bl	_gx_isValidXOrigin
	cbnz	x0, LBB0_22
LBB0_23:
	ldr	w8, [x22, #24]
	ldr	w9, [x25]
	add	w8, w8, w9
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	add	w0, w8, #1
	bl	_gx_isValidXOrigin
	cbz	x0, LBB0_26
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldr	w8, [x25]
	add	w8, w8, #1
	str	w8, [x25]
	ldr	w9, [x22, #24]
	add	w8, w9, w8
	b	LBB0_24
LBB0_26:
Lloh50:
	adrp	x25, _gx_yOriginNeg@GOTPAGE
Lloh51:
	ldr	x25, [x25, _gx_yOriginNeg@GOTPAGEOFF]
	str	wzr, [x25]
Lloh52:
	adrp	x24, _gx_yOriginPos@GOTPAGE
Lloh53:
	ldr	x24, [x24, _gx_yOriginPos@GOTPAGEOFF]
	str	wzr, [x24]
	ldr	w8, [x22, #28]
	sub	w0, w8, #1
	bl	_gx_isValidYOrigin
Lloh54:
	adrp	x26, _VI_INTERLACE@GOTPAGE
Lloh55:
	ldr	x26, [x26, _VI_INTERLACE@GOTPAGEOFF]
	cbz	x0, LBB0_28
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	sub	w8, w8, #1
	str	w8, [x25]
	ldr	w9, [x22, #28]
	add	w8, w9, w8
	sub	w0, w8, #1
	bl	_gx_isValidYOrigin
	cbnz	x0, LBB0_27
LBB0_28:
	ldr	w8, [x22, #28]
	ldr	w9, [x24]
	add	w8, w8, w9
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	add	w0, w8, #1
	bl	_gx_isValidYOrigin
	cbz	x0, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	ldr	w9, [x22, #28]
	add	w8, w9, w8
	b	LBB0_29
LBB0_31:
	ldr	w8, [x26]
Lloh56:
	adrp	x9, _VI_XFBMODE_DF@GOTPAGE
Lloh57:
	ldr	x9, [x9, _VI_XFBMODE_DF@GOTPAGEOFF]
Lloh58:
	adrp	x10, _VI_XFBMODE_SF@GOTPAGE
Lloh59:
	ldr	x10, [x10, _VI_XFBMODE_SF@GOTPAGEOFF]
	cmp	w21, w8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x22, #64]
Lloh60:
	adrp	x8, _GX_FALSE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _GX_FALSE@GOTPAGEOFF]
Lloh62:
	ldr	x8, [x8]
	stp	x8, x8, [x22, #48]
	ldr	x8, [x22, #32]
	movi.2s	v0, #6
	ldp	x9, x10, [x8]
	str	d0, [x9]
	str	d0, [x10]
	ldp	x9, x10, [x8, #16]
	str	d0, [x9]
	str	d0, [x10]
	ldp	x9, x10, [x8, #32]
	str	d0, [x9]
	str	d0, [x10]
	ldp	x9, x10, [x8, #48]
	str	d0, [x9]
	str	d0, [x10]
	ldp	x9, x10, [x8, #64]
	str	d0, [x9]
	str	d0, [x10]
	ldp	x9, x8, [x8, #80]
	str	d0, [x9]
	str	d0, [x8]
	ldr	w8, [x19]
	cmp	w21, w8
	b.eq	LBB0_34
; %bb.32:
	ldr	x8, [x27, #8]
	cbz	x8, LBB0_34
; %bb.33:
	ldr	x8, [x22, #40]
	mov	w9, #8
	str	w9, [x8]
Lloh63:
	adrp	x10, lCPI0_0@PAGE
Lloh64:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	b	LBB0_35
LBB0_34:
	mov	w9, #0
	ldr	x8, [x22, #40]
	str	wzr, [x8]
Lloh65:
	adrp	x10, lCPI0_1@PAGE
Lloh66:
	ldr	d0, [x10, lCPI0_1@PAGEOFF]
LBB0_35:
	str	w9, [x8, #4]
	str	d0, [x8, #8]
	str	s0, [x8, #16]
	stp	w9, w9, [x8, #20]
	ldp	w10, w8, [x22, #8]
	ldr	w9, [x22, #4]
	stp	w9, w8, [x20, #16]
	ldr	w8, [x19]
	cmp	w21, w8
	cset	w8, eq
	mov	w9, #1
	stp	w8, w9, [x20]
	cinc	w8, w9, ne
	sdiv	w8, w10, w8
	and	w8, w8, #0xfffffffc
	mov	w9, #240
	cmp	w8, #240
	csel	w24, w8, w9, lo
	ldr	w9, [x27, #4]
	sub	w10, w9, #133
	cmp	w10, #2
	b.lo	LBB0_39
; %bb.36:
	sub	w9, w9, #131
	mov	x25, x19
	cmp	w9, #1
	b.hi	LBB0_41
; %bb.37:
	cmp	w8, #239
	b.ls	LBB0_43
; %bb.38:
	mov	w8, #424
	b	LBB0_47
LBB0_39:
	mov	x25, x19
	cmp	w8, #239
	b.ls	LBB0_44
; %bb.40:
	mov	w8, #384
	b	LBB0_47
LBB0_41:
	cmp	w8, #239
	b.ls	LBB0_45
; %bb.42:
	mov	w8, #320
	b	LBB0_47
LBB0_43:
	ucvtf	s0, w24
	mov	w8, #36409
	movk	w8, #16355, lsl #16
	b	LBB0_46
LBB0_44:
	ucvtf	s0, w24
	mov	w8, #52429
	movk	w8, #16332, lsl #16
	b	LBB0_46
LBB0_45:
	ucvtf	s0, w24
	mov	w8, #43691
	movk	w8, #16298, lsl #16
LBB0_46:
	fmov	s1, w8
	fmul	s0, s0, s1
	fcvtzu	w8, s0
	and	w8, w8, #0xfffffffc
LBB0_47:
	mov	w9, #424
	cmp	w8, #424
	csel	w0, w8, w9, lo
	lsl	w23, w0, #1
	bl	_menu_display_set_width
	mov	x0, x24
	bl	_menu_display_set_height
	mov	x0, x23
	bl	_menu_display_set_framebuffer_pitch
	ldp	w2, w3, [x22, #4]
	mov	w0, #0
	mov	w1, #0
	mov	w4, #0
	mov	w5, #1
	mov	w6, #1
	bl	_GX_SetViewportJitter
	ldp	w2, w3, [x22, #4]
	mov	w0, #0
	mov	w1, #0
	bl	_GX_SetDispCopySrc
	ldp	w0, w1, [x22, #8]
	bl	_GX_GetYScaleFactor
	fmov	s8, s0
	ldr	w0, [x22, #4]
	bl	_VIDEO_PadFramebufferWidth
	mov	x23, x0
	fcvtzs	w0, s8
	bl	_GX_SetDispCopyYScale
	mov	x1, x0
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_GX_SetDispCopyDst
	ldr	x0, [x22, #56]
Lloh67:
	adrp	x8, _GX_TRUE@GOTPAGE
Lloh68:
	ldr	x8, [x8, _GX_TRUE@GOTPAGEOFF]
Lloh69:
	ldr	w2, [x8]
	ldp	x1, x3, [x22, #32]
	bl	_GX_SetCopyFilter
Lloh70:
	adrp	x8, _GX_MAX_Z24@GOTPAGE
Lloh71:
	ldr	x8, [x8, _GX_MAX_Z24@GOTPAGEOFF]
Lloh72:
	ldr	w2, [x8]
	mov	x0, #0
	mov	x1, #1095216660480
	bl	_GX_SetCopyClear
	ldr	x0, [x22, #48]
	ldr	w8, [x22, #20]
Lloh73:
	adrp	x9, _GX_ENABLE@GOTPAGE
Lloh74:
	ldr	x9, [x9, _GX_ENABLE@GOTPAGEOFF]
	ldr	w10, [x22, #12]
Lloh75:
	adrp	x11, _GX_DISABLE@GOTPAGE
Lloh76:
	ldr	x11, [x11, _GX_DISABLE@GOTPAGEOFF]
	cmp	w8, w10, lsl #1
	csel	x8, x9, x11, eq
	ldr	w1, [x8]
	bl	_GX_SetFieldMode
Lloh77:
	adrp	x8, _GX_PF_RGB8_Z24@GOTPAGE
Lloh78:
	ldr	x8, [x8, _GX_PF_RGB8_Z24@GOTPAGEOFF]
Lloh79:
	ldr	w0, [x8]
Lloh80:
	adrp	x8, _GX_ZC_LINEAR@GOTPAGE
Lloh81:
	ldr	x8, [x8, _GX_ZC_LINEAR@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	bl	_GX_SetPixelFmt
	bl	_GX_InvalidateTexAll
	bl	_GX_Flush
	mov	x0, x22
	bl	_VIDEO_Configure
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
Lloh83:
	adrp	x19, _COLOR_BLACK@GOTPAGE
Lloh84:
	ldr	x19, [x19, _COLOR_BLACK@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	x0, x22
	bl	_VIDEO_ClearFrameBuffer
	ldr	x8, [x20, #8]
	ldr	w1, [x8, #4]
	ldr	w2, [x19]
	mov	x0, x22
	bl	_VIDEO_ClearFrameBuffer
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_VIDEO_SetNextFramebuffer
Lloh85:
	adrp	x8, _g_current_framebuf@GOTPAGE
Lloh86:
	ldr	x8, [x8, _g_current_framebuf@GOTPAGEOFF]
Lloh87:
	str	xzr, [x8]
Lloh88:
	adrp	x8, _retrace_callback@GOTPAGE
Lloh89:
	ldr	x8, [x8, _retrace_callback@GOTPAGEOFF]
Lloh90:
	ldr	x0, [x8]
	bl	_VIDEO_SetPostRetraceCallback
	mov	w0, #0
	bl	_VIDEO_SetBlack
	bl	_VIDEO_Flush
	bl	_VIDEO_WaitVSync
	ldp	w1, w2, [x22, #4]
	ldr	w8, [x22]
	and	w8, w8, #0x3
	ldr	w9, [x26]
Lloh91:
	adrp	x10, l_.str.2@PAGE
Lloh92:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh93:
	adrp	x11, l_.str.1@PAGE
Lloh94:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	w8, w9
	csel	x3, x11, x10, eq
Lloh95:
	adrp	x0, l_.str@PAGE
Lloh96:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	ldr	w8, [x25]
	cmp	w21, w8
	mov	w8, #49807
	movk	w8, #17007, lsl #16
	fmov	s0, w8
	mov	w8, #19949
	movk	w8, #17007, lsl #16
	fmov	s1, w8
	fcsel	s0, s1, s0, eq
	mov	w8, #1112014848
	fmov	s1, w8
	mov	w8, #20998
	movk	w8, #16968, lsl #16
	fmov	s2, w8
	fcsel	s1, s2, s1, eq
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #128
	fcsel	s0, s1, s0, eq
	str	s0, [sp, #28]
Lloh97:
	adrp	x8, _RARCH_DRIVER_CTL_SET_REFRESH_RATE@GOTPAGE
Lloh98:
	ldr	x8, [x8, _RARCH_DRIVER_CTL_SET_REFRESH_RATE@GOTPAGEOFF]
Lloh99:
	ldr	w0, [x8]
	add	x1, sp, #28
	bl	_driver_ctl
	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
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdr	Lloh63, Lloh64
	.loh AdrpLdr	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotStr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_g_draw_done,4,2                ; @g_draw_done
	.comm	_VI_MAX_WIDTH_PAL,4,2           ; @VI_MAX_WIDTH_PAL
	.comm	_VI_MAX_HEIGHT_PAL,4,2          ; @VI_MAX_HEIGHT_PAL
	.comm	_max_height,4,2                 ; @max_height
	.comm	_VI_MAX_WIDTH_MPAL,4,2          ; @VI_MAX_WIDTH_MPAL
	.comm	_VI_MAX_HEIGHT_MPAL,4,2         ; @VI_MAX_HEIGHT_MPAL
	.comm	_VI_MAX_WIDTH_EURGB60,4,2       ; @VI_MAX_WIDTH_EURGB60
	.comm	_VI_MAX_HEIGHT_EURGB60,4,2      ; @VI_MAX_HEIGHT_EURGB60
	.comm	_VI_NTSC,4,2                    ; @VI_NTSC
	.comm	_VI_MAX_WIDTH_NTSC,4,2          ; @VI_MAX_WIDTH_NTSC
	.comm	_VI_MAX_HEIGHT_NTSC,4,2         ; @VI_MAX_HEIGHT_NTSC
	.comm	_VI_NON_INTERLACE,4,2           ; @VI_NON_INTERLACE
	.comm	_VI_PROGRESSIVE,4,2             ; @VI_PROGRESSIVE
	.comm	_VI_INTERLACE,4,2               ; @VI_INTERLACE
	.comm	_gx_mode,72,3                   ; @gx_mode
	.comm	_gx_system_xOrigin,8,3          ; @gx_system_xOrigin
	.comm	_gx_used_system_xOrigin,4,2     ; @gx_used_system_xOrigin
	.comm	_gx_xOrigin,4,2                 ; @gx_xOrigin
	.comm	_gx_yOrigin,4,2                 ; @gx_yOrigin
	.comm	_gx_xOriginNeg,4,2              ; @gx_xOriginNeg
	.comm	_gx_xOriginPos,4,2              ; @gx_xOriginPos
	.comm	_gx_yOriginNeg,4,2              ; @gx_yOriginNeg
	.comm	_gx_yOriginPos,4,2              ; @gx_yOriginPos
	.comm	_VI_XFBMODE_DF,4,2              ; @VI_XFBMODE_DF
	.comm	_VI_XFBMODE_SF,4,2              ; @VI_XFBMODE_SF
	.comm	_GX_FALSE,8,3                   ; @GX_FALSE
	.comm	_GX_TRUE,4,2                    ; @GX_TRUE
	.comm	_GX_MAX_Z24,4,2                 ; @GX_MAX_Z24
	.comm	_GX_ENABLE,4,2                  ; @GX_ENABLE
	.comm	_GX_DISABLE,4,2                 ; @GX_DISABLE
	.comm	_GX_PF_RGB8_Z24,4,2             ; @GX_PF_RGB8_Z24
	.comm	_GX_ZC_LINEAR,4,2               ; @GX_ZC_LINEAR
	.comm	_COLOR_BLACK,4,2                ; @COLOR_BLACK
	.comm	_g_current_framebuf,8,3         ; @g_current_framebuf
	.comm	_retrace_callback,8,3           ; @retrace_callback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[GX]: Resolution: %dx%d (%s)\n"

l_.str.1:                               ; @.str.1
	.asciz	"interlaced"

l_.str.2:                               ; @.str.2
	.asciz	"progressive"

	.comm	_RARCH_DRIVER_CTL_SET_REFRESH_RATE,4,2 ; @RARCH_DRIVER_CTL_SET_REFRESH_RATE
	.no_dead_strip	_gx_set_video_mode
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.gx_set_video_mode
l_switch.table.gx_set_video_mode:
	.quad	_VI_MAX_WIDTH_PAL
	.quad	_VI_MAX_WIDTH_MPAL
	.quad	_VI_MAX_WIDTH_EURGB60

	.p2align	3                               ; @switch.table.gx_set_video_mode.3
l_switch.table.gx_set_video_mode.3:
	.quad	_VI_MAX_HEIGHT_PAL
	.quad	_VI_MAX_HEIGHT_MPAL
	.quad	_VI_MAX_HEIGHT_EURGB60

.subsections_via_symbols
