	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __VISetRegs
___VISetRegs:                           ## @__VISetRegs
	.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
	movq	_shdw_changeMode@GOTPCREL(%rip), %r14
	cmpl	$1, (%r14)
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	___getCurrentFieldEvenOdd
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movq	_shdw_changed@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_shdw_regs@GOTPCREL(%rip), %r15
	movq	__viReg@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edi
	callq	_cntlzd
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %ecx
	movq	(%r12), %rdx
	movl	%ecx, (%rdx,%rax,4)
	movq	%rax, %rdi
	callq	_VI_REGCHANGE
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	jne	LBB0_4
LBB0_5:
	movl	$0, (%r14)
	movq	_HorVer@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	movq	_currTiming@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_currTvMode@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_nextFb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_currentFb@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$1, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_shdw_changeMode,4,2            ## @shdw_changeMode
	.comm	_shdw_changed,4,2               ## @shdw_changed
	.comm	_shdw_regs,8,3                  ## @shdw_regs
	.comm	__viReg,8,3                     ## @_viReg
	.comm	_HorVer,8,2                     ## @HorVer
	.comm	_currTiming,4,2                 ## @currTiming
	.comm	_currTvMode,4,2                 ## @currTvMode
	.comm	_nextFb,4,2                     ## @nextFb
	.comm	_currentFb,4,2                  ## @currentFb
	.no_dead_strip	___VISetRegs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __VISetRegs
___VISetRegs:                           ; @__VISetRegs
	.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
Lloh0:
	adrp	x19, _shdw_changeMode@GOTPAGE
Lloh1:
	ldr	x19, [x19, _shdw_changeMode@GOTPAGEOFF]
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_2
; %bb.1:
	bl	___getCurrentFieldEvenOdd
	cbz	w0, LBB0_6
LBB0_2:
Lloh2:
	adrp	x20, _shdw_changed@GOTPAGE
Lloh3:
	ldr	x20, [x20, _shdw_changed@GOTPAGEOFF]
	ldr	w0, [x20]
	cbz	w0, LBB0_5
; %bb.3:
Lloh4:
	adrp	x21, _shdw_regs@GOTPAGE
Lloh5:
	ldr	x21, [x21, _shdw_regs@GOTPAGEOFF]
Lloh6:
	adrp	x22, __viReg@GOTPAGE
Lloh7:
	ldr	x22, [x22, __viReg@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_cntlzd
	ldr	x8, [x21]
	lsl	x9, x0, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x22]
	str	w8, [x10, x9]
	bl	_VI_REGCHANGE
	ldr	w8, [x20]
	bics	w0, w8, w0
	str	w0, [x20]
	b.ne	LBB0_4
LBB0_5:
	str	wzr, [x19]
Lloh8:
	adrp	x8, _HorVer@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HorVer@GOTPAGEOFF]
Lloh10:
	adrp	x9, _currTiming@GOTPAGE
Lloh11:
	ldr	x9, [x9, _currTiming@GOTPAGEOFF]
	ldp	w8, w10, [x8]
Lloh12:
	str	w10, [x9]
Lloh13:
	adrp	x9, _currTvMode@GOTPAGE
Lloh14:
	ldr	x9, [x9, _currTvMode@GOTPAGEOFF]
Lloh15:
	adrp	x10, _nextFb@GOTPAGE
Lloh16:
	ldr	x10, [x10, _nextFb@GOTPAGEOFF]
Lloh17:
	str	w8, [x9]
Lloh18:
	ldr	w8, [x10]
Lloh19:
	adrp	x9, _currentFb@GOTPAGE
Lloh20:
	ldr	x9, [x9, _currentFb@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	mov	x0, #0
LBB0_7:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_shdw_changeMode,4,2            ; @shdw_changeMode
	.comm	_shdw_changed,4,2               ; @shdw_changed
	.comm	_shdw_regs,8,3                  ; @shdw_regs
	.comm	__viReg,8,3                     ; @_viReg
	.comm	_HorVer,8,2                     ; @HorVer
	.comm	_currTiming,4,2                 ; @currTiming
	.comm	_currTvMode,4,2                 ; @currTvMode
	.comm	_nextFb,4,2                     ; @nextFb
	.comm	_currentFb,4,2                  ; @currentFb
	.no_dead_strip	___VISetRegs
.subsections_via_symbols
