	.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_video_Update
LCPI0_0:
	.quad	0x4024000000000000              ## double 10
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gx_video_Update
	.p2align	4, 0x90
_gx_video_Update:                       ## @gx_video_Update
	.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	_video_sync@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_NO_SYNC@GOTPCREL(%rip), %rbx
	jmp	LBB0_29
LBB0_2:
	movq	_config@GOTPCREL(%rip), %r12
	cmpq	$0, 32(%r12)
	setne	%cl
	movq	_gc_pal@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_vdp_pal@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	sete	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	movl	%ecx, (%rax)
	movq	_bitmap@GOTPCREL(%rip), %r13
	testb	$1, (%r13)
	je	LBB0_17
## %bb.3:
	movl	8(%r13), %edx
	movl	16(%r13), %ecx
	addl	%edx, %edx
	addl	4(%r13), %edx
	movq	_vwidth@GOTPCREL(%rip), %rbx
	movl	%edx, (%rbx)
	addl	%ecx, %ecx
	addl	12(%r13), %ecx
	movq	_vheight@GOTPCREL(%rip), %r13
	movl	%ecx, (%r13)
	cmpq	$0, 8(%r12)
	movq	_interlaced@GOTPCREL(%rip), %rax
	je	LBB0_6
## %bb.4:
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.5:
	addl	%ecx, %ecx
	movl	%ecx, (%r13)
LBB0_6:
	cmpq	$0, 24(%r12)
	je	LBB0_7
## %bb.8:
	movq	_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testb	$1, 48(%rax)
	jne	LBB0_9
## %bb.10:
	movl	%edx, %edi
	callq	_SMS_NTSC_OUT_WIDTH
	jmp	LBB0_11
LBB0_7:
	movq	%rbx, %r15
	jmp	LBB0_12
LBB0_9:
	movl	%edx, %edi
	callq	_MD_NTSC_OUT_WIDTH
LBB0_11:
	movl	%eax, %edx
	andl	$-4, %edx
	movq	%rbx, %r15
	movl	%edx, (%rbx)
	movl	(%r13), %ecx
LBB0_12:
	movq	_bitmap@GOTPCREL(%rip), %r13
	movq	_texturemem@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GX_TF_RGB565@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_GX_CLAMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_GX_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leaq	-44(%rbp), %rdi
	pushq	%rax
	pushq	%r9
	callq	_GX_InitTexObj
	addq	$16, %rsp
	cmpl	$0, 16(%r12)
	jne	LBB0_14
## %bb.13:
	movq	_GX_NEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GX_NEAR_MIP_NEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movq	_GX_ANISO_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-44(%rbp), %rdi
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	xorps	%xmm0, %xmm0
	xorps	%xmm2, %xmm2
	movl	%ecx, %r8d
	callq	_GX_InitTexObjLOD
LBB0_14:
	movq	_GX_TEXMAP0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdi
	callq	_GX_LoadTexObj
	cmpq	$0, 8(%r12)
	movq	_tvmodes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%r14), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	$2, %edx
	jne	LBB0_16
## %bb.15:
	movq	_interlaced@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_16:
	movslq	%edx, %rdx
	addq	%rdx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_rmode@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movl	(%r15), %edi
	callq	_gxResetScaler
	movq	(%rbx), %rdi
	movl	(%r12), %esi
	callq	_gxResetMode
	movq	(%rbx), %rdi
	callq	_VIDEO_Configure
LBB0_17:
	movq	_texturemem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TEX_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DCFlushRange
	xorl	%eax, %eax
	callq	_GX_InvalidateTexAll
	xorl	%eax, %eax
	callq	_draw_square
	movq	_crosshair@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rcx), %rcx
	movq	_SYSTEM_LIGHTPHASER@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	shlq	$5, %rsi
	movq	(%rax,%rsi), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	callq	_gxDrawCrosshair
LBB0_19:
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	movq	_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	8(%rcx), %rcx
	movq	_SYSTEM_LIGHTPHASER@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpq	(%rdx), %rcx
	setne	%sil
	movq	32(%rax,%rsi,8), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edx
	callq	_gxDrawCrosshair
LBB0_21:
	movq	_cd_leds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_23
## %bb.22:
	movq	_scd@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	12(%rdx), %edx
	movl	%edx, %esi
	andl	$2, %esi
	movq	(%rcx,%rsi,4), %rdi
	movq	(%rax), %rax
	andl	$1, %edx
	movq	(%rax,%rdx,8), %rsi
	callq	_gxDrawCdLeds
LBB0_23:
	movq	_whichfb@GOTPCREL(%rip), %rbx
	xorb	$1, (%rbx)
	xorl	%eax, %eax
	callq	_GX_DrawDone
	movq	_xfb@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	movq	_GX_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GX_CopyDisp
	xorl	%eax, %eax
	callq	_GX_Flush
	movq	(%r15), %rax
	movslq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_VIDEO_SetNextFramebuffer
	xorl	%eax, %eax
	callq	_VIDEO_Flush
	movl	(%r13), %eax
	movq	_SYNC_VIDEO@GOTPCREL(%rip), %rbx
	testb	$1, %al
	je	LBB0_29
## %bb.24:
	andl	$-2, %eax
	movl	%eax, (%r13)
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
	movq	_rmode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VI_NON_INTERLACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_25
## %bb.30:
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
LBB0_28:
	movq	_audioStarted@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_29:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%eax, %eax
	callq	_VIDEO_GetNextField
	movq	_odd_frame@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_28
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_VIDEO_WaitVSync
	xorl	%eax, %eax
	callq	_VIDEO_GetNextField
	cmpq	(%r14), %rax
	jne	LBB0_26
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_video_sync,4,2                 ## @video_sync
	.comm	_NO_SYNC,4,2                    ## @NO_SYNC
	.comm	_config,40,3                    ## @config
	.comm	_gc_pal,4,2                     ## @gc_pal
	.comm	_vdp_pal,4,2                    ## @vdp_pal
	.comm	_bitmap,20,2                    ## @bitmap
	.comm	_vwidth,4,2                     ## @vwidth
	.comm	_vheight,4,2                    ## @vheight
	.comm	_interlaced,4,2                 ## @interlaced
	.comm	_reg,8,3                        ## @reg
	.comm	_texturemem,4,2                 ## @texturemem
	.comm	_GX_TF_RGB565,4,2               ## @GX_TF_RGB565
	.comm	_GX_CLAMP,4,2                   ## @GX_CLAMP
	.comm	_GX_FALSE,4,2                   ## @GX_FALSE
	.comm	_GX_NEAR,4,2                    ## @GX_NEAR
	.comm	_GX_NEAR_MIP_NEAR,4,2           ## @GX_NEAR_MIP_NEAR
	.comm	_GX_ANISO_1,4,2                 ## @GX_ANISO_1
	.comm	_GX_TEXMAP0,4,2                 ## @GX_TEXMAP0
	.comm	_tvmodes,8,3                    ## @tvmodes
	.comm	_rmode,8,3                      ## @rmode
	.comm	_TEX_SIZE,4,2                   ## @TEX_SIZE
	.comm	_crosshair,8,3                  ## @crosshair
	.comm	_input,16,3                     ## @input
	.comm	_SYSTEM_LIGHTPHASER,8,3         ## @SYSTEM_LIGHTPHASER
	.comm	_cd_leds,8,3                    ## @cd_leds
	.comm	_scd,8,3                        ## @scd
	.comm	_whichfb,4,2                    ## @whichfb
	.comm	_xfb,8,3                        ## @xfb
	.comm	_GX_TRUE,4,2                    ## @GX_TRUE
	.comm	_VI_NON_INTERLACE,4,2           ## @VI_NON_INTERLACE
	.comm	_odd_frame,8,3                  ## @odd_frame
	.comm	_audioStarted,8,3               ## @audioStarted
	.comm	_SYNC_VIDEO,4,2                 ## @SYNC_VIDEO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gx_video_Update                ; -- Begin function gx_video_Update
	.p2align	2
_gx_video_Update:                       ; @gx_video_Update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x8, _video_sync@GOTPAGE
Lloh1:
	ldr	x8, [x8, _video_sync@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _NO_SYNC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NO_SYNC@GOTPAGEOFF]
	b	LBB0_25
LBB0_2:
Lloh4:
	adrp	x20, _config@GOTPAGE
Lloh5:
	ldr	x20, [x20, _config@GOTPAGEOFF]
	ldr	x9, [x20, #32]
	cmp	x9, #0
Lloh6:
	adrp	x22, _gc_pal@GOTPAGE
Lloh7:
	ldr	x22, [x22, _gc_pal@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh8:
	adrp	x10, _vdp_pal@GOTPAGE
Lloh9:
	ldr	x10, [x10, _vdp_pal@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	ccmp	w9, w10, #0, ne
	cset	w9, eq
	str	w9, [x8]
Lloh11:
	adrp	x19, _bitmap@GOTPAGE
Lloh12:
	ldr	x19, [x19, _bitmap@GOTPAGEOFF]
	ldrb	w8, [x19]
Lloh13:
	adrp	x21, _texturemem@GOTPAGE
Lloh14:
	ldr	x21, [x21, _texturemem@GOTPAGEOFF]
	tbz	w8, #0, LBB0_14
; %bb.3:
	ldp	w8, w9, [x19, #4]
	add	w2, w8, w9, lsl #1
Lloh15:
	adrp	x23, _vwidth@GOTPAGE
Lloh16:
	ldr	x23, [x23, _vwidth@GOTPAGEOFF]
	str	w2, [x23]
	ldp	w8, w9, [x19, #12]
	add	w3, w8, w9, lsl #1
Lloh17:
	adrp	x25, _vheight@GOTPAGE
Lloh18:
	ldr	x25, [x25, _vheight@GOTPAGEOFF]
	str	w3, [x25]
	ldr	x8, [x20, #8]
Lloh19:
	adrp	x24, _interlaced@GOTPAGE
Lloh20:
	ldr	x24, [x24, _interlaced@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x24]
	cbz	w8, LBB0_6
; %bb.5:
	lsl	w3, w3, #1
	str	w3, [x25]
LBB0_6:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.7:
Lloh21:
	adrp	x8, _reg@GOTPAGE
Lloh22:
	ldr	x8, [x8, _reg@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldrb	w8, [x8, #48]
	tbnz	w8, #0, LBB0_9
; %bb.8:
	mov	x0, x2
	bl	_SMS_NTSC_OUT_WIDTH
	b	LBB0_10
LBB0_9:
	mov	x0, x2
	bl	_MD_NTSC_OUT_WIDTH
LBB0_10:
	and	w2, w0, #0xfffffffc
	str	w2, [x23]
	ldr	w3, [x25]
LBB0_11:
	ldr	w1, [x21]
Lloh24:
	adrp	x8, _GX_TF_RGB565@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GX_TF_RGB565@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
Lloh27:
	adrp	x8, _GX_CLAMP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _GX_CLAMP@GOTPAGEOFF]
Lloh29:
	ldr	w5, [x8]
Lloh30:
	adrp	x25, _GX_FALSE@GOTPAGE
Lloh31:
	ldr	x25, [x25, _GX_FALSE@GOTPAGEOFF]
	ldr	w7, [x25]
	add	x0, sp, #12
	mov	x6, x5
	bl	_GX_InitTexObj
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_13
; %bb.12:
Lloh32:
	adrp	x8, _GX_NEAR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _GX_NEAR@GOTPAGEOFF]
Lloh34:
	adrp	x9, _GX_NEAR_MIP_NEAR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _GX_NEAR_MIP_NEAR@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	ldr	w2, [x9]
	ldr	w3, [x25]
Lloh38:
	adrp	x8, _GX_ANISO_1@GOTPAGE
Lloh39:
	ldr	x8, [x8, _GX_ANISO_1@GOTPAGEOFF]
Lloh40:
	ldr	w5, [x8]
	add	x0, sp, #12
	movi	d0, #0000000000000000
	fmov	d1, #10.00000000
	movi	d2, #0000000000000000
	mov	x4, x3
	bl	_GX_InitTexObjLOD
LBB0_13:
Lloh41:
	adrp	x8, _GX_TEXMAP0@GOTPAGE
Lloh42:
	ldr	x8, [x8, _GX_TEXMAP0@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_GX_LoadTexObj
	ldr	x8, [x20, #8]
Lloh44:
	adrp	x9, _tvmodes@GOTPAGE
Lloh45:
	ldr	x9, [x9, _tvmodes@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	ldr	w10, [x22]
	add	w10, w10, w10, lsl #1
	ldr	w11, [x24]
	cmp	x8, #0
	mov	w8, #2
	csel	w8, w11, w8, eq
	add	w8, w10, w8
	ldr	x8, [x9, w8, sxtw #3]
Lloh47:
	adrp	x22, _rmode@GOTPAGE
Lloh48:
	ldr	x22, [x22, _rmode@GOTPAGEOFF]
	str	x8, [x22]
	ldr	w0, [x23]
	bl	_gxResetScaler
	ldr	x0, [x22]
	ldr	w1, [x20]
	bl	_gxResetMode
	ldr	x0, [x22]
	bl	_VIDEO_Configure
LBB0_14:
	ldr	w0, [x21]
Lloh49:
	adrp	x8, _TEX_SIZE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _TEX_SIZE@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	bl	_DCFlushRange
	bl	_GX_InvalidateTexAll
	bl	_draw_square
Lloh52:
	adrp	x22, _crosshair@GOTPAGE
Lloh53:
	ldr	x22, [x22, _crosshair@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x8]
Lloh54:
	adrp	x20, _input@GOTPAGE
Lloh55:
	ldr	x20, [x20, _input@GOTPAGEOFF]
Lloh56:
	adrp	x21, _SYSTEM_LIGHTPHASER@GOTPAGE
Lloh57:
	ldr	x21, [x21, _SYSTEM_LIGHTPHASER@GOTPAGEOFF]
	cbz	x0, LBB0_16
; %bb.15:
	ldp	x8, x9, [x20]
	ldr	x8, [x8]
	ldr	x10, [x21]
	cmp	x8, x10
	cset	w8, ne
	lsl	x8, x8, #5
	ldr	x8, [x9, x8]
	ldp	w1, w2, [x8]
	bl	_gxDrawCrosshair
LBB0_16:
	ldr	x8, [x22]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_18
; %bb.17:
	ldp	x8, x9, [x20]
	ldr	x8, [x8, #8]
	ldr	x10, [x21]
	mov	w11, #40
	mov	w12, #32
	cmp	x8, x10
	csel	x8, x12, x11, eq
	ldr	x8, [x9, x8]
	ldp	w1, w2, [x8]
	bl	_gxDrawCrosshair
LBB0_18:
Lloh58:
	adrp	x8, _cd_leds@GOTPAGE
Lloh59:
	ldr	x8, [x8, _cd_leds@GOTPAGEOFF]
Lloh60:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_20
; %bb.19:
Lloh61:
	adrp	x10, _scd@GOTPAGE
Lloh62:
	ldr	x10, [x10, _scd@GOTPAGEOFF]
Lloh63:
	ldr	x10, [x10]
	ldr	w10, [x10, #12]
	ubfx	x11, x10, #1, #1
	ldr	x0, [x9, x11, lsl #3]
	ldr	x8, [x8]
	and	x9, x10, #0x1
	ldr	x1, [x8, x9, lsl #3]
	bl	_gxDrawCdLeds
LBB0_20:
Lloh64:
	adrp	x20, _whichfb@GOTPAGE
Lloh65:
	ldr	x20, [x20, _whichfb@GOTPAGEOFF]
	ldr	w8, [x20]
	eor	w8, w8, #0x1
	str	w8, [x20]
	bl	_GX_DrawDone
Lloh66:
	adrp	x21, _xfb@GOTPAGE
Lloh67:
	ldr	x21, [x21, _xfb@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
Lloh68:
	adrp	x8, _GX_TRUE@GOTPAGE
Lloh69:
	ldr	x8, [x8, _GX_TRUE@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	bl	_GX_CopyDisp
	bl	_GX_Flush
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	ldr	w0, [x8, x9, lsl #2]
	bl	_VIDEO_SetNextFramebuffer
	bl	_VIDEO_Flush
	ldr	w8, [x19]
	tbz	w8, #0, LBB0_24
; %bb.21:
	and	w8, w8, #0xfffffffe
	str	w8, [x19]
	bl	_VIDEO_WaitVSync
Lloh71:
	adrp	x8, _rmode@GOTPAGE
Lloh72:
	ldr	x8, [x8, _rmode@GOTPAGEOFF]
Lloh73:
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh74:
	adrp	x9, _VI_NON_INTERLACE@GOTPAGE
Lloh75:
	ldr	x9, [x9, _VI_NON_INTERLACE@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.22:
	bl	_VIDEO_WaitVSync
LBB0_23:
Lloh77:
	adrp	x8, _audioStarted@GOTPAGE
Lloh78:
	ldr	x8, [x8, _audioStarted@GOTPAGEOFF]
Lloh79:
	str	xzr, [x8]
LBB0_24:
Lloh80:
	adrp	x8, _SYNC_VIDEO@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SYNC_VIDEO@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_26:
	bl	_VIDEO_GetNextField
Lloh82:
	adrp	x19, _odd_frame@GOTPAGE
Lloh83:
	ldr	x19, [x19, _odd_frame@GOTPAGEOFF]
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cmp	x0, x8
	b.eq	LBB0_23
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	bl	_VIDEO_WaitVSync
	bl	_VIDEO_GetNextField
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotStr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh82, Lloh83
	.cfi_endproc
                                        ; -- End function
	.comm	_video_sync,4,2                 ; @video_sync
	.comm	_NO_SYNC,4,2                    ; @NO_SYNC
	.comm	_config,40,3                    ; @config
	.comm	_gc_pal,4,2                     ; @gc_pal
	.comm	_vdp_pal,4,2                    ; @vdp_pal
	.comm	_bitmap,20,2                    ; @bitmap
	.comm	_vwidth,4,2                     ; @vwidth
	.comm	_vheight,4,2                    ; @vheight
	.comm	_interlaced,4,2                 ; @interlaced
	.comm	_reg,8,3                        ; @reg
	.comm	_texturemem,4,2                 ; @texturemem
	.comm	_GX_TF_RGB565,4,2               ; @GX_TF_RGB565
	.comm	_GX_CLAMP,4,2                   ; @GX_CLAMP
	.comm	_GX_FALSE,4,2                   ; @GX_FALSE
	.comm	_GX_NEAR,4,2                    ; @GX_NEAR
	.comm	_GX_NEAR_MIP_NEAR,4,2           ; @GX_NEAR_MIP_NEAR
	.comm	_GX_ANISO_1,4,2                 ; @GX_ANISO_1
	.comm	_GX_TEXMAP0,4,2                 ; @GX_TEXMAP0
	.comm	_tvmodes,8,3                    ; @tvmodes
	.comm	_rmode,8,3                      ; @rmode
	.comm	_TEX_SIZE,4,2                   ; @TEX_SIZE
	.comm	_crosshair,8,3                  ; @crosshair
	.comm	_input,16,3                     ; @input
	.comm	_SYSTEM_LIGHTPHASER,8,3         ; @SYSTEM_LIGHTPHASER
	.comm	_cd_leds,8,3                    ; @cd_leds
	.comm	_scd,8,3                        ; @scd
	.comm	_whichfb,4,2                    ; @whichfb
	.comm	_xfb,8,3                        ; @xfb
	.comm	_GX_TRUE,4,2                    ; @GX_TRUE
	.comm	_VI_NON_INTERLACE,4,2           ; @VI_NON_INTERLACE
	.comm	_odd_frame,8,3                  ; @odd_frame
	.comm	_audioStarted,8,3               ; @audioStarted
	.comm	_SYNC_VIDEO,4,2                 ; @SYNC_VIDEO
.subsections_via_symbols
