	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_UploadCinematic            ## -- Begin function CIN_UploadCinematic
	.p2align	4, 0x90
_CIN_UploadCinematic:                   ## @CIN_UploadCinematic
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%edi, %edi
	js	LBB0_14
## %bb.1:
	movl	%edi, %r9d
	movq	_MAX_VIDEO_HANDLES@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jle	LBB0_14
## %bb.2:
	movq	_cinTable@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%r9d, %eax
	leaq	(%rax,%rax,2), %rbx
	movl	16(%rcx,%rbx,8), %r8d
	testl	%r8d, %r8d
	je	LBB0_14
## %bb.3:
	movl	(%rcx,%rbx,8), %edx
	movq	8(%rcx,%rbx,8), %rax
	testl	%edx, %edx
	jle	LBB0_4
LBB0_11:
	movq	_re@GOTPCREL(%rip), %r10
	movq	%rax, (%rsp)
	movl	$256, %edi                      ## imm = 0x100
	movl	$256, %esi                      ## imm = 0x100
	movl	$256, %edx                      ## imm = 0x100
	movl	$256, %ecx                      ## imm = 0x100
	callq	*(%r10)
	movq	_cl_inGameVideo@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.12:
	movq	(%r14), %rax
	cmpl	$1, (%rax,%rbx,8)
	jne	LBB0_14
## %bb.13:
	leaq	(%rax,%rbx,8), %rax
	movl	$0, (%rax)
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	(%rcx,%rbx,8), %rsi
	cmpl	$-1, %edx
	je	LBB0_9
## %bb.7:
	testl	%edx, %edx
	jne	LBB0_10
## %bb.8:
	movl	$-1, (%rsi)
	jmp	LBB0_11
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movl	$-2, (%rsi)
	jmp	LBB0_11
LBB0_10:
	leaq	(%rcx,%rbx,8), %rcx
	addq	$8, %rcx
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_VIDEO_HANDLES,4,2          ## @MAX_VIDEO_HANDLES
	.comm	_cinTable,8,3                   ## @cinTable
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_re,8,3                         ## @re
	.comm	_cl_inGameVideo,8,3             ## @cl_inGameVideo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CIN_UploadCinematic            ; -- Begin function CIN_UploadCinematic
	.p2align	2
_CIN_UploadCinematic:                   ; @CIN_UploadCinematic
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w0, #31, LBB0_7
; %bb.1:
	mov	x5, 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_7
; %bb.2:
Lloh3:
	adrp	x19, _cinTable@GOTPAGE
Lloh4:
	ldr	x19, [x19, _cinTable@GOTPAGEOFF]
	ldr	x8, [x19]
	mov	w9, #24
	umaddl	x9, w5, w9, x8
	ldr	w4, [x9, #16]
	cbz	w4, LBB0_7
; %bb.3:
	mov	w20, w5
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	w10, [x8]
	mov	x9, x8
	ldr	x6, [x9, #8]!
	cmp	w10, #0
	b.le	LBB0_8
LBB0_4:
Lloh5:
	adrp	x8, _re@GOTPAGE
Lloh6:
	ldr	x8, [x8, _re@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	w0, #256
	mov	w1, #256
	mov	w2, #256
	mov	w3, #256
	blr	x8
Lloh8:
	adrp	x8, _cl_inGameVideo@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cl_inGameVideo@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_7
; %bb.6:
	str	wzr, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	cbz	x6, LBB0_4
; %bb.9:
	cmn	w10, #1
	b.eq	LBB0_12
; %bb.10:
	cbnz	w10, LBB0_13
; %bb.11:
	mov	w9, #-1
	str	w9, [x8]
	b	LBB0_4
LBB0_12:
	mov	w9, #-2
	str	w9, [x8]
	b	LBB0_4
LBB0_13:
Lloh11:
	adrp	x8, _qfalse@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh13:
	ldr	x6, [x8]
	str	x6, [x9]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_VIDEO_HANDLES,4,2          ; @MAX_VIDEO_HANDLES
	.comm	_cinTable,8,3                   ; @cinTable
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_re,8,3                         ; @re
	.comm	_cl_inGameVideo,8,3             ; @cl_inGameVideo
.subsections_via_symbols
