	.file	"extr_vmci_queue_pair.c_vmci_qpair_get_consume_indexes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vmci_qpair_get_consume_indexes
	.type	vmci_qpair_get_consume_indexes, @function
vmci_qpair_get_consume_indexes:
.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, 40
	.cfi_def_cfa_offset 80
	mov	r12d, DWORD PTR VMCI_ERROR_INVALID_ARGS[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rbx, rdi
	mov	r13, rsi
	mov	rbp, rdx
	call	qp_lock@PLT
	lea	rdx, 16[rsp]
	lea	rsi, 8[rsp]
	mov	rdi, rbx
	call	qp_get_queue_headers@PLT
	cmp	DWORD PTR VMCI_SUCCESS[rip], eax
	mov	r12d, eax
	je	.L16
.L4:
	mov	rdi, rbx
	call	qp_unlock@PLT
	cmp	DWORD PTR VMCI_SUCCESS[rip], r12d
	je	.L17
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	test	r13, r13
	je	.L5
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[r13], rax
	jge	.L6
.L5:
	test	rbp, rbp
	je	.L1
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR 0[rbp], rax
	jl	.L1
.L6:
	mov	r12d, DWORD PTR VMCI_ERROR_INVALID_SIZE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	rcx, rbp
	mov	rdx, r13
	call	vmci_q_header_get_pointers@PLT
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vmci_qpair_get_consume_indexes, .-vmci_qpair_get_consume_indexes
	.comm	VMCI_SUCCESS,4,4
	.comm	VMCI_ERROR_INVALID_SIZE,4,4
	.comm	VMCI_ERROR_INVALID_ARGS,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_vmci_queue_pair.c_vmci_qpair_get_consume_indexes.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vmci_qpair_get_consume_indexes
	.syntax unified
	.arm
	.fpu softvfp
	.type	vmci_qpair_get_consume_indexes, %function
vmci_qpair_get_consume_indexes:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	sub	sp, sp, #16
	subs	r5, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L16
	mov	r7, r1
	mov	r8, r2
	bl	qp_lock
	mov	r0, r5
	add	r2, sp, #8
	add	r1, sp, #4
	bl	qp_get_queue_headers
	ldr	r6, .L20+4
	mov	r4, r0
	ldr	r3, [r6]
	cmp	r3, r0
	beq	.L17
.L4:
	mov	r0, r5
	bl	qp_unlock
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L18
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	cmp	r7, #0
	beq	.L5
	ldr	r2, [r7]
	ldr	r3, [r5]
	cmp	r2, r3
	bge	.L6
.L5:
	cmp	r8, #0
	beq	.L1
	ldr	r2, [r8]
	ldr	r3, [r5]
	cmp	r2, r3
	blt	.L1
.L6:
	ldr	r3, .L20+8
	ldr	r4, [r3]
	b	.L1
.L16:
	ldr	r3, .L20+12
	ldr	r4, [r3]
	b	.L1
.L17:
	mov	r3, r8
	mov	r2, r7
	ldr	r1, [sp, #4]
	ldr	r0, [sp, #8]
	bl	vmci_q_header_get_pointers
	b	.L4
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	VMCI_SUCCESS
	.word	VMCI_ERROR_INVALID_SIZE
	.word	VMCI_ERROR_INVALID_ARGS
	.size	vmci_qpair_get_consume_indexes, .-vmci_qpair_get_consume_indexes
	.comm	VMCI_SUCCESS,4,4
	.comm	VMCI_ERROR_INVALID_SIZE,4,4
	.comm	VMCI_ERROR_INVALID_ARGS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
