	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pre_update_freesync_state_on_stream
_pre_update_freesync_state_on_stream:   ## @pre_update_freesync_state_on_stream
	.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
	movq	48(%rsi), %r14
	movq	40(%rsi), %rax
	movq	%rax, -64(%rbp)
	movups	24(%rsi), %xmm0
	movaps	%xmm0, -80(%rbp)
	testq	%r14, %r14
	je	LBB0_11
## %bb.1:
	cmpl	$0, 4(%r14)
	je	LBB0_11
## %bb.2:
	cmpl	$0, (%r14)
	je	LBB0_11
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	movq	(%r13), %rdi
	callq	_spin_lock_irqsave
	leaq	4(%rbx), %r12
	movl	4(%rbx), %eax
	movl	%eax, -48(%rbp)
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.4:
	cmpq	$0, -64(%rbp)
	je	LBB0_9
## %bb.5:
	cmpq	$0, -72(%rbp)
	je	LBB0_9
## %bb.6:
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
## %bb.8:
	movq	_VRR_STATE_INACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_VRR_STATE_UNSUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_VRR_STATE_ACTIVE_VARIABLE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movl	(%r15), %edi
	leaq	-80(%rbp), %rdx
	leaq	-48(%rbp), %r15
	movq	%r14, %rsi
	movq	%r15, %rcx
	callq	_mod_freesync_build_vrr_params
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_memcmp
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	orl	%ecx, (%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 4(%rbx)
	movq	(%r13), %rdi
	callq	_spin_unlock_irqrestore
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VRR_STATE_ACTIVE_VARIABLE,4,2  ## @VRR_STATE_ACTIVE_VARIABLE
	.comm	_VRR_STATE_INACTIVE,4,2         ## @VRR_STATE_INACTIVE
	.comm	_VRR_STATE_UNSUPPORTED,4,2      ## @VRR_STATE_UNSUPPORTED
	.no_dead_strip	_pre_update_freesync_state_on_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pre_update_freesync_state_on_stream
_pre_update_freesync_state_on_stream:   ; @pre_update_freesync_state_on_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w23, -56
	.cfi_offset w24, -64
	ldur	q0, [x1, #24]
	str	q0, [sp]
	ldp	x8, x20, [x1, #40]
	str	x8, [sp, #16]
	cbz	x20, LBB0_9
; %bb.1:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_9
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.3:
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
	ldr	x0, [x23]
	bl	_spin_lock_irqsave
	mov	x22, x19
	ldr	w8, [x22, #4]!
	str	w8, [sp, #24]
	ldur	x8, [x22, #12]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh0:
	adrp	x8, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh2:
	adrp	x10, _VRR_STATE_INACTIVE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VRR_STATE_INACTIVE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x8, _VRR_STATE_UNSUPPORTED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VRR_STATE_UNSUPPORTED@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	w0, [x21]
	mov	x2, sp
	add	x3, sp, #24
	mov	x1, x20
	bl	_mod_freesync_build_vrr_params
	add	x1, sp, #24
	mov	x0, x22
	mov	w2, #4
	bl	_memcmp
	cmp	x0, #0
	cset	w8, ne
	ldr	w9, [x19]
	orr	w8, w9, w8
	ldr	w9, [sp, #24]
	stp	w8, w9, [x19]
	ldr	x0, [x23]
	bl	_spin_unlock_irqrestore
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VRR_STATE_ACTIVE_VARIABLE,4,2  ; @VRR_STATE_ACTIVE_VARIABLE
	.comm	_VRR_STATE_INACTIVE,4,2         ; @VRR_STATE_INACTIVE
	.comm	_VRR_STATE_UNSUPPORTED,4,2      ; @VRR_STATE_UNSUPPORTED
	.no_dead_strip	_pre_update_freesync_state_on_stream
.subsections_via_symbols
