	.file	"extr_qcom-spmi-temp-alarm.c_qpnp_tm_get_critical_trip_temp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qpnp_tm_get_critical_trip_temp, @function
qpnp_tm_get_critical_trip_temp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	call	of_thermal_get_ntrips@PLT
	test	eax, eax
	jle	.L13
	mov	edi, DWORD PTR [r12]
	mov	r13d, eax
	xor	ebx, ebx
	call	of_thermal_get_trip_points@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR [r12]
	mov	esi, ebx
	call	of_thermal_is_trip_valid@PLT
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR THERMAL_TRIP_CRITICAL[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L15
.L5:
	add	ebx, 1
	add	rbp, 16
	cmp	r13d, ebx
	jne	.L6
.L13:
	mov	eax, DWORD PTR THERMAL_TEMP_INVALID[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rbp]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	qpnp_tm_get_critical_trip_temp, .-qpnp_tm_get_critical_trip_temp
	.comm	THERMAL_TRIP_CRITICAL,8,8
	.comm	THERMAL_TEMP_INVALID,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_qcom-spmi-temp-alarm.c_qpnp_tm_get_critical_trip_temp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qpnp_tm_get_critical_trip_temp, %function
qpnp_tm_get_critical_trip_temp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0]
	bl	of_thermal_get_ntrips
	subs	r6, r0, #0
	ble	.L12
	ldr	r0, [r5]
	bl	of_thermal_get_trip_points
	subs	r8, r0, #0
	beq	.L12
	mov	r4, #0
	ldr	r7, .L15
.L4:
	mov	r1, r4
	ldr	r0, [r5]
	bl	of_thermal_is_trip_valid
	cmp	r0, #0
	beq	.L5
	ldr	r2, [r8, r4, lsl #3]
	ldr	r3, [r7]
	add	r1, r8, r4, lsl #3
	cmp	r2, r3
	beq	.L14
.L5:
	add	r4, r4, #1
	cmp	r6, r4
	bne	.L4
.L12:
	ldr	r3, .L15+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, [r1, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	THERMAL_TRIP_CRITICAL
	.word	THERMAL_TEMP_INVALID
	.size	qpnp_tm_get_critical_trip_temp, .-qpnp_tm_get_critical_trip_temp
	.comm	THERMAL_TRIP_CRITICAL,4,4
	.comm	THERMAL_TEMP_INVALID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
