	.file	"extr_sockfilt.c_fullread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"signalled to die"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"reading from file descriptor: %d,"
	.align 8
.LC2:
	.string	"unrecoverable read() failure: (%d) %s"
	.section	.rodata.str1.1
.LC3:
	.string	"got 0 reading from stdin"
.LC4:
	.string	"read %zd bytes"
	.text
	.p2align 4
	.type	fullread, @function
fullread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	je	.L11
	add	r12d, eax
	movsx	rbx, r12d
.L5:
	cmp	rbp, rbx
	jbe	.L12
.L7:
	mov	rdx, rbp
	lea	rsi, 0[r13+rbx]
	mov	edi, r14d
	sub	rdx, rbx
	call	read@PLT
	cmp	QWORD PTR got_exit_signal[rip], 0
	jne	.L13
	test	eax, eax
	jns	.L4
	mov	r15d, DWORD PTR errno[rip]
	cmp	DWORD PTR EINTR[rip], r15d
	je	.L5
	cmp	DWORD PTR EAGAIN[rip], r15d
	je	.L5
	mov	esi, r14d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	mov	r12d, -1
	call	logmsg@PLT
	mov	edi, r15d
	call	strerror@PLT
	mov	esi, r15d
	lea	rdi, .LC2[rip]
	mov	edx, eax
	xor	eax, eax
	call	logmsg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	mov	r12d, -1
	call	logmsg@PLT
.L1:
	add	rsp, 8
	.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
.L12:
	.cfi_restore_state
	cmp	QWORD PTR verbose[rip], 0
	je	.L1
	mov	esi, r12d
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	logmsg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	logmsg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fullread, .-fullread
	.comm	verbose,8,8
	.comm	got_exit_signal,8,8
	.comm	errno,4,4
	.comm	EINTR,4,4
	.comm	EAGAIN,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_sockfilt.c_fullread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"signalled to die\000"
	.align	2
.LC1:
	.ascii	"reading from file descriptor: %d,\000"
	.align	2
.LC2:
	.ascii	"unrecoverable read() failure: (%d) %s\000"
	.align	2
.LC3:
	.ascii	"got 0 reading from stdin\000"
	.align	2
.LC4:
	.ascii	"read %zd bytes\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fullread, %function
fullread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	mov	r7, r1
	mov	r5, r2
	mov	r4, #0
	ldr	fp, .L17
	ldr	r9, .L17+4
	ldr	r8, .L17+8
	ldr	r10, .L17+12
	sub	sp, sp, #12
	b	.L7
.L4:
	beq	.L14
	add	r4, r4, r0
.L5:
	cmp	r5, r4
	bls	.L15
.L7:
	sub	r2, r5, r4
	mov	r0, r6
	add	r1, r7, r4
	bl	read
	ldr	r2, [fp]
	mov	r3, r0
	cmp	r2, #0
	bne	.L16
	cmp	r0, #0
	bge	.L4
	ldr	r3, [r9]
	ldr	r2, [r8]
	cmp	r2, r3
	beq	.L5
	ldr	r2, [r10]
	cmp	r2, r3
	beq	.L5
	mov	r1, r6
	ldr	r0, .L17+16
	str	r3, [sp, #4]
	bl	logmsg
	ldr	r3, [sp, #4]
	mvn	r4, #0
	mov	r0, r3
	bl	strerror
	ldr	r3, [sp, #4]
	mov	r2, r0
	mov	r1, r3
	ldr	r0, .L17+20
	bl	logmsg
	b	.L1
.L16:
	ldr	r0, .L17+24
	bl	logmsg
	mvn	r4, #0
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r3, .L17+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	mov	r1, r4
	ldr	r0, .L17+32
	bl	logmsg
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	mov	r4, r3
	ldr	r0, .L17+36
	bl	logmsg
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	got_exit_signal
	.word	errno
	.word	EINTR
	.word	EAGAIN
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.word	verbose
	.word	.LC4
	.word	.LC3
	.size	fullread, .-fullread
	.comm	verbose,4,4
	.comm	got_exit_signal,4,4
	.comm	errno,4,4
	.comm	EINTR,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
