	.file	"extr_cpu_cooling.c_cpufreq_cooling_unregister.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cpufreq_cooling_unregister
	.type	cpufreq_cooling_unregister, @function
cpufreq_cooling_unregister:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L1
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	r12, QWORD PTR [rdi]
	lea	rdi, cooling_list_lock[rip]
	call	mutex_lock@PLT
	lea	rdi, 24[r12]
	call	list_del@PLT
	lea	rdi, cooling_list_lock[rip]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	thermal_cooling_device_unregister@PLT
	lea	rdi, 20[r12]
	call	freq_qos_remove_request@PLT
	mov	esi, DWORD PTR 16[r12]
	lea	rdi, cpufreq_ida[rip]
	call	ida_simple_remove@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	kfree@PLT
	mov	rdi, QWORD PTR [r12]
	call	kfree@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	cpufreq_cooling_unregister, .-cpufreq_cooling_unregister
	.comm	cpufreq_ida,4,4
	.comm	cooling_list_lock,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_cpu_cooling.c_cpufreq_cooling_unregister.c"
	.text
	.align	2
	.global	cpufreq_cooling_unregister
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpufreq_cooling_unregister, %function
cpufreq_cooling_unregister:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r5, [r4]
	ldr	r0, .L5
	bl	mutex_lock
	add	r0, r5, #16
	bl	list_del
	ldr	r0, .L5
	bl	mutex_unlock
	mov	r0, r4
	bl	thermal_cooling_device_unregister
	add	r0, r5, #12
	bl	freq_qos_remove_request
	ldr	r1, [r5, #8]
	ldr	r0, .L5+4
	bl	ida_simple_remove
	ldr	r0, [r5, #4]
	bl	kfree
	ldr	r0, [r5]
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	kfree
.L6:
	.align	2
.L5:
	.word	cooling_list_lock
	.word	cpufreq_ida
	.size	cpufreq_cooling_unregister, .-cpufreq_cooling_unregister
	.comm	cpufreq_ida,4,4
	.comm	cooling_list_lock,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
