	.file	"extr_request_manager.c___post_command2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__post_command2, @function
__post_command2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, r13
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR IQ_SEND_OK[rip]
	call	atomic_read@PLT
	mov	ecx, DWORD PTR [rbx]
	lea	edx, -1[rcx]
	movsx	rdx, edx
	cmp	rax, rdx
	jl	.L2
	mov	eax, DWORD PTR IQ_SEND_FAILED[rip]
	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
	sal	rax, 32
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	mov	rdx, rax
	mov	eax, 4294967295
	or	rax, rdx
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, r13
	call	atomic_read@PLT
	mov	rsi, rbp
	mov	rdi, rbx
	mov	r8, rax
	mov	eax, DWORD PTR [rbx]
	sub	eax, 2
	cdqe
	cmp	r8, rax
	cmovge	r12d, DWORD PTR IQ_SEND_STOP[rip]
	call	__copy_cmd_into_iq@PLT
	mov	ebp, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	esi, 1
	sal	r12, 32
	mov	edi, ebp
	call	incr_index@PLT
	add	DWORD PTR 12[rbx], 1
	mov	DWORD PTR 4[rbx], eax
	xor	eax, eax
	call	wmb@PLT
	mov	rdi, r13
	call	atomic_inc@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, ebp
	pop	rbx
	.cfi_def_cfa_offset 32
	or	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	__post_command2, .-__post_command2
	.comm	IQ_SEND_STOP,4,4
	.comm	IQ_SEND_OK,4,4
	.comm	IQ_SEND_FAILED,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_request_manager.c___post_command2.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__post_command2, %function
__post_command2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r3, .L7
	add	r6, r1, #8
	mov	r5, r0
	mov	r0, r6
	ldr	r8, [r3]
	mov	r7, r2
	bl	atomic_read
	ldr	r3, [r4]
	sub	r3, r3, #1
	cmp	r0, r3
	blt	.L2
	mvn	r2, #0
	ldr	r3, .L7+4
	mov	r0, r5
	ldr	r3, [r3]
	str	r2, [r5]
	str	r3, [r5, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r6
	bl	atomic_read
	ldr	r3, [r4]
	mov	r1, r7
	sub	r3, r3, #2
	cmp	r0, r3
	ldrge	r3, .L7+8
	mov	r0, r4
	ldrge	r8, [r3]
	bl	__copy_cmd_into_iq
	ldm	r4, {r2, r7}
	mov	r1, #1
	mov	r0, r7
	bl	incr_index
	ldr	r3, [r4, #12]
	str	r0, [r4, #4]
	add	r3, r3, #1
	str	r3, [r4, #12]
	bl	wmb
	mov	r0, r6
	bl	atomic_inc
	mov	r0, r5
	stm	r5, {r7, r8}
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	IQ_SEND_OK
	.word	IQ_SEND_FAILED
	.word	IQ_SEND_STOP
	.size	__post_command2, .-__post_command2
	.comm	IQ_SEND_STOP,4,4
	.comm	IQ_SEND_OK,4,4
	.comm	IQ_SEND_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
