	.file	"extr_kevent_pty.c_reader_thread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"reader thread received valid fd"
	.align 8
.LC1:
	.string	"reader got an error (%s), shutting down"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"read on PTY"
	.text
	.p2align 4
	.type	reader_thread, @function
reader_thread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, .LC0[rip]
	xor	esi, esi
	lea	r12, .LC2[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbx, 7[rsp]
	call	T_ASSERT_GT@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, 1
	mov	rsi, rbx
	mov	edi, ebp
	call	read@PLT
	cmp	eax, -1
	je	.L10
	test	eax, eax
	jne	.L2
.L6:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, QWORD PTR errno[rip]
	cmp	rdi, QWORD PTR EINTR[rip]
	je	.L2
	cmp	rdi, QWORD PTR EBADF[rip]
	je	.L12
	mov	rsi, r12
	mov	edi, -1
	call	T_ASSERT_POSIX_SUCCESS@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	call	strerror@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	T_LOG@PLT
	jmp	.L6
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	reader_thread, .-reader_thread
	.comm	errno,8,8
	.comm	T_SETUPEND,4,4
	.comm	T_SETUPBEGIN,4,4
	.comm	T_QUIET,4,4
	.comm	EINTR,8,8
	.comm	EBADF,8,8
	.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_kevent_pty.c_reader_thread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reader thread received valid fd\000"
	.align	2
.LC1:
	.ascii	"reader got an error (%s), shutting down\000"
	.align	2
.LC2:
	.ascii	"read on PTY\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reader_thread, %function
reader_thread:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L13
	sub	sp, sp, #8
	mov	r1, #0
	ldr	r2, .L13+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r4, r0
	bl	T_ASSERT_GT
	ldr	r6, .L13+8
	ldr	r5, .L13+12
	ldr	r7, .L13+16
	ldr	r8, .L13+20
.L2:
	mov	r2, #1
	mov	r0, r4
	add	r1, sp, #3
	bl	read
	cmn	r0, #1
	beq	.L10
	cmp	r0, #0
	bne	.L2
.L6:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r3, [r6]
	ldr	r2, [r5]
	cmp	r3, r2
	beq	.L2
	ldr	r2, [r7]
	cmp	r3, r2
	beq	.L12
	mov	r1, r8
	bl	T_ASSERT_POSIX_SUCCESS
	b	.L2
.L12:
	mov	r0, r3
	bl	strerror
	mov	r1, r0
	ldr	r0, .L13+24
	bl	T_LOG
	b	.L6
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC3
	.word	.LC0
	.word	errno
	.word	EINTR
	.word	EBADF
	.word	.LC2
	.word	.LC1
	.size	reader_thread, .-reader_thread
	.comm	errno,4,4
	.comm	T_SETUPEND,4,4
	.comm	T_SETUPBEGIN,4,4
	.comm	T_QUIET,4,4
	.comm	EINTR,4,4
	.comm	EBADF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
