	.file	"extr_hardwaremanager.c_phm_start_thermal_controller.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	phm_start_thermal_controller
	.type	phm_start_thermal_controller, @function
phm_start_thermal_controller:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pxor	xmm0, xmm0
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 88
	.cfi_def_cfa_offset 112
	mov	edx, DWORD PTR TEMP_RANGE_MIN[rip]
	mov	rbx, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR TEMP_RANGE_MAX[rip]
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	QWORD PTR 64[rsp], 0
	mov	DWORD PTR 4[rsp], eax
	mov	DWORD PTR 8[rsp], eax
	mov	DWORD PTR 16[rsp], eax
	mov	DWORD PTR 20[rsp], eax
	mov	DWORD PTR 28[rsp], eax
	mov	DWORD PTR 32[rsp], eax
	mov	rax, QWORD PTR [rdi]
	mov	DWORD PTR [rsp], edx
	mov	rax, QWORD PTR 8[rax]
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR 24[rsp], edx
	movaps	XMMWORD PTR 48[rsp], xmm0
	test	rax, rax
	je	.L2
	mov	rsi, rsp
	call	rax
.L2:
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR PHM_PlatformCaps_ThermalController[rip]
	call	phm_cap_enabled@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	je	.L3
	mov	rdx, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR [rdx]
	test	rdx, rdx
	je	.L3
	mov	rsi, rsp
	mov	rdi, rbp
	call	rdx
.L3:
	mov	edx, DWORD PTR 32[rsp]
	mov	DWORD PTR 32[rbx], edx
	mov	edx, DWORD PTR 28[rsp]
	mov	DWORD PTR 28[rbx], edx
	mov	edx, DWORD PTR 24[rsp]
	mov	DWORD PTR 24[rbx], edx
	mov	edx, DWORD PTR 20[rsp]
	mov	DWORD PTR 20[rbx], edx
	mov	edx, DWORD PTR 16[rsp]
	mov	DWORD PTR 16[rbx], edx
	mov	edx, DWORD PTR 12[rsp]
	mov	DWORD PTR 12[rbx], edx
	mov	edx, DWORD PTR 8[rsp]
	mov	DWORD PTR 8[rbx], edx
	mov	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR 4[rbx], edx
	mov	edx, DWORD PTR [rsp]
	mov	DWORD PTR [rbx], edx
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	phm_start_thermal_controller, .-phm_start_thermal_controller
	.comm	TEMP_RANGE_MIN,4,4
	.comm	TEMP_RANGE_MAX,4,4
	.comm	PHM_PlatformCaps_ThermalController,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_hardwaremanager.c_phm_start_thermal_controller.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	phm_start_thermal_controller
	.syntax unified
	.arm
	.fpu softvfp
	.type	phm_start_thermal_controller, %function
phm_start_thermal_controller:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	sub	sp, sp, #80
	ldr	r3, .L15
	mov	r2, #36
	mov	r1, #0
	add	r0, sp, #40
	ldr	r3, [r3]
	str	r3, [sp, #76]
	mov	r3,#0
	bl	memset
	ldr	r1, [r5]
	ldr	r2, .L15+4
	ldr	r3, .L15+8
	ldr	r6, [r1, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r6, #0
	ldr	r4, [r5, #8]
	str	r2, [sp, #4]
	str	r2, [sp, #16]
	str	r2, [sp, #28]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	str	r3, [sp, #32]
	str	r3, [sp, #36]
	beq	.L2
	mov	r0, r5
	add	r1, sp, #4
	blx	r6
.L2:
	ldr	r3, .L15+12
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	bl	phm_cap_enabled
	cmp	r0, #0
	beq	.L3
	ldr	r3, [r5]
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r0, r3
	beq	.L3
	mov	r0, r5
	add	r1, sp, #4
	blx	r3
.L3:
	ldr	r3, [sp, #36]
	ldr	ip, [sp, #32]
	str	r3, [r4, #32]
	ldr	r3, [sp, #20]
	ldr	r1, [sp, #28]
	ldr	r2, [sp, #24]
	str	r3, [r4, #16]
	ldr	r3, [sp, #4]
	str	ip, [r4, #28]
	str	r1, [r4, #24]
	ldr	ip, [sp, #16]
	ldr	r1, [sp, #12]
	str	r2, [r4, #20]
	ldr	r2, [sp, #8]
	str	r3, [r4]
	ldr	r3, .L15
	str	ip, [r4, #12]
	str	r1, [r4, #8]
	str	r2, [r4, #4]
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #80
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	TEMP_RANGE_MIN
	.word	TEMP_RANGE_MAX
	.word	PHM_PlatformCaps_ThermalController
	.size	phm_start_thermal_controller, .-phm_start_thermal_controller
	.comm	TEMP_RANGE_MIN,4,4
	.comm	TEMP_RANGE_MAX,4,4
	.comm	PHM_PlatformCaps_ThermalController,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
