	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEOMODE_SetHostAspect        ## -- Begin function VIDEOMODE_SetHostAspect
	.p2align	4, 0x90
_VIDEOMODE_SetHostAspect:               ## @VIDEOMODE_SetHostAspect
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -40(%rbp)
	movsd	%xmm1, -32(%rbp)
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm0, %xmm2
	movq	_FALSE@GOTPCREL(%rip), %rbx
	ja	LBB0_8
## %bb.1:
	ucomisd	%xmm1, %xmm2
	ja	LBB0_8
## %bb.2:
	movq	_VIDEOMODE_host_aspect_ratio_w@GOTPCREL(%rip), %r14
	movsd	(%r14), %xmm2                   ## xmm2 = mem[0],zero
	movsd	%xmm2, -56(%rbp)                ## 8-byte Spill
	movq	_VIDEOMODE_host_aspect_ratio_h@GOTPCREL(%rip), %r15
	movsd	(%r15), %xmm2                   ## xmm2 = mem[0],zero
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	xorpd	%xmm2, %xmm2
	ucomisd	%xmm2, %xmm0
	jne	LBB0_3
	jnp	LBB0_4
LBB0_3:
	ucomisd	%xmm2, %xmm1
	jne	LBB0_5
	jp	LBB0_5
LBB0_4:
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_AutodetectHostAspect
	movsd	-40(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	-32(%rbp), %xmm1                ## xmm1 = mem[0],zero
LBB0_5:
	movsd	%xmm0, (%r14)
	movsd	%xmm1, (%r15)
	xorl	%eax, %eax
	callq	_VIDEOMODE_Update
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_8
LBB0_7:
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r15)
LBB0_8:
	movl	(%rbx), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEOMODE_host_aspect_ratio_w,8,3 ## @VIDEOMODE_host_aspect_ratio_w
	.comm	_VIDEOMODE_host_aspect_ratio_h,8,3 ## @VIDEOMODE_host_aspect_ratio_h
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEOMODE_SetHostAspect        ; -- Begin function VIDEOMODE_SetHostAspect
	.p2align	2
_VIDEOMODE_SetHostAspect:               ; @VIDEOMODE_SetHostAspect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	stp	d1, d0, [sp]
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	fcmp	d0, #0.0
	b.mi	LBB0_8
; %bb.1:
	fcmp	d1, #0.0
	b.mi	LBB0_8
; %bb.2:
Lloh2:
	adrp	x19, _VIDEOMODE_host_aspect_ratio_w@GOTPAGE
Lloh3:
	ldr	x19, [x19, _VIDEOMODE_host_aspect_ratio_w@GOTPAGEOFF]
	ldr	d8, [x19]
Lloh4:
	adrp	x20, _VIDEOMODE_host_aspect_ratio_h@GOTPAGE
Lloh5:
	ldr	x20, [x20, _VIDEOMODE_host_aspect_ratio_h@GOTPAGEOFF]
	ldr	d9, [x20]
	fcmp	d0, #0.0
	b.eq	LBB0_4
; %bb.3:
	fcmp	d1, #0.0
	b.ne	LBB0_5
LBB0_4:
	add	x0, sp, #8
	mov	x1, sp
	bl	_AutodetectHostAspect
	ldp	d1, d0, [sp]
LBB0_5:
	str	d0, [x19]
	str	d1, [x20]
	bl	_VIDEOMODE_Update
	cbz	w0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	str	d8, [x19]
	str	d9, [x20]
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEOMODE_host_aspect_ratio_w,8,3 ; @VIDEOMODE_host_aspect_ratio_w
	.comm	_VIDEOMODE_host_aspect_ratio_h,8,3 ; @VIDEOMODE_host_aspect_ratio_h
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
