	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_DrawCinematic
_UI_DrawCinematic:                      ## @UI_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movss	%xmm0, -24(%rbp)
	movss	%xmm1, -20(%rbp)
	movss	%xmm2, -16(%rbp)
	movss	%xmm3, -12(%rbp)
	leaq	-24(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	leaq	-12(%rbp), %rcx
	callq	_UI_AdjustFrom640
	movq	_SCREEN_WIDTH@GOTPCREL(%rip), %rax
	movq	_uiInfo@GOTPCREL(%rip), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2ssq	8(%rcx), %xmm0
	movss	(%rax), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	divss	%xmm0, %xmm2
	movss	-24(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movss	%xmm0, -24(%rbp)
	mulss	-16(%rbp), %xmm2
	movss	%xmm2, -16(%rbp)
	movq	_SCREEN_HEIGHT@GOTPCREL(%rip), %rax
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%rcx), %xmm1
	movss	(%rax), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm3
	movss	-20(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	movss	%xmm1, -20(%rbp)
	mulss	-12(%rbp), %xmm3
	movss	%xmm3, -12(%rbp)
	movl	%ebx, %edi
	callq	_trap_CIN_SetExtents
	movl	%ebx, %edi
	callq	_trap_CIN_DrawCinematic
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREEN_WIDTH,4,2               ## @SCREEN_WIDTH
	.comm	_uiInfo,16,3                    ## @uiInfo
	.comm	_SCREEN_HEIGHT,4,2              ## @SCREEN_HEIGHT
	.no_dead_strip	_UI_DrawCinematic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_DrawCinematic
_UI_DrawCinematic:                      ; @UI_DrawCinematic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	stp	s1, s0, [sp, #8]
	stp	s3, s2, [sp]
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x3, sp
	bl	_UI_AdjustFrom640
Lloh0:
	adrp	x8, _SCREEN_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCREEN_WIDTH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _uiInfo@GOTPAGE
Lloh3:
	ldr	x9, [x9, _uiInfo@GOTPAGEOFF]
Lloh4:
	ldr	s0, [x8]
	ldp	x9, x8, [x9]
	scvtf	s1, x8
	fdiv	s1, s0, s1
	ldr	s0, [sp, #12]
	fmul	s0, s0, s1
	str	s0, [sp, #12]
	ldp	s4, s2, [sp]
	fmul	s2, s1, s2
	str	s2, [sp, #4]
Lloh5:
	adrp	x8, _SCREEN_HEIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCREEN_HEIGHT@GOTPAGEOFF]
Lloh7:
	ldr	s1, [x8]
	scvtf	s3, x9
	fdiv	s3, s1, s3
	ldr	s1, [sp, #8]
	fmul	s1, s1, s3
	str	s1, [sp, #8]
	fmul	s3, s3, s4
	str	s3, [sp]
	mov	x0, x19
	bl	_trap_CIN_SetExtents
	mov	x0, x19
	bl	_trap_CIN_DrawCinematic
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREEN_WIDTH,4,2               ; @SCREEN_WIDTH
	.comm	_uiInfo,16,3                    ; @uiInfo
	.comm	_SCREEN_HEIGHT,4,2              ; @SCREEN_HEIGHT
	.no_dead_strip	_UI_DrawCinematic
.subsections_via_symbols
