	.file	"extr_mlx4_catas.c_mlx4_handle_error_state.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mlx4_restart_one was ended, ret=%d\n"
	.text
	.p2align 4
	.type	mlx4_handle_error_state, @function
mlx4_handle_error_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rbp, 4[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mlx4_enter_error_state@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR MLX4_INTERFACE_STATE_UP[rip], eax
	je	.L2
	test	DWORD PTR MLX4_INTERFACE_STATE_DELETION[rip], eax
	je	.L8
.L2:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	call	mlx4_restart_one@PLT
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	call	mlx4_info@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_handle_error_state, .-mlx4_handle_error_state
	.comm	MLX4_INTERFACE_STATE_UP,4,4
	.comm	MLX4_INTERFACE_STATE_DELETION,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_mlx4_catas.c_mlx4_handle_error_state.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mlx4_restart_one was ended, ret=%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_handle_error_state, %function
mlx4_handle_error_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	add	r5, r0, #4
	bl	mlx4_enter_error_state
	mov	r0, r5
	bl	mutex_lock
	ldr	r2, .L9
	ldr	r3, [r4]
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L2
	ldr	r2, .L9+4
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L8
.L2:
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L8:
	ldr	r0, [r4, #12]
	bl	mlx4_restart_one
	ldr	r1, .L9+8
	mov	r2, r0
	ldr	r0, [r4, #8]
	bl	mlx4_info
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	mutex_unlock
.L10:
	.align	2
.L9:
	.word	MLX4_INTERFACE_STATE_UP
	.word	MLX4_INTERFACE_STATE_DELETION
	.word	.LC0
	.size	mlx4_handle_error_state, .-mlx4_handle_error_state
	.comm	MLX4_INTERFACE_STATE_UP,4,4
	.comm	MLX4_INTERFACE_STATE_DELETION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
