	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARTIFACT_ReadConfig            ## -- Begin function ARTIFACT_ReadConfig
	.p2align	4, 0x90
_ARTIFACT_ReadConfig:                   ## @ARTIFACT_ReadConfig
	.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	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	movq	_FALSE@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movq	%r14, %rdi
	callq	_Util_sscandec
	cmpl	$4, %eax
	ja	LBB0_12
## %bb.4:
	movq	_ANTIC_artif_mode@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_5:
	movq	_mode_cfg_strings@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARTIFACT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_CFG_MatchTextParameter
	testl	%eax, %eax
	js	LBB0_11
## %bb.6:
	movq	_mode_ntsc@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_mode_cfg_strings@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARTIFACT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_CFG_MatchTextParameter
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	movq	_mode_pal@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	%eax, (%rcx)
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_12:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ARTIFACT_NTSC"

	.comm	_mode_cfg_strings,4,2           ## @mode_cfg_strings
	.comm	_ARTIFACT_SIZE,4,2              ## @ARTIFACT_SIZE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_mode_ntsc,4,2                  ## @mode_ntsc
L_.str.1:                               ## @.str.1
	.asciz	"ARTIFACT_PAL"

	.comm	_mode_pal,4,2                   ## @mode_pal
L_.str.2:                               ## @.str.2
	.asciz	"ARTIFACT_NTSC_MODE"

	.comm	_ANTIC_artif_mode,4,2           ## @ANTIC_artif_mode
	.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_ReadConfig            ; -- Begin function ARTIFACT_ReadConfig
	.p2align	2
_ARTIFACT_ReadConfig:                   ; @ARTIFACT_ReadConfig
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_10
; %bb.3:
	mov	x0, x19
	bl	_Util_sscandec
	cmp	w0, #4
	b.hi	LBB0_10
; %bb.4:
Lloh6:
	adrp	x8, _ANTIC_artif_mode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ANTIC_artif_mode@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _mode_cfg_strings@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mode_cfg_strings@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ARTIFACT_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARTIFACT_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CFG_MatchTextParameter
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh14:
	adrp	x8, _mode_ntsc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mode_ntsc@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _mode_cfg_strings@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mode_cfg_strings@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _ARTIFACT_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ARTIFACT_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_CFG_MatchTextParameter
	tbnz	w0, #31, LBB0_10
; %bb.8:
Lloh22:
	adrp	x8, _mode_pal@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mode_pal@GOTPAGEOFF]
LBB0_9:
	str	w0, [x8]
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh26:
	adrp	x8, _FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ARTIFACT_NTSC"

	.comm	_mode_cfg_strings,4,2           ; @mode_cfg_strings
	.comm	_ARTIFACT_SIZE,4,2              ; @ARTIFACT_SIZE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_mode_ntsc,4,2                  ; @mode_ntsc
l_.str.1:                               ; @.str.1
	.asciz	"ARTIFACT_PAL"

	.comm	_mode_pal,4,2                   ; @mode_pal
l_.str.2:                               ; @.str.2
	.asciz	"ARTIFACT_NTSC_MODE"

	.comm	_ANTIC_artif_mode,4,2           ; @ANTIC_artif_mode
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
