	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_WriteConfiguration         ## -- Begin function Com_WriteConfiguration
	.p2align	4, 0x90
_Com_WriteConfiguration:                ## @Com_WriteConfiguration
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_com_fullyInitialized@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	_cvar_modifiedFlags@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CVAR_ARCHIVE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_9
## %bb.2:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_com_writeConfig@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.3:
	movq	_Q3CONFIG_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_Com_WriteConfigToFile
	movq	_com_standalone@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str(%rip), %rdi
	callq	_Cvar_VariableString
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_UI_usesUniqueCDKey
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	cmpb	$0, (%rbx)
	je	LBB0_8
## %bb.6:
	movq	_cl_cdkey@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$64, %rsi
	movq	%rbx, %rdi
	jmp	LBB0_7
LBB0_8:
	movq	_BASEGAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_cl_cdkey@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Com_WriteCDKey                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_com_fullyInitialized,4,2       ## @com_fullyInitialized
	.comm	_cvar_modifiedFlags,4,2         ## @cvar_modifiedFlags
	.comm	_CVAR_ARCHIVE,4,2               ## @CVAR_ARCHIVE
	.comm	_com_writeConfig,8,3            ## @com_writeConfig
	.comm	_Q3CONFIG_CFG,4,2               ## @Q3CONFIG_CFG
	.comm	_com_standalone,8,3             ## @com_standalone
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fs_game"

	.comm	_cl_cdkey,8,3                   ## @cl_cdkey
	.comm	_BASEGAME,8,3                   ## @BASEGAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Com_WriteConfiguration         ; -- Begin function Com_WriteConfiguration
	.p2align	2
_Com_WriteConfiguration:                ; @Com_WriteConfiguration
	.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
Lloh0:
	adrp	x8, _com_fullyInitialized@GOTPAGE
Lloh1:
	ldr	x8, [x8, _com_fullyInitialized@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _cvar_modifiedFlags@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cvar_modifiedFlags@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh5:
	adrp	x10, _CVAR_ARCHIVE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CVAR_ARCHIVE@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	bic	w9, w9, w10
	str	w9, [x8]
Lloh8:
	adrp	x8, _com_writeConfig@GOTPAGE
Lloh9:
	ldr	x8, [x8, _com_writeConfig@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _Q3CONFIG_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Q3CONFIG_CFG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_Com_WriteConfigToFile
Lloh14:
	adrp	x8, _com_standalone@GOTPAGE
Lloh15:
	ldr	x8, [x8, _com_standalone@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Cvar_VariableString
	mov	x19, x0
	bl	_UI_usesUniqueCDKey
	cbz	x0, LBB0_8
; %bb.6:
	ldrb	w8, [x19]
	cbz	w8, LBB0_8
; %bb.7:
Lloh19:
	adrp	x8, _cl_cdkey@GOTPAGE
Lloh20:
	ldr	x8, [x8, _cl_cdkey@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x1, x8, #64
	mov	x0, x19
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x8, _BASEGAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BASEGAME@GOTPAGEOFF]
Lloh24:
	ldr	x0, [x8]
Lloh25:
	adrp	x8, _cl_cdkey@GOTPAGE
Lloh26:
	ldr	x8, [x8, _cl_cdkey@GOTPAGEOFF]
Lloh27:
	ldr	x1, [x8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Com_WriteCDKey
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_com_fullyInitialized,4,2       ; @com_fullyInitialized
	.comm	_cvar_modifiedFlags,4,2         ; @cvar_modifiedFlags
	.comm	_CVAR_ARCHIVE,4,2               ; @CVAR_ARCHIVE
	.comm	_com_writeConfig,8,3            ; @com_writeConfig
	.comm	_Q3CONFIG_CFG,4,2               ; @Q3CONFIG_CFG
	.comm	_com_standalone,8,3             ; @com_standalone
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fs_game"

	.comm	_cl_cdkey,8,3                   ; @cl_cdkey
	.comm	_BASEGAME,8,3                   ; @BASEGAME
.subsections_via_symbols
