	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_freesync_handle_v_update   ## -- Begin function mod_freesync_handle_v_update
	.p2align	4, 0x90
_mod_freesync_handle_v_update:          ## @mod_freesync_handle_v_update
	.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_16
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_16
## %bb.2:
	movq	%rdx, %rbx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.3:
	callq	_MOD_FREESYNC_TO_CORE
	cmpl	$0, (%rbx)
	je	LBB0_16
## %bb.4:
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movq	_VRR_STATE_ACTIVE_VARIABLE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.5:
	cmpq	$0, 72(%rbx)
	je	LBB0_12
## %bb.6:
	movq	56(%rbx), %rax
	cmpq	%rax, 48(%rbx)
	jne	LBB0_8
## %bb.7:
	movl	64(%rbx), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_calc_v_total_from_duration
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	56(%rbx), %rax
LBB0_8:
	testq	%rax, %rax
	jle	LBB0_10
## %bb.9:
	decq	%rax
	movq	%rax, 56(%rbx)
LBB0_10:
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	40(%rbx), %esi
	movq	%r14, %rdi
	callq	_calc_v_total_from_refresh
	movq	%rax, 32(%rbx)
	movl	20(%rbx), %esi
	movq	%r14, %rdi
	callq	_calc_v_total_from_refresh
	movq	%rax, 24(%rbx)
LBB0_12:
	movq	8(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.13:
	movl	$0, 16(%rbx)
LBB0_14:
	movq	_VRR_STATE_ACTIVE_FIXED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	cmpl	$0, 16(%rbx)
	je	LBB0_16
## %bb.17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_update_v_total_for_static_ramp ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VRR_STATE_ACTIVE_VARIABLE,8,3  ## @VRR_STATE_ACTIVE_VARIABLE
	.comm	_VRR_STATE_ACTIVE_FIXED,8,3     ## @VRR_STATE_ACTIVE_FIXED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mod_freesync_handle_v_update   ; -- Begin function mod_freesync_handle_v_update
	.p2align	2
_mod_freesync_handle_v_update:          ; @mod_freesync_handle_v_update
	.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_17
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_17
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_17
; %bb.3:
	bl	_MOD_FREESYNC_TO_CORE
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.4:
	mov	x21, x0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x22, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.5:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_12
; %bb.6:
	ldp	x9, x8, [x19, #48]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	w2, [x19, #64]
	mov	x0, x20
	mov	x1, x19
	bl	_calc_v_total_from_duration
	stp	x0, x0, [x19, #24]
	ldr	x8, [x19, #56]
LBB0_8:
	subs	x9, x8, #1
	b.lt	LBB0_10
; %bb.9:
	str	x9, [x19, #56]
	mov	x8, x9
LBB0_10:
	cbnz	x8, LBB0_12
; %bb.11:
	ldr	w1, [x19, #40]
	mov	x0, x20
	bl	_calc_v_total_from_refresh
	str	x0, [x19, #32]
	ldr	w1, [x19, #20]
	mov	x0, x20
	bl	_calc_v_total_from_refresh
	str	x0, [x19, #24]
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:
	str	wzr, [x19, #16]
LBB0_14:
Lloh2:
	adrp	x9, _VRR_STATE_ACTIVE_FIXED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VRR_STATE_ACTIVE_FIXED@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_17
; %bb.16:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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	_update_v_total_for_static_ramp
LBB0_17:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VRR_STATE_ACTIVE_VARIABLE,8,3  ; @VRR_STATE_ACTIVE_VARIABLE
	.comm	_VRR_STATE_ACTIVE_FIXED,8,3     ; @VRR_STATE_ACTIVE_FIXED
.subsections_via_symbols
