	.file	"extr_verbs.c_mlx4_lock_cqs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_lock_cqs, @function
mlx4_lock_cqs:
.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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 4[rdi]
	call	to_mcq@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rbp, rax
	call	to_mcq@PLT
	mov	esi, DWORD PTR 4[rbx]
	test	esi, esi
	je	.L2
	mov	ecx, DWORD PTR [rbx]
	lea	r12, 8[rbp]
	test	ecx, ecx
	je	.L8
	cmp	rbp, rax
	je	.L8
	lea	r13, 8[rax]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR 0[rbp], rax
	jge	.L6
	mov	rdi, r12
	call	pthread_spin_lock@PLT
	mov	rdi, r13
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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	pthread_spin_lock@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR [rbx]
	lea	rdi, 8[rax]
	test	edx, edx
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, r13
	call	pthread_spin_lock@PLT
.L8:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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	pthread_spin_lock@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_lock_cqs, .-mlx4_lock_cqs
	.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_verbs.c_mlx4_lock_cqs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_lock_cqs, %function
mlx4_lock_cqs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	to_mcq
	mov	r5, r0
	ldr	r0, [r4]
	bl	to_mcq
	ldr	r3, [r4, #4]
	cmp	r3, #0
	ldr	r3, [r4]
	beq	.L2
	cmp	r3, #0
	add	r6, r5, #4
	beq	.L8
	cmp	r5, r0
	beq	.L8
	mov	r4, r0
	ldr	r2, [r5]
	ldr	r3, [r4], #4
	cmp	r2, r3
	bge	.L6
	mov	r0, r6
	bl	pthread_spin_lock
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	pthread_spin_lock
.L2:
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	add	r0, r0, #4
	pop	{r4, r5, r6, lr}
	b	pthread_spin_lock
.L6:
	mov	r0, r4
	bl	pthread_spin_lock
.L8:
	mov	r0, r6
	pop	{r4, r5, r6, lr}
	b	pthread_spin_lock
	.size	mlx4_lock_cqs, .-mlx4_lock_cqs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
