	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_freesync_handle_preflip    ## -- Begin function mod_freesync_handle_preflip
	.p2align	4, 0x90
_mod_freesync_handle_preflip:           ## @mod_freesync_handle_preflip
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_MOD_FREESYNC_TO_CORE
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rcx
	movq	_VRR_STATE_ACTIVE_VARIABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	subl	4(%r12), %r14d
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.6:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_apply_below_the_range          ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_apply_fixed_refresh            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VRR_STATE_ACTIVE_VARIABLE,8,3  ## @VRR_STATE_ACTIVE_VARIABLE
	.comm	_DC_PLANE_UPDATE_TIMES_MAX,4,2  ## @DC_PLANE_UPDATE_TIMES_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_freesync_handle_preflip    ; -- Begin function mod_freesync_handle_preflip
	.p2align	2
_mod_freesync_handle_preflip:           ; @mod_freesync_handle_preflip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	bl	_MOD_FREESYNC_TO_CORE
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x22, #4]
	sub	w2, w21, w8
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.4:
	mov	x1, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_apply_below_the_range
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x1, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_apply_fixed_refresh
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VRR_STATE_ACTIVE_VARIABLE,8,3  ; @VRR_STATE_ACTIVE_VARIABLE
	.comm	_DC_PLANE_UPDATE_TIMES_MAX,4,2  ; @DC_PLANE_UPDATE_TIMES_MAX
.subsections_via_symbols
