	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_Flush                    ## -- Begin function VIDEO_Flush
	.p2align	4, 0x90
_VIDEO_Flush:                           ## @VIDEO_Flush
	.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	_changeMode@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_shdw_changeMode@GOTPCREL(%rip), %rdx
	orl	%ecx, (%rdx)
	movl	$0, (%rax)
	movq	_changed@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_shdw_changed@GOTPCREL(%rip), %rcx
	orl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movq	_regs@GOTPCREL(%rip), %r14
	movq	_shdw_regs@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	callq	_cntlzd
	movq	(%r14), %rcx
	movl	(%rcx,%rax,4), %ecx
	movq	(%r15), %rdx
	movl	%ecx, (%rdx,%rax,4)
	movq	%rax, %rdi
	callq	_VI_REGCHANGE
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	jne	LBB0_2
LBB0_3:
	movq	_flushFlag@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_HorVer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_nextFb@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__CPU_ISR_Restore               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_changeMode,4,2                 ## @changeMode
	.comm	_shdw_changeMode,4,2            ## @shdw_changeMode
	.comm	_changed,4,2                    ## @changed
	.comm	_shdw_changed,4,2               ## @shdw_changed
	.comm	_regs,8,3                       ## @regs
	.comm	_shdw_regs,8,3                  ## @shdw_regs
	.comm	_flushFlag,4,2                  ## @flushFlag
	.comm	_HorVer,4,2                     ## @HorVer
	.comm	_nextFb,4,2                     ## @nextFb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_VIDEO_Flush                    ; -- Begin function VIDEO_Flush
	.p2align	2
_VIDEO_Flush:                           ; @VIDEO_Flush
	.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	x8, _changeMode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _changeMode@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _shdw_changeMode@GOTPAGE
Lloh3:
	ldr	x10, [x10, _shdw_changeMode@GOTPAGEOFF]
	ldr	w11, [x10]
	orr	w9, w11, w9
	str	w9, [x10]
	str	wzr, [x8]
Lloh4:
	adrp	x19, _changed@GOTPAGE
Lloh5:
	ldr	x19, [x19, _changed@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _shdw_changed@GOTPAGE
Lloh7:
	ldr	x8, [x8, _shdw_changed@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, w0
	str	w9, [x8]
	cbz	w0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x20, _regs@GOTPAGE
Lloh9:
	ldr	x20, [x20, _regs@GOTPAGEOFF]
Lloh10:
	adrp	x21, _shdw_regs@GOTPAGE
Lloh11:
	ldr	x21, [x21, _shdw_regs@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cntlzd
	ldr	x8, [x20]
	lsl	x9, x0, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x21]
	str	w8, [x10, x9]
	bl	_VI_REGCHANGE
	ldr	w8, [x19]
	bics	w0, w8, w0
	str	w0, [x19]
	b.ne	LBB0_2
LBB0_3:
Lloh12:
	adrp	x8, _flushFlag@GOTPAGE
Lloh13:
	ldr	x8, [x8, _flushFlag@GOTPAGEOFF]
	mov	w9, #1
Lloh14:
	str	w9, [x8]
Lloh15:
	adrp	x8, _HorVer@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HorVer@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _nextFb@GOTPAGE
Lloh19:
	ldr	x9, [x9, _nextFb@GOTPAGEOFF]
Lloh20:
	str	w8, [x9]
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_changeMode,4,2                 ; @changeMode
	.comm	_shdw_changeMode,4,2            ; @shdw_changeMode
	.comm	_changed,4,2                    ; @changed
	.comm	_shdw_changed,4,2               ; @shdw_changed
	.comm	_regs,8,3                       ; @regs
	.comm	_shdw_regs,8,3                  ; @shdw_regs
	.comm	_flushFlag,4,2                  ; @flushFlag
	.comm	_HorVer,4,2                     ; @HorVer
	.comm	_nextFb,4,2                     ; @nextFb
.subsections_via_symbols
