	.file	"extr_mr.c_mlx4_mw_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"xxx HW2SW_MPT failed (%d)\n"
	.text
	.p2align 4
	.globl	mlx4_mw_free
	.type	mlx4_mw_free, @function
mlx4_mw_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR [rsi]
	cmp	rax, QWORD PTR MLX4_MPT_EN_HW[rip]
	mov	edi, DWORD PTR 8[rsi]
	je	.L13
.L2:
	test	rax, rax
	jne	.L14
.L4:
	call	key_to_hw_index@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	esi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	mlx4_mpt_release@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	call	key_to_hw_index@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	mlx4_mpt_free_icm@PLT
	mov	edi, DWORD PTR 8[rbx]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	call	key_to_hw_index@PLT
	mov	ecx, DWORD PTR 0[rbp]
	xor	esi, esi
	mov	rdi, rbp
	lea	edx, -1[rcx]
	and	edx, eax
	call	mlx4_HW2SW_MPT@PLT
	test	eax, eax
	jne	.L15
.L3:
	mov	rax, QWORD PTR MLX4_MPT_EN_SW[rip]
	mov	edi, DWORD PTR 8[rbx]
	mov	QWORD PTR [rbx], rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	mlx4_warn@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mlx4_mw_free, .-mlx4_mw_free
	.comm	MLX4_MPT_EN_SW,8,8
	.comm	MLX4_MPT_EN_HW,8,8
	.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_mr.c_mlx4_mw_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xxx HW2SW_MPT failed (%d)\012\000"
	.text
	.align	2
	.global	mlx4_mw_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_mw_free, %function
mlx4_mw_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L16
	ldr	r3, [r1]
	ldr	r2, [r2]
	push	{r4, r5, r6, lr}
	cmp	r3, r2
	mov	r5, r0
	mov	r4, r1
	ldr	r0, [r1, #4]
	beq	.L13
.L2:
	cmp	r3, #0
	bne	.L14
.L4:
	bl	key_to_hw_index
	mov	r1, r0
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	mlx4_mpt_release
.L14:
	bl	key_to_hw_index
	mov	r1, r0
	mov	r0, r5
	bl	mlx4_mpt_free_icm
	ldr	r0, [r4, #4]
	b	.L4
.L13:
	bl	key_to_hw_index
	ldr	r3, [r5]
	mov	r1, #0
	sub	r3, r3, #1
	and	r2, r3, r0
	mov	r0, r5
	bl	mlx4_HW2SW_MPT
	subs	r2, r0, #0
	bne	.L15
.L3:
	ldr	r3, .L16+4
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	str	r3, [r4]
	b	.L2
.L15:
	mov	r0, r5
	ldr	r1, .L16+8
	bl	mlx4_warn
	b	.L3
.L17:
	.align	2
.L16:
	.word	MLX4_MPT_EN_HW
	.word	MLX4_MPT_EN_SW
	.word	.LC0
	.size	mlx4_mw_free, .-mlx4_mw_free
	.comm	MLX4_MPT_EN_SW,4,4
	.comm	MLX4_MPT_EN_HW,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
