	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_WaitVSync                ## -- Begin function VIDEO_WaitVSync
	.p2align	4, 0x90
_VIDEO_WaitVSync:                       ## @VIDEO_WaitVSync
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	__CPU_ISR_Disable
	movq	_retraceCount@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	_video_queue@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_LWP_ThreadSleep
	cmpq	%rbx, (%r14)
	je	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_retraceCount,8,3               ## @retraceCount
	.comm	_video_queue,4,2                ## @video_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_WaitVSync                ; -- Begin function VIDEO_WaitVSync
	.p2align	2
_VIDEO_WaitVSync:                       ; @VIDEO_WaitVSync
	.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
	bl	__CPU_ISR_Disable
Lloh0:
	adrp	x19, _retraceCount@GOTPAGE
Lloh1:
	ldr	x19, [x19, _retraceCount@GOTPAGEOFF]
	ldr	x20, [x19]
Lloh2:
	adrp	x21, _video_queue@GOTPAGE
Lloh3:
	ldr	x21, [x21, _video_queue@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_LWP_ThreadSleep
	ldr	x8, [x19]
	cmp	x8, x20
	b.eq	LBB0_1
; %bb.2:
	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	__CPU_ISR_Restore
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_retraceCount,8,3               ; @retraceCount
	.comm	_video_queue,4,2                ; @video_queue
.subsections_via_symbols
