	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_PlayDemo_f                  ## -- Begin function CL_PlayDemo_f
	.p2align	4, 0x90
_CL_PlayDemo_f:                         ## @CL_PlayDemo_f
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_OSPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	xorl	%eax, %eax
	callq	_Cmd_Argc
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_Cvar_Set
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CL_Disconnect
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_strlen
	cmpl	$7, %eax
	jl	LBB0_14
## %bb.4:
	movslq	%ebx, %rax
	leaq	(%rax,%r13), %rdi
	addq	$-6, %rdi
	cmpb	$46, (%rdi)
	jne	LBB0_14
## %bb.5:
	movb	1(%rdi), %al
	orb	$32, %al
	cmpb	$100, %al
	jne	LBB0_14
## %bb.6:
	movb	2(%rdi), %al
	orb	$32, %al
	cmpb	$109, %al
	jne	LBB0_14
## %bb.7:
	cmpb	$95, 3(%rdi)
	jne	LBB0_14
## %bb.8:
	addq	$4, %rdi
	callq	_atoi
	movq	_demo_protocols@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	testl	%edx, %edx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	$4, %rcx
	cmpl	%eax, %edx
	jne	LBB0_9
LBB0_11:
	testl	%edx, %edx
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	%r13, %rcx
	callq	_Com_sprintf
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_clc@GOTPCREL(%rip), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	callq	_FS_FOpenFileRead
	jmp	LBB0_16
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
LBB0_14:
	movq	_clc@GOTPCREL(%rip), %rdx
	addq	$16, %rdx
	movq	%r13, %rdi
LBB0_15:
	movq	%r14, %rsi
	callq	_CL_WalkDemoExt
LBB0_16:
	movq	_clc@GOTPCREL(%rip), %r15
	cmpl	$0, 16(%r15)
	je	LBB0_17
## %bb.18:
	movq	(%r15), %rbx
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_Q_strncpyz
	xorl	%eax, %eax
	callq	_Con_Close
	movq	_CA_CONNECTED@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_cls@GOTPCREL(%rip), %r13
	movq	%rax, (%r13)
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	8(%r13), %r14
	movl	$1, %edi
	callq	_Cmd_Argv
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_Q_strncpyz
	movq	(%r13), %rax
	cmpq	(%r12), %rax
	jl	LBB0_22
## %bb.19:
	movq	_CA_PRIMED@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%rbx), %rax
	jge	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	callq	_CL_ReadDemoMessage
	movq	(%r13), %rax
	cmpq	(%r12), %rax
	jge	LBB0_20
LBB0_22:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_23
LBB0_17:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	callq	_Com_Error
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_Com_Printf
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_Q_strncpyz
	movq	%r15, %rdi
	callq	_strlen
	cltq
	movb	$0, -6(%rax,%r15)
	movq	_clc@GOTPCREL(%rip), %rdx
	addq	$16, %rdx
	movq	%r15, %rdi
	jmp	LBB0_15
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_OSPATH,4,2                 ## @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"playdemo <demoname>\n"

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

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

	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_demo_protocols,8,3             ## @demo_protocols
L_.str.3:                               ## @.str.3
	.asciz	"demos/%s"

	.comm	_clc,24,3                       ## @clc
L_.str.4:                               ## @.str.4
	.asciz	"Protocol %d not supported for demos\n"

	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
L_.str.5:                               ## @.str.5
	.asciz	"couldn't open %s"

	.comm	_CA_CONNECTED,8,3               ## @CA_CONNECTED
	.comm	_cls,16,3                       ## @cls
	.comm	_CA_PRIMED,8,3                  ## @CA_PRIMED
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_PlayDemo_f                  ; -- Begin function CL_PlayDemo_f
	.p2align	2
_CL_PlayDemo_f:                         ; @CL_PlayDemo_f
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_OSPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_OSPATH@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x12, x9, #0x1fffffff0
	sub	x19, x8, x12
	mov	sp, x19
	mov	x9, x20
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x21, x8, x12
	mov	sp, x21
	bl	_Cmd_Argc
	cmp	w0, #2
	b.ne	LBB0_10
; %bb.1:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Cvar_Set
Lloh14:
	adrp	x25, _qtrue@GOTPAGE
Lloh15:
	ldr	x25, [x25, _qtrue@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_CL_Disconnect
	mov	w0, #1
	bl	_Cmd_Argv
	mov	x22, x0
	bl	_strlen
	mov	x23, x0
	mov	x0, x22
	bl	_strlen
Lloh16:
	adrp	x24, _clc@GOTPAGE
Lloh17:
	ldr	x24, [x24, _clc@GOTPAGEOFF]
	cmp	w0, #7
	b.lt	LBB0_12
; %bb.2:
	add	x8, x22, w23, sxtw
	ldrb	w9, [x8, #-6]!
	cmp	w9, #46
	b.ne	LBB0_12
; %bb.3:
	ldrb	w9, [x8, #1]
	orr	w9, w9, #0x20
	cmp	w9, #100
	b.ne	LBB0_12
; %bb.4:
	ldrb	w9, [x8, #2]
	orr	w9, w9, #0x20
	cmp	w9, #109
	b.ne	LBB0_12
; %bb.5:
	ldrb	w9, [x8, #3]
	cmp	w9, #95
	b.ne	LBB0_12
; %bb.6:
	add	x0, x8, #4
	bl	_atoi
                                        ; kill: def $w0 killed $w0 def $x0
Lloh18:
	adrp	x8, _demo_protocols@GOTPAGE
Lloh19:
	ldr	x8, [x8, _demo_protocols@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x8], #4
	cmp	w9, #0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_7
; %bb.8:
	cbz	w9, LBB0_22
; %bb.9:
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_Com_sprintf
	ldr	w2, [x25]
	add	x1, x24, #16
	mov	x0, x19
	bl	_FS_FOpenFileRead
	b	LBB0_14
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.11:
Lloh26:
	adrp	x0, l_.str@PAGE
Lloh27:
	add	x0, x0, l_.str@PAGEOFF
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_Com_Printf
LBB0_12:
	add	x2, x24, #16
	mov	x0, x22
LBB0_13:
	mov	x1, x19
	bl	_CL_WalkDemoExt
LBB0_14:
	ldr	w8, [x24, #16]
	cbz	w8, LBB0_19
; %bb.15:
	ldr	x19, [x24]
	mov	w0, #1
	bl	_Cmd_Argv
	mov	x1, x0
	mov	x0, x19
	mov	w2, #8
	bl	_Q_strncpyz
	bl	_Con_Close
Lloh28:
	adrp	x20, _CA_CONNECTED@GOTPAGE
Lloh29:
	ldr	x20, [x20, _CA_CONNECTED@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh30:
	adrp	x21, _cls@GOTPAGE
Lloh31:
	ldr	x21, [x21, _cls@GOTPAGEOFF]
	str	x8, [x21]
	ldr	w8, [x25]
	str	w8, [x24, #12]
	ldr	x19, [x21, #8]
	mov	w0, #1
	bl	_Cmd_Argv
	mov	x1, x0
	mov	x0, x19
	mov	w2, #8
	bl	_Q_strncpyz
	ldr	x8, [x21]
	ldr	x9, [x20]
Lloh32:
	adrp	x19, _CA_PRIMED@GOTPAGE
Lloh33:
	ldr	x19, [x19, _CA_PRIMED@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	bl	_CL_ReadDemoMessage
	ldr	x8, [x21]
	ldr	x9, [x20]
	b	LBB0_16
LBB0_18:
Lloh34:
	adrp	x8, _qfalse@GOTPAGE
Lloh35:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x24, #8]
	b	LBB0_20
LBB0_19:
Lloh37:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, l_.str.5@PAGE
Lloh41:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	bl	_Com_Error
LBB0_20:
	ldur	x8, [x29, #-72]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.21:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	str	x0, [sp, #-16]!
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Com_Printf
	add	sp, sp, #16
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_Q_strncpyz
	mov	x0, x21
	bl	_strlen
	add	x8, x21, w0, sxtw
	sturb	wzr, [x8, #-6]
	add	x2, x24, #16
	mov	x0, x21
	b	LBB0_13
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_OSPATH,4,2                 ; @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"playdemo <demoname>\n"

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

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

	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_demo_protocols,8,3             ; @demo_protocols
l_.str.3:                               ; @.str.3
	.asciz	"demos/%s"

	.comm	_clc,24,3                       ; @clc
l_.str.4:                               ; @.str.4
	.asciz	"Protocol %d not supported for demos\n"

	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
l_.str.5:                               ; @.str.5
	.asciz	"couldn't open %s"

	.comm	_CA_CONNECTED,8,3               ; @CA_CONNECTED
	.comm	_cls,16,3                       ; @cls
	.comm	_CA_PRIMED,8,3                  ; @CA_PRIMED
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
