	.file	"extr_resource_tracker.c_mlx4_QUERY_SRQ_wrapper.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_QUERY_SRQ_wrapper
	.type	mlx4_QUERY_SRQ_wrapper, @function
mlx4_QUERY_SRQ_wrapper:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r14d, DWORD PTR [rdx]
	mov	QWORD PTR [rsp], rcx
	mov	ecx, DWORD PTR RES_SRQ[rip]
	lea	r8, 16[rsp]
	mov	QWORD PTR 8[rsp], r9
	mov	edx, r14d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	get_res@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR RES_SRQ_HW[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L3
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L4:
	mov	ecx, DWORD PTR RES_SRQ[rip]
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	put_res@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	r9, QWORD PTR 8[rsp]
	mov	rcx, QWORD PTR [rsp]
	mov	r8, rbx
	mov	rdx, r15
	mov	esi, r13d
	mov	rdi, rbp
	call	mlx4_DMA_wrapper@PLT
	mov	r12d, eax
	jmp	.L4
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_QUERY_SRQ_wrapper, .-mlx4_QUERY_SRQ_wrapper
	.comm	RES_SRQ_HW,8,8
	.comm	RES_SRQ,4,4
	.comm	EBUSY,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_resource_tracker.c_mlx4_QUERY_SRQ_wrapper.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx4_QUERY_SRQ_wrapper
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_QUERY_SRQ_wrapper, %function
mlx4_QUERY_SRQ_wrapper:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	add	ip, sp, #16
	ldr	r9, [r2]
	str	ip, [sp]
	ldr	ip, .L9
	ldr	r10, .L9+4
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	ldr	ip, [sp, #64]
	mov	r5, r2
	mov	r8, r3
	mov	r2, r9
	ldr	r3, [r10]
	mov	r6, r0
	mov	r7, r1
	ldr	fp, [sp, #68]
	str	ip, [sp, #12]
	bl	get_res
	subs	r4, r0, #0
	bne	.L1
	ldr	r2, [sp, #16]
	ldr	r3, .L9+8
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L3
	ldr	r3, .L9+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L4:
	mov	r2, r9
	mov	r1, r7
	mov	r0, r6
	ldr	r3, [r10]
	bl	put_res
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	ldr	r3, [sp, #12]
	mov	r2, r5
	str	r3, [sp]
	mov	r1, r7
	mov	r3, r8
	mov	r0, r6
	str	fp, [sp, #4]
	bl	mlx4_DMA_wrapper
	mov	r4, r0
	b	.L4
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	RES_SRQ
	.word	RES_SRQ_HW
	.word	EBUSY
	.size	mlx4_QUERY_SRQ_wrapper, .-mlx4_QUERY_SRQ_wrapper
	.comm	RES_SRQ_HW,4,4
	.comm	RES_SRQ,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
