	.file	"extr_mlx5_fs_tree.c_mlx5_destroy_flow_table.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"flow steering failed to find root of priority %s"
	.text
	.p2align 4
	.globl	mlx5_destroy_flow_table
	.type	mlx5_destroy_flow_table, @function
mlx5_destroy_flow_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rsi, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	mov	rdi, rbx
	lea	r13, 8[rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	fs_get_parent@PLT
	mov	rdi, r13
	call	find_root@PLT
	mov	rdi, r13
	mov	r12, rax
	call	fs_get_dev@PLT
	test	r12, r12
	je	.L14
	mov	eax, DWORD PTR ds:0
	lea	r14, 4[rbp]
	test	DWORD PTR MLX5_CORE_FS_PRIO_SHARED[rip], eax
	jne	.L15
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	rdi, r12
	mov	rsi, rbp
	call	update_root_ft_destroy@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	xor	ebx, ebx
	mov	rdi, rbp
	mov	rsi, rbx
	call	destroy_star_rule@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	rdi, r14
	call	fs_remove_node_parent_locked@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r15d, 4
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, 1
	jg	.L17
	mov	rdi, r13
	call	mutex_lock@PLT
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	rdi, r12
	mov	rsi, rbp
	call	update_root_ft_destroy@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	xor	ebx, ebx
	mov	rdi, rbp
	mov	rsi, rbx
	call	destroy_star_rule@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	rdi, r14
	call	fs_remove_node_parent_locked@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, r15
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	mov	rdi, r15
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r14
	call	mutex_unlock@PLT
	mov	rdi, r13
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	sub	eax, 1
	mov	rdi, r14
	xor	r12d, r12d
	mov	DWORD PTR 0[rbp], eax
	call	fs_put@PLT
	mov	rdi, r15
	call	mutex_unlock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, DWORD PTR ds:12
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	mlx5_core_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx5_destroy_flow_table, .-mlx5_destroy_flow_table
	.comm	MLX5_CORE_FS_PRIO_SHARED,4,4
	.comm	ENODEV,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_fs_tree.c_mlx5_destroy_flow_table.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"flow steering failed to find root of priority %s\000"
	.text
	.align	2
	.global	mlx5_destroy_flow_table
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_destroy_flow_table, %function
mlx5_destroy_flow_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	add	r6, r3, #8
	mov	r0, r3
	mov	r1, r4
	bl	fs_get_parent
	mov	r0, r6
	bl	find_root
	mov	r5, r0
	mov	r0, r6
	bl	fs_get_dev
	cmp	r5, #0
	mov	r3, #0
	beq	.L14
	ldr	r1, .L19
	ldr	r2, [r3]
	ldr	r3, [r1]
	add	r7, r4, #4
	tst	r2, r3
	bne	.L15
	mov	r0, r6
	bl	mutex_lock
	mov	r0, r7
	bl	mutex_lock
	mov	r0, r5
	mov	r1, r4
	bl	update_root_ft_destroy
	subs	r5, r0, #0
	bne	.L16
	mov	r1, #0
	mov	r0, r4
	bl	destroy_star_rule
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r7
	bl	fs_remove_node_parent_locked
	mov	r0, r6
	bl	mutex_unlock
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r8, #4
	mov	r0, r8
	bl	mutex_lock
	ldr	r3, [r4]
	cmp	r3, #1
	bgt	.L17
	mov	r0, r6
	bl	mutex_lock
	mov	r0, r7
	bl	mutex_lock
	mov	r0, r5
	mov	r1, r4
	bl	update_root_ft_destroy
	subs	r5, r0, #0
	bne	.L18
	mov	r1, #0
	mov	r0, r4
	bl	destroy_star_rule
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r7
	bl	fs_remove_node_parent_locked
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r8
	bl	mutex_unlock
	b	.L1
.L16:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r5, #0
	sub	r3, r3, #1
	str	r3, [r4]
	mov	r0, r7
	bl	fs_put
	mov	r0, r8
	bl	mutex_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r2, [r3, #12]
	ldr	r1, .L19+4
	bl	mlx5_core_err
	ldr	r3, .L19+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	MLX5_CORE_FS_PRIO_SHARED
	.word	.LC0
	.word	ENODEV
	.size	mlx5_destroy_flow_table, .-mlx5_destroy_flow_table
	.comm	MLX5_CORE_FS_PRIO_SHARED,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
