	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CLUI_SetCDKey
_CLUI_SetCDKey:                         ## @CLUI_SetCDKey
	.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, %r14
	movq	_CVAR_INIT@GOTPCREL(%rip), %rax
	movq	_CVAR_SYSTEMINFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Cvar_Get
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_UI_usesUniqueCDKey
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_cl_cdkey@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	subq	$-128, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_Com_Memcpy
	movq	(%rbx), %rax
	movq	$0, 256(%rax)
	jmp	LBB0_5
LBB0_4:
	movq	_cl_cdkey@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_Com_Memcpy
LBB0_5:
	movq	_CVAR_ARCHIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_cvar_modifiedFlags@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fs_game"

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

	.comm	_CVAR_INIT,4,2                  ## @CVAR_INIT
	.comm	_CVAR_SYSTEMINFO,4,2            ## @CVAR_SYSTEMINFO
	.comm	_cl_cdkey,8,3                   ## @cl_cdkey
	.comm	_CVAR_ARCHIVE,4,2               ## @CVAR_ARCHIVE
	.comm	_cvar_modifiedFlags,4,2         ## @cvar_modifiedFlags
	.no_dead_strip	_CLUI_SetCDKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CLUI_SetCDKey
_CLUI_SetCDKey:                         ; @CLUI_SetCDKey
	.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, x0
Lloh0:
	adrp	x8, _CVAR_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CVAR_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CVAR_SYSTEMINFO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CVAR_SYSTEMINFO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Cvar_Get
	mov	x20, x0
	bl	_UI_usesUniqueCDKey
	cbz	x0, LBB0_4
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh10:
	adrp	x20, _cl_cdkey@GOTPAGE
Lloh11:
	ldr	x20, [x20, _cl_cdkey@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x8, #128
	mov	x1, x19
	mov	w2, #16
	bl	_Com_Memcpy
	ldr	x8, [x20]
	str	xzr, [x8, #256]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _cl_cdkey@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cl_cdkey@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	mov	x1, x19
	mov	w2, #16
	bl	_Com_Memcpy
LBB0_5:
Lloh15:
	adrp	x8, _CVAR_ARCHIVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CVAR_ARCHIVE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _cvar_modifiedFlags@GOTPAGE
Lloh19:
	ldr	x9, [x9, _cvar_modifiedFlags@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fs_game"

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

	.comm	_CVAR_INIT,4,2                  ; @CVAR_INIT
	.comm	_CVAR_SYSTEMINFO,4,2            ; @CVAR_SYSTEMINFO
	.comm	_cl_cdkey,8,3                   ; @cl_cdkey
	.comm	_CVAR_ARCHIVE,4,2               ; @CVAR_ARCHIVE
	.comm	_cvar_modifiedFlags,4,2         ; @cvar_modifiedFlags
	.no_dead_strip	_CLUI_SetCDKey
.subsections_via_symbols
