	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_vupdate_offset_from_vsync  ## -- Begin function get_vupdate_offset_from_vsync
	.p2align	4, 0x90
_get_vupdate_offset_from_vsync:         ## @get_vupdate_offset_from_vsync
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movaps	%xmm1, -32(%rbp)
	movaps	%xmm0, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_apply_front_porch_workaround
	cmpq	$1, -24(%rbp)
	movl	$2, %ecx
	sbbl	$0, %ecx
	movl	-44(%rbp), %edx
	addl	-48(%rbp), %edx
	addl	-40(%rbp), %edx
	movl	-36(%rbp), %eax
	addl	-32(%rbp), %edx
	subl	%edx, %eax
	imull	%ecx, %eax
	subl	(%rbx), %eax
	incl	%eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_vupdate_offset_from_vsync  ; -- Begin function get_vupdate_offset_from_vsync
	.p2align	2
_get_vupdate_offset_from_vsync:         ; @get_vupdate_offset_from_vsync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_apply_front_porch_workaround
	ldr	x8, [sp, #24]
	cmp	x8, #0
	mov	w8, #1
	cinc	w8, w8, ne
	ldp	w9, w10, [sp]
	ldp	w11, w12, [sp, #8]
	ldr	w13, [sp, #16]
	add	w9, w10, w9
	add	w9, w9, w11
	add	w9, w9, w13
	sub	w9, w12, w9
	ldr	w10, [x19]
	neg	w10, w10
	madd	w8, w9, w8, w10
	add	w0, w8, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
