	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARTIFACT_Set                   ## -- Begin function ARTIFACT_Set
	.p2align	4, 0x90
_ARTIFACT_Set:                          ## @ARTIFACT_Set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	movq	_ARTIFACT_mode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%eax, (%rcx)
	movq	_Atari800_tv_mode@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_Atari800_TV_NTSC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_mode_ntsc@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_mode_pal@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	%eax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_UpdateMode                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARTIFACT_mode,4,2              ## @ARTIFACT_mode
	.comm	_Atari800_tv_mode,8,3           ## @Atari800_tv_mode
	.comm	_Atari800_TV_NTSC,8,3           ## @Atari800_TV_NTSC
	.comm	_mode_ntsc,4,2                  ## @mode_ntsc
	.comm	_mode_pal,4,2                   ## @mode_pal
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARTIFACT_Set                   ; -- Begin function ARTIFACT_Set
	.p2align	2
_ARTIFACT_Set:                          ; @ARTIFACT_Set
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _ARTIFACT_mode@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARTIFACT_mode@GOTPAGEOFF]
	ldr	w8, [x9]
	str	w0, [x9]
Lloh2:
	adrp	x9, _Atari800_tv_mode@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Atari800_tv_mode@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _Atari800_TV_NTSC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _Atari800_TV_NTSC@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _mode_pal@GOTPAGE
Lloh9:
	ldr	x11, [x11, _mode_pal@GOTPAGEOFF]
Lloh10:
	adrp	x12, _mode_ntsc@GOTPAGE
Lloh11:
	ldr	x12, [x12, _mode_ntsc@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x12, x11, eq
	str	w0, [x9]
Lloh12:
	adrp	x9, _TRUE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
	mov	x0, x8
	b	_UpdateMode
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ARTIFACT_mode,4,2              ; @ARTIFACT_mode
	.comm	_Atari800_tv_mode,8,3           ; @Atari800_tv_mode
	.comm	_Atari800_TV_NTSC,8,3           ; @Atari800_TV_NTSC
	.comm	_mode_ntsc,4,2                  ; @mode_ntsc
	.comm	_mode_pal,4,2                   ; @mode_pal
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
