	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlv_restore_gunit_s0ix_state
_vlv_restore_gunit_s0ix_state:          ## @vlv_restore_gunit_s0ix_state
	.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
	movq	(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.1:
	movq	_GEN7_WR_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN7_GFX_PRIO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_I915_WRITE
	movq	_ARB_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$-65536, %esi                   ## imm = 0xFFFF0000
	orl	8(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN7_GFX_PEND_TLB0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN7_GFX_PEND_TLB1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	callq	_I915_WRITE
	movq	24(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GEN7_LRA_LIMITS
	movq	24(%r14), %rcx
	movl	(%rcx,%rbx,4), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	incq	%rbx
	movq	24(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movq	_GEN7_MEDIA_MAX_REQ_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN7_GFX_MAX_REQ_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	36(%r14), %esi
	callq	_I915_WRITE
	movq	_RENDER_HWS_PGA_GEN7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r14), %esi
	callq	_I915_WRITE
	movq	_GAM_ECOCHK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	44(%r14), %esi
	callq	_I915_WRITE
	movq	_BSD_HWS_PGA_GEN7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	48(%r14), %esi
	callq	_I915_WRITE
	movq	_BLT_HWS_PGA_GEN7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	52(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN7_TLB_RD_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_G3DCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	60(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_GSCKGCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	64(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_MBCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	68(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_UCGCTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	72(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_UCGCTL3@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	76(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RCGCTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	80(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RCGCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	84(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RSTCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	88(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN7_MISCCPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	92(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_GFXPAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	96(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RPDEUHWTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	100(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RPDEUC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	104(%r14), %esi
	callq	_I915_WRITE
	movq	_ECOBUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	108(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_PWRDWNUPCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	112(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RP_DOWN_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	116(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RPDEUCSW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	120(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_RCUBMABDTMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	124(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_RCEDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	128(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_SPAREG2H@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	132(%r14), %esi
	callq	_I915_WRITE
	movq	_GTIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	136(%r14), %esi
	callq	_I915_WRITE
	movq	_GTIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	140(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_PMIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	144(%r14), %esi
	callq	_I915_WRITE
	movq	_GEN6_PMIER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	148(%r14), %esi
	callq	_I915_WRITE
	movq	152(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_GEN7_GT_SCRATCH
	movq	152(%r14), %rcx
	movl	(%rcx,%rbx,4), %esi
	movl	%eax, %edi
	callq	_I915_WRITE
	incq	%rbx
	movq	152(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	_TILECTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	160(%r14), %esi
	callq	_I915_WRITE
	movq	_GTFIFOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	164(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_GTLC_WAKE_CTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_VLV_GTLC_ALLOWWAKEREQ@GOTPCREL(%rip), %rcx
	movl	168(%r14), %esi
	xorl	%esi, %eax
	andl	(%rcx), %eax
	xorl	%eax, %esi
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movq	_VLV_GTLC_SURVIVABILITY_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_VLV_GFX_CLK_FORCE_ON_BIT@GOTPCREL(%rip), %rcx
	movl	172(%r14), %esi
	xorl	%esi, %eax
	andl	(%rcx), %eax
	xorl	%eax, %esi
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movq	_VLV_PMWGICZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	176(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_GU_CTL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	180(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_GU_CTL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	184(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_PCBR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	188(%r14), %esi
	callq	_I915_WRITE
	movq	_VLV_GUNIT_CLOCK_GATE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	192(%r14), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN7_WR_WATERMARK,4,2          ## @GEN7_WR_WATERMARK
	.comm	_GEN7_GFX_PRIO_CTRL,4,2         ## @GEN7_GFX_PRIO_CTRL
	.comm	_ARB_MODE,4,2                   ## @ARB_MODE
	.comm	_GEN7_GFX_PEND_TLB0,4,2         ## @GEN7_GFX_PEND_TLB0
	.comm	_GEN7_GFX_PEND_TLB1,4,2         ## @GEN7_GFX_PEND_TLB1
	.comm	_GEN7_MEDIA_MAX_REQ_COUNT,4,2   ## @GEN7_MEDIA_MAX_REQ_COUNT
	.comm	_GEN7_GFX_MAX_REQ_COUNT,4,2     ## @GEN7_GFX_MAX_REQ_COUNT
	.comm	_RENDER_HWS_PGA_GEN7,4,2        ## @RENDER_HWS_PGA_GEN7
	.comm	_GAM_ECOCHK,4,2                 ## @GAM_ECOCHK
	.comm	_BSD_HWS_PGA_GEN7,4,2           ## @BSD_HWS_PGA_GEN7
	.comm	_BLT_HWS_PGA_GEN7,4,2           ## @BLT_HWS_PGA_GEN7
	.comm	_GEN7_TLB_RD_ADDR,4,2           ## @GEN7_TLB_RD_ADDR
	.comm	_VLV_G3DCTL,4,2                 ## @VLV_G3DCTL
	.comm	_VLV_GSCKGCTL,4,2               ## @VLV_GSCKGCTL
	.comm	_GEN6_MBCTL,4,2                 ## @GEN6_MBCTL
	.comm	_GEN6_UCGCTL1,4,2               ## @GEN6_UCGCTL1
	.comm	_GEN6_UCGCTL3,4,2               ## @GEN6_UCGCTL3
	.comm	_GEN6_RCGCTL1,4,2               ## @GEN6_RCGCTL1
	.comm	_GEN6_RCGCTL2,4,2               ## @GEN6_RCGCTL2
	.comm	_GEN6_RSTCTL,4,2                ## @GEN6_RSTCTL
	.comm	_GEN7_MISCCPCTL,4,2             ## @GEN7_MISCCPCTL
	.comm	_GEN6_GFXPAUSE,4,2              ## @GEN6_GFXPAUSE
	.comm	_GEN6_RPDEUHWTC,4,2             ## @GEN6_RPDEUHWTC
	.comm	_GEN6_RPDEUC,4,2                ## @GEN6_RPDEUC
	.comm	_ECOBUS,4,2                     ## @ECOBUS
	.comm	_VLV_PWRDWNUPCTL,4,2            ## @VLV_PWRDWNUPCTL
	.comm	_GEN6_RP_DOWN_TIMEOUT,4,2       ## @GEN6_RP_DOWN_TIMEOUT
	.comm	_GEN6_RPDEUCSW,4,2              ## @GEN6_RPDEUCSW
	.comm	_GEN6_RCUBMABDTMR,4,2           ## @GEN6_RCUBMABDTMR
	.comm	_VLV_RCEDATA,4,2                ## @VLV_RCEDATA
	.comm	_VLV_SPAREG2H,4,2               ## @VLV_SPAREG2H
	.comm	_GTIMR,4,2                      ## @GTIMR
	.comm	_GTIER,4,2                      ## @GTIER
	.comm	_GEN6_PMIMR,4,2                 ## @GEN6_PMIMR
	.comm	_GEN6_PMIER,4,2                 ## @GEN6_PMIER
	.comm	_TILECTL,4,2                    ## @TILECTL
	.comm	_GTFIFOCTL,4,2                  ## @GTFIFOCTL
	.comm	_VLV_GTLC_WAKE_CTRL,4,2         ## @VLV_GTLC_WAKE_CTRL
	.comm	_VLV_GTLC_ALLOWWAKEREQ,4,2      ## @VLV_GTLC_ALLOWWAKEREQ
	.comm	_VLV_GTLC_SURVIVABILITY_REG,4,2 ## @VLV_GTLC_SURVIVABILITY_REG
	.comm	_VLV_GFX_CLK_FORCE_ON_BIT,4,2   ## @VLV_GFX_CLK_FORCE_ON_BIT
	.comm	_VLV_PMWGICZ,4,2                ## @VLV_PMWGICZ
	.comm	_VLV_GU_CTL0,4,2                ## @VLV_GU_CTL0
	.comm	_VLV_GU_CTL1,4,2                ## @VLV_GU_CTL1
	.comm	_VLV_PCBR,4,2                   ## @VLV_PCBR
	.comm	_VLV_GUNIT_CLOCK_GATE2,4,2      ## @VLV_GUNIT_CLOCK_GATE2
	.no_dead_strip	_vlv_restore_gunit_s0ix_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlv_restore_gunit_s0ix_state
_vlv_restore_gunit_s0ix_state:          ; @vlv_restore_gunit_s0ix_state
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _GEN7_WR_WATERMARK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN7_WR_WATERMARK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_I915_WRITE
Lloh3:
	adrp	x8, _GEN7_GFX_PRIO_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN7_GFX_PRIO_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_I915_WRITE
Lloh6:
	adrp	x8, _ARB_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARB_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w8, [x20, #8]
	orr	w1, w8, #0xffff0000
	bl	_I915_WRITE
Lloh9:
	adrp	x8, _GEN7_GFX_PEND_TLB0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN7_GFX_PEND_TLB0@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w1, [x20, #12]
	bl	_I915_WRITE
Lloh12:
	adrp	x8, _GEN7_GFX_PEND_TLB1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GEN7_GFX_PEND_TLB1@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_I915_WRITE
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x19, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_GEN7_LRA_LIMITS
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x19, lsl #2]
	bl	_I915_WRITE
	add	x19, x19, #1
	ldr	x0, [x20, #24]
	bl	_ARRAY_SIZE
	cmp	x19, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
Lloh15:
	adrp	x8, _GEN7_MEDIA_MAX_REQ_COUNT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GEN7_MEDIA_MAX_REQ_COUNT@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x20, #32]
	bl	_I915_WRITE
Lloh18:
	adrp	x8, _GEN7_GFX_MAX_REQ_COUNT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GEN7_GFX_MAX_REQ_COUNT@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x20, #36]
	bl	_I915_WRITE
Lloh21:
	adrp	x8, _RENDER_HWS_PGA_GEN7@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RENDER_HWS_PGA_GEN7@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x20, #40]
	bl	_I915_WRITE
Lloh24:
	adrp	x8, _GAM_ECOCHK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GAM_ECOCHK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w1, [x20, #44]
	bl	_I915_WRITE
Lloh27:
	adrp	x8, _BSD_HWS_PGA_GEN7@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BSD_HWS_PGA_GEN7@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x20, #48]
	bl	_I915_WRITE
Lloh30:
	adrp	x8, _BLT_HWS_PGA_GEN7@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BLT_HWS_PGA_GEN7@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x20, #52]
	bl	_I915_WRITE
Lloh33:
	adrp	x8, _GEN7_TLB_RD_ADDR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GEN7_TLB_RD_ADDR@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x20, #56]
	bl	_I915_WRITE
Lloh36:
	adrp	x8, _VLV_G3DCTL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VLV_G3DCTL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [x20, #60]
	bl	_I915_WRITE
Lloh39:
	adrp	x8, _VLV_GSCKGCTL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _VLV_GSCKGCTL@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	w1, [x20, #64]
	bl	_I915_WRITE
Lloh42:
	adrp	x8, _GEN6_MBCTL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _GEN6_MBCTL@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	w1, [x20, #68]
	bl	_I915_WRITE
Lloh45:
	adrp	x8, _GEN6_UCGCTL1@GOTPAGE
Lloh46:
	ldr	x8, [x8, _GEN6_UCGCTL1@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	ldr	w1, [x20, #72]
	bl	_I915_WRITE
Lloh48:
	adrp	x8, _GEN6_UCGCTL3@GOTPAGE
Lloh49:
	ldr	x8, [x8, _GEN6_UCGCTL3@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	ldr	w1, [x20, #76]
	bl	_I915_WRITE
Lloh51:
	adrp	x8, _GEN6_RCGCTL1@GOTPAGE
Lloh52:
	ldr	x8, [x8, _GEN6_RCGCTL1@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	ldr	w1, [x20, #80]
	bl	_I915_WRITE
Lloh54:
	adrp	x8, _GEN6_RCGCTL2@GOTPAGE
Lloh55:
	ldr	x8, [x8, _GEN6_RCGCTL2@GOTPAGEOFF]
Lloh56:
	ldr	w0, [x8]
	ldr	w1, [x20, #84]
	bl	_I915_WRITE
Lloh57:
	adrp	x8, _GEN6_RSTCTL@GOTPAGE
Lloh58:
	ldr	x8, [x8, _GEN6_RSTCTL@GOTPAGEOFF]
Lloh59:
	ldr	w0, [x8]
	ldr	w1, [x20, #88]
	bl	_I915_WRITE
Lloh60:
	adrp	x8, _GEN7_MISCCPCTL@GOTPAGE
Lloh61:
	ldr	x8, [x8, _GEN7_MISCCPCTL@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	ldr	w1, [x20, #92]
	bl	_I915_WRITE
Lloh63:
	adrp	x8, _GEN6_GFXPAUSE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _GEN6_GFXPAUSE@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	ldr	w1, [x20, #96]
	bl	_I915_WRITE
Lloh66:
	adrp	x8, _GEN6_RPDEUHWTC@GOTPAGE
Lloh67:
	ldr	x8, [x8, _GEN6_RPDEUHWTC@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
	ldr	w1, [x20, #100]
	bl	_I915_WRITE
Lloh69:
	adrp	x8, _GEN6_RPDEUC@GOTPAGE
Lloh70:
	ldr	x8, [x8, _GEN6_RPDEUC@GOTPAGEOFF]
Lloh71:
	ldr	w0, [x8]
	ldr	w1, [x20, #104]
	bl	_I915_WRITE
Lloh72:
	adrp	x8, _ECOBUS@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ECOBUS@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
	ldr	w1, [x20, #108]
	bl	_I915_WRITE
Lloh75:
	adrp	x8, _VLV_PWRDWNUPCTL@GOTPAGE
Lloh76:
	ldr	x8, [x8, _VLV_PWRDWNUPCTL@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
	ldr	w1, [x20, #112]
	bl	_I915_WRITE
Lloh78:
	adrp	x8, _GEN6_RP_DOWN_TIMEOUT@GOTPAGE
Lloh79:
	ldr	x8, [x8, _GEN6_RP_DOWN_TIMEOUT@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	ldr	w1, [x20, #116]
	bl	_I915_WRITE
Lloh81:
	adrp	x8, _GEN6_RPDEUCSW@GOTPAGE
Lloh82:
	ldr	x8, [x8, _GEN6_RPDEUCSW@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
	ldr	w1, [x20, #120]
	bl	_I915_WRITE
Lloh84:
	adrp	x8, _GEN6_RCUBMABDTMR@GOTPAGE
Lloh85:
	ldr	x8, [x8, _GEN6_RCUBMABDTMR@GOTPAGEOFF]
Lloh86:
	ldr	w0, [x8]
	ldr	w1, [x20, #124]
	bl	_I915_WRITE
Lloh87:
	adrp	x8, _VLV_RCEDATA@GOTPAGE
Lloh88:
	ldr	x8, [x8, _VLV_RCEDATA@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	ldr	w1, [x20, #128]
	bl	_I915_WRITE
Lloh90:
	adrp	x8, _VLV_SPAREG2H@GOTPAGE
Lloh91:
	ldr	x8, [x8, _VLV_SPAREG2H@GOTPAGEOFF]
Lloh92:
	ldr	w0, [x8]
	ldr	w1, [x20, #132]
	bl	_I915_WRITE
Lloh93:
	adrp	x8, _GTIMR@GOTPAGE
Lloh94:
	ldr	x8, [x8, _GTIMR@GOTPAGEOFF]
Lloh95:
	ldr	w0, [x8]
	ldr	w1, [x20, #136]
	bl	_I915_WRITE
Lloh96:
	adrp	x8, _GTIER@GOTPAGE
Lloh97:
	ldr	x8, [x8, _GTIER@GOTPAGEOFF]
Lloh98:
	ldr	w0, [x8]
	ldr	w1, [x20, #140]
	bl	_I915_WRITE
Lloh99:
	adrp	x8, _GEN6_PMIMR@GOTPAGE
Lloh100:
	ldr	x8, [x8, _GEN6_PMIMR@GOTPAGEOFF]
Lloh101:
	ldr	w0, [x8]
	ldr	w1, [x20, #144]
	bl	_I915_WRITE
Lloh102:
	adrp	x8, _GEN6_PMIER@GOTPAGE
Lloh103:
	ldr	x8, [x8, _GEN6_PMIER@GOTPAGEOFF]
Lloh104:
	ldr	w0, [x8]
	ldr	w1, [x20, #148]
	bl	_I915_WRITE
	ldr	x0, [x20, #152]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x19, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_GEN7_GT_SCRATCH
	ldr	x8, [x20, #152]
	ldr	w1, [x8, x19, lsl #2]
	bl	_I915_WRITE
	add	x19, x19, #1
	ldr	x0, [x20, #152]
	bl	_ARRAY_SIZE
	cmp	x19, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
Lloh105:
	adrp	x8, _TILECTL@GOTPAGE
Lloh106:
	ldr	x8, [x8, _TILECTL@GOTPAGEOFF]
Lloh107:
	ldr	w0, [x8]
	ldr	w1, [x20, #160]
	bl	_I915_WRITE
Lloh108:
	adrp	x8, _GTFIFOCTL@GOTPAGE
Lloh109:
	ldr	x8, [x8, _GTFIFOCTL@GOTPAGEOFF]
Lloh110:
	ldr	w0, [x8]
	ldr	w1, [x20, #164]
	bl	_I915_WRITE
Lloh111:
	adrp	x19, _VLV_GTLC_WAKE_CTRL@GOTPAGE
Lloh112:
	ldr	x19, [x19, _VLV_GTLC_WAKE_CTRL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh113:
	adrp	x8, _VLV_GTLC_ALLOWWAKEREQ@GOTPAGE
Lloh114:
	ldr	x8, [x8, _VLV_GTLC_ALLOWWAKEREQ@GOTPAGEOFF]
Lloh115:
	ldr	w8, [x8]
	and	w9, w8, w0
	ldr	w10, [x20, #168]
	bic	w8, w10, w8
	orr	w1, w8, w9
	ldr	w0, [x19]
	bl	_I915_WRITE
Lloh116:
	adrp	x19, _VLV_GTLC_SURVIVABILITY_REG@GOTPAGE
Lloh117:
	ldr	x19, [x19, _VLV_GTLC_SURVIVABILITY_REG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh118:
	adrp	x8, _VLV_GFX_CLK_FORCE_ON_BIT@GOTPAGE
Lloh119:
	ldr	x8, [x8, _VLV_GFX_CLK_FORCE_ON_BIT@GOTPAGEOFF]
Lloh120:
	ldr	w8, [x8]
	and	w9, w8, w0
	ldr	w10, [x20, #172]
	bic	w8, w10, w8
	orr	w1, w8, w9
	ldr	w0, [x19]
	bl	_I915_WRITE
Lloh121:
	adrp	x8, _VLV_PMWGICZ@GOTPAGE
Lloh122:
	ldr	x8, [x8, _VLV_PMWGICZ@GOTPAGEOFF]
Lloh123:
	ldr	w0, [x8]
	ldr	w1, [x20, #176]
	bl	_I915_WRITE
Lloh124:
	adrp	x8, _VLV_GU_CTL0@GOTPAGE
Lloh125:
	ldr	x8, [x8, _VLV_GU_CTL0@GOTPAGEOFF]
Lloh126:
	ldr	w0, [x8]
	ldr	w1, [x20, #180]
	bl	_I915_WRITE
Lloh127:
	adrp	x8, _VLV_GU_CTL1@GOTPAGE
Lloh128:
	ldr	x8, [x8, _VLV_GU_CTL1@GOTPAGEOFF]
Lloh129:
	ldr	w0, [x8]
	ldr	w1, [x20, #184]
	bl	_I915_WRITE
Lloh130:
	adrp	x8, _VLV_PCBR@GOTPAGE
Lloh131:
	ldr	x8, [x8, _VLV_PCBR@GOTPAGEOFF]
Lloh132:
	ldr	w0, [x8]
	ldr	w1, [x20, #188]
	bl	_I915_WRITE
Lloh133:
	adrp	x8, _VLV_GUNIT_CLOCK_GATE2@GOTPAGE
Lloh134:
	ldr	x8, [x8, _VLV_GUNIT_CLOCK_GATE2@GOTPAGEOFF]
Lloh135:
	ldr	w0, [x8]
	ldr	w1, [x20, #192]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN7_WR_WATERMARK,4,2          ; @GEN7_WR_WATERMARK
	.comm	_GEN7_GFX_PRIO_CTRL,4,2         ; @GEN7_GFX_PRIO_CTRL
	.comm	_ARB_MODE,4,2                   ; @ARB_MODE
	.comm	_GEN7_GFX_PEND_TLB0,4,2         ; @GEN7_GFX_PEND_TLB0
	.comm	_GEN7_GFX_PEND_TLB1,4,2         ; @GEN7_GFX_PEND_TLB1
	.comm	_GEN7_MEDIA_MAX_REQ_COUNT,4,2   ; @GEN7_MEDIA_MAX_REQ_COUNT
	.comm	_GEN7_GFX_MAX_REQ_COUNT,4,2     ; @GEN7_GFX_MAX_REQ_COUNT
	.comm	_RENDER_HWS_PGA_GEN7,4,2        ; @RENDER_HWS_PGA_GEN7
	.comm	_GAM_ECOCHK,4,2                 ; @GAM_ECOCHK
	.comm	_BSD_HWS_PGA_GEN7,4,2           ; @BSD_HWS_PGA_GEN7
	.comm	_BLT_HWS_PGA_GEN7,4,2           ; @BLT_HWS_PGA_GEN7
	.comm	_GEN7_TLB_RD_ADDR,4,2           ; @GEN7_TLB_RD_ADDR
	.comm	_VLV_G3DCTL,4,2                 ; @VLV_G3DCTL
	.comm	_VLV_GSCKGCTL,4,2               ; @VLV_GSCKGCTL
	.comm	_GEN6_MBCTL,4,2                 ; @GEN6_MBCTL
	.comm	_GEN6_UCGCTL1,4,2               ; @GEN6_UCGCTL1
	.comm	_GEN6_UCGCTL3,4,2               ; @GEN6_UCGCTL3
	.comm	_GEN6_RCGCTL1,4,2               ; @GEN6_RCGCTL1
	.comm	_GEN6_RCGCTL2,4,2               ; @GEN6_RCGCTL2
	.comm	_GEN6_RSTCTL,4,2                ; @GEN6_RSTCTL
	.comm	_GEN7_MISCCPCTL,4,2             ; @GEN7_MISCCPCTL
	.comm	_GEN6_GFXPAUSE,4,2              ; @GEN6_GFXPAUSE
	.comm	_GEN6_RPDEUHWTC,4,2             ; @GEN6_RPDEUHWTC
	.comm	_GEN6_RPDEUC,4,2                ; @GEN6_RPDEUC
	.comm	_ECOBUS,4,2                     ; @ECOBUS
	.comm	_VLV_PWRDWNUPCTL,4,2            ; @VLV_PWRDWNUPCTL
	.comm	_GEN6_RP_DOWN_TIMEOUT,4,2       ; @GEN6_RP_DOWN_TIMEOUT
	.comm	_GEN6_RPDEUCSW,4,2              ; @GEN6_RPDEUCSW
	.comm	_GEN6_RCUBMABDTMR,4,2           ; @GEN6_RCUBMABDTMR
	.comm	_VLV_RCEDATA,4,2                ; @VLV_RCEDATA
	.comm	_VLV_SPAREG2H,4,2               ; @VLV_SPAREG2H
	.comm	_GTIMR,4,2                      ; @GTIMR
	.comm	_GTIER,4,2                      ; @GTIER
	.comm	_GEN6_PMIMR,4,2                 ; @GEN6_PMIMR
	.comm	_GEN6_PMIER,4,2                 ; @GEN6_PMIER
	.comm	_TILECTL,4,2                    ; @TILECTL
	.comm	_GTFIFOCTL,4,2                  ; @GTFIFOCTL
	.comm	_VLV_GTLC_WAKE_CTRL,4,2         ; @VLV_GTLC_WAKE_CTRL
	.comm	_VLV_GTLC_ALLOWWAKEREQ,4,2      ; @VLV_GTLC_ALLOWWAKEREQ
	.comm	_VLV_GTLC_SURVIVABILITY_REG,4,2 ; @VLV_GTLC_SURVIVABILITY_REG
	.comm	_VLV_GFX_CLK_FORCE_ON_BIT,4,2   ; @VLV_GFX_CLK_FORCE_ON_BIT
	.comm	_VLV_PMWGICZ,4,2                ; @VLV_PMWGICZ
	.comm	_VLV_GU_CTL0,4,2                ; @VLV_GU_CTL0
	.comm	_VLV_GU_CTL1,4,2                ; @VLV_GU_CTL1
	.comm	_VLV_PCBR,4,2                   ; @VLV_PCBR
	.comm	_VLV_GUNIT_CLOCK_GATE2,4,2      ; @VLV_GUNIT_CLOCK_GATE2
	.no_dead_strip	_vlv_restore_gunit_s0ix_state
.subsections_via_symbols
