	.file	"extr_sst-haswell-dsp.c_hsw_block_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	" enabled block %d:%d at offset 0x%x\n"
	.text
	.p2align 4
	.type	hsw_block_enable, @function
hsw_block_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 24[rdi]
	mov	rbx, QWORD PTR 16[rdi]
	lea	edx, 1[rax]
	mov	DWORD PTR 24[rdi], edx
	test	eax, eax
	jg	.L2
	mov	rbp, rdi
	mov	ecx, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR 8[rdi]
	lea	rsi, .LC0[rip]
	mov	r8d, DWORD PTR 0[rbp]
	mov	edi, DWORD PTR 8[rbx]
	call	dev_dbg@PLT
	mov	rdi, QWORD PTR SST_VDRTCTL2[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	edi, DWORD PTR SST_VDRTCL2_DCLCGE[rip]
	mov	rsi, QWORD PTR SST_VDRTCTL2[rip]
	add	rsi, QWORD PTR [rbx]
	not	edi
	and	edi, eax
	call	writel@PLT
	mov	rdi, QWORD PTR SST_VDRTCTL0[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	hsw_block_get_bit@PLT
	mov	rsi, QWORD PTR SST_VDRTCTL0[rip]
	add	rsi, QWORD PTR [rbx]
	not	eax
	mov	edi, eax
	and	edi, r12d
	call	writel@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	rdi, QWORD PTR SST_VDRTCTL2[rip]
	add	rdi, QWORD PTR [rbx]
	call	readl@PLT
	or	eax, DWORD PTR SST_VDRTCL2_DCLCGE[rip]
	mov	rsi, QWORD PTR SST_VDRTCTL2[rip]
	mov	edi, eax
	add	rsi, QWORD PTR [rbx]
	call	writel@PLT
	mov	edi, 50
	call	udelay@PLT
	mov	rdi, rbp
	call	sst_mem_block_dummy_read@PLT
.L2:
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hsw_block_enable, .-hsw_block_enable
	.comm	SST_VDRTCTL2,8,8
	.comm	SST_VDRTCTL0,8,8
	.comm	SST_VDRTCL2_DCLCGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sst-haswell-dsp.c_hsw_block_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" enabled block %d:%d at offset 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hsw_block_enable, %function
hsw_block_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #16]
	ldr	r5, [r0, #12]
	cmp	r3, #0
	add	r3, r3, #1
	sub	sp, sp, #12
	str	r3, [r0, #16]
	bgt	.L2
	mov	r4, r0
	ldr	r3, [r4]
	ldr	r6, .L5
	ldr	r0, [r5, #4]
	str	r3, [sp]
	ldr	r2, [r4, #8]
	ldr	r1, .L5+4
	ldr	r3, [r4, #4]
	bl	dev_dbg
	ldr	r3, [r6]
	ldr	r0, [r5]
	ldr	r8, .L5+8
	add	r0, r0, r3
	bl	readl
	ldr	r2, [r8]
	ldr	r3, [r6]
	ldr	r1, [r5]
	ldr	r9, .L5+12
	bic	r0, r0, r2
	add	r1, r1, r3
	bl	writel
	ldr	r3, [r9]
	ldr	r0, [r5]
	add	r0, r0, r3
	bl	readl
	mov	r7, r0
	mov	r0, r4
	bl	hsw_block_get_bit
	ldr	r3, [r9]
	ldr	r1, [r5]
	bic	r0, r7, r0
	add	r1, r1, r3
	bl	writel
	mov	r0, #10
	bl	udelay
	ldr	r3, [r6]
	ldr	r0, [r5]
	add	r0, r0, r3
	bl	readl
	ldr	r3, [r6]
	ldr	r2, [r8]
	ldr	r1, [r5]
	orr	r0, r0, r2
	add	r1, r1, r3
	bl	writel
	mov	r0, #50
	bl	udelay
	mov	r0, r4
	bl	sst_mem_block_dummy_read
.L2:
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L6:
	.align	2
.L5:
	.word	SST_VDRTCTL2
	.word	.LC0
	.word	SST_VDRTCL2_DCLCGE
	.word	SST_VDRTCTL0
	.size	hsw_block_enable, .-hsw_block_enable
	.comm	SST_VDRTCTL2,4,4
	.comm	SST_VDRTCTL0,4,4
	.comm	SST_VDRTCL2_DCLCGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
