	.file	"extr_mlx5_health.c_mlx5_health_allow_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Firmware reset elided due to auto-reset frequency threshold.\n"
	.text
	.p2align 4
	.type	mlx5_health_allow_reset, @function
mlx5_health_allow_reset:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	mov	ecx, DWORD PTR ticks[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	eax, eax
	je	.L2
	mov	esi, ecx
	xor	edx, edx
	xor	r12d, r12d
	sub	esi, eax
	mov	eax, esi
	mov	esi, -1
	div	DWORD PTR hz[rip]
	mov	edx, DWORD PTR sw_reset_to[rip]
	cmp	edx, eax
	setbe	r12b
	test	ecx, ecx
	cmove	ecx, esi
	mov	DWORD PTR [rdi], ecx
	cmp	edx, eax
	jbe	.L1
	lea	rsi, .LC0[rip]
	call	mlx5_core_warn@PLT
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	ecx, ecx
	je	.L5
	mov	r12d, 1
	mov	DWORD PTR [rdi], ecx
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12d, 1
	mov	DWORD PTR [rdi], -1
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx5_health_allow_reset, .-mlx5_health_allow_reset
	.comm	ticks,4,4
	.comm	sw_reset_to,4,4
	.comm	hz,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_mlx5_health.c_mlx5_health_allow_reset.c"
	.text
	.global	__aeabi_uidiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Firmware reset elided due to auto-reset frequency t"
	.ascii	"hreshold.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_health_allow_reset, %function
mlx5_health_allow_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, .L9
	cmp	r0, #0
	ldr	r5, [r3]
	beq	.L2
	ldr	r3, .L9+4
	sub	r0, r5, r0
	ldr	r1, [r3]
	bl	__aeabi_uidiv
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, r0
	movhi	r6, #0
	movls	r6, #1
	cmp	r5, #0
	mvneq	r5, #0
	cmp	r3, r0
	str	r5, [r4]
	bls	.L1
	mov	r0, r4
	ldr	r1, .L9+12
	bl	mlx5_core_warn
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r5, #0
	beq	.L5
	mov	r6, #1
	str	r5, [r4]
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L5:
	mvn	r3, #0
	mov	r6, #1
	str	r3, [r4]
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	ticks
	.word	hz
	.word	sw_reset_to
	.word	.LC0
	.size	mlx5_health_allow_reset, .-mlx5_health_allow_reset
	.comm	ticks,4,4
	.comm	sw_reset_to,4,4
	.comm	hz,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
