	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_undo_pipe_scramble_reset
_vlv_undo_pipe_scramble_reset:          ## @vlv_undo_pipe_scramble_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	_PORT_DFT2_G4X@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_I915_READ
	addl	$-128, %ebx
	cmpl	$2, %ebx
	ja	LBB0_1
## %bb.2:
	movslq	%ebx, %rcx
	leaq	l_switch.table.vlv_undo_pipe_scramble_reset(%rip), %rdx
	movq	(%rdx,%rcx,8), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movq	_PIPE_SCRAMBLE_RESET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_DC_BALANCE_RESET_VLV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	negl	%ecx
	sbbl	%esi, %esi
	notl	%edx
	orl	%edx, %esi
	andl	%eax, %esi
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_DFT2_G4X,4,2              ## @PORT_DFT2_G4X
	.comm	_PIPE_A_SCRAMBLE_RESET,4,2      ## @PIPE_A_SCRAMBLE_RESET
	.comm	_PIPE_B_SCRAMBLE_RESET,4,2      ## @PIPE_B_SCRAMBLE_RESET
	.comm	_PIPE_C_SCRAMBLE_RESET,4,2      ## @PIPE_C_SCRAMBLE_RESET
	.comm	_PIPE_SCRAMBLE_RESET_MASK,4,2   ## @PIPE_SCRAMBLE_RESET_MASK
	.comm	_DC_BALANCE_RESET_VLV,4,2       ## @DC_BALANCE_RESET_VLV
	.no_dead_strip	_vlv_undo_pipe_scramble_reset
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.vlv_undo_pipe_scramble_reset
l_switch.table.vlv_undo_pipe_scramble_reset:
	.quad	_PIPE_C_SCRAMBLE_RESET
	.quad	_PIPE_B_SCRAMBLE_RESET
	.quad	_PIPE_A_SCRAMBLE_RESET

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_undo_pipe_scramble_reset
_vlv_undo_pipe_scramble_reset:          ; @vlv_undo_pipe_scramble_reset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x20, _PORT_DFT2_G4X@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PORT_DFT2_G4X@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_READ
	sub	w8, w19, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, l_switch.table.vlv_undo_pipe_scramble_reset@PAGE
Lloh3:
	add	x9, x9, l_switch.table.vlv_undo_pipe_scramble_reset@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _PIPE_SCRAMBLE_RESET_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PIPE_SCRAMBLE_RESET_MASK@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _DC_BALANCE_RESET_VLV@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DC_BALANCE_RESET_VLV@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	tst	w8, w9
	mov	w9, #-1
	csinv	w9, w9, w10, ne
	and	w1, w9, w8
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_DFT2_G4X,4,2              ; @PORT_DFT2_G4X
	.comm	_PIPE_A_SCRAMBLE_RESET,4,2      ; @PIPE_A_SCRAMBLE_RESET
	.comm	_PIPE_B_SCRAMBLE_RESET,4,2      ; @PIPE_B_SCRAMBLE_RESET
	.comm	_PIPE_C_SCRAMBLE_RESET,4,2      ; @PIPE_C_SCRAMBLE_RESET
	.comm	_PIPE_SCRAMBLE_RESET_MASK,4,2   ; @PIPE_SCRAMBLE_RESET_MASK
	.comm	_DC_BALANCE_RESET_VLV,4,2       ; @DC_BALANCE_RESET_VLV
	.no_dead_strip	_vlv_undo_pipe_scramble_reset
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vlv_undo_pipe_scramble_reset
l_switch.table.vlv_undo_pipe_scramble_reset:
	.quad	_PIPE_C_SCRAMBLE_RESET
	.quad	_PIPE_B_SCRAMBLE_RESET
	.quad	_PIPE_A_SCRAMBLE_RESET

.subsections_via_symbols
