	.file	"extr_bench.c_read_cb.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"e"
	.text
	.p2align 4
	.type	read_cb, @function
read_cb:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	ecx, ecx
	mov	rbx, rdx
	mov	edx, 4
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rsi, 4[rsp]
	call	recv@PLT
	test	eax, eax
	js	.L2
	add	DWORD PTR count[rip], eax
.L3:
	cmp	QWORD PTR writes[rip], 0
	je	.L1
	mov	eax, DWORD PTR num_pipes[rip]
	lea	edx, 1[rbx]
	lea	rsi, .LC0[rip]
	mov	ecx, edx
	sub	ecx, eax
	cmp	eax, edx
	mov	rax, QWORD PTR pipes[rip]
	cmovle	edx, ecx
	xor	ecx, ecx
	add	edx, edx
	movsx	rdx, edx
	mov	edi, DWORD PTR 4[rax+rdx*4]
	mov	edx, 1
	call	send@PLT
	cmp	eax, 1
	je	.L6
	add	DWORD PTR failures[rip], 1
.L6:
	sub	QWORD PTR writes[rip], 1
	add	DWORD PTR fired[rip], 1
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	add	DWORD PTR failures[rip], 1
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_cb, .-read_cb
	.comm	writes,8,8
	.comm	pipes,8,8
	.comm	num_pipes,4,4
	.comm	fired,4,4
	.comm	failures,4,4
	.comm	count,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_bench.c_read_cb.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"e\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_cb, %function
read_cb:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	ip, .L17
	sub	sp, sp, #12
	mov	r3, #0
	mov	r5, r2
	mov	r1, sp
	mov	r2, #4
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	bl	recv
	cmp	r0, #0
	ldrlt	r2, .L17+4
	ldrge	r2, .L17+8
	ldrlt	r3, [r2]
	ldrge	r3, [r2]
	ldr	r4, .L17+12
	addlt	r3, r3, #1
	addge	r0, r3, r0
	strlt	r3, [r2]
	ldr	r3, [r4]
	strge	r0, [r2]
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L17+16
	ldr	r2, .L17+20
	ldr	r3, [r3]
	add	r1, r5, #1
	cmp	r3, r1
	ldr	r0, [r2]
	suble	r1, r1, r3
	add	r1, r0, r1, lsl #3
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [r1, #4]
	ldr	r1, .L17+24
	bl	send
	cmp	r0, #1
	ldrne	r2, .L17+4
	ldr	r1, .L17+28
	ldrne	r3, [r2]
	addne	r3, r3, #1
	strne	r3, [r2]
	ldr	r3, [r4]
	ldr	r2, [r1]
	sub	r3, r3, #1
	add	r2, r2, #1
	str	r2, [r1]
	str	r3, [r4]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	failures
	.word	count
	.word	writes
	.word	num_pipes
	.word	pipes
	.word	.LC0
	.word	fired
	.size	read_cb, .-read_cb
	.comm	writes,4,4
	.comm	pipes,4,4
	.comm	num_pipes,4,4
	.comm	fired,4,4
	.comm	failures,4,4
	.comm	count,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
