	.file	"extr_intel_quark_dts_thermal.c_soc_dts_enable.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"DTS is locked. Cannot enable DTS\n"
	.text
	.p2align 4
	.type	soc_dts_enable, @function
soc_dts_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	mov	edx, DWORD PTR QRK_DTS_REG_OFFSET_ENABLE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	esi, DWORD PTR MBI_REG_READ[rip]
	mov	edi, DWORD PTR QRK_MBI_UNIT_RMU[rip]
	lea	rcx, 4[rsp]
	call	iosf_mbi_read@PLT
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR QRK_DTS_ENABLE_BIT[rip]
	test	ecx, edx
	jne	.L7
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jne	.L4
	or	ecx, edx
	mov	esi, DWORD PTR MBI_REG_WRITE[rip]
	mov	edx, DWORD PTR QRK_DTS_REG_OFFSET_ENABLE[rip]
	mov	edi, DWORD PTR QRK_MBI_UNIT_RMU[rip]
	mov	DWORD PTR 4[rsp], ecx
	call	iosf_mbi_write@PLT
	test	eax, eax
	jne	.L1
.L7:
	mov	rdx, QWORD PTR THERMAL_DEVICE_ENABLED[rip]
	mov	QWORD PTR [rbx], rdx
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR THERMAL_DEVICE_DISABLED[rip]
	lea	rdi, .LC0[rip]
	mov	QWORD PTR [rbx], rax
	call	pr_info@PLT
	mov	eax, DWORD PTR EPERM[rip]
	neg	eax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	soc_dts_enable, .-soc_dts_enable
	.comm	THERMAL_DEVICE_ENABLED,8,8
	.comm	THERMAL_DEVICE_DISABLED,8,8
	.comm	QRK_MBI_UNIT_RMU,4,4
	.comm	QRK_DTS_REG_OFFSET_ENABLE,4,4
	.comm	QRK_DTS_ENABLE_BIT,4,4
	.comm	MBI_REG_WRITE,4,4
	.comm	MBI_REG_READ,4,4
	.comm	EPERM,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_intel_quark_dts_thermal.c_soc_dts_enable.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DTS is locked. Cannot enable DTS\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	soc_dts_enable, %function
soc_dts_enable:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, r0
	push	{r4, r5, r6, lr}
	ldr	r3, .L10
	ldr	r5, .L10+4
	ldr	r4, .L10+8
	sub	sp, sp, #8
	ldr	r6, [ip]
	ldr	ip, .L10+12
	ldr	r1, [r3]
	ldr	r2, [r5]
	mov	r3, sp
	ldr	r0, [r4]
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	iosf_mbi_read
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L10+16
	ldr	r3, [sp]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L7
	ldr	r1, [r6, #4]
	cmp	r1, #0
	bne	.L4
	ldr	r1, .L10+20
	orr	r3, r3, r2
	ldr	r0, [r4]
	ldr	r2, [r5]
	ldr	r1, [r1]
	str	r3, [sp]
	bl	iosf_mbi_write
	cmp	r0, #0
	bne	.L1
.L7:
	ldr	r3, .L10+24
	ldr	r3, [r3]
	str	r3, [r6]
.L1:
	ldr	r3, .L10+12
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L10+28
	ldr	r0, .L10+32
	ldr	r3, [r3]
	str	r3, [r6]
	bl	pr_info
	ldr	r3, .L10+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MBI_REG_READ
	.word	QRK_DTS_REG_OFFSET_ENABLE
	.word	QRK_MBI_UNIT_RMU
	.word	.LC1
	.word	QRK_DTS_ENABLE_BIT
	.word	MBI_REG_WRITE
	.word	THERMAL_DEVICE_ENABLED
	.word	THERMAL_DEVICE_DISABLED
	.word	.LC0
	.word	EPERM
	.size	soc_dts_enable, .-soc_dts_enable
	.comm	THERMAL_DEVICE_ENABLED,4,4
	.comm	THERMAL_DEVICE_DISABLED,4,4
	.comm	QRK_MBI_UNIT_RMU,4,4
	.comm	QRK_DTS_REG_OFFSET_ENABLE,4,4
	.comm	QRK_DTS_ENABLE_BIT,4,4
	.comm	MBI_REG_WRITE,4,4
	.comm	MBI_REG_READ,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
