	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_DrawCinematic              ## -- Begin function CIN_DrawCinematic
	.p2align	4, 0x90
_CIN_DrawCinematic:                     ## @CIN_DrawCinematic
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edi, %edi
	js	LBB0_40
## %bb.1:
	movl	%edi, %ebx
	movq	_MAX_VIDEO_HANDLES@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_40
## %bb.2:
	movq	_cinTable@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%ebx, %ecx
	imulq	$56, %rcx, %r13
	movq	(%rax,%r13), %rcx
	movq	_FMV_EOF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_40
## %bb.3:
	movq	8(%rax,%r13), %r14
	testq	%r14, %r14
	je	LBB0_40
## %bb.4:
	movss	16(%rax,%r13), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -56(%rbp)
	movss	20(%rax,%r13), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -52(%rbp)
	movss	24(%rax,%r13), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -48(%rbp)
	movd	28(%rax,%r13), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movd	%xmm0, -44(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_SCR_AdjustFrom640
	movq	(%r15), %rax
	movq	48(%rax,%r13), %r8
	testq	%r8, %r8
	je	LBB0_5
## %bb.7:
	movl	32(%rax,%r13), %r12d
	movl	40(%rax,%r13), %r15d
	cmpl	36(%rax,%r13), %r12d
	jne	LBB0_9
## %bb.8:
	cmpl	44(%rax,%r13), %r15d
	je	LBB0_6
LBB0_9:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	leal	255(%r12), %ebx
	testl	%r12d, %r12d
	cmovnsl	%r12d, %ebx
	leal	255(%r15), %r13d
	testl	%r15d, %r15d
	cmovnsl	%r15d, %r13d
	cmpl	$512, %r12d                     ## imm = 0x200
	sete	-72(%rbp)                       ## 1-byte Folded Spill
	movl	$262144, %edi                   ## imm = 0x40000
	callq	_Hunk_AllocateTempMemory
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	andl	$-256, %r12d
	andl	$-256, %r15d
	cmpl	$512, %r12d                     ## imm = 0x200
	jne	LBB0_20
## %bb.10:
	cmpl	$512, %r15d                     ## imm = 0x200
	jne	LBB0_20
## %bb.11:
	leaq	8192(%r14), %rax
	leaq	8220(%r14), %r9
	xorl	%edx, %edx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rdx
	addq	$16384, %rax                    ## imm = 0x4000
	addq	$16384, %r9                     ## imm = 0x4000
	cmpq	$256, %rdx                      ## imm = 0x100
	je	LBB0_39
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	%rdx, %rcx
	shlq	$14, %rcx
	leaq	(%r14,%rcx), %rdi
	addq	$16384, %rdi                    ## imm = 0x4000
	leaq	4096(%rsi), %r8
	cmpq	%rdi, %rsi
	jae	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	%r14, %rcx
	cmpq	%r8, %rcx
	jae	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$-8, %edi
	movq	%r9, %rcx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-8204(%rcx), %ebx
	addl	-8220(%rcx), %ebx
	addl	-28(%rcx), %ebx
	addl	-12(%rcx), %ebx
	sarl	$2, %ebx
	movl	%ebx, (%rsi)
	movl	-8200(%rcx), %ebx
	addl	-8216(%rcx), %ebx
	addl	-24(%rcx), %ebx
	addl	-8(%rcx), %ebx
	sarl	$2, %ebx
	movl	%ebx, 4(%rsi)
	movl	-8196(%rcx), %ebx
	addl	-8212(%rcx), %ebx
	addl	-20(%rcx), %ebx
	addl	-4(%rcx), %ebx
	sarl	$2, %ebx
	movl	%ebx, 8(%rsi)
	movl	-8192(%rcx), %ebx
	addl	-8208(%rcx), %ebx
	addl	-16(%rcx), %ebx
	addl	(%rcx), %ebx
	sarl	$2, %ebx
	movl	%ebx, 12(%rsi)
	addq	$16, %rsi
	addq	$32, %rcx
	addl	$8, %edi
	cmpl	$2040, %edi                     ## imm = 0x7F8
	jb	LBB0_15
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	-8080(%rax,%rdi,2), %xmm8
	movdqu	-8112(%rax,%rdi,2), %xmm10
	movdqu	-8096(%rax,%rdi,2), %xmm2
	movdqu	-8128(%rax,%rdi,2), %xmm4
	movdqu	-8192(%rax,%rdi,2), %xmm6
	movdqu	-8176(%rax,%rdi,2), %xmm11
	movdqu	-8160(%rax,%rdi,2), %xmm5
	movdqu	-8144(%rax,%rdi,2), %xmm9
	movdqa	%xmm6, %xmm7
	punpckldq	%xmm5, %xmm7            ## xmm7 = xmm7[0],xmm5[0],xmm7[1],xmm5[1]
	movdqa	%xmm4, %xmm3
	punpckldq	%xmm2, %xmm3            ## xmm3 = xmm3[0],xmm2[0],xmm3[1],xmm2[1]
	punpcklqdq	%xmm3, %xmm7            ## xmm7 = xmm7[0],xmm3[0]
	pshufd	$85, %xmm6, %xmm1               ## xmm1 = xmm6[1,1,1,1]
	pblendw	$12, %xmm5, %xmm1               ## xmm1 = xmm1[0,1],xmm5[2,3],xmm1[4,5,6,7]
	pblendw	$240, %xmm3, %xmm1              ## xmm1 = xmm1[0,1,2,3],xmm3[4,5,6,7]
	pshufd	$170, %xmm2, %xmm3              ## xmm3 = xmm2[2,2,2,2]
	pblendw	$63, %xmm4, %xmm3               ## xmm3 = xmm4[0,1,2,3,4,5],xmm3[6,7]
	punpckhdq	%xmm5, %xmm6            ## xmm6 = xmm6[2],xmm5[2],xmm6[3],xmm5[3]
	pblendw	$15, %xmm6, %xmm3               ## xmm3 = xmm6[0,1,2,3],xmm3[4,5,6,7]
	punpckhdq	%xmm2, %xmm4            ## xmm4 = xmm4[2],xmm2[2],xmm4[3],xmm2[3]
	punpckhqdq	%xmm4, %xmm6            ## xmm6 = xmm6[1],xmm4[1]
	movdqa	%xmm11, %xmm5
	punpckldq	%xmm9, %xmm5            ## xmm5 = xmm5[0],xmm9[0],xmm5[1],xmm9[1]
	movdqa	%xmm10, %xmm2
	punpckldq	%xmm8, %xmm2            ## xmm2 = xmm2[0],xmm8[0],xmm2[1],xmm8[1]
	punpcklqdq	%xmm2, %xmm5            ## xmm5 = xmm5[0],xmm2[0]
	paddd	%xmm7, %xmm5
	pshufd	$85, %xmm11, %xmm14             ## xmm14 = xmm11[1,1,1,1]
	pblendw	$12, %xmm9, %xmm14              ## xmm14 = xmm14[0,1],xmm9[2,3],xmm14[4,5,6,7]
	pblendw	$240, %xmm2, %xmm14             ## xmm14 = xmm14[0,1,2,3],xmm2[4,5,6,7]
	paddd	%xmm1, %xmm14
	pshufd	$170, %xmm8, %xmm12             ## xmm12 = xmm8[2,2,2,2]
	pblendw	$63, %xmm10, %xmm12             ## xmm12 = xmm10[0,1,2,3,4,5],xmm12[6,7]
	punpckhdq	%xmm9, %xmm11           ## xmm11 = xmm11[2],xmm9[2],xmm11[3],xmm9[3]
	pblendw	$15, %xmm11, %xmm12             ## xmm12 = xmm11[0,1,2,3],xmm12[4,5,6,7]
	paddd	%xmm3, %xmm12
	punpckhdq	%xmm8, %xmm10           ## xmm10 = xmm10[2],xmm8[2],xmm10[3],xmm8[3]
	punpckhqdq	%xmm10, %xmm11          ## xmm11 = xmm11[1],xmm10[1]
	paddd	%xmm6, %xmm11
	movdqu	112(%rax,%rdi,2), %xmm8
	movdqu	80(%rax,%rdi,2), %xmm10
	movdqu	48(%rax,%rdi,2), %xmm9
	movdqu	16(%rax,%rdi,2), %xmm1
	movdqu	96(%rax,%rdi,2), %xmm13
	movdqu	64(%rax,%rdi,2), %xmm0
	movdqu	32(%rax,%rdi,2), %xmm3
	movdqu	(%rax,%rdi,2), %xmm2
	movdqa	%xmm2, %xmm7
	punpckldq	%xmm3, %xmm7            ## xmm7 = xmm7[0],xmm3[0],xmm7[1],xmm3[1]
	movdqa	%xmm0, %xmm6
	punpckldq	%xmm13, %xmm6           ## xmm6 = xmm6[0],xmm13[0],xmm6[1],xmm13[1]
	punpcklqdq	%xmm6, %xmm7            ## xmm7 = xmm7[0],xmm6[0]
	pshufd	$85, %xmm2, %xmm4               ## xmm4 = xmm2[1,1,1,1]
	pblendw	$12, %xmm3, %xmm4               ## xmm4 = xmm4[0,1],xmm3[2,3],xmm4[4,5,6,7]
	pblendw	$240, %xmm6, %xmm4              ## xmm4 = xmm4[0,1,2,3],xmm6[4,5,6,7]
	pshufd	$170, %xmm13, %xmm6             ## xmm6 = xmm13[2,2,2,2]
	pblendw	$63, %xmm0, %xmm6               ## xmm6 = xmm0[0,1,2,3,4,5],xmm6[6,7]
	punpckhdq	%xmm3, %xmm2            ## xmm2 = xmm2[2],xmm3[2],xmm2[3],xmm3[3]
	pblendw	$15, %xmm2, %xmm6               ## xmm6 = xmm2[0,1,2,3],xmm6[4,5,6,7]
	punpckhdq	%xmm13, %xmm0           ## xmm0 = xmm0[2],xmm13[2],xmm0[3],xmm13[3]
	punpckhqdq	%xmm0, %xmm2            ## xmm2 = xmm2[1],xmm0[1]
	movdqa	%xmm1, %xmm3
	punpckldq	%xmm9, %xmm3            ## xmm3 = xmm3[0],xmm9[0],xmm3[1],xmm9[1]
	movdqa	%xmm10, %xmm0
	punpckldq	%xmm8, %xmm0            ## xmm0 = xmm0[0],xmm8[0],xmm0[1],xmm8[1]
	punpcklqdq	%xmm0, %xmm3            ## xmm3 = xmm3[0],xmm0[0]
	paddd	%xmm7, %xmm3
	paddd	%xmm5, %xmm3
	pshufd	$85, %xmm1, %xmm5               ## xmm5 = xmm1[1,1,1,1]
	pblendw	$12, %xmm9, %xmm5               ## xmm5 = xmm5[0,1],xmm9[2,3],xmm5[4,5,6,7]
	pblendw	$240, %xmm0, %xmm5              ## xmm5 = xmm5[0,1,2,3],xmm0[4,5,6,7]
	paddd	%xmm4, %xmm5
	paddd	%xmm14, %xmm5
	pshufd	$170, %xmm8, %xmm4              ## xmm4 = xmm8[2,2,2,2]
	pblendw	$63, %xmm10, %xmm4              ## xmm4 = xmm10[0,1,2,3,4,5],xmm4[6,7]
	punpckhdq	%xmm9, %xmm1            ## xmm1 = xmm1[2],xmm9[2],xmm1[3],xmm9[3]
	pblendw	$15, %xmm1, %xmm4               ## xmm4 = xmm1[0,1,2,3],xmm4[4,5,6,7]
	paddd	%xmm6, %xmm4
	paddd	%xmm12, %xmm4
	punpckhdq	%xmm8, %xmm10           ## xmm10 = xmm10[2],xmm8[2],xmm10[3],xmm8[3]
	punpckhqdq	%xmm10, %xmm1           ## xmm1 = xmm1[1],xmm10[1]
	paddd	%xmm2, %xmm1
	paddd	%xmm11, %xmm1
	psrad	$2, %xmm3
	psrad	$2, %xmm5
	psrad	$2, %xmm4
	psrad	$2, %xmm1
	movdqa	%xmm4, %xmm0
	pshufd	$170, %xmm1, %xmm2              ## xmm2 = xmm1[2,2,2,2]
	pblendw	$63, %xmm4, %xmm2               ## xmm2 = xmm4[0,1,2,3,4,5],xmm2[6,7]
	punpckldq	%xmm1, %xmm4            ## xmm4 = xmm4[0],xmm1[0],xmm4[1],xmm1[1]
	pshufd	$85, %xmm3, %xmm6               ## xmm6 = xmm3[1,1,1,1]
	pblendw	$12, %xmm5, %xmm6               ## xmm6 = xmm6[0,1],xmm5[2,3],xmm6[4,5,6,7]
	pblendw	$240, %xmm4, %xmm6              ## xmm6 = xmm6[0,1,2,3],xmm4[4,5,6,7]
	movdqa	%xmm3, %xmm7
	punpckldq	%xmm5, %xmm7            ## xmm7 = xmm7[0],xmm5[0],xmm7[1],xmm5[1]
	punpcklqdq	%xmm4, %xmm7            ## xmm7 = xmm7[0],xmm4[0]
	punpckhdq	%xmm1, %xmm0            ## xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	punpckhdq	%xmm5, %xmm3            ## xmm3 = xmm3[2],xmm5[2],xmm3[3],xmm5[3]
	pblendw	$15, %xmm3, %xmm2               ## xmm2 = xmm3[0,1,2,3],xmm2[4,5,6,7]
	punpckhqdq	%xmm0, %xmm3            ## xmm3 = xmm3[1],xmm0[1]
	movdqu	%xmm2, 32(%rsi,%rdi)
	movdqu	%xmm3, 48(%rsi,%rdi)
	movdqu	%xmm7, (%rsi,%rdi)
	movdqu	%xmm6, 16(%rsi,%rdi)
	addq	$64, %rdi
	cmpq	$4096, %rdi                     ## imm = 0x1000
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r8, %rsi
	jmp	LBB0_19
LBB0_5:
	movl	36(%rax,%r13), %r12d
	movl	44(%rax,%r13), %r15d
LBB0_6:
	movq	_re@GOTPCREL(%rip), %rax
	movss	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	*(%rax)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cinTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 48(%rcx,%r13)
	jmp	LBB0_40
LBB0_20:
	cmpl	$512, %r12d                     ## imm = 0x200
	jne	LBB0_31
## %bb.21:
	cmpl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_31
## %bb.22:
	xorl	%eax, %eax
	movq	%r14, %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=1
	incq	%rax
	addq	$8192, %rcx                     ## imm = 0x2000
	cmpq	$256, %rax                      ## imm = 0x100
	je	LBB0_39
LBB0_23:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
                                        ##     Child Loop BB0_26 Depth 2
	movq	%rax, %rdi
	shlq	$13, %rdi
	leaq	(%r14,%rdi), %rbx
	addq	$8192, %rbx                     ## imm = 0x2000
	leaq	4096(%rdx), %rsi
	cmpq	%rbx, %rdx
	jae	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	addq	%r14, %rdi
	cmpq	%rsi, %rdi
	jae	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	16(%rcx,%rsi,4), %edi
	addl	(%rcx,%rsi,4), %edi
	sarl	%edi
	movl	%edi, (%rdx)
	movl	20(%rcx,%rsi,4), %edi
	addl	4(%rcx,%rsi,4), %edi
	sarl	%edi
	movl	%edi, 4(%rdx)
	movl	24(%rcx,%rsi,4), %edi
	addl	8(%rcx,%rsi,4), %edi
	sarl	%edi
	movl	%edi, 8(%rdx)
	movl	28(%rcx,%rsi,4), %edi
	addl	12(%rcx,%rsi,4), %edi
	sarl	%edi
	movl	%edi, 12(%rdx)
	addq	$16, %rdx
	addq	$8, %rsi
	leal	-8(%rsi), %edi
	cmpl	$2040, %edi                     ## imm = 0x7F8
	jb	LBB0_26
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_23 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	112(%rcx,%rdi,2), %xmm8
	movdqu	80(%rcx,%rdi,2), %xmm10
	movdqu	96(%rcx,%rdi,2), %xmm1
	movdqu	64(%rcx,%rdi,2), %xmm5
	movdqu	(%rcx,%rdi,2), %xmm4
	movdqu	16(%rcx,%rdi,2), %xmm0
	movdqu	32(%rcx,%rdi,2), %xmm6
	movdqu	48(%rcx,%rdi,2), %xmm9
	movdqa	%xmm4, %xmm7
	punpckldq	%xmm6, %xmm7            ## xmm7 = xmm7[0],xmm6[0],xmm7[1],xmm6[1]
	movdqa	%xmm5, %xmm3
	punpckldq	%xmm1, %xmm3            ## xmm3 = xmm3[0],xmm1[0],xmm3[1],xmm1[1]
	punpcklqdq	%xmm3, %xmm7            ## xmm7 = xmm7[0],xmm3[0]
	pshufd	$85, %xmm4, %xmm2               ## xmm2 = xmm4[1,1,1,1]
	pblendw	$12, %xmm6, %xmm2               ## xmm2 = xmm2[0,1],xmm6[2,3],xmm2[4,5,6,7]
	pblendw	$240, %xmm3, %xmm2              ## xmm2 = xmm2[0,1,2,3],xmm3[4,5,6,7]
	pshufd	$170, %xmm1, %xmm3              ## xmm3 = xmm1[2,2,2,2]
	pblendw	$63, %xmm5, %xmm3               ## xmm3 = xmm5[0,1,2,3,4,5],xmm3[6,7]
	punpckhdq	%xmm6, %xmm4            ## xmm4 = xmm4[2],xmm6[2],xmm4[3],xmm6[3]
	pblendw	$15, %xmm4, %xmm3               ## xmm3 = xmm4[0,1,2,3],xmm3[4,5,6,7]
	punpckhdq	%xmm1, %xmm5            ## xmm5 = xmm5[2],xmm1[2],xmm5[3],xmm1[3]
	punpckhqdq	%xmm5, %xmm4            ## xmm4 = xmm4[1],xmm5[1]
	movdqa	%xmm0, %xmm1
	punpckldq	%xmm9, %xmm1            ## xmm1 = xmm1[0],xmm9[0],xmm1[1],xmm9[1]
	movdqa	%xmm10, %xmm6
	punpckldq	%xmm8, %xmm6            ## xmm6 = xmm6[0],xmm8[0],xmm6[1],xmm8[1]
	punpcklqdq	%xmm6, %xmm1            ## xmm1 = xmm1[0],xmm6[0]
	paddd	%xmm7, %xmm1
	pshufd	$85, %xmm0, %xmm5               ## xmm5 = xmm0[1,1,1,1]
	pblendw	$12, %xmm9, %xmm5               ## xmm5 = xmm5[0,1],xmm9[2,3],xmm5[4,5,6,7]
	pblendw	$240, %xmm6, %xmm5              ## xmm5 = xmm5[0,1,2,3],xmm6[4,5,6,7]
	paddd	%xmm2, %xmm5
	pshufd	$170, %xmm8, %xmm6              ## xmm6 = xmm8[2,2,2,2]
	pblendw	$63, %xmm10, %xmm6              ## xmm6 = xmm10[0,1,2,3,4,5],xmm6[6,7]
	punpckhdq	%xmm9, %xmm0            ## xmm0 = xmm0[2],xmm9[2],xmm0[3],xmm9[3]
	pblendw	$15, %xmm0, %xmm6               ## xmm6 = xmm0[0,1,2,3],xmm6[4,5,6,7]
	paddd	%xmm3, %xmm6
	punpckhdq	%xmm8, %xmm10           ## xmm10 = xmm10[2],xmm8[2],xmm10[3],xmm8[3]
	punpckhqdq	%xmm10, %xmm0           ## xmm0 = xmm0[1],xmm10[1]
	paddd	%xmm4, %xmm0
	psrad	$1, %xmm1
	psrad	$1, %xmm5
	psrad	$1, %xmm6
	psrad	$1, %xmm0
	movdqa	%xmm6, %xmm2
	pshufd	$170, %xmm0, %xmm3              ## xmm3 = xmm0[2,2,2,2]
	pblendw	$63, %xmm6, %xmm3               ## xmm3 = xmm6[0,1,2,3,4,5],xmm3[6,7]
	punpckldq	%xmm0, %xmm6            ## xmm6 = xmm6[0],xmm0[0],xmm6[1],xmm0[1]
	pshufd	$85, %xmm1, %xmm4               ## xmm4 = xmm1[1,1,1,1]
	pblendw	$12, %xmm5, %xmm4               ## xmm4 = xmm4[0,1],xmm5[2,3],xmm4[4,5,6,7]
	pblendw	$240, %xmm6, %xmm4              ## xmm4 = xmm4[0,1,2,3],xmm6[4,5,6,7]
	movdqa	%xmm1, %xmm7
	punpckldq	%xmm5, %xmm7            ## xmm7 = xmm7[0],xmm5[0],xmm7[1],xmm5[1]
	punpcklqdq	%xmm6, %xmm7            ## xmm7 = xmm7[0],xmm6[0]
	punpckhdq	%xmm0, %xmm2            ## xmm2 = xmm2[2],xmm0[2],xmm2[3],xmm0[3]
	punpckhdq	%xmm5, %xmm1            ## xmm1 = xmm1[2],xmm5[2],xmm1[3],xmm5[3]
	pblendw	$15, %xmm1, %xmm3               ## xmm3 = xmm1[0,1,2,3],xmm3[4,5,6,7]
	punpckhqdq	%xmm2, %xmm1            ## xmm1 = xmm1[1],xmm2[1]
	movdqu	%xmm3, 32(%rdx,%rdi)
	movdqu	%xmm1, 48(%rdx,%rdi)
	movdqu	%xmm7, (%rdx,%rdi)
	movdqu	%xmm4, 16(%rdx,%rdi)
	addq	$64, %rdi
	cmpq	$4096, %rdi                     ## imm = 0x1000
	jne	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%rsi, %rdx
	jmp	LBB0_30
LBB0_31:
	sarl	$8, %ebx
	movl	%r13d, %r15d
	sarl	$8, %r15d
	xorl	%ecx, %ecx
	movb	-72(%rbp), %al                  ## 1-byte Reload
	movb	%al, %cl
	orl	$8, %ecx
	movslq	%ebx, %r11
	movq	%r11, %r8
	shlq	$5, %r8
	leaq	16(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r11, %r9
	shlq	$6, %r9
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	48(%rax), %rsi
	leaq	(%r14,%r11,4), %rbx
	addq	%r11, %r11
	leaq	4(%rax), %rdi
	xorl	%r10d, %r10d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_38:                                ##   in Loop: Header=BB0_32 Depth=1
	incq	%r10
	addq	$1024, %rsi                     ## imm = 0x400
	addq	$1024, %rdi                     ## imm = 0x400
	cmpq	$256, %r10                      ## imm = 0x100
	je	LBB0_39
LBB0_32:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_37 Depth 2
                                        ##     Child Loop BB0_34 Depth 2
	movl	%r15d, %edx
	imull	%r10d, %edx
	shll	%cl, %edx
	movslq	%edx, %r13
	cmpl	$256, %r12d                     ## imm = 0x100
	jne	LBB0_33
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	%r15d, %eax
	movq	%r10, %r15
	shlq	$10, %r15
	addq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	leaq	(%r14,%r13,4), %rdx
	subq	%rdx, %r15
	cmpq	$32, %r15
	movl	%eax, %r15d
	jae	LBB0_36
LBB0_33:                                ##   in Loop: Header=BB0_32 Depth=1
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14,%r13,4), %eax
	movl	%eax, -4(%rdi,%rdx,4)
	movl	(%rbx,%r13,4), %eax
	movl	%eax, (%rdi,%rdx,4)
	addq	$2, %rdx
	addq	%r11, %r13
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_34
	jmp	LBB0_38
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,4), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_32 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movups	-16(%rax), %xmm0
	movups	(%rax), %xmm1
	movups	%xmm0, -48(%rsi,%rdx,4)
	movups	%xmm1, -32(%rsi,%rdx,4)
	movdqu	-16(%rax,%r8), %xmm0
	movdqu	(%rax,%r8), %xmm1
	movdqu	%xmm0, -16(%rsi,%rdx,4)
	movdqu	%xmm1, (%rsi,%rdx,4)
	addq	$16, %rdx
	addq	%r9, %rax
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_37
	jmp	LBB0_38
LBB0_39:
	movq	_re@GOTPCREL(%rip), %rax
	movss	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm3                ## xmm3 = mem[0],zero,zero,zero
	movq	_qtrue@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	$256, %edi                      ## imm = 0x100
	movl	$256, %esi                      ## imm = 0x100
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	callq	*(%rax)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_cinTable@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 48(%rcx,%rdx)
	movq	%rbx, %rdi
	callq	_Hunk_FreeTempMemory
LBB0_40:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	_re,8,3                         ## @re
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_qfalse,8,3                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_DrawCinematic              ; -- Begin function CIN_DrawCinematic
	.p2align	2
_CIN_DrawCinematic:                     ; @CIN_DrawCinematic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	tbnz	w0, #31, LBB0_16
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX_VIDEO_HANDLES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_VIDEO_HANDLES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.le	LBB0_16
; %bb.2:
Lloh3:
	adrp	x24, _cinTable@GOTPAGE
Lloh4:
	ldr	x24, [x24, _cinTable@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w9, #56
	umull	x9, w19, w9
	ldr	x9, [x8, x9]
Lloh5:
	adrp	x10, _FMV_EOF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FMV_EOF@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_16
; %bb.3:
	mov	w25, w19
	mov	w9, #56
	madd	x9, x25, x9, x8
	ldr	x20, [x9, #8]
	cbz	x20, LBB0_16
; %bb.4:
	mov	w9, #56
	mul	x21, x25, x9
	add	x8, x8, x21
	ldr	s0, [x8, #16]
	str	s0, [sp, #12]
	ldr	s0, [x8, #20]
	str	s0, [sp, #8]
	ldr	s0, [x8, #24]
	str	s0, [sp, #4]
	ldr	s0, [x8, #28]
	str	s0, [sp]
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	bl	_SCR_AdjustFrom640
	ldr	x8, [x24]
	add	x9, x8, x21
	ldr	x4, [x9, #48]
	cbz	x4, LBB0_14
; %bb.5:
	mov	w9, #56
	madd	x9, x25, x9, x8
	ldp	w22, w10, [x9, #32]
	ldr	w23, [x9, #40]
	cmp	w22, w10
	b.ne	LBB0_7
; %bb.6:
	mov	w9, #56
	madd	x8, x25, x9, x8
	ldr	w8, [x8, #44]
	cmp	w23, w8
	b.eq	LBB0_15
LBB0_7:
	add	w8, w22, #255
	cmp	w22, #0
	csel	w27, w8, w22, lt
	add	w8, w23, #255
	cmp	w23, #0
	csel	w28, w8, w23, lt
	cmp	w22, #512
	mov	w8, #8
	cinc	w26, w8, eq
	mov	w0, #262144
	bl	_Hunk_AllocateTempMemory
	mov	x21, x0
	and	w9, w22, #0xffffff00
	and	w8, w23, #0xffffff00
	cmp	w9, #512
	b.ne	LBB0_17
; %bb.8:
	cmp	w8, #512
	b.ne	LBB0_17
; %bb.9:
	mov	x8, #0
	mov	x9, x21
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	mov	w10, #-8
	mov	x11, x20
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x11]
	ldr	w13, [x11, #16]
	ldr	w14, [x11, #8192]
	add	w12, w13, w12
	add	w12, w12, w14
	ldr	w13, [x11, #8208]
	add	w12, w12, w13
	asr	w12, w12, #2
	str	w12, [x9]
	ldr	w12, [x11, #4]
	ldr	w13, [x11, #20]
	ldr	w14, [x11, #8196]
	add	w12, w13, w12
	add	w12, w12, w14
	ldr	w13, [x11, #8212]
	add	w12, w12, w13
	asr	w12, w12, #2
	str	w12, [x9, #4]
	ldr	w12, [x11, #8]
	ldr	w13, [x11, #24]
	ldr	w14, [x11, #8200]
	add	w12, w13, w12
	add	w12, w12, w14
	ldr	w13, [x11, #8216]
	add	w12, w12, w13
	asr	w12, w12, #2
	str	w12, [x9, #8]
	ldr	w12, [x11, #12]
	ldr	w13, [x11, #28]
	ldr	w14, [x11, #8204]
	add	w12, w13, w12
	add	w12, w12, w14
	ldr	w13, [x11, #8220]
	add	w12, w12, w13
	asr	w12, w12, #2
	str	w12, [x9, #12]
	add	x9, x9, #16
	add	x11, x11, #32
	add	w10, w10, #8
	cmp	w10, #2040
	b.lo	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	add	x20, x20, #4, lsl #12           ; =16384
	cmp	x8, #256
	b.ne	LBB0_10
LBB0_13:
Lloh8:
	adrp	x8, _re@GOTPAGE
Lloh9:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldp	s1, s0, [sp, #8]
	ldp	s3, s2, [sp]
Lloh11:
	adrp	x9, _qtrue@GOTPAGE
Lloh12:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh13:
	ldr	x4, [x9]
	mov	x2, x21
	mov	x3, x19
	mov	w0, #256
	mov	w1, #256
	blr	x8
Lloh14:
	adrp	x8, _qfalse@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x24]
	mov	w10, #56
	madd	x9, x25, x10, x9
	str	x8, [x9, #48]
	mov	x0, x21
	bl	_Hunk_FreeTempMemory
	b	LBB0_16
LBB0_14:
	mov	w9, #56
	madd	x8, x25, x9, x8
	ldr	w22, [x8, #36]
	ldr	w23, [x8, #44]
LBB0_15:
Lloh17:
	adrp	x8, _re@GOTPAGE
Lloh18:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldp	s1, s0, [sp, #8]
	ldp	s3, s2, [sp]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	blr	x8
Lloh20:
	adrp	x8, _qfalse@GOTPAGE
Lloh21:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	x9, [x24]
	mov	w10, #56
	madd	x9, x25, x10, x9
	str	x8, [x9, #48]
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	cmp	w9, #512
	b.ne	LBB0_27
; %bb.18:
	cmp	w8, #256
	b.ne	LBB0_27
; %bb.19:
	mov	x8, #0
	add	x9, x20, #16
	mov	x10, x20
	mov	x11, x21
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x8, x8, #1
	add	x10, x10, #2, lsl #12           ; =8192
	add	x9, x9, #2, lsl #12             ; =8192
	cmp	x8, #256
	b.eq	LBB0_13
LBB0_21:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_26 Depth 2
                                        ;     Child Loop BB0_23 Depth 2
	add	x13, x20, x8, lsl #13
	add	x14, x13, #2, lsl #12           ; =8192
	add	x12, x11, #1, lsl #12           ; =4096
	cmp	x11, x14
	ccmp	x13, x12, #2, lo
	b.lo	LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x13, #0
	mov	x14, x10
LBB0_23:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q1, q0, [x14, #96]
	ldp	q3, q2, [x14, #64]
	ldr	q4, [x14, #32]
	ldr	q5, [x14]
	zip1.4s	v6, v5, v4
	zip1.4s	v7, v3, v1
	ext.16b	v16, v3, v7, #8
	mov.d	v6[1], v16[1]
	trn2.4s	v16, v5, v4
	mov.d	v16[1], v7[1]
	ldr	q7, [x14, #48]
	zip2.4s	v17, v3, v1
	mov.s	v3[3], v1[2]
	zip2.4s	v1, v5, v4
	mov.d	v1[1], v3[1]
	uzp2.4s	v3, v5, v4
	uzp2.4s	v3, v3, v5
	mov.d	v3[1], v17[1]
	ldr	q4, [x14, #16]
	zip1.4s	v5, v4, v7
	zip1.4s	v17, v2, v0
	ext.16b	v18, v2, v17, #8
	mov.d	v5[1], v18[1]
	trn2.4s	v18, v4, v7
	mov.d	v18[1], v17[1]
	zip2.4s	v17, v2, v0
	mov.s	v2[3], v0[2]
	zip2.4s	v0, v4, v7
	mov.d	v0[1], v2[1]
	uzp2.4s	v2, v4, v7
	uzp2.4s	v2, v2, v4
	mov.d	v2[1], v17[1]
	add.4s	v4, v5, v6
	sshr.4s	v4, v4, #1
	add.4s	v16, v18, v16
	sshr.4s	v5, v16, #1
	add.4s	v0, v0, v1
	sshr.4s	v6, v0, #1
	add.4s	v0, v2, v3
	sshr.4s	v7, v0, #1
	add	x15, x11, x13
	st4.4s	{ v4, v5, v6, v7 }, [x15]
	add	x14, x14, #128
	add	x13, x13, #64
	cmp	x13, #1, lsl #12                ; =4096
	b.ne	LBB0_23
; %bb.24:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x11, x12
	b	LBB0_20
LBB0_25:                                ;   in Loop: Header=BB0_21 Depth=1
	mov	w12, #-8
	mov	x13, x9
LBB0_26:                                ;   Parent Loop BB0_21 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w14, [x13, #-16]
	ldr	w15, [x13]
	add	w14, w15, w14
	asr	w14, w14, #1
	str	w14, [x11]
	ldur	w14, [x13, #-12]
	ldr	w15, [x13, #4]
	add	w14, w15, w14
	asr	w14, w14, #1
	str	w14, [x11, #4]
	ldur	w14, [x13, #-8]
	ldr	w15, [x13, #8]
	add	w14, w15, w14
	asr	w14, w14, #1
	str	w14, [x11, #8]
	ldur	w14, [x13, #-4]
	ldr	w15, [x13, #12]
	add	w14, w15, w14
	asr	w14, w14, #1
	str	w14, [x11, #12]
	add	x11, x11, #16
	add	x13, x13, #32
	add	w12, w12, #8
	cmp	w12, #2040
	b.lo	LBB0_26
	b	LBB0_20
LBB0_27:
	mov	x8, #0
	asr	w13, w27, #8
	asr	w9, w28, #8
	and	w10, w22, #0xffffff00
	add	x11, x20, #32
	sbfiz	x12, x13, #6, #32
	sbfiz	x13, x13, #2, #32
	mov	x14, x21
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x8, x8, #1
	add	x14, x14, #1024
	cmp	x8, #256
	b.eq	LBB0_13
LBB0_29:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_34 Depth 2
                                        ;     Child Loop BB0_32 Depth 2
	mul	w15, w9, w8
	lsl	w15, w15, w26
	sxtw	x16, w15
	cmp	w10, #256
	b.ne	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x15, x21, x8, lsl #10
	add	x17, x20, x16, lsl #2
	sub	x15, x15, x17
	cmp	x15, #64
	b.hs	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x15, #0
	add	x16, x20, x16, lsl #2
LBB0_32:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w17, [x16]
	str	w17, [x14, x15]
	add	x15, x15, #4
	add	x16, x16, x13
	cmp	x15, #1024
	b.ne	LBB0_32
	b	LBB0_28
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=1
	mov	x15, #0
	add	x16, x11, x16, lsl #2
LBB0_34:                                ;   Parent Loop BB0_29 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q0, q1, [x16, #-32]
	ldp	q2, q3, [x16]
	add	x17, x14, x15
	stp	q0, q1, [x17]
	stp	q2, q3, [x17, #32]
	add	x15, x15, #64
	add	x16, x16, x12
	cmp	x15, #1024
	b.ne	LBB0_34
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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	_re,8,3                         ; @re
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_qfalse,8,3                     ; @qfalse
.subsections_via_symbols
