	.file	"extr_sge.c_process_pure_responses.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	process_pure_responses, @function
process_pure_responses:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 8[rsi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 20[rbp]
	mov	ecx, DWORD PTR 12[rbp]
	add	DWORD PTR 24[rbp], 1
	lea	edx, 1[rax]
	test	ecx, ecx
	lea	eax, 3[rcx]
	cmovns	eax, ecx
	mov	DWORD PTR 20[rbp], edx
	sar	eax, 2
	cmp	edx, eax
	jge	.L25
	mov	rsi, r13
	mov	rdi, r12
	call	is_new_response@PLT
	test	eax, eax
	je	.L6
.L26:
	xor	eax, eax
	call	rmb@PLT
	mov	rdi, r12
	call	is_pure_response@PLT
	test	rax, rax
	je	.L6
.L7:
	mov	edi, DWORD PTR [r12]
	call	ntohl@PLT
	xor	edi, edi
	mov	ebx, eax
	mov	eax, DWORD PTR 8[rbp]
	add	eax, 1
	cmp	DWORD PTR 12[rbp], eax
	mov	DWORD PTR 8[rbp], eax
	sete	dil
	add	r12, 4
	call	unlikely@PLT
	test	rax, rax
	je	.L3
	xor	DWORD PTR 16[rbp], 1
	mov	r12, QWORD PTR 32[rbp]
	mov	DWORD PTR 8[rbp], 0
.L3:
	mov	rdi, r12
	call	prefetch@PLT
	test	DWORD PTR RSPD_CTRL_MASK[rip], ebx
	je	.L4
	mov	eax, DWORD PTR RSPD_GTS_MASK[rip]
	mov	esi, ebx
	mov	rdi, rbp
	and	eax, ebx
	or	r14d, eax
	call	handle_rsp_cntrl_info@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rsi, r13
	mov	rdi, r15
	call	refill_rspq@PLT
	mov	DWORD PTR 20[rbp], 0
	mov	rsi, r13
	mov	rdi, r12
	call	is_new_response@PLT
	test	eax, eax
	jne	.L26
	.p2align 4,,10
	.p2align 3
.L6:
	test	r14d, r14d
	jne	.L27
.L8:
	xor	eax, eax
	call	smp_mb@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], 0
	setne	dil
	call	unlikely@PLT
	test	rax, rax
	jne	.L28
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, r13
	mov	rdi, r12
	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
	jmp	is_new_response@PLT
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	edx, r14d
	mov	rsi, rbp
	mov	rdi, r15
	call	check_ring_db@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, rbp
	call	restart_tx@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	process_pure_responses, .-process_pure_responses
	.comm	RSPD_GTS_MASK,4,4
	.comm	RSPD_CTRL_MASK,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_sge.c_process_pure_responses.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_pure_responses, %function
process_pure_responses:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #0
	sub	sp, sp, #12
	mov	r10, r1
	mov	r4, r2
	mov	r9, r8
	ldr	r7, .L28
	ldr	fp, .L28+4
	str	r0, [sp, #4]
	add	r6, r1, #4
	b	.L7
.L4:
	ldr	r1, [r10, #8]
	ldr	r2, [r10, #16]
	add	r0, r1, #3
	cmp	r1, #0
	movlt	r1, r0
	ldr	r0, [r10, #20]
	add	r2, r2, #1
	cmp	r2, r1, asr #2
	add	r1, r0, #1
	str	r2, [r10, #16]
	str	r1, [r10, #20]
	bge	.L25
.L5:
	mov	r1, r6
	mov	r0, r4
	bl	is_new_response
	cmp	r0, #0
	beq	.L6
	bl	rmb
	mov	r0, r4
	bl	is_pure_response
	cmp	r0, #0
	beq	.L6
.L7:
	ldr	r0, [r4]
	bl	ntohl
	ldr	r2, [r10, #4]
	mov	r5, r0
	ldr	r0, [r10, #8]
	add	r2, r2, #1
	sub	r0, r0, r2
	clz	r0, r0
	str	r2, [r10, #4]
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	ldrne	r2, [r10, #12]
	ldrne	r4, [r10, #24]
	eorne	r2, r2, #1
	addeq	r4, r4, #4
	strne	r2, [r10, #12]
	strne	r9, [r10, #4]
	mov	r0, r4
	bl	prefetch
	ldr	r2, [r7]
	tst	r5, r2
	beq	.L4
	ldr	r2, [fp]
	mov	r1, r5
	mov	r0, r10
	and	r5, r5, r2
	orr	r8, r8, r5
	bl	handle_rsp_cntrl_info
	b	.L4
.L25:
	mov	r1, r6
	ldr	r0, [sp, #4]
	bl	refill_rspq
	str	r9, [r10, #16]
	b	.L5
.L6:
	cmp	r8, #0
	bne	.L26
.L8:
	bl	smp_mb
	ldr	r0, [r10]
	subs	r0, r0, #0
	movne	r0, #1
	bl	unlikely
	cmp	r0, #0
	bne	.L27
.L9:
	mov	r1, r6
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	is_new_response
.L26:
	mov	r2, r8
	mov	r1, r10
	ldr	r0, [sp, #4]
	bl	check_ring_db
	b	.L8
.L27:
	mov	r0, r10
	bl	restart_tx
	b	.L9
.L29:
	.align	2
.L28:
	.word	RSPD_CTRL_MASK
	.word	RSPD_GTS_MASK
	.size	process_pure_responses, .-process_pure_responses
	.comm	RSPD_GTS_MASK,4,4
	.comm	RSPD_CTRL_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
