	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_DrawPreviewCinematic
_UI_DrawPreviewCinematic:               ## @UI_DrawPreviewCinematic
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_uiInfo@GOTPCREL(%rip), %r14
	cmpl	$-1, (%r14)
	jl	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx,%rax,4), %esi
	leaq	L_.str(%rip), %rdi
	callq	_va
	movq	_CIN_loop@GOTPCREL(%rip), %rcx
	movq	_CIN_silent@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r9d
	orl	(%rcx), %r9d
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_trap_CIN_PlayCinematic
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movl	%eax, %edi
	callq	_trap_CIN_RunCinematic
	movl	(%r14), %edi
	movl	12(%rbx), %esi
	movl	8(%rbx), %edx
	movl	(%rbx), %r8d
	movl	4(%rbx), %ecx
	callq	_trap_CIN_SetExtents
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_trap_CIN_DrawCinematic         ## TAILCALL
LBB0_2:
	movl	$-2, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uiInfo,24,3                    ## @uiInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.roq"

	.comm	_CIN_loop,4,2                   ## @CIN_loop
	.comm	_CIN_silent,4,2                 ## @CIN_silent
	.no_dead_strip	_UI_DrawPreviewCinematic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_DrawPreviewCinematic
_UI_DrawPreviewCinematic:               ; @UI_DrawPreviewCinematic
	.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
Lloh0:
	adrp	x20, _uiInfo@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uiInfo@GOTPAGEOFF]
	ldr	w8, [x20]
	cmn	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x20, #8]
	ldr	w1, [x8, x9, lsl #2]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_va
Lloh4:
	adrp	x8, _CIN_loop@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CIN_loop@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _CIN_silent@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CIN_silent@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w5, w9, w8
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_trap_CIN_PlayCinematic
	str	w0, [x20]
	tbnz	w0, #31, LBB0_3
; %bb.2:
	bl	_trap_CIN_RunCinematic
	ldr	w0, [x20]
	ldp	w2, w1, [x19, #8]
	ldp	w4, w3, [x19]
	bl	_trap_CIN_SetExtents
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_trap_CIN_DrawCinematic
LBB0_3:
	mov	w8, #-2
	str	w8, [x20]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_uiInfo,24,3                    ; @uiInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.roq"

	.comm	_CIN_loop,4,2                   ; @CIN_loop
	.comm	_CIN_silent,4,2                 ; @CIN_silent
	.no_dead_strip	_UI_DrawPreviewCinematic
.subsections_via_symbols
