	.file	"352594.c"
	.intel_syntax noprefix
	.text
	.globl	gets
	.type	gets, @function
gets:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -24[rbp], rdi
	mov	rbx, QWORD PTR -24[rbp]
	jmp	.L2
.L4:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	edx, r12d
	mov	BYTE PTR [rax], dl
.L2:
	call	getchar@PLT
	mov	r12d, eax
	cmp	r12d, 10
	je	.L3
	test	r12d, r12d
	jns	.L4
.L3:
	test	r12d, r12d
	jns	.L5
	cmp	rbx, QWORD PTR -24[rbp]
	jne	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
.L6:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	gets, .-gets
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"352594.c"
	.text
	.align	2
	.global	gets
	.syntax unified
	.arm
	.fpu softvfp
	.type	gets, %function
gets:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r5, [fp, #-16]
	b	.L2
.L4:
	mov	r3, r5
	add	r5, r3, #1
	and	r2, r4, #255
	strb	r2, [r3]
.L2:
	bl	getchar
	mov	r4, r0
	cmp	r4, #10
	beq	.L3
	cmp	r4, #0
	bge	.L4
.L3:
	cmp	r4, #0
	bge	.L5
	ldr	r3, [fp, #-16]
	cmp	r5, r3
	bne	.L5
	mov	r3, #0
	b	.L6
.L5:
	mov	r3, r5
	add	r5, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
.L6:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	gets, .-gets
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
