	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_StopCinematic              ## -- Begin function CIN_StopCinematic
	.p2align	4, 0x90
_CIN_StopCinematic:                     ## @CIN_StopCinematic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FMV_EOF@GOTPCREL(%rip), %rbx
	testl	%edi, %edi
	js	LBB0_8
## %bb.1:
	movq	_MAX_VIDEO_HANDLES@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_8
## %bb.2:
	movq	_cinTable@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%edi, %ecx
	leaq	(%rcx,%rcx,2), %rdx
	movq	(%rax,%rdx,8), %rsi
	movq	_FMV_EOF@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rsi
	je	LBB0_8
## %bb.3:
	movq	_currentHandle@GOTPCREL(%rip), %r15
	movq	%rcx, (%r15)
	movl	20(%rax,%rdx,8), %esi
	leaq	L_.str(%rip), %rdi
	callq	_Com_DPrintf
	movq	(%r14), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, 16(%rax,%rcx,8)
	je	LBB0_8
## %bb.4:
	cmpq	$0, 8(%rax,%rcx,8)
	je	LBB0_7
## %bb.5:
	movq	_cls@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_CA_CINEMATIC@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
LBB0_7:
	movq	_FMV_EOF@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%rdx, (%rax,%rcx,8)
	xorl	%eax, %eax
	callq	_RoQShutdown
	jmp	LBB0_8
LBB0_6:
	leaq	(%rax,%rcx,8), %rbx
LBB0_8:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VIDEO_HANDLES,4,2          ## @MAX_VIDEO_HANDLES
	.comm	_cinTable,8,3                   ## @cinTable
	.comm	_FMV_EOF,8,3                    ## @FMV_EOF
	.comm	_currentHandle,8,3              ## @currentHandle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"trFMV::stop(), closing %s\n"

	.comm	_cls,8,3                        ## @cls
	.comm	_CA_CINEMATIC,8,3               ## @CA_CINEMATIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_StopCinematic              ; -- Begin function CIN_StopCinematic
	.p2align	2
_CIN_StopCinematic:                     ; @CIN_StopCinematic
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x19, _FMV_EOF@GOTPAGE
Lloh1:
	ldr	x19, [x19, _FMV_EOF@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _MAX_VIDEO_HANDLES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_VIDEO_HANDLES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_8
; %bb.2:
Lloh5:
	adrp	x20, _cinTable@GOTPAGE
Lloh6:
	ldr	x20, [x20, _cinTable@GOTPAGEOFF]
	ldr	x8, [x20]
	mov	w9, #24
	umull	x9, w0, w9
	ldr	x9, [x8, x9]
	ldr	x10, [x19]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.3:
	mov	w9, w0
Lloh7:
	adrp	x19, _currentHandle@GOTPAGE
Lloh8:
	ldr	x19, [x19, _currentHandle@GOTPAGEOFF]
	str	x9, [x19]
	mov	w21, #24
	madd	x8, x9, x21, x8
	ldr	w1, [x8, #20]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_DPrintf
	ldr	x8, [x20]
	ldr	x9, [x19]
	madd	x10, x9, x21, x8
	ldr	w10, [x10, #16]
Lloh11:
	adrp	x19, _FMV_EOF@GOTPAGE
Lloh12:
	ldr	x19, [x19, _FMV_EOF@GOTPAGEOFF]
	cbz	w10, LBB0_8
; %bb.4:
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_6
; %bb.5:
Lloh13:
	adrp	x10, _cls@GOTPAGE
Lloh14:
	ldr	x10, [x10, _cls@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
Lloh16:
	adrp	x11, _CA_CINEMATIC@GOTPAGE
Lloh17:
	ldr	x11, [x11, _CA_CINEMATIC@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
LBB0_6:
	ldr	x10, [x19]
	mov	w11, #24
	mul	x9, x9, x11
	str	x10, [x8, x9]
	bl	_RoQShutdown
	b	LBB0_8
LBB0_7:
	mov	w10, #24
	madd	x19, x9, x10, x8
LBB0_8:
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VIDEO_HANDLES,4,2          ; @MAX_VIDEO_HANDLES
	.comm	_cinTable,8,3                   ; @cinTable
	.comm	_FMV_EOF,8,3                    ; @FMV_EOF
	.comm	_currentHandle,8,3              ; @currentHandle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"trFMV::stop(), closing %s\n"

	.comm	_cls,8,3                        ; @cls
	.comm	_CA_CINEMATIC,8,3               ; @CA_CINEMATIC
.subsections_via_symbols
