	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_PlayCinematic              ## -- Begin function CIN_PlayCinematic
	.p2align	4, 0x90
_CIN_PlayCinematic:                     ## @CIN_PlayCinematic
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_OSPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	L_.str.3(%rip), %rdx
LBB0_4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	callq	_Com_sprintf
	movq	_CIN_system@GOTPCREL(%rip), %rax
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	testl	%r12d, (%rax)
	jne	LBB0_9
## %bb.5:
	movq	_MAX_VIDEO_HANDLES@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.6:
	movl	$48, %r14d
	xorl	%ebx, %ebx
	movq	_cinTable@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r14), %rdi
	movq	%r15, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	addq	$56, %r14
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	_cin@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_Com_Memset
	xorl	%eax, %eax
	callq	_CIN_HandleForVideo
	movq	_currentHandle@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	movq	%rax, (%rbx)
	movq	_cinTable@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	imulq	$56, %rax, %rax
	movq	48(%rcx,%rax), %rdi
	movq	%r15, %rsi
	callq	_strcpy
	imulq	$56, (%r12), %rax
	movq	(%r13), %rcx
	movq	$0, (%rcx,%rax)
	imulq	$56, (%r12), %rax
	movq	48(%rcx,%rax), %rdi
	leaq	(%rcx,%rax), %rsi
	addq	$32, %rsi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_FS_FOpenFileRead
	movq	(%r13), %rcx
	imulq	$56, (%r12), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	(%r12), %rdi
	imulq	$56, %rdi, %rax
	cmpq	$0, (%rcx,%rax)
	jle	LBB0_10
## %bb.11:
	movq	%rbx, %r15
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_CIN_SetExtents
	movq	(%r12), %rdi
	movq	_CIN_loop@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	movl	(%rax), %eax
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	andl	%ebx, %eax
	setne	%sil
	callq	_CIN_SetLooping
	movq	_DEFAULT_CIN_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r13), %rax
	imulq	$56, (%r12), %rcx
	movl	%edx, 40(%rax,%rcx)
	movq	_DEFAULT_CIN_WIDTH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 36(%rax,%rcx)
	movq	_CIN_hold@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	movl	(%rdx), %edx
	andl	%ebx, %edx
	setne	%sil
	movl	%esi, 8(%rax,%rcx)
	xorl	%edx, %edx
	movq	_CIN_system@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%ebx, %esi
	setne	%dl
	movl	%edx, 12(%rax,%rcx)
	movl	$1, 16(%rax,%rcx)
	movq	_CIN_silent@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	movl	(%rdx), %edx
	andl	%ebx, %edx
	setne	%dil
	movl	%edi, 20(%rax,%rcx)
	movq	_CIN_shader@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	andl	(%rdx), %ebx
	setne	%dil
	movl	%edi, 24(%rax,%rcx)
	testl	%esi, %esi
	je	LBB0_14
## %bb.12:
	movq	_uivm@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	movq	_UI_SET_ACTIVE_MENU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_UIMENU_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_VM_Call
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	imulq	$56, (%r12), %rax
	movq	(%r13), %rcx
	movq	48(%rcx,%rax), %rax
	movq	$0, (%rax)
	jmp	LBB0_20
LBB0_14:
	addq	%rcx, %rax
	addq	$16, %rax
	movq	_cl_inGameVideo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_15:
	xorl	%eax, %eax
	callq	_initRoQ
	movq	8(%r15), %rdi
	movq	(%r13), %rax
	imulq	$56, (%r12), %rcx
	movl	32(%rax,%rcx), %edx
	movl	$16, %esi
	callq	_FS_Read
	movq	8(%r15), %rax
	movl	8(%rax), %ecx
	shll	$8, %ecx
	addl	(%rax), %ecx
	movzwl	%cx, %eax
	cmpl	$4228, %eax                     ## imm = 0x1084
	jne	LBB0_19
## %bb.16:
	xorl	%eax, %eax
	callq	_RoQ_init
	movq	(%r13), %rax
	imulq	$56, (%r12), %rcx
	movl	32(%rax,%rcx), %edi
	movl	$65536, %esi                    ## imm = 0x10000
	callq	_Sys_BeginStreamedFile
	movq	_FMV_PLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r13), %rcx
	imulq	$56, (%r12), %rdx
	movl	%eax, 28(%rcx,%rdx)
	leaq	L_.str.6(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	movq	(%r13), %rax
	imulq	$56, (%r12), %rcx
	cmpl	$0, 12(%rax,%rcx)
	je	LBB0_18
## %bb.17:
	movq	_CA_CINEMATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_cls@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_18:
	xorl	%eax, %eax
	callq	_Con_Close
	movq	_s_soundtime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_s_rawend@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %ebx
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_Com_DPrintf
	xorl	%eax, %eax
	callq	_RoQShutdown
LBB0_20:
	movl	$-1, %ebx
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_4
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_OSPATH,4,2                 ## @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"video/%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.comm	_CIN_system,4,2                 ## @CIN_system
	.comm	_MAX_VIDEO_HANDLES,4,2          ## @MAX_VIDEO_HANDLES
	.comm	_cinTable,8,3                   ## @cinTable
L_.str.4:                               ## @.str.4
	.asciz	"SCR_PlayCinematic( %s )\n"

	.comm	_cin,16,3                       ## @cin
	.comm	_currentHandle,8,3              ## @currentHandle
	.comm	_qtrue,4,2                      ## @qtrue
L_.str.5:                               ## @.str.5
	.asciz	"play(%s), ROQSize<=0\n"

	.comm	_CIN_loop,4,2                   ## @CIN_loop
	.comm	_DEFAULT_CIN_HEIGHT,4,2         ## @DEFAULT_CIN_HEIGHT
	.comm	_DEFAULT_CIN_WIDTH,4,2          ## @DEFAULT_CIN_WIDTH
	.comm	_CIN_hold,4,2                   ## @CIN_hold
	.comm	_CIN_silent,4,2                 ## @CIN_silent
	.comm	_CIN_shader,4,2                 ## @CIN_shader
	.comm	_uivm,8,3                       ## @uivm
	.comm	_UI_SET_ACTIVE_MENU,4,2         ## @UI_SET_ACTIVE_MENU
	.comm	_UIMENU_NONE,4,2                ## @UIMENU_NONE
	.comm	_cl_inGameVideo,8,3             ## @cl_inGameVideo
	.comm	_FMV_PLAY,4,2                   ## @FMV_PLAY
L_.str.6:                               ## @.str.6
	.asciz	"trFMV::play(), playing %s\n"

	.comm	_CA_CINEMATIC,4,2               ## @CA_CINEMATIC
	.comm	_cls,4,2                        ## @cls
	.comm	_s_soundtime,4,2                ## @s_soundtime
	.comm	_s_rawend,4,2                   ## @s_rawend
L_.str.7:                               ## @.str.7
	.asciz	"trFMV::play(), invalid RoQ ID\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_PlayCinematic              ; -- Begin function CIN_PlayCinematic
	.p2align	2
_CIN_PlayCinematic:                     ; @CIN_PlayCinematic
	.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
	sub	sp, sp, #16
	mov	x20, x5
	stur	w4, [x29, #-92]                 ; 4-byte Folded Spill
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_OSPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_OSPATH@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x26, x8, x9
	mov	sp, x26
	mov	w1, #47
	bl	_strchr
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #92
	bl	_strchr
	cbz	x0, LBB0_21
LBB0_2:
Lloh8:
	adrp	x2, l_.str.3@PAGE
Lloh9:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_3:
	mov	x0, x26
	mov	x1, x25
	mov	x3, x19
	bl	_Com_sprintf
Lloh10:
	adrp	x8, _CIN_system@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CIN_system@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x28, _MAX_VIDEO_HANDLES@GOTPAGE
Lloh14:
	ldr	x28, [x28, _MAX_VIDEO_HANDLES@GOTPAGEOFF]
	and	w8, w8, w20
	ldr	w9, [x28]
	cmp	w8, #0
	ccmp	w9, #1, #8, eq
Lloh15:
	adrp	x27, _cinTable@GOTPAGE
Lloh16:
	ldr	x27, [x27, _cinTable@GOTPAGEOFF]
	b.lt	LBB0_7
; %bb.4:
	mov	x25, #0
	mov	w21, #48
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldr	x0, [x8, x21]
	mov	x1, x26
	bl	_strcmp
	cbz	w0, LBB0_19
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x28]
	add	x21, x21, #56
	cmp	x25, x8
	b.lt	LBB0_5
LBB0_7:
	str	x19, [sp, #-16]!
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_Com_DPrintf
	add	sp, sp, #16
Lloh19:
	adrp	x25, _cin@GOTPAGE
Lloh20:
	ldr	x25, [x25, _cin@GOTPAGEOFF]
	mov	x0, x25
	mov	w1, #0
	mov	w2, #4
	bl	_Com_Memset
	bl	_CIN_HandleForVideo
Lloh21:
	adrp	x28, _currentHandle@GOTPAGE
Lloh22:
	ldr	x28, [x28, _currentHandle@GOTPAGEOFF]
	str	x0, [x28]
	str	x0, [x25]
	ldr	x8, [x27]
	mov	w21, #56
	madd	x8, x0, x21, x8
	ldr	x0, [x8, #48]
	mov	x1, x26
	bl	_strcpy
	ldr	x8, [x27]
	ldr	x9, [x28]
	mul	x9, x9, x21
	str	xzr, [x8, x9]
	ldr	x9, [x28]
	madd	x8, x9, x21, x8
	ldr	x0, [x8, #48]
	add	x1, x8, #32
Lloh23:
	adrp	x8, _qtrue@GOTPAGE
Lloh24:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_FS_FOpenFileRead
	ldr	x8, [x27]
	ldr	x9, [x28]
	mul	x9, x9, x21
	str	x0, [x8, x9]
	ldr	x0, [x28]
	mul	x9, x0, x21
	ldr	x8, [x8, x9]
	cmp	x8, #0
	b.le	LBB0_11
; %bb.8:
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	ldur	w4, [x29, #-92]                 ; 4-byte Folded Reload
	bl	_CIN_SetExtents
	ldr	x0, [x28]
Lloh26:
	adrp	x8, _CIN_loop@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CIN_loop@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w1, ne
	bl	_CIN_SetLooping
Lloh29:
	adrp	x8, _DEFAULT_CIN_HEIGHT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DEFAULT_CIN_HEIGHT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x8]
	ldr	x8, [x27]
	ldr	x10, [x28]
	mov	w11, #56
	madd	x8, x10, x11, x8
	str	w9, [x8, #40]
Lloh32:
	adrp	x9, _DEFAULT_CIN_WIDTH@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DEFAULT_CIN_WIDTH@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
Lloh35:
	adrp	x10, _CIN_hold@GOTPAGE
Lloh36:
	ldr	x10, [x10, _CIN_hold@GOTPAGEOFF]
	str	w9, [x8, #36]
Lloh37:
	ldr	w9, [x10]
	tst	w9, w20
	cset	w9, ne
	str	w9, [x8, #8]
Lloh38:
	adrp	x9, _CIN_system@GOTPAGE
Lloh39:
	ldr	x9, [x9, _CIN_system@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	ands	w9, w9, w20
	cset	w10, ne
	mov	w11, #1
	str	w11, [x8, #16]!
	stur	w10, [x8, #-4]
Lloh41:
	adrp	x10, _CIN_silent@GOTPAGE
Lloh42:
	ldr	x10, [x10, _CIN_silent@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	tst	w10, w20
	cset	w10, ne
	str	w10, [x8, #4]
Lloh44:
	adrp	x10, _CIN_shader@GOTPAGE
Lloh45:
	ldr	x10, [x10, _CIN_shader@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	tst	w10, w20
	cset	w10, ne
	str	w10, [x8, #8]
	cbz	w9, LBB0_12
; %bb.9:
Lloh47:
	adrp	x8, _uivm@GOTPAGE
Lloh48:
	ldr	x8, [x8, _uivm@GOTPAGEOFF]
Lloh49:
	ldr	x0, [x8]
	cbz	x0, LBB0_13
; %bb.10:
Lloh50:
	adrp	x8, _UI_SET_ACTIVE_MENU@GOTPAGE
Lloh51:
	ldr	x8, [x8, _UI_SET_ACTIVE_MENU@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x8, _UIMENU_NONE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _UIMENU_NONE@GOTPAGEOFF]
Lloh55:
	ldr	w2, [x8]
	bl	_VM_Call
	b	LBB0_13
LBB0_11:
	str	x19, [sp, #-16]!
Lloh56:
	adrp	x0, l_.str.5@PAGE
Lloh57:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_Com_DPrintf
	add	sp, sp, #16
	ldr	x8, [x27]
	ldr	x9, [x28]
	mov	w10, #56
	madd	x8, x9, x10, x8
	ldr	x8, [x8, #48]
	str	xzr, [x8]
	b	LBB0_18
LBB0_12:
Lloh58:
	adrp	x9, _cl_inGameVideo@GOTPAGE
Lloh59:
	ldr	x9, [x9, _cl_inGameVideo@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_13:
	bl	_initRoQ
	ldr	x0, [x25, #8]
	ldr	x8, [x27]
	ldr	x9, [x28]
	mov	w10, #56
	madd	x8, x9, x10, x8
	ldr	w2, [x8, #32]
	mov	w1, #16
	bl	_FS_Read
	ldr	x8, [x25, #8]
	ldr	w9, [x8]
	ldr	w8, [x8, #8]
	add	w8, w9, w8, lsl #8
	mov	w9, #4228
	cmp	w9, w8, uxth
	b.ne	LBB0_17
; %bb.14:
	bl	_RoQ_init
	ldr	x8, [x27]
	ldr	x9, [x28]
	mov	w20, #56
	madd	x8, x9, x20, x8
	ldr	w0, [x8, #32]
	mov	w1, #65536
	bl	_Sys_BeginStreamedFile
Lloh61:
	adrp	x8, _FMV_PLAY@GOTPAGE
Lloh62:
	ldr	x8, [x8, _FMV_PLAY@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
	ldr	x9, [x27]
	ldr	x10, [x28]
	madd	x9, x10, x20, x9
	str	w8, [x9, #28]
	str	x19, [sp, #-16]!
Lloh64:
	adrp	x0, l_.str.6@PAGE
Lloh65:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_Com_DPrintf
	add	sp, sp, #16
	ldr	x8, [x27]
	ldr	x9, [x28]
	madd	x8, x9, x20, x8
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_16
; %bb.15:
Lloh66:
	adrp	x8, _CA_CINEMATIC@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CA_CINEMATIC@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
Lloh69:
	adrp	x9, _cls@GOTPAGE
Lloh70:
	ldr	x9, [x9, _cls@GOTPAGEOFF]
Lloh71:
	str	w8, [x9]
LBB0_16:
	bl	_Con_Close
Lloh72:
	adrp	x8, _s_soundtime@GOTPAGE
Lloh73:
	ldr	x8, [x8, _s_soundtime@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
Lloh75:
	adrp	x9, _s_rawend@GOTPAGE
Lloh76:
	ldr	x9, [x9, _s_rawend@GOTPAGEOFF]
Lloh77:
	str	w8, [x9]
	ldr	w25, [x28]
	b	LBB0_19
LBB0_17:
Lloh78:
	adrp	x0, l_.str.7@PAGE
Lloh79:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_Com_DPrintf
	bl	_RoQShutdown
LBB0_18:
	mov	w25, #-1
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh80:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh81:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh82:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.20:
	mov	x0, x25
	sub	sp, x29, #80
	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_21:
Lloh83:
	adrp	x2, l_.str.2@PAGE
Lloh84:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotStr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotStr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_OSPATH,4,2                 ; @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"video/%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.comm	_CIN_system,4,2                 ; @CIN_system
	.comm	_MAX_VIDEO_HANDLES,4,2          ; @MAX_VIDEO_HANDLES
	.comm	_cinTable,8,3                   ; @cinTable
l_.str.4:                               ; @.str.4
	.asciz	"SCR_PlayCinematic( %s )\n"

	.comm	_cin,16,3                       ; @cin
	.comm	_currentHandle,8,3              ; @currentHandle
	.comm	_qtrue,4,2                      ; @qtrue
l_.str.5:                               ; @.str.5
	.asciz	"play(%s), ROQSize<=0\n"

	.comm	_CIN_loop,4,2                   ; @CIN_loop
	.comm	_DEFAULT_CIN_HEIGHT,4,2         ; @DEFAULT_CIN_HEIGHT
	.comm	_DEFAULT_CIN_WIDTH,4,2          ; @DEFAULT_CIN_WIDTH
	.comm	_CIN_hold,4,2                   ; @CIN_hold
	.comm	_CIN_silent,4,2                 ; @CIN_silent
	.comm	_CIN_shader,4,2                 ; @CIN_shader
	.comm	_uivm,8,3                       ; @uivm
	.comm	_UI_SET_ACTIVE_MENU,4,2         ; @UI_SET_ACTIVE_MENU
	.comm	_UIMENU_NONE,4,2                ; @UIMENU_NONE
	.comm	_cl_inGameVideo,8,3             ; @cl_inGameVideo
	.comm	_FMV_PLAY,4,2                   ; @FMV_PLAY
l_.str.6:                               ; @.str.6
	.asciz	"trFMV::play(), playing %s\n"

	.comm	_CA_CINEMATIC,4,2               ; @CA_CINEMATIC
	.comm	_cls,4,2                        ; @cls
	.comm	_s_soundtime,4,2                ; @s_soundtime
	.comm	_s_rawend,4,2                   ; @s_rawend
l_.str.7:                               ; @.str.7
	.asciz	"trFMV::play(), invalid RoQ ID\n"

.subsections_via_symbols
