	.file	"extr_core_thermal.c_mlxsw_thermal_module_trips_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlxsw_thermal_module_trips_update, @function
mlxsw_thermal_module_trips_update:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	mov	rdi, rbp
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 8[rdx]
	mov	edx, DWORD PTR SFP_TEMP_HIGH_WARN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rcx, rsp
	call	mlxsw_env_module_temp_thresholds_get@PLT
	test	eax, eax
	je	.L9
.L1:
	mov	rdi, QWORD PTR 8[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR SFP_TEMP_HIGH_ALARM[rip]
	lea	rcx, 4[rsp]
	mov	rdi, rbp
	call	mlxsw_env_module_temp_thresholds_get@PLT
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR [rsp]
	mov	edi, DWORD PTR MLXSW_THERMAL_MODULE_TEMP_SHIFT[rip]
	mov	rcx, QWORD PTR [rbx]
	mov	edx, esi
	sub	edx, edi
	cmp	esi, edi
	cmovl	edx, esi
	mov	rsi, QWORD PTR MLXSW_THERMAL_TEMP_TRIP_NORM[rip]
	mov	DWORD PTR [rcx+rsi*4], edx
	mov	rdx, QWORD PTR MLXSW_THERMAL_TEMP_TRIP_HIGH[rip]
	mov	esi, DWORD PTR [rsp]
	mov	DWORD PTR [rcx+rdx*4], esi
	mov	rsi, QWORD PTR MLXSW_THERMAL_TEMP_TRIP_HOT[rip]
	mov	edx, DWORD PTR 4[rsp]
	mov	DWORD PTR [rcx+rsi*4], edx
	mov	rsi, QWORD PTR MLXSW_THERMAL_TEMP_TRIP_CRIT[rip]
	lea	rcx, [rcx+rsi*4]
	cmp	edx, DWORD PTR [rsp]
	jle	.L5
	add	edx, DWORD PTR MLXSW_THERMAL_MODULE_TEMP_SHIFT[rip]
	mov	DWORD PTR [rcx], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR [rcx], edx
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlxsw_thermal_module_trips_update, .-mlxsw_thermal_module_trips_update
	.comm	SFP_TEMP_HIGH_WARN,4,4
	.comm	SFP_TEMP_HIGH_ALARM,4,4
	.comm	MLXSW_THERMAL_TEMP_TRIP_NORM,8,8
	.comm	MLXSW_THERMAL_TEMP_TRIP_HOT,8,8
	.comm	MLXSW_THERMAL_TEMP_TRIP_HIGH,8,8
	.comm	MLXSW_THERMAL_TEMP_TRIP_CRIT,8,8
	.comm	MLXSW_THERMAL_MODULE_TEMP_SHIFT,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_core_thermal.c_mlxsw_thermal_module_trips_update.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxsw_thermal_module_trips_update, %function
mlxsw_thermal_module_trips_update:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r1
	ldr	r3, .L11
	sub	sp, sp, #20
	ldr	ip, .L11+4
	ldr	r1, [r2, #4]
	mov	r5, r2
	mov	r0, r4
	ldr	r2, [r3]
	add	r3, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	mlxsw_env_module_temp_thresholds_get
	cmp	r0, #0
	beq	.L9
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r3, .L11+8
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, [r5, #4]
	add	r3, sp, #8
	bl	mlxsw_env_module_temp_thresholds_get
	cmp	r0, #0
	bne	.L1
	ldr	r1, .L11+12
	ldr	r2, [sp, #4]
	ldr	ip, [r1]
	ldr	lr, .L11+16
	ldr	r3, [r5]
	ldr	lr, [lr]
	cmp	r2, ip
	subge	r2, r2, ip
	str	r2, [r3, lr, lsl #2]
	ldr	r2, .L11+20
	ldr	lr, [sp, #4]
	ldr	r2, [r2]
	ldr	ip, .L11+24
	str	lr, [r3, r2, lsl #2]
	ldr	r2, [sp, #8]
	ldr	lr, [ip]
	ldr	ip, .L11+28
	str	r2, [r3, lr, lsl #2]
	ldr	lr, [sp, #4]
	ldr	ip, [ip]
	cmp	r2, lr
	ldrgt	r1, [r1]
	addgt	r2, r1, r2
	str	r2, [r3, ip, lsl #2]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	SFP_TEMP_HIGH_WARN
	.word	.LC0
	.word	SFP_TEMP_HIGH_ALARM
	.word	MLXSW_THERMAL_MODULE_TEMP_SHIFT
	.word	MLXSW_THERMAL_TEMP_TRIP_NORM
	.word	MLXSW_THERMAL_TEMP_TRIP_HIGH
	.word	MLXSW_THERMAL_TEMP_TRIP_HOT
	.word	MLXSW_THERMAL_TEMP_TRIP_CRIT
	.size	mlxsw_thermal_module_trips_update, .-mlxsw_thermal_module_trips_update
	.comm	SFP_TEMP_HIGH_WARN,4,4
	.comm	SFP_TEMP_HIGH_ALARM,4,4
	.comm	MLXSW_THERMAL_TEMP_TRIP_NORM,4,4
	.comm	MLXSW_THERMAL_TEMP_TRIP_HOT,4,4
	.comm	MLXSW_THERMAL_TEMP_TRIP_HIGH,4,4
	.comm	MLXSW_THERMAL_TEMP_TRIP_CRIT,4,4
	.comm	MLXSW_THERMAL_MODULE_TEMP_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
