	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitVideo                      ## -- Begin function 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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_vidready@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movq	_G320x200x256@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_vga_setmode
	orb	$1, (%r14)
	movq	_ScreenLoc@GOTPCREL(%rip), %rbx
	movl	$655360, (%rbx)                 ## imm = 0xA0000
	movq	_FCEUDvmode@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TweakVGA
	xorl	%eax, %eax
	callq	_SetBorder
	movl	(%rbx), %edi
	movl	$128, %esi
	movl	$65536, %edx                    ## imm = 0x10000
	callq	_DOSMemSet
	orb	$2, (%r14)
	xorl	%eax, %eax
	callq	_FlushPalette
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vidready,4,2                   ## @vidready
	.comm	_FCEUDvmode,4,2                 ## @FCEUDvmode
	.comm	_G320x200x256,4,2               ## @G320x200x256
	.comm	_ScreenLoc,4,2                  ## @ScreenLoc
.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:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _vidready@GOTPAGE
Lloh1:
	ldr	x19, [x19, _vidready@GOTPAGEOFF]
	str	wzr, [x19]
Lloh2:
	adrp	x8, _G320x200x256@GOTPAGE
Lloh3:
	ldr	x8, [x8, _G320x200x256@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_vga_setmode
	ldr	w8, [x19]
	orr	w8, w8, #0x1
Lloh5:
	adrp	x20, _ScreenLoc@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ScreenLoc@GOTPAGEOFF]
	str	w8, [x19]
	mov	w8, #655360
	str	w8, [x20]
Lloh7:
	adrp	x8, _FCEUDvmode@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FCEUDvmode@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_TweakVGA
	bl	_SetBorder
	ldr	w0, [x20]
	mov	w1, #128
	mov	w2, #65536
	bl	_DOSMemSet
	ldr	w8, [x19]
	orr	w8, w8, #0x2
	str	w8, [x19]
	bl	_FlushPalette
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vidready,4,2                   ; @vidready
	.comm	_FCEUDvmode,4,2                 ; @FCEUDvmode
	.comm	_G320x200x256,4,2               ; @G320x200x256
	.comm	_ScreenLoc,4,2                  ; @ScreenLoc
.subsections_via_symbols
