	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_thermal_module_trips_update
_mlxsw_thermal_module_trips_update:     ## @mlxsw_thermal_module_trips_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movl	8(%rdx), %esi
	movq	_SFP_TEMP_HIGH_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mlxsw_env_module_temp_thresholds_get
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	8(%r14), %esi
	movq	_SFP_TEMP_HIGH_ALARM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_mlxsw_env_module_temp_thresholds_get
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	-20(%rbp), %esi
	movq	_MLXSW_THERMAL_MODULE_TEMP_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%eax, %eax
	cmpl	%edx, %esi
	cmovll	%eax, %edx
	subl	%edx, %esi
	movq	(%r14), %rdx
	movq	_MLXSW_THERMAL_TEMP_TRIP_NORM@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	%esi, (%rdx,%rdi,4)
	movl	-20(%rbp), %esi
	movq	_MLXSW_THERMAL_TEMP_TRIP_HIGH@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	%esi, (%rdx,%rdi,4)
	movl	-24(%rbp), %esi
	movq	_MLXSW_THERMAL_TEMP_TRIP_HOT@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	%esi, (%rdx,%rdi,4)
	movl	-24(%rbp), %esi
	movl	$0, %edi
	cmpl	-20(%rbp), %esi
	jle	LBB0_4
## %bb.3:
	movl	(%rcx), %edi
LBB0_4:
	addl	%edi, %esi
	movq	_MLXSW_THERMAL_TEMP_TRIP_CRIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%esi, (%rdx,%rcx,4)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFP_TEMP_HIGH_WARN,4,2         ## @SFP_TEMP_HIGH_WARN
	.comm	_SFP_TEMP_HIGH_ALARM,4,2        ## @SFP_TEMP_HIGH_ALARM
	.comm	_MLXSW_THERMAL_MODULE_TEMP_SHIFT,4,2 ## @MLXSW_THERMAL_MODULE_TEMP_SHIFT
	.comm	_MLXSW_THERMAL_TEMP_TRIP_NORM,8,3 ## @MLXSW_THERMAL_TEMP_TRIP_NORM
	.comm	_MLXSW_THERMAL_TEMP_TRIP_HIGH,8,3 ## @MLXSW_THERMAL_TEMP_TRIP_HIGH
	.comm	_MLXSW_THERMAL_TEMP_TRIP_HOT,8,3 ## @MLXSW_THERMAL_TEMP_TRIP_HOT
	.comm	_MLXSW_THERMAL_TEMP_TRIP_CRIT,8,3 ## @MLXSW_THERMAL_TEMP_TRIP_CRIT
	.no_dead_strip	_mlxsw_thermal_module_trips_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_thermal_module_trips_update
_mlxsw_thermal_module_trips_update:     ; @mlxsw_thermal_module_trips_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	ldr	w1, [x2, #8]
Lloh0:
	adrp	x8, _SFP_TEMP_HIGH_WARN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SFP_TEMP_HIGH_WARN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x20
	bl	_mlxsw_env_module_temp_thresholds_get
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x19, #8]
Lloh3:
	adrp	x8, _SFP_TEMP_HIGH_ALARM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SFP_TEMP_HIGH_ALARM@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_mlxsw_env_module_temp_thresholds_get
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _MLXSW_THERMAL_MODULE_TEMP_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLXSW_THERMAL_MODULE_TEMP_SHIFT@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	csel	w10, wzr, w10, lt
	sub	w8, w8, w10
	ldr	x10, [x19]
Lloh8:
	adrp	x11, _MLXSW_THERMAL_TEMP_TRIP_NORM@GOTPAGE
Lloh9:
	ldr	x11, [x11, _MLXSW_THERMAL_TEMP_TRIP_NORM@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	str	w8, [x10, x11, lsl #2]
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x11, _MLXSW_THERMAL_TEMP_TRIP_HIGH@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MLXSW_THERMAL_TEMP_TRIP_HIGH@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	str	w8, [x10, x11, lsl #2]
	ldr	w8, [sp, #8]
Lloh14:
	adrp	x11, _MLXSW_THERMAL_TEMP_TRIP_HOT@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MLXSW_THERMAL_TEMP_TRIP_HOT@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	str	w8, [x10, x11, lsl #2]
	ldp	w8, w11, [sp, #8]
	ldr	w9, [x9]
	cmp	w8, w11
	csel	w9, w9, wzr, gt
	add	w8, w8, w9
Lloh17:
	adrp	x9, _MLXSW_THERMAL_TEMP_TRIP_CRIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MLXSW_THERMAL_TEMP_TRIP_CRIT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	str	w8, [x10, x9, lsl #2]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SFP_TEMP_HIGH_WARN,4,2         ; @SFP_TEMP_HIGH_WARN
	.comm	_SFP_TEMP_HIGH_ALARM,4,2        ; @SFP_TEMP_HIGH_ALARM
	.comm	_MLXSW_THERMAL_MODULE_TEMP_SHIFT,4,2 ; @MLXSW_THERMAL_MODULE_TEMP_SHIFT
	.comm	_MLXSW_THERMAL_TEMP_TRIP_NORM,8,3 ; @MLXSW_THERMAL_TEMP_TRIP_NORM
	.comm	_MLXSW_THERMAL_TEMP_TRIP_HIGH,8,3 ; @MLXSW_THERMAL_TEMP_TRIP_HIGH
	.comm	_MLXSW_THERMAL_TEMP_TRIP_HOT,8,3 ; @MLXSW_THERMAL_TEMP_TRIP_HOT
	.comm	_MLXSW_THERMAL_TEMP_TRIP_CRIT,8,3 ; @MLXSW_THERMAL_TEMP_TRIP_CRIT
	.no_dead_strip	_mlxsw_thermal_module_trips_update
.subsections_via_symbols
