	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CL_WalkDemoExt
_CL_WalkDemoExt:                        ## @CL_WalkDemoExt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, (%rdx)
	movq	_demo_protocols@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$8, %r12d
	movq	_qtrue@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_MAX_OSPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	callq	_Com_sprintf
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_FS_FOpenFileRead
	cmpl	$0, (%r14)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	callq	_Com_Printf
	movq	_demo_protocols@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12), %r8
	addq	$8, %r12
	testq	%r8, %r8
	jne	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_demo_protocols,8,3             ## @demo_protocols
	.comm	_MAX_OSPATH,4,2                 ## @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"demos/%s.dm_%d"

	.comm	_qtrue,4,2                      ## @qtrue
L_.str.1:                               ## @.str.1
	.asciz	"Demo file: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Not found: %s\n"

	.no_dead_strip	_CL_WalkDemoExt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CL_WalkDemoExt
_CL_WalkDemoExt:                        ; @CL_WalkDemoExt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	wzr, [x2]
Lloh0:
	adrp	x24, _demo_protocols@GOTPAGE
Lloh1:
	ldr	x24, [x24, _demo_protocols@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x4, [x8]
	cbz	x4, LBB0_4
; %bb.1:
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w25, #8
Lloh2:
	adrp	x26, _MAX_OSPATH@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MAX_OSPATH@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x27, _qtrue@GOTPAGE
Lloh7:
	ldr	x27, [x27, _qtrue@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str.2@PAGE
Lloh9:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	mov	x3, x21
	bl	_Com_sprintf
	ldr	w2, [x27]
	mov	x0, x19
	mov	x1, x20
	bl	_FS_FOpenFileRead
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_Com_Printf
	ldr	x8, [x24]
	ldr	x4, [x8, x25]
	add	x25, x25, #8
	cbnz	x4, LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_Com_Printf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_demo_protocols,8,3             ; @demo_protocols
	.comm	_MAX_OSPATH,4,2                 ; @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"demos/%s.dm_%d"

	.comm	_qtrue,4,2                      ; @qtrue
l_.str.1:                               ; @.str.1
	.asciz	"Demo file: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Not found: %s\n"

	.no_dead_strip	_CL_WalkDemoExt
.subsections_via_symbols
