	.file	"extr_io.c_strm_readio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	strm_readio, @function
strm_readio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	test	rax, rax
	je	.L9
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rbx, rdi
	mov	edi, 48
	mov	r13d, DWORD PTR stdio_read[rip]
	call	malloc@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, rsp
	mov	r12, rax
	mov	eax, DWORD PTR STRM_IO_READING[rip]
	or	DWORD PTR 12[rbx], eax
	mov	DWORD PTR 24[r12], edi
	mov	QWORD PTR 40[r12], rbx
	call	fstat@PLT
	test	rax, rax
	mov	rax, QWORD PTR [r12]
	jne	.L4
	mov	edx, DWORD PTR [rsp]
	and	edx, DWORD PTR S_IFMT[rip]
	cmp	edx, DWORD PTR S_IFREG[rip]
	je	.L11
.L4:
	mov	QWORD PTR 8[r12], rax
	xor	ebp, ebp
	mov	QWORD PTR 16[r12], rax
.L5:
	mov	edx, DWORD PTR read_close[rip]
	mov	edi, DWORD PTR strm_producer[rip]
	mov	rcx, r12
	mov	esi, r13d
	call	strm_stream_new@PLT
	mov	QWORD PTR [rbx], rax
	or	DWORD PTR [rax], ebp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	QWORD PTR 8[r12], rax
	mov	ebp, DWORD PTR STRM_IO_NOWAIT[rip]
	mov	QWORD PTR 16[r12], rax
	mov	r13d, DWORD PTR read_cb[rip]
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	strm_readio, .-strm_readio
	.comm	strm_producer,4,4
	.comm	stdio_read,4,4
	.comm	readline_cb,4,4
	.comm	read_close,4,4
	.comm	read_cb,4,4
	.comm	S_IFREG,4,4
	.comm	S_IFMT,4,4
	.comm	STRM_IO_READING,4,4
	.comm	STRM_IO_NOWAIT,4,4
	.comm	STRM_IO_NOFILL,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,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_io.c_strm_readio.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	strm_readio, %function
strm_readio:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r0, [r0]
	ldr	r3, .L12
	sub	sp, sp, #20
	cmp	r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	beq	.L9
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, .L12+4
	mov	r0, #24
	ldr	r6, [r3]
	bl	malloc
	mov	r5, r0
	ldr	r2, .L12+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	ldr	r0, [r4, #4]
	orr	r3, r3, r2
	str	r3, [r4, #8]
	add	r1, sp, #4
	str	r4, [r5, #20]
	str	r0, [r5, #12]
	bl	fstat
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L12+12
	ldr	r2, .L12+16
	ldr	r1, [r3]
	ldr	r3, [sp, #4]
	ldr	r2, [r2]
	and	r3, r3, r1
	cmp	r3, r2
	ldr	r3, [r5]
	beq	.L11
.L4:
	mov	r7, #0
	str	r3, [r5, #4]
	str	r3, [r5, #8]
.L5:
	ldr	r2, .L12+20
	ldr	r0, .L12+24
	mov	r3, r5
	mov	r1, r6
	ldr	r2, [r2]
	ldr	r0, [r0]
	bl	strm_stream_new
	ldr	r3, [r0]
	str	r0, [r4]
	orr	r3, r3, r7
	str	r3, [r0]
	b	.L1
.L3:
	ldr	r3, [r5]
	b	.L4
.L11:
	ldr	r1, .L12+28
	ldr	r2, .L12+32
	ldr	r7, [r1]
	ldr	r6, [r2]
	str	r3, [r5, #4]
	str	r3, [r5, #8]
	b	.L5
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	stdio_read
	.word	STRM_IO_READING
	.word	S_IFMT
	.word	S_IFREG
	.word	read_close
	.word	strm_producer
	.word	STRM_IO_NOWAIT
	.word	read_cb
	.size	strm_readio, .-strm_readio
	.comm	strm_producer,4,4
	.comm	stdio_read,4,4
	.comm	readline_cb,4,4
	.comm	read_close,4,4
	.comm	read_cb,4,4
	.comm	S_IFREG,4,4
	.comm	S_IFMT,4,4
	.comm	STRM_IO_READING,4,4
	.comm	STRM_IO_NOWAIT,4,4
	.comm	STRM_IO_NOFILL,4,4
	.comm	PROT_READ,4,4
	.comm	MAP_PRIVATE,4,4
	.comm	MAP_FAILED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
