	.file	"extr_main.c_mlx5_try_fast_unload.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"force teardown firmware support=%d\n"
	.align 8
.LC1:
	.string	"fast teardown firmware support=%d\n"
	.align 8
.LC2:
	.string	"Device in internal error state, giving up\n"
	.align 8
.LC3:
	.string	"Firmware couldn't do fast unload error: %d\n"
	.text
	.p2align 4
	.type	mlx5_try_fast_unload, @function
mlx5_try_fast_unload:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	MLX5_CAP_GEN@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r12d, eax
	call	MLX5_CAP_GEN@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	edx, eax
	mov	ebx, eax
	xor	eax, eax
	call	mlx5_core_dbg@PLT
	mov	edx, r12d
	xor	eax, eax
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	mlx5_core_dbg@PLT
	or	r12d, ebx
	je	.L14
	mov	rax, QWORD PTR MLX5_DEVICE_STATE_INTERNAL_ERROR[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L15
	mov	rdi, rbp
	call	mlx5_drain_health_wq@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	mlx5_stop_health_poll@PLT
	mov	rdi, rbp
	call	mlx5_cmd_fast_teardown_hca@PLT
	test	eax, eax
	jne	.L16
.L5:
	mov	rdi, rbp
	mov	esi, 1
	xor	r12d, r12d
	call	mlx5_enter_error_state@PLT
	mov	rdi, rbp
	call	mlx5_core_eq_free_irqs@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	call	mlx5_cmd_force_teardown_hca@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	mov	edx, eax
	mov	rdi, rbp
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	mlx5_core_dbg@PLT
	mov	rdi, rbp
	call	mlx5_start_health_poll@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12d, DWORD PTR EOPNOTSUPP[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	mlx5_core_dbg@PLT
	mov	r12d, DWORD PTR EAGAIN[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx5_try_fast_unload, .-mlx5_try_fast_unload
	.comm	MLX5_DEVICE_STATE_INTERNAL_ERROR,8,8
	.comm	EOPNOTSUPP,4,4
	.comm	EAGAIN,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_main.c_mlx5_try_fast_unload.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"force teardown firmware support=%d\012\000"
	.align	2
.LC1:
	.ascii	"fast teardown firmware support=%d\012\000"
	.align	2
.LC2:
	.ascii	"Device in internal error state, giving up\012\000"
	.align	2
.LC3:
	.ascii	"Firmware couldn't do fast unload error: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_try_fast_unload, %function
mlx5_try_fast_unload:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r1, #0
	mov	r4, r0
	bl	MLX5_CAP_GEN
	mov	r1, #0
	mov	r6, r0
	mov	r0, r4
	bl	MLX5_CAP_GEN
	mov	r5, r0
	ldr	r1, .L17
	mov	r2, r5
	mov	r0, r4
	bl	mlx5_core_dbg
	mov	r2, r6
	mov	r0, r4
	ldr	r1, .L17+4
	bl	mlx5_core_dbg
	orrs	r3, r6, r5
	beq	.L14
	ldr	r3, .L17+8
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	beq	.L15
	bl	mlx5_drain_health_wq
	mov	r1, #0
	mov	r0, r4
	bl	mlx5_stop_health_poll
	mov	r0, r4
	bl	mlx5_cmd_fast_teardown_hca
	cmp	r0, #0
	bne	.L16
.L5:
	mov	r5, #0
	mov	r1, #1
	mov	r0, r4
	bl	mlx5_enter_error_state
	mov	r0, r4
	bl	mlx5_core_eq_free_irqs
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, r4
	bl	mlx5_cmd_force_teardown_hca
	subs	r5, r0, #0
	beq	.L5
	mov	r2, r5
	ldr	r1, .L17+12
	mov	r0, r4
	bl	mlx5_core_dbg
	mov	r0, r4
	bl	mlx5_start_health_poll
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r3, .L17+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r1, .L17+20
	bl	mlx5_core_dbg
	ldr	r3, .L17+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	.LC1
	.word	MLX5_DEVICE_STATE_INTERNAL_ERROR
	.word	.LC3
	.word	EOPNOTSUPP
	.word	.LC2
	.word	EAGAIN
	.size	mlx5_try_fast_unload, .-mlx5_try_fast_unload
	.comm	MLX5_DEVICE_STATE_INTERNAL_ERROR,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
