	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function VIDEOMODE_SetCustomStretch
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_VIDEOMODE_SetCustomStretch
	.p2align	4, 0x90
_VIDEOMODE_SetCustomStretch:            ## @VIDEOMODE_SetCustomStretch
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %r15
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_1
LBB0_5:
	movq	%r15, %rbx
	jmp	LBB0_6
LBB0_1:
	movq	_VIDEOMODE_custom_stretch@GOTPCREL(%rip), %r14
	movsd	(%r14), %xmm1                   ## xmm1 = mem[0],zero
	movq	_VIDEOMODE_stretch@GOTPCREL(%rip), %r12
	ucomisd	%xmm0, %xmm1
	movl	(%r12), %r13d
	movq	_VIDEOMODE_STRETCH_CUSTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jne	LBB0_3
	jp	LBB0_3
## %bb.2:
	cmpl	%eax, %r13d
	je	LBB0_6
LBB0_3:
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm0, (%r14)
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_VIDEOMODE_Update
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, (%r14)
	movl	%r13d, (%r12)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEOMODE_custom_stretch,8,3   ## @VIDEOMODE_custom_stretch
	.comm	_VIDEOMODE_stretch,4,2          ## @VIDEOMODE_stretch
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_VIDEOMODE_STRETCH_CUSTOM,4,2   ## @VIDEOMODE_STRETCH_CUSTOM
	.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_SetCustomStretch     ; -- Begin function VIDEOMODE_SetCustomStretch
	.p2align	2
_VIDEOMODE_SetCustomStretch:            ; @VIDEOMODE_SetCustomStretch
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.pl	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh2:
	adrp	x19, _VIDEOMODE_custom_stretch@GOTPAGE
Lloh3:
	ldr	x19, [x19, _VIDEOMODE_custom_stretch@GOTPAGEOFF]
	ldr	d8, [x19]
Lloh4:
	adrp	x20, _VIDEOMODE_stretch@GOTPAGE
Lloh5:
	ldr	x20, [x20, _VIDEOMODE_stretch@GOTPAGEOFF]
	ldr	w21, [x20]
Lloh6:
	adrp	x8, _VIDEOMODE_STRETCH_CUSTOM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIDEOMODE_STRETCH_CUSTOM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	fcmp	d8, d0
	ccmp	w21, w8, #0, eq
	b.eq	LBB0_4
; %bb.3:
	str	d0, [x19]
	str	w8, [x20]
	bl	_VIDEOMODE_Update
	cbz	w0, LBB0_6
LBB0_4:
Lloh9:
	adrp	x8, _TRUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_6:
	str	d8, [x19]
	str	w21, [x20]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEOMODE_custom_stretch,8,3   ; @VIDEOMODE_custom_stretch
	.comm	_VIDEOMODE_stretch,4,2          ; @VIDEOMODE_stretch
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_VIDEOMODE_STRETCH_CUSTOM,4,2   ; @VIDEOMODE_STRETCH_CUSTOM
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
