	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function InitVideo
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3f847ae147ae147b              ## double 0.01
LCPI0_2:
	.quad	0x4000000000000000              ## double 2
LCPI0_3:
	.quad	0x4008000000000000              ## double 3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_InitVideo
	.p2align	4, 0x90
_InitVideo:                             ## @InitVideo
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_FCEUI_printf
	movq	_srendline@GOTPCREL(%rip), %r15
	movq	_erendline@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_FCEUI_GetCurrentVidSystem
	movq	__fullscreen@GOTPCREL(%rip), %r13
	movq	_Settings@GOTPCREL(%rip), %rax
	cmpq	$0, (%r13)
	leaq	4(%rax), %rcx
	cmovneq	%rax, %rcx
	movl	(%rcx), %eax
	movq	_sponge@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_SDL_INIT_VIDEO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_SDL_WasInit
	movl	(%rbx), %edi
	testl	%eax, %edi
	jne	LBB0_3
## %bb.1:
	callq	_SDL_InitSubSystem
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_3:
	movq	_inited@GOTPCREL(%rip), %rbx
	orb	$1, (%rbx)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_SDL_ShowCursor
	movsd	(%r12), %xmm0                   ## xmm0 = mem[0],zero
	subsd	(%r15), %xmm0
	addsd	LCPI0_0(%rip), %xmm0
	movq	_tlines@GOTPCREL(%rip), %r15
	movsd	%xmm0, (%r15)
	xorl	%eax, %eax
	callq	_SDL_GetVideoInfo
	cmpq	$0, (%rax)
	movq	_SDL_HWSURFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	cmovel	%r14d, %edx
	movq	(%r13), %rax
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_SDL_FULLSCREEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_5:
	orl	%edx, %ecx
	movq	_SDL_HWPALETTE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	__doublebuf@GOTPCREL(%rip), %rdx
	andl	%ecx, %esi
	je	LBB0_7
## %bb.6:
	movq	_SDL_DOUBLEBUF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
LBB0_7:
	cmpq	$0, (%rdx)
	cmovel	%r14d, %esi
	orl	%ecx, %esi
	testq	%rax, %rax
	je	LBB0_17
## %bb.8:
	movq	__bpp@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	__xscalefs@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movq	_exs@GOTPCREL(%rip), %rax
	movsd	%xmm1, (%rax)
	movq	__yscalefs@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	movq	_eys@GOTPCREL(%rip), %rax
	movsd	%xmm2, (%rax)
	movq	__efxfs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_eefx@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	ucomisd	%xmm1, %xmm3
	jae	LBB0_10
## %bb.9:
	movq	__xres@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movq	_NWIDTH@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm1
	ucomisd	%xmm0, %xmm1
	ja	LBB0_10
## %bb.13:
	ucomisd	%xmm2, %xmm3
	jae	LBB0_15
## %bb.14:
	movq	__yres@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	mulsd	(%r15), %xmm2
	ucomisd	%xmm1, %xmm2
	ja	LBB0_15
## %bb.16:
	callq	_SDL_SetVideoMode
	movq	_screen@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_24
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_SDL_GetError
	movq	%rax, %rdi
	callq	_FCEUD_PrintError
	jmp	LBB0_30
LBB0_17:
	movq	__xscale@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movq	_exs@GOTPCREL(%rip), %rdx
	movsd	%xmm0, (%rdx)
	movq	__yscale@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movq	_eys@GOTPCREL(%rip), %rdi
	movsd	%xmm1, (%rdi)
	movq	__efx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_eefx@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_sponge@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movq	%rbx, %r8
	movabsq	$4611686018427387904, %rbx      ## imm = 0x4000000000000000
	movq	%rbx, (%rdi)
	movq	%rbx, (%rdx)
	cmpl	$3, %eax
	jl	LBB0_20
## %bb.21:
	movabsq	$4613937818241073152, %rbx      ## imm = 0x4008000000000000
	movq	%rbx, (%rdi)
	movq	%rbx, (%rdx)
	movsd	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero
	jmp	LBB0_22
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
LBB0_11:
	callq	_FCEUD_PrintError
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_18:
	xorl	%edi, %edi
	jmp	LBB0_23
LBB0_20:
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
LBB0_22:
	movq	%r8, %rbx
	movq	$0, (%rcx)
	andl	$-3, %eax
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	shll	$5, %edi
	movapd	%xmm1, %xmm0
LBB0_23:
	movq	_NWIDTH@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	mulsd	(%r15), %xmm1
	callq	_SDL_SetVideoMode
	movq	_screen@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_24:
	movq	(%rax), %rcx
	movl	(%rcx), %edx
	movq	_curbpp@GOTPCREL(%rip), %r15
	movl	%edx, (%r15)
	movl	$1, (%rbx)
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movl	(%rcx), %ecx
	cmpq	$0, (%r13)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_FCEU_printf
	movl	(%r15), %esi
	leal	-8(%rsi), %eax
	roll	$29, %eax
	cmpl	$4, %eax
	jae	LBB0_25
## %bb.26:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_28
## %bb.27:
	leaq	L_.str.7(%rip), %rdi
LBB0_28:
	movq	%rdi, %rsi
	callq	_SDL_WM_SetCaption
	movq	_fceu_playicon@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	$8, %rsp
	movl	$32, %esi
	movl	$32, %edx
	movl	$24, %ecx
	movl	$96, %r8d
	movl	$16711680, %r9d                 ## imm = 0xFF0000
	pushq	$0
	pushq	$255
	pushq	$65280                          ## imm = 0xFF00
	callq	_SDL_CreateRGBSurfaceFrom
	addq	$32, %rsp
	movq	_IconSurface@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_SDL_WM_SetIcon
	movq	_paletterefresh@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movl	(%r15), %edi
	movl	$1, %ebx
	cmpl	$9, %edi
	jl	LBB0_30
## %bb.29:
	shrl	$3, %edi
	movq	_screen@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	12(%rax), %esi
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	movq	_eefx@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_sponge@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	callq	_InitBlitToHigh
	jmp	LBB0_30
LBB0_25:
	leaq	L_.str.6(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_FCEU_printf
LBB0_12:
	xorl	%eax, %eax
	callq	_KillVideo
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initializing video..."

	.comm	_srendline,8,3                  ## @srendline
	.comm	_erendline,8,3                  ## @erendline
	.comm	__fullscreen,8,3                ## @_fullscreen
	.comm	_Settings,8,2                   ## @Settings
	.comm	_sponge,4,2                     ## @sponge
	.comm	_SDL_INIT_VIDEO,4,2             ## @SDL_INIT_VIDEO
	.comm	_inited,4,2                     ## @inited
	.comm	_tlines,8,3                     ## @tlines
	.comm	_SDL_HWSURFACE,4,2              ## @SDL_HWSURFACE
	.comm	_SDL_FULLSCREEN,4,2             ## @SDL_FULLSCREEN
	.comm	_SDL_HWPALETTE,4,2              ## @SDL_HWPALETTE
	.comm	__doublebuf,8,3                 ## @_doublebuf
	.comm	_SDL_DOUBLEBUF,4,2              ## @SDL_DOUBLEBUF
	.comm	__bpp,4,2                       ## @_bpp
	.comm	__xscalefs,8,3                  ## @_xscalefs
	.comm	_exs,8,3                        ## @exs
	.comm	__yscalefs,8,3                  ## @_yscalefs
	.comm	_eys,8,3                        ## @eys
	.comm	__efxfs,8,3                     ## @_efxfs
	.comm	_eefx,8,3                       ## @eefx
	.comm	__xres,8,3                      ## @_xres
	.comm	_NWIDTH,8,3                     ## @NWIDTH
L_.str.1:                               ## @.str.1
	.asciz	"xscale out of bounds."

	.comm	__yres,8,3                      ## @_yres
L_.str.2:                               ## @.str.2
	.asciz	"yscale out of bounds."

	.comm	_screen,8,3                     ## @screen
	.comm	__xscale,8,3                    ## @_xscale
	.comm	__yscale,8,3                    ## @_yscale
	.comm	__efx,8,3                       ## @_efx
	.comm	_curbpp,4,2                     ## @curbpp
L_.str.3:                               ## @.str.3
	.asciz	" Video Mode: %d x %d x %d bpp %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"full screen"

L_.str.5:                               ## @.str.5
	.space	1

L_.str.6:                               ## @.str.6
	.asciz	"  Sorry, %dbpp modes are not supported by FCE Ultra.  Supported bit depths are 8bpp, 16bpp, and 32bpp.\n"

L_.str.7:                               ## @.str.7
	.asciz	"FCE Ultra"

	.comm	_fceu_playicon,8,3              ## @fceu_playicon
	.comm	_IconSurface,4,2                ## @IconSurface
	.comm	_paletterefresh,4,2             ## @paletterefresh
	.comm	_EO_CLIPSIDES,4,2               ## @EO_CLIPSIDES
	.comm	_SDL_GL_DOUBLEBUFFER,4,2        ## @SDL_GL_DOUBLEBUFFER
	.comm	_SDL_OPENGL,4,2                 ## @SDL_OPENGL
	.comm	__opengl,8,3                    ## @_opengl
	.comm	__openglip,4,2                  ## @_openglip
	.comm	__stretchx,4,2                  ## @_stretchx
	.comm	__stretchy,4,2                  ## @_stretchy
	.comm	_eoptions,4,2                   ## @eoptions
	.comm	_sdlhaveogl,8,3                 ## @sdlhaveogl
	.comm	_usingogl,4,2                   ## @usingogl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitVideo                      ; -- Begin function InitVideo
	.p2align	2
_InitVideo:                             ; @InitVideo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FCEUI_printf
Lloh2:
	adrp	x20, _srendline@GOTPAGE
Lloh3:
	ldr	x20, [x20, _srendline@GOTPAGEOFF]
Lloh4:
	adrp	x21, _erendline@GOTPAGE
Lloh5:
	ldr	x21, [x21, _erendline@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	bl	_FCEUI_GetCurrentVidSystem
Lloh6:
	adrp	x23, __fullscreen@GOTPAGE
Lloh7:
	ldr	x23, [x23, __fullscreen@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh8:
	adrp	x9, _Settings@GOTPAGE
Lloh9:
	ldr	x9, [x9, _Settings@GOTPAGEOFF]
	add	x10, x9, #4
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x22, _sponge@GOTPAGE
Lloh11:
	ldr	x22, [x22, _sponge@GOTPAGEOFF]
	str	w8, [x22]
Lloh12:
	adrp	x24, _SDL_INIT_VIDEO@GOTPAGE
Lloh13:
	ldr	x24, [x24, _SDL_INIT_VIDEO@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_SDL_WasInit
	mov	x8, x0
	ldr	w0, [x24]
	tst	w0, w8
	b.ne	LBB0_2
; %bb.1:
	bl	_SDL_InitSubSystem
	cmn	w0, #1
	b.eq	LBB0_8
LBB0_2:
Lloh14:
	adrp	x24, _inited@GOTPAGE
Lloh15:
	ldr	x24, [x24, _inited@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w8, w8, #0x1
	str	w8, [x24]
	mov	w0, #0
	bl	_SDL_ShowCursor
	ldr	d0, [x21]
	ldr	d1, [x20]
	fsub	d0, d0, d1
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
Lloh16:
	adrp	x20, _tlines@GOTPAGE
Lloh17:
	ldr	x20, [x20, _tlines@GOTPAGEOFF]
	str	d0, [x20]
	bl	_SDL_GetVideoInfo
	ldr	x8, [x0]
Lloh18:
	adrp	x9, _SDL_HWSURFACE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDL_HWSURFACE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	ldr	x10, [x23]
Lloh21:
	adrp	x11, _SDL_FULLSCREEN@GOTPAGE
Lloh22:
	ldr	x11, [x11, _SDL_FULLSCREEN@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	cmp	x10, #0
	csel	w11, wzr, w11, eq
	orr	w8, w11, w8
Lloh24:
	adrp	x11, _SDL_HWPALETTE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _SDL_HWPALETTE@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w8, w8, w11
Lloh27:
	adrp	x11, __doublebuf@GOTPAGE
Lloh28:
	ldr	x11, [x11, __doublebuf@GOTPAGEOFF]
Lloh29:
	ldr	x11, [x11]
	tst	w8, w9
	ccmp	x11, #0, #4, ne
Lloh30:
	adrp	x9, _SDL_DOUBLEBUF@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SDL_DOUBLEBUF@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w1, w9, w8
	cbz	x10, LBB0_9
; %bb.3:
Lloh33:
	adrp	x8, __bpp@GOTPAGE
Lloh34:
	ldr	x8, [x8, __bpp@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, __xscalefs@GOTPAGE
Lloh37:
	ldr	x8, [x8, __xscalefs@GOTPAGEOFF]
Lloh38:
	ldr	d1, [x8]
Lloh39:
	adrp	x8, _exs@GOTPAGE
Lloh40:
	ldr	x8, [x8, _exs@GOTPAGEOFF]
Lloh41:
	str	d1, [x8]
Lloh42:
	adrp	x8, __yscalefs@GOTPAGE
Lloh43:
	ldr	x8, [x8, __yscalefs@GOTPAGEOFF]
Lloh44:
	ldr	d2, [x8]
Lloh45:
	adrp	x8, _eys@GOTPAGE
Lloh46:
	ldr	x8, [x8, _eys@GOTPAGEOFF]
Lloh47:
	str	d2, [x8]
Lloh48:
	adrp	x8, __efxfs@GOTPAGE
Lloh49:
	ldr	x8, [x8, __efxfs@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
Lloh51:
	adrp	x9, _eefx@GOTPAGE
Lloh52:
	ldr	x9, [x9, _eefx@GOTPAGEOFF]
Lloh53:
	str	x8, [x9]
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d0, x8
	fcmp	d1, d0
	b.ls	LBB0_13
; %bb.4:
Lloh54:
	adrp	x8, __xres@GOTPAGE
Lloh55:
	ldr	x8, [x8, __xres@GOTPAGEOFF]
Lloh56:
	ldr	d0, [x8]
Lloh57:
	adrp	x8, _NWIDTH@GOTPAGE
Lloh58:
	ldr	x8, [x8, _NWIDTH@GOTPAGEOFF]
Lloh59:
	ldr	d3, [x8]
	fmul	d1, d1, d3
	fcmp	d0, d1
	b.mi	LBB0_13
; %bb.5:
	mov	x8, #5243
	movk	x8, #18350, lsl #16
	movk	x8, #31457, lsl #32
	movk	x8, #16260, lsl #48
	fmov	d1, x8
	fcmp	d2, d1
	b.ls	LBB0_14
; %bb.6:
Lloh60:
	adrp	x8, __yres@GOTPAGE
Lloh61:
	ldr	x8, [x8, __yres@GOTPAGEOFF]
Lloh62:
	ldr	d1, [x8]
	ldr	d3, [x20]
	fmul	d2, d2, d3
	fcmp	d1, d2
	b.mi	LBB0_14
; %bb.7:
	bl	_SDL_SetVideoMode
Lloh63:
	adrp	x8, _screen@GOTPAGE
Lloh64:
	ldr	x8, [x8, _screen@GOTPAGEOFF]
Lloh65:
	str	x0, [x8]
	cbnz	x0, LBB0_18
LBB0_8:
	bl	_SDL_GetError
	bl	_FCEUD_PrintError
	b	LBB0_25
LBB0_9:
Lloh66:
	adrp	x8, __xscale@GOTPAGE
Lloh67:
	ldr	x8, [x8, __xscale@GOTPAGEOFF]
Lloh68:
	ldr	d0, [x8]
Lloh69:
	adrp	x8, _exs@GOTPAGE
Lloh70:
	ldr	x8, [x8, _exs@GOTPAGEOFF]
Lloh71:
	adrp	x9, __yscale@GOTPAGE
Lloh72:
	ldr	x9, [x9, __yscale@GOTPAGEOFF]
	str	d0, [x8]
Lloh73:
	ldr	d1, [x9]
Lloh74:
	adrp	x11, _eys@GOTPAGE
Lloh75:
	ldr	x11, [x11, _eys@GOTPAGEOFF]
Lloh76:
	adrp	x9, __efx@GOTPAGE
Lloh77:
	ldr	x9, [x9, __efx@GOTPAGEOFF]
	str	d1, [x11]
Lloh78:
	ldr	x10, [x9]
Lloh79:
	adrp	x9, _eefx@GOTPAGE
Lloh80:
	ldr	x9, [x9, _eefx@GOTPAGEOFF]
	str	x10, [x9]
	ldr	w10, [x22]
	cbz	w10, LBB0_16
; %bb.10:
	mov	x12, #4611686018427387904
	str	x12, [x11]
	str	x12, [x8]
	fmov	d1, #2.00000000
	cmp	w10, #3
	b.lt	LBB0_12
; %bb.11:
	mov	x12, #4613937818241073152
	str	x12, [x11]
	str	x12, [x8]
	fmov	d1, #3.00000000
LBB0_12:
	str	xzr, [x9]
	and	w8, w10, #0xfffffffd
	cmp	w8, #1
	cset	w8, eq
	lsl	w0, w8, #5
	fmov	d0, d1
	b	LBB0_17
LBB0_13:
Lloh81:
	adrp	x0, l_.str.1@PAGE
Lloh82:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh83:
	adrp	x0, l_.str.2@PAGE
Lloh84:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_15:
	bl	_FCEUD_PrintError
	b	LBB0_24
LBB0_16:
	mov	w0, #0
LBB0_17:
Lloh85:
	adrp	x8, _NWIDTH@GOTPAGE
Lloh86:
	ldr	x8, [x8, _NWIDTH@GOTPAGEOFF]
Lloh87:
	ldr	d2, [x8]
	fmul	d0, d2, d0
	ldr	d2, [x20]
	fmul	d1, d2, d1
	bl	_SDL_SetVideoMode
Lloh88:
	adrp	x8, _screen@GOTPAGE
Lloh89:
	ldr	x8, [x8, _screen@GOTPAGEOFF]
Lloh90:
	str	x0, [x8]
LBB0_18:
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh91:
	adrp	x20, _curbpp@GOTPAGE
Lloh92:
	ldr	x20, [x20, _curbpp@GOTPAGEOFF]
	str	w9, [x20]
	mov	w9, #1
	str	w9, [x24]
Lloh93:
	adrp	x9, l_.str.4@PAGE
Lloh94:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh95:
	adrp	x10, l_.str.5@PAGE
Lloh96:
	add	x10, x10, l_.str.5@PAGEOFF
	ldr	x11, [x23]
	cmp	x11, #0
	csel	x9, x10, x9, eq
	ldp	w11, w10, [x0, #8]
	ldr	w8, [x8]
	stp	x8, x9, [sp, #16]
	stp	x10, x11, [sp]
Lloh97:
	adrp	x0, l_.str.3@PAGE
Lloh98:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FCEU_printf
	ldr	w8, [x20]
	sub	w9, w8, #8
	ror	w9, w9, #3
	cmp	w9, #4
	b.hs	LBB0_23
; %bb.19:
	ldr	x0, [x19]
	cbnz	x0, LBB0_21
; %bb.20:
Lloh99:
	adrp	x0, l_.str.7@PAGE
Lloh100:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_21:
	mov	x1, x0
	bl	_SDL_WM_SetCaption
Lloh101:
	adrp	x8, _fceu_playicon@GOTPAGE
Lloh102:
	ldr	x8, [x8, _fceu_playicon@GOTPAGEOFF]
Lloh103:
	ldr	x0, [x8]
	str	wzr, [sp]
	mov	w1, #32
	mov	w2, #32
	mov	w3, #24
	mov	w4, #96
	mov	w5, #16711680
	mov	w6, #65280
	mov	w7, #255
	bl	_SDL_CreateRGBSurfaceFrom
Lloh104:
	adrp	x8, _IconSurface@GOTPAGE
Lloh105:
	ldr	x8, [x8, _IconSurface@GOTPAGEOFF]
Lloh106:
	str	w0, [x8]
	mov	w1, #0
	bl	_SDL_WM_SetIcon
Lloh107:
	adrp	x8, _paletterefresh@GOTPAGE
Lloh108:
	ldr	x8, [x8, _paletterefresh@GOTPAGEOFF]
	mov	w0, #1
Lloh109:
	str	w0, [x8]
	ldr	w8, [x20]
	cmp	w8, #9
	b.lt	LBB0_26
; %bb.22:
	lsr	w0, w8, #3
Lloh110:
	adrp	x8, _screen@GOTPAGE
Lloh111:
	ldr	x8, [x8, _screen@GOTPAGEOFF]
Lloh112:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldp	w2, w1, [x8, #8]
	ldr	w3, [x8, #4]
Lloh113:
	adrp	x8, _eefx@GOTPAGE
Lloh114:
	ldr	x8, [x8, _eefx@GOTPAGEOFF]
Lloh115:
	ldr	x4, [x8]
	ldr	w5, [x22]
	bl	_InitBlitToHigh
	mov	w0, #1
	b	LBB0_26
LBB0_23:
	str	x8, [sp]
Lloh116:
	adrp	x0, l_.str.6@PAGE
Lloh117:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_FCEU_printf
LBB0_24:
	bl	_KillVideo
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotStr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGotStr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpAdd	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotStr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotStr	Lloh104, Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpAdd	Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initializing video..."

	.comm	_srendline,8,3                  ; @srendline
	.comm	_erendline,8,3                  ; @erendline
	.comm	__fullscreen,8,3                ; @_fullscreen
	.comm	_Settings,8,2                   ; @Settings
	.comm	_sponge,4,2                     ; @sponge
	.comm	_SDL_INIT_VIDEO,4,2             ; @SDL_INIT_VIDEO
	.comm	_inited,4,2                     ; @inited
	.comm	_tlines,8,3                     ; @tlines
	.comm	_SDL_HWSURFACE,4,2              ; @SDL_HWSURFACE
	.comm	_SDL_FULLSCREEN,4,2             ; @SDL_FULLSCREEN
	.comm	_SDL_HWPALETTE,4,2              ; @SDL_HWPALETTE
	.comm	__doublebuf,8,3                 ; @_doublebuf
	.comm	_SDL_DOUBLEBUF,4,2              ; @SDL_DOUBLEBUF
	.comm	__bpp,4,2                       ; @_bpp
	.comm	__xscalefs,8,3                  ; @_xscalefs
	.comm	_exs,8,3                        ; @exs
	.comm	__yscalefs,8,3                  ; @_yscalefs
	.comm	_eys,8,3                        ; @eys
	.comm	__efxfs,8,3                     ; @_efxfs
	.comm	_eefx,8,3                       ; @eefx
	.comm	__xres,8,3                      ; @_xres
	.comm	_NWIDTH,8,3                     ; @NWIDTH
l_.str.1:                               ; @.str.1
	.asciz	"xscale out of bounds."

	.comm	__yres,8,3                      ; @_yres
l_.str.2:                               ; @.str.2
	.asciz	"yscale out of bounds."

	.comm	_screen,8,3                     ; @screen
	.comm	__xscale,8,3                    ; @_xscale
	.comm	__yscale,8,3                    ; @_yscale
	.comm	__efx,8,3                       ; @_efx
	.comm	_curbpp,4,2                     ; @curbpp
l_.str.3:                               ; @.str.3
	.asciz	" Video Mode: %d x %d x %d bpp %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"full screen"

l_.str.5:                               ; @.str.5
	.space	1

l_.str.6:                               ; @.str.6
	.asciz	"  Sorry, %dbpp modes are not supported by FCE Ultra.  Supported bit depths are 8bpp, 16bpp, and 32bpp.\n"

l_.str.7:                               ; @.str.7
	.asciz	"FCE Ultra"

	.comm	_fceu_playicon,8,3              ; @fceu_playicon
	.comm	_IconSurface,4,2                ; @IconSurface
	.comm	_paletterefresh,4,2             ; @paletterefresh
	.comm	_EO_CLIPSIDES,4,2               ; @EO_CLIPSIDES
	.comm	_SDL_GL_DOUBLEBUFFER,4,2        ; @SDL_GL_DOUBLEBUFFER
	.comm	_SDL_OPENGL,4,2                 ; @SDL_OPENGL
	.comm	__opengl,8,3                    ; @_opengl
	.comm	__openglip,4,2                  ; @_openglip
	.comm	__stretchx,4,2                  ; @_stretchx
	.comm	__stretchy,4,2                  ; @_stretchy
	.comm	_eoptions,4,2                   ; @eoptions
	.comm	_sdlhaveogl,8,3                 ; @sdlhaveogl
	.comm	_usingogl,4,2                   ; @usingogl
.subsections_via_symbols
