	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateMode
_UpdateMode:                            ## @UpdateMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ARTIFACT_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%edi, %eax
	jne	LBB0_1
## %bb.8:
	popq	%rbp
	retq
LBB0_1:
	movq	_ARTIFACT_PAL_SIMPLE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	movq	_ANTIC_pal_blending@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	movq	_ARTIFACT_NTSC_OLD@GOTPCREL(%rip), %rdx
	movq	_ARTIFACT_NTSC_NEW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	(%rdx), %eax
	je	LBB0_4
## %bb.2:
	cmpl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	movq	_ANTIC_artif_mode@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_4:
	movq	_ANTIC_artif_mode@GOTPCREL(%rip), %rdx
	cmpl	$0, (%rdx)
	jne	LBB0_6
## %bb.5:
	movl	$1, (%rdx)
LBB0_6:
	xorl	%edx, %edx
	cmpl	%ecx, %eax
	sete	%dl
LBB0_7:
	movq	_ANTIC_artif_new@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	jmp	_ANTIC_UpdateArtifacting        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARTIFACT_mode,4,2              ## @ARTIFACT_mode
	.comm	_ARTIFACT_PAL_SIMPLE,4,2        ## @ARTIFACT_PAL_SIMPLE
	.comm	_ANTIC_pal_blending,4,2         ## @ANTIC_pal_blending
	.comm	_ARTIFACT_NTSC_OLD,4,2          ## @ARTIFACT_NTSC_OLD
	.comm	_ARTIFACT_NTSC_NEW,4,2          ## @ARTIFACT_NTSC_NEW
	.comm	_ANTIC_artif_mode,4,2           ## @ANTIC_artif_mode
	.comm	_ANTIC_artif_new,4,2            ## @ANTIC_artif_new
	.comm	_ARTIFACT_NTSC_FULL,4,2         ## @ARTIFACT_NTSC_FULL
	.comm	_ARTIFACT_PAL_BLEND,4,2         ## @ARTIFACT_PAL_BLEND
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_UpdateMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateMode
_UpdateMode:                            ; @UpdateMode
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ARTIFACT_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARTIFACT_mode@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_2
; %bb.1:
	ret
LBB0_2:
Lloh3:
	adrp	x9, _ARTIFACT_PAL_SIMPLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ARTIFACT_PAL_SIMPLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w9, eq
Lloh6:
	adrp	x10, _ANTIC_pal_blending@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ANTIC_pal_blending@GOTPAGEOFF]
Lloh8:
	str	w9, [x10]
Lloh9:
	adrp	x9, _ARTIFACT_NTSC_OLD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ARTIFACT_NTSC_OLD@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x9]
Lloh12:
	adrp	x9, _ARTIFACT_NTSC_NEW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ARTIFACT_NTSC_NEW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w10
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_6
; %bb.3:
Lloh15:
	adrp	x10, _ANTIC_artif_mode@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ANTIC_artif_mode@GOTPAGEOFF]
	ldr	w11, [x10]
	cbnz	w11, LBB0_5
; %bb.4:
	mov	w11, #1
	str	w11, [x10]
LBB0_5:
	cmp	w8, w9
	cset	w8, eq
	b	LBB0_7
LBB0_6:
	mov	w8, #0
Lloh17:
	adrp	x9, _ANTIC_artif_mode@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ANTIC_artif_mode@GOTPAGEOFF]
Lloh19:
	str	wzr, [x9]
LBB0_7:
Lloh20:
	adrp	x9, _ANTIC_artif_new@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ANTIC_artif_new@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
	b	_ANTIC_UpdateArtifacting
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ARTIFACT_mode,4,2              ; @ARTIFACT_mode
	.comm	_ARTIFACT_PAL_SIMPLE,4,2        ; @ARTIFACT_PAL_SIMPLE
	.comm	_ANTIC_pal_blending,4,2         ; @ANTIC_pal_blending
	.comm	_ARTIFACT_NTSC_OLD,4,2          ; @ARTIFACT_NTSC_OLD
	.comm	_ARTIFACT_NTSC_NEW,4,2          ; @ARTIFACT_NTSC_NEW
	.comm	_ANTIC_artif_mode,4,2           ; @ANTIC_artif_mode
	.comm	_ANTIC_artif_new,4,2            ; @ANTIC_artif_new
	.comm	_ARTIFACT_NTSC_FULL,4,2         ; @ARTIFACT_NTSC_FULL
	.comm	_ARTIFACT_PAL_BLEND,4,2         ; @ARTIFACT_PAL_BLEND
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_UpdateMode
.subsections_via_symbols
