	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupEmulatedEnvironment       ## -- Begin function SetupEmulatedEnvironment
	.p2align	4, 0x90
_SetupEmulatedEnvironment:              ## @SetupEmulatedEnvironment
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_reprogram_VIDEL@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_new_videoram@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_VsetScreen
	movq	_mode336x240_videl_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_p_str_p@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_load_r@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Supexec
	movq	_new_videl_mode_valid@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_2:
	xorl	%eax, %eax
	callq	_set_new_colors
	movq	_init_kb@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Supexec
	movl	$4, %edi
	movl	$20, %esi
	popq	%rbp
	jmp	_Bconout                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_reprogram_VIDEL,8,3            ## @reprogram_VIDEL
	.comm	_new_videoram,4,2               ## @new_videoram
	.comm	_mode336x240_videl_settings,8,3 ## @mode336x240_videl_settings
	.comm	_p_str_p,8,3                    ## @p_str_p
	.comm	_load_r,4,2                     ## @load_r
	.comm	_new_videl_mode_valid,4,2       ## @new_videl_mode_valid
	.comm	_init_kb,4,2                    ## @init_kb
	.comm	_Screen_HEIGHT,4,2              ## @Screen_HEIGHT
	.comm	_Screen_WIDTH,4,2               ## @Screen_WIDTH
	.comm	_Screen_atari_b,8,3             ## @Screen_atari_b
	.comm	_delta_screen,8,3               ## @delta_screen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupEmulatedEnvironment       ; -- Begin function SetupEmulatedEnvironment
	.p2align	2
_SetupEmulatedEnvironment:              ; @SetupEmulatedEnvironment
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _reprogram_VIDEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reprogram_VIDEL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _new_videoram@GOTPAGE
Lloh4:
	ldr	x8, [x8, _new_videoram@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x0
	mov	w2, #-1
	mov	w3, #-1
	bl	_VsetScreen
Lloh6:
	adrp	x8, _mode336x240_videl_settings@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mode336x240_videl_settings@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _p_str_p@GOTPAGE
Lloh10:
	ldr	x9, [x9, _p_str_p@GOTPAGEOFF]
Lloh11:
	str	x8, [x9]
Lloh12:
	adrp	x8, _load_r@GOTPAGE
Lloh13:
	ldr	x8, [x8, _load_r@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_Supexec
Lloh15:
	adrp	x8, _new_videl_mode_valid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _new_videl_mode_valid@GOTPAGEOFF]
	mov	w9, #1
Lloh17:
	str	w9, [x8]
LBB0_2:
	bl	_set_new_colors
Lloh18:
	adrp	x8, _init_kb@GOTPAGE
Lloh19:
	ldr	x8, [x8, _init_kb@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_Supexec
	mov	w0, #4
	mov	w1, #20
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_Bconout
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_reprogram_VIDEL,8,3            ; @reprogram_VIDEL
	.comm	_new_videoram,4,2               ; @new_videoram
	.comm	_mode336x240_videl_settings,8,3 ; @mode336x240_videl_settings
	.comm	_p_str_p,8,3                    ; @p_str_p
	.comm	_load_r,4,2                     ; @load_r
	.comm	_new_videl_mode_valid,4,2       ; @new_videl_mode_valid
	.comm	_init_kb,4,2                    ; @init_kb
	.comm	_Screen_HEIGHT,4,2              ; @Screen_HEIGHT
	.comm	_Screen_WIDTH,4,2               ; @Screen_WIDTH
	.comm	_Screen_atari_b,8,3             ; @Screen_atari_b
	.comm	_delta_screen,8,3               ; @delta_screen
.subsections_via_symbols
