	.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_8
## %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_8
## %bb.2:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
	leaq	L_.str(%rip), %rdi
	callq	_Com_WriteConfigToFile
	movq	_CVAR_INIT@GOTPCREL(%rip), %rax
	movq	_CVAR_SYSTEMINFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_Cvar_Get
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_UI_usesUniqueCDKey
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	movq	(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.5:
	movq	_cl_cdkey@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$64, %rsi
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_7:
	movq	_cl_cdkey@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
LBB0_6:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"q3config.cfg"

L_.str.1:                               ## @.str.1
	.asciz	"fs_game"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_CVAR_INIT,4,2                  ## @CVAR_INIT
	.comm	_CVAR_SYSTEMINFO,4,2            ## @CVAR_SYSTEMINFO
	.comm	_cl_cdkey,8,3                   ## @cl_cdkey
L_.str.3:                               ## @.str.3
	.asciz	"baseq3"

.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_6
; %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_6
; %bb.2:
	bic	w9, w9, w10
	str	w9, [x8]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_WriteConfigToFile
Lloh10:
	adrp	x8, _CVAR_INIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CVAR_INIT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _CVAR_SYSTEMINFO@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CVAR_SYSTEMINFO@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Cvar_Get
	mov	x19, x0
	bl	_UI_usesUniqueCDKey
	cbz	x0, LBB0_7
; %bb.3:
	cbz	x19, LBB0_7
; %bb.4:
	ldr	x0, [x19]
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.5:
Lloh20:
	adrp	x8, _cl_cdkey@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cl_cdkey@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	x1, x8, #64
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh23:
	adrp	x8, _cl_cdkey@GOTPAGE
Lloh24:
	ldr	x8, [x8, _cl_cdkey@GOTPAGEOFF]
Lloh25:
	ldr	x1, [x8]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	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 AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"q3config.cfg"

l_.str.1:                               ; @.str.1
	.asciz	"fs_game"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_CVAR_INIT,4,2                  ; @CVAR_INIT
	.comm	_CVAR_SYSTEMINFO,4,2            ; @CVAR_SYSTEMINFO
	.comm	_cl_cdkey,8,3                   ; @cl_cdkey
l_.str.3:                               ; @.str.3
	.asciz	"baseq3"

.subsections_via_symbols
