	.file	"extr_mlx5.c_mlx5_clear_uidx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx5_clear_uidx
	.type	mlx5_clear_uidx, @function
mlx5_clear_uidx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rcx, QWORD PTR MLX5_UIDX_TABLE_SHIFT[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	shr	rbx, cl
	movsx	rbx, ebx
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR 8[r12]
	sal	rbx, 4
	add	rax, rbx
	sub	DWORD PTR 8[rax], 1
	je	.L6
	mov	rax, QWORD PTR [rax]
	and	rbp, QWORD PTR MLX5_UIDX_TABLE_MASK[rip]
	mov	rdi, r12
	mov	QWORD PTR [rax+rbp*8], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pthread_mutex_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rax]
	call	free@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pthread_mutex_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5_clear_uidx, .-mlx5_clear_uidx
	.comm	MLX5_UIDX_TABLE_SHIFT,8,8
	.comm	MLX5_UIDX_TABLE_MASK,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_mlx5.c_mlx5_clear_uidx.c"
	.text
	.align	2
	.global	mlx5_clear_uidx
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_clear_uidx, %function
mlx5_clear_uidx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r3, .L7
	mov	r4, r1
	ldr	r6, [r3]
	lsr	r6, r1, r6
	bl	pthread_mutex_lock
	ldr	r2, [r5, #4]
	add	r1, r2, r6, lsl #3
	ldr	r3, [r1, #4]
	sub	r3, r3, #1
	cmp	r3, #0
	str	r3, [r1, #4]
	beq	.L6
	mov	r0, #0
	ldr	r1, .L7+4
	ldr	r3, [r2, r6, lsl #3]
	ldr	r1, [r1]
	and	r4, r4, r1
	str	r0, [r3, r4, lsl #2]
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	pthread_mutex_unlock
.L6:
	ldr	r0, [r2, r6, lsl #3]
	bl	free
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	b	pthread_mutex_unlock
.L8:
	.align	2
.L7:
	.word	MLX5_UIDX_TABLE_SHIFT
	.word	MLX5_UIDX_TABLE_MASK
	.size	mlx5_clear_uidx, .-mlx5_clear_uidx
	.comm	MLX5_UIDX_TABLE_SHIFT,4,4
	.comm	MLX5_UIDX_TABLE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
