	.file	"extr_input.c_input_input.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	input_input, @function
input_input:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	movsx	rdx, DWORD PTR 8[rdi]
	mov	rbx, QWORD PTR [rdi]
	lea	ecx, 1[rdx]
	movsx	rax, ecx
	cmp	rbx, rax
	jbe	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 16[rbp]
	mov	rsi, rbx
	call	xrealloc@PLT
	movsx	rdx, DWORD PTR 8[rbp]
	mov	QWORD PTR 0[rbp], rbx
	mov	QWORD PTR 16[rbp], rax
	lea	ecx, 1[rdx]
	movsx	rsi, ecx
	cmp	rsi, rbx
	jb	.L6
.L5:
	add	rbx, rbx
	cmp	QWORD PTR INPUT_BUF_LIMIT[rip], rbx
	jnb	.L3
	mov	eax, DWORD PTR INPUT_DISCARD[rip]
	or	DWORD PTR 28[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rdi]
.L6:
	mov	DWORD PTR 8[rbp], ecx
	movzx	ecx, BYTE PTR 24[rbp]
	mov	BYTE PTR [rax+rdx], cl
	movsx	rax, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 16[rbp]
	mov	BYTE PTR [rdx+rax], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	input_input, .-input_input
	.comm	INPUT_DISCARD,4,4
	.comm	INPUT_BUF_LIMIT,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_input.c_input_input.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	input_input, %function
input_input:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	add	r2, r3, #1
	cmp	r4, r2
	mov	r5, r0
	bhi	.L2
	ldr	r6, .L10
	b	.L5
.L3:
	mov	r1, r4
	ldr	r0, [r5, #8]
	bl	xrealloc
	ldr	r3, [r5, #4]
	str	r0, [r5, #8]
	add	r2, r3, #1
	cmp	r2, r4
	str	r4, [r5]
	bcc	.L6
.L5:
	ldr	r3, [r6]
	lsl	r4, r4, #1
	cmp	r3, r4
	bcs	.L3
	ldr	r2, .L10+4
	ldr	r3, [r5, #16]
	ldr	r2, [r2]
	mov	r0, #0
	orr	r3, r3, r2
	str	r3, [r5, #16]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r0, #8]
.L6:
	mov	r1, #0
	ldrb	ip, [r5, #12]	@ zero_extendqisi2
	str	r2, [r5, #4]
	strb	ip, [r0, r3]
	ldr	r2, [r5, #8]
	ldr	r3, [r5, #4]
	mov	r0, #0
	strb	r1, [r2, r3]
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	INPUT_BUF_LIMIT
	.word	INPUT_DISCARD
	.size	input_input, .-input_input
	.comm	INPUT_DISCARD,4,4
	.comm	INPUT_BUF_LIMIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
