	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARTIFACT_WriteConfig           ## -- Begin function ARTIFACT_WriteConfig
	.p2align	4, 0x90
_ARTIFACT_WriteConfig:                  ## @ARTIFACT_WriteConfig
	.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	%rdi, %rbx
	movq	_mode_cfg_strings@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_mode_ntsc@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r14), %rax
	movq	_mode_pal@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_ANTIC_artif_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ARTIFACT_NTSC=%s\n"

	.comm	_mode_cfg_strings,8,3           ## @mode_cfg_strings
	.comm	_mode_ntsc,8,3                  ## @mode_ntsc
L_.str.1:                               ## @.str.1
	.asciz	"ARTIFACT_PAL=%s\n"

	.comm	_mode_pal,8,3                   ## @mode_pal
L_.str.2:                               ## @.str.2
	.asciz	"ARTIFACT_NTSC_MODE=%i\n"

	.comm	_ANTIC_artif_mode,4,2           ## @ANTIC_artif_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ARTIFACT_WriteConfig           ; -- Begin function ARTIFACT_WriteConfig
	.p2align	2
_ARTIFACT_WriteConfig:                  ; @ARTIFACT_WriteConfig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _mode_cfg_strings@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mode_cfg_strings@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _mode_ntsc@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mode_ntsc@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _mode_pal@GOTPAGE
Lloh8:
	ldr	x9, [x9, _mode_pal@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh12:
	adrp	x8, _ANTIC_artif_mode@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ANTIC_artif_mode@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ARTIFACT_NTSC=%s\n"

	.comm	_mode_cfg_strings,8,3           ; @mode_cfg_strings
	.comm	_mode_ntsc,8,3                  ; @mode_ntsc
l_.str.1:                               ; @.str.1
	.asciz	"ARTIFACT_PAL=%s\n"

	.comm	_mode_pal,8,3                   ; @mode_pal
l_.str.2:                               ; @.str.2
	.asciz	"ARTIFACT_NTSC_MODE=%i\n"

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