	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivch_mode_set
_ivch_mode_set:                         ## @ivch_mode_set
	.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	%rdi, %r15
	movq	_VR40_STALL_ENABLE@GOTPCREL(%rip), %rax
	movq	_VR40_VERTICAL_INTERP_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_VR40_HORIZONTAL_INTERP_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	(%rsi), %eax
	movl	4(%rsi), %ecx
	movl	(%rdx), %edi
	movl	4(%rdx), %esi
	cmpl	%edi, %eax
	jne	LBB0_2
## %bb.1:
	cmpl	%esi, %ecx
	jne	LBB0_2
## %bb.3:
	movq	_VR40_CLOCK_GATING_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	_VR01_PANEL_FIT_ENABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	movq	_VR40_CLOCK_GATING_ENABLE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r12d
	shll	$16, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	decl	%edi
	cltd
	idivl	%edi
	movl	%eax, %r8d
	sarl	$2, %r8d
	shll	$16, %ecx
	addl	$-65536, %ecx                   ## imm = 0xFFFF0000
	decl	%esi
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %ebx
	sarl	$2, %ebx
	movq	_VR42@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r8d, %edx
	callq	_ivch_write
	movq	_VR41@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_ivch_write
LBB0_4:
	movq	_VR40_AUTO_RATIO_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r12d, %ebx
	movq	_VR01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_ivch_write
	movq	_VR40@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_ivch_write
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ivch_dump_regs                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VR40_STALL_ENABLE,4,2          ## @VR40_STALL_ENABLE
	.comm	_VR40_VERTICAL_INTERP_ENABLE,4,2 ## @VR40_VERTICAL_INTERP_ENABLE
	.comm	_VR40_HORIZONTAL_INTERP_ENABLE,4,2 ## @VR40_HORIZONTAL_INTERP_ENABLE
	.comm	_VR01_PANEL_FIT_ENABLE,4,2      ## @VR01_PANEL_FIT_ENABLE
	.comm	_VR40_CLOCK_GATING_ENABLE,4,2   ## @VR40_CLOCK_GATING_ENABLE
	.comm	_VR42,4,2                       ## @VR42
	.comm	_VR41,4,2                       ## @VR41
	.comm	_VR40_AUTO_RATIO_ENABLE,4,2     ## @VR40_AUTO_RATIO_ENABLE
	.comm	_VR01,4,2                       ## @VR01
	.comm	_VR40,4,2                       ## @VR40
	.no_dead_strip	_ivch_mode_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivch_mode_set
_ivch_mode_set:                         ; @ivch_mode_set
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _VR40_STALL_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VR40_STALL_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VR40_VERTICAL_INTERP_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VR40_VERTICAL_INTERP_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _VR40_HORIZONTAL_INTERP_ENABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VR40_HORIZONTAL_INTERP_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w10, w8, w9
	ldp	w11, w9, [x1]
	ldp	w12, w8, [x2]
	cmp	w11, w12
	ccmp	w9, w8, #0, eq
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x13, _VR01_PANEL_FIT_ENABLE@GOTPAGE
Lloh10:
	ldr	x13, [x13, _VR01_PANEL_FIT_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w20, [x13]
Lloh12:
	adrp	x13, _VR40_CLOCK_GATING_ENABLE@GOTPAGE
Lloh13:
	ldr	x13, [x13, _VR40_CLOCK_GATING_ENABLE@GOTPAGEOFF]
Lloh14:
	ldr	w13, [x13]
	orr	w22, w13, w10
	lsl	w10, w11, #16
	sub	w10, w10, #16, lsl #12          ; =65536
	sub	w11, w12, #1
	sdiv	w10, w10, w11
	asr	w2, w10, #2
	lsl	w9, w9, #16
	sub	w9, w9, #16, lsl #12            ; =65536
	sub	w8, w8, #1
	sdiv	w8, w9, w8
	asr	w21, w8, #2
Lloh15:
	adrp	x8, _VR42@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VR42@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ivch_write
Lloh18:
	adrp	x8, _VR41@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VR41@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ivch_write
	b	LBB0_3
LBB0_2:
	mov	w20, #0
Lloh21:
	adrp	x8, _VR40_CLOCK_GATING_ENABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VR40_CLOCK_GATING_ENABLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	bic	w22, w10, w8
LBB0_3:
Lloh24:
	adrp	x8, _VR40_AUTO_RATIO_ENABLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VR40_AUTO_RATIO_ENABLE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	bic	w21, w22, w8
Lloh27:
	adrp	x8, _VR01@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VR01@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_ivch_write
Lloh30:
	adrp	x8, _VR40@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VR40@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_ivch_write
	mov	x0, x19
	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	_ivch_dump_regs
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_VR40_STALL_ENABLE,4,2          ; @VR40_STALL_ENABLE
	.comm	_VR40_VERTICAL_INTERP_ENABLE,4,2 ; @VR40_VERTICAL_INTERP_ENABLE
	.comm	_VR40_HORIZONTAL_INTERP_ENABLE,4,2 ; @VR40_HORIZONTAL_INTERP_ENABLE
	.comm	_VR01_PANEL_FIT_ENABLE,4,2      ; @VR01_PANEL_FIT_ENABLE
	.comm	_VR40_CLOCK_GATING_ENABLE,4,2   ; @VR40_CLOCK_GATING_ENABLE
	.comm	_VR42,4,2                       ; @VR42
	.comm	_VR41,4,2                       ; @VR41
	.comm	_VR40_AUTO_RATIO_ENABLE,4,2     ; @VR40_AUTO_RATIO_ENABLE
	.comm	_VR01,4,2                       ; @VR01
	.comm	_VR40,4,2                       ; @VR40
	.no_dead_strip	_ivch_mode_set
.subsections_via_symbols
