	.file	"extr_ipoib_vlan.c_mlx5i_pkey_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx5i_pkey_close, @function
mlx5i_pkey_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mlx5i_epriv@PLT
	mov	rbp, rax
	mov	rdi, rax
	mov	rbx, QWORD PTR 40[rax]
	mov	r13, QWORD PTR 32[rax]
	call	mutex_lock@PLT
	lea	r12, 24[rbp]
	mov	edi, DWORD PTR MLX5E_STATE_OPENED[rip]
	mov	rsi, r12
	call	test_bit@PLT
	test	eax, eax
	je	.L2
	mov	edi, DWORD PTR MLX5E_STATE_OPENED[rip]
	mov	rsi, r12
	call	clear_bit@PLT
	mov	edi, DWORD PTR 20[rbp]
	call	netif_carrier_off@PLT
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r13
	call	mlx5_fs_remove_rx_underlay_qpn@PLT
	mov	rdi, rbp
	call	mlx5i_uninit_underlay_qp@PLT
	mov	rdi, rbp
	call	mlx5e_deactivate_priv_channels@PLT
	lea	rdi, 16[rbp]
	call	mlx5e_close_channels@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, r13
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR [rax]
	call	mlx5e_destroy_tis@PLT
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx5i_pkey_close, .-mlx5i_pkey_close
	.comm	MLX5E_STATE_OPENED,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_ipoib_vlan.c_mlx5i_pkey_close.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5i_pkey_close, %function
mlx5i_pkey_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	mlx5i_epriv
	ldr	r5, .L8
	add	r6, r0, #16
	mov	r4, r0
	ldr	r8, [r0, #24]
	ldr	r7, [r0, #20]
	bl	mutex_lock
	mov	r1, r6
	ldr	r0, [r5]
	bl	test_bit
	cmp	r0, #0
	beq	.L2
	mov	r1, r6
	ldr	r0, [r5]
	bl	clear_bit
	ldr	r0, [r4, #12]
	bl	netif_carrier_off
	ldr	r1, [r8]
	mov	r0, r7
	bl	mlx5_fs_remove_rx_underlay_qpn
	mov	r0, r4
	bl	mlx5i_uninit_underlay_qp
	mov	r0, r4
	bl	mlx5e_deactivate_priv_channels
	add	r0, r4, #8
	bl	mlx5e_close_channels
	ldr	r3, [r4, #4]
	mov	r0, r7
	ldr	r3, [r3]
	ldr	r1, [r3]
	bl	mlx5e_destroy_tis
.L2:
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	.align	2
.L8:
	.word	MLX5E_STATE_OPENED
	.size	mlx5i_pkey_close, .-mlx5i_pkey_close
	.comm	MLX5E_STATE_OPENED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
