	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UpdateVideoFullscreen
_UpdateVideoFullscreen:                 ## @UpdateVideoFullscreen
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_CurrentDisplayMode
	movl	%eax, %r15d
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r14d
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_ResolutionForMode
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	leaq	-48(%rbp), %rdi
	callq	_RotateResolution
LBB0_3:
	leaq	-44(%rbp), %rdi
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_GetOutArea
	xorl	%eax, %eax
	callq	_UpdateCustomStretch
	movl	-44(%rbp), %ecx
	movl	-52(%rbp), %r8d
	leaq	-64(%rbp), %rax
	leaq	-48(%rbp), %r12
	leaq	-72(%rbp), %r9
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	pushq	%r14
	pushq	%rax
	callq	_ComputeVideoArea
	addq	$16, %rsp
	movsd	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-64(%rbp), %xmm1                ## xmm1 = mem[0],zero
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_CropVideoArea
	movl	-44(%rbp), %edx
	movl	-52(%rbp), %ecx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %r9d
	callq	_SetVideoMode
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_4:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_VIDEOMODE_rotate90,8,3         ## @VIDEOMODE_rotate90
	.no_dead_strip	_UpdateVideoFullscreen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UpdateVideoFullscreen
_UpdateVideoFullscreen:                 ; @UpdateVideoFullscreen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_CurrentDisplayMode
	mov	x20, x0
Lloh0:
	adrp	x22, _FALSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w19, [x22]
	mov	x1, x19
	bl	_ResolutionForMode
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0]
	str	w8, [sp, #4]
	cbz	w19, LBB0_3
; %bb.2:
	add	x0, sp, #4
	bl	_RotateResolution
LBB0_3:
	add	x0, sp, #28
	add	x1, sp, #24
	mov	x2, x20
	bl	_GetOutArea
	bl	_UpdateCustomStretch
	ldp	w4, w3, [sp, #24]
	add	x0, sp, #4
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x1, x21
	mov	x2, x20
	mov	x7, x19
	bl	_ComputeVideoArea
	ldp	d1, d0, [sp, #8]
	add	x0, sp, #4
	add	x1, sp, #28
	add	x2, sp, #24
	bl	_CropVideoArea
	ldp	w3, w2, [sp, #24]
	ldr	w4, [x22]
	add	x0, sp, #4
	mov	x1, x20
	mov	x5, x19
	bl	_SetVideoMode
Lloh2:
	adrp	x22, _TRUE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_VIDEOMODE_rotate90,8,3         ; @VIDEOMODE_rotate90
	.no_dead_strip	_UpdateVideoFullscreen
.subsections_via_symbols
