	.file	"extr_int340x_thermal_zone.c_int340x_thermal_zone_add.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PATC"
	.text
	.p2align 4
	.globl	int340x_thermal_zone_add
	.type	int340x_thermal_zone_add, @function
int340x_thermal_zone_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, 40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	kzalloc@PLT
	test	rax, rax
	je	.L14
	mov	QWORD PTR 32[rax], rbp
	mov	edi, DWORD PTR 0[rbp]
	xor	edx, edx
	mov	rcx, rsp
	mov	QWORD PTR 24[rax], rbx
	lea	rsi, .LC0[rip]
	mov	r12, rax
	call	acpi_evaluate_integer@PLT
	mov	edi, eax
	call	ACPI_FAILURE@PLT
	test	rax, rax
	je	.L4
	mov	QWORD PTR [rsp], 0
	xor	r13d, r13d
.L5:
	mov	rdi, r12
	call	int340x_thermal_read_trips@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	QWORD PTR [rsp], rax
	call	acpi_lpat_get_conversion_table@PLT
	mov	rdi, rbp
	mov	r14, QWORD PTR [rsp]
	mov	DWORD PTR 16[r12], eax
	call	acpi_device_bid@PLT
	push	0
	.cfi_def_cfa_offset 72
	mov	rcx, r12
	mov	edx, r13d
	push	0
	.cfi_def_cfa_offset 80
	mov	edi, eax
	lea	r9, int340x_thermal_params[rip]
	mov	rsi, r14
	lea	r8, int340x_thermal_zone_ops[rip]
	call	thermal_zone_device_register@PLT
	mov	DWORD PTR 20[r12], eax
	mov	edi, eax
	call	IS_ERR@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	jne	.L15
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	esi, 40
	call	kcalloc@PLT
	mov	QWORD PTR 8[r12], rax
	test	rax, rax
	je	.L17
	mov	rdi, QWORD PTR [rsp]
	call	BIT@PLT
	lea	r13d, -1[rax]
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR [r12], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	mov	ebp, DWORD PTR ENOMEM[rip]
	neg	ebp
.L7:
	mov	rdi, r12
	call	kfree@PLT
	mov	edi, ebp
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR ENOMEM[rip]
	neg	edi
	call	ERR_PTR@PLT
	mov	r12, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR 20[r12]
	call	PTR_ERR@PLT
	mov	edi, DWORD PTR 16[r12]
	mov	ebp, eax
	call	acpi_lpat_free_conversion_table@PLT
	mov	rdi, QWORD PTR 8[r12]
	call	kfree@PLT
	jmp	.L7
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	int340x_thermal_zone_add, .-int340x_thermal_zone_add
	.comm	int340x_thermal_zone_ops,4,4
	.comm	int340x_thermal_params,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_int340x_thermal_zone.c_int340x_thermal_zone_add.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PATC\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	int340x_thermal_zone_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	int340x_thermal_zone_add, %function
int340x_thermal_zone_add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, .L18
	ldr	r3, .L18+4
	sub	sp, sp, #44
	mov	r5, r0
	mov	r6, r1
	mov	r0, #32
	ldr	r1, [r7]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L14
	mov	r2, #0
	ldr	r1, .L18+8
	add	r3, sp, #24
	ldr	r0, [r5]
	str	r5, [r4, #24]
	str	r6, [r4, #20]
	bl	acpi_evaluate_integer
	bl	ACPI_FAILURE
	cmp	r0, #0
	beq	.L4
	mov	r2, #0
	mov	r3, #0
	mov	r6, #0
	str	r2, [sp, #24]
	str	r3, [sp, #28]
.L5:
	mov	r0, r4
	bl	int340x_thermal_read_trips
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [r5]
	str	r2, [sp, #24]
	str	r3, [sp, #28]
	bl	acpi_lpat_get_conversion_table
	mov	r3, r0
	mov	r0, r5
	str	r3, [r4, #12]
	bl	acpi_device_bid
	add	r3, sp, #24
	ldmia	r3, {r2-r3}
	mov	r1, #0
	ldr	lr, .L18+12
	ldr	ip, .L18+16
	str	r1, [sp, #20]
	str	r1, [sp, #16]
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	str	r4, [sp, #4]
	str	r6, [sp]
	bl	thermal_zone_device_register
	str	r0, [r4, #16]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L15
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r2, #32
	add	r1, sp, #24
	ldmia	r1, {r0-r1}
	ldr	r3, [r7]
	bl	kcalloc
	cmp	r0, #0
	str	r0, [r4, #8]
	beq	.L17
	add	r1, sp, #24
	ldmia	r1, {r0-r1}
	bl	BIT
	add	r3, sp, #24
	ldmia	r3, {r2-r3}
	sub	r6, r0, #1
	stm	r4, {r2-r3}
	b	.L5
.L17:
	ldr	r3, .L18+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L7:
	mov	r0, r4
	bl	kfree
	mov	r0, r5
	bl	ERR_PTR
	mov	r4, r0
	b	.L1
.L14:
	ldr	r3, .L18+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bl	ERR_PTR
	mov	r4, r0
	b	.L1
.L15:
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r5, r0
	ldr	r0, [r4, #12]
	bl	acpi_lpat_free_conversion_table
	ldr	r0, [r4, #8]
	bl	kfree
	b	.L7
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	GFP_KERNEL
	.word	.LC1
	.word	.LC0
	.word	int340x_thermal_params
	.word	int340x_thermal_zone_ops
	.word	ENOMEM
	.size	int340x_thermal_zone_add, .-int340x_thermal_zone_add
	.comm	int340x_thermal_zone_ops,4,4
	.comm	int340x_thermal_params,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
