	.file	"extr_cmd.c_mlx4_cmd_wake_completions.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_cmd_wake_completions
	.type	mlx4_cmd_wake_completions, @function
mlx4_cmd_wake_completions:
.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	mlx4_priv@PLT
	lea	r13, 4[rax]
	mov	r12, rax
	mov	rdi, r13
	call	spin_lock@PLT
	mov	rax, QWORD PTR 8[r12]
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jle	.L2
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[r12]
.L3:
	lea	rdx, [rbx+rbx*2]
	mov	edi, DWORD PTR CMD_STAT_INTERNAL_ERR[rip]
	add	rbx, 1
	lea	rbp, [rax+rdx*4]
	mov	DWORD PTR 8[rbp], edi
	call	mlx4_status_to_errno@PLT
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	complete@PLT
	cmp	DWORD PTR [r12], ebx
	jg	.L9
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r13
	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
	jmp	spin_unlock@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_cmd_wake_completions, .-mlx4_cmd_wake_completions
	.comm	CMD_STAT_INTERNAL_ERR,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_cmd.c_mlx4_cmd_wake_completions.c"
	.text
	.align	2
	.global	mlx4_cmd_wake_completions
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_cmd_wake_completions, %function
mlx4_cmd_wake_completions:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	mlx4_priv
	mov	r6, r0
	add	r7, r0, #4
	mov	r0, r7
	bl	spin_lock
	ldr	r4, [r6, #8]
	cmp	r4, #0
	beq	.L2
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	ldr	r8, .L10
	b	.L3
.L9:
	ldr	r4, [r6, #8]
.L3:
	add	r3, r5, r5, lsl #1
	ldr	r0, [r8]
	add	r4, r4, r3, lsl #2
	str	r0, [r4, #8]
	bl	mlx4_status_to_errno
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #4]
	bl	complete
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L9
.L2:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock
.L11:
	.align	2
.L10:
	.word	CMD_STAT_INTERNAL_ERR
	.size	mlx4_cmd_wake_completions, .-mlx4_cmd_wake_completions
	.comm	CMD_STAT_INTERNAL_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
