	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CL_CompleteDemoName
_CL_CompleteDemoName:                   ## @CL_CompleteDemoName
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	cmpl	$2, %esi
	jne	LBB0_2
## %bb.1:
	movq	_DEMOEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_com_protocol@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_Com_sprintf
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	%ecx, %edx
	callq	_Field_CompleteFilename
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".%s%d"

	.comm	_DEMOEXT,4,2                    ## @DEMOEXT
	.comm	_com_protocol,8,3               ## @com_protocol
L_.str.1:                               ## @.str.1
	.asciz	"demos"

	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_CL_CompleteDemoName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CL_CompleteDemoName
_CL_CompleteDemoName:                   ; @CL_CompleteDemoName
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	cmp	w1, #2
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DEMOEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEMOEXT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _com_protocol@GOTPAGE
Lloh7:
	ldr	x8, [x8, _com_protocol@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w4, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_Com_sprintf
Lloh11:
	adrp	x8, _qtrue@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	mov	x3, x2
	bl	_Field_CompleteFilename
LBB0_2:
	ldur	x8, [x29, #-8]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".%s%d"

	.comm	_DEMOEXT,4,2                    ; @DEMOEXT
	.comm	_com_protocol,8,3               ; @com_protocol
l_.str.1:                               ; @.str.1
	.asciz	"demos"

	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_CL_CompleteDemoName
.subsections_via_symbols
