	.file	"869907.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	": warning: this program uses gets(), which is unsafe.\r\n"
	.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	eax, DWORD PTR warned.0[rip]
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR __progname[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR __progname[rip]
	mov	rsi, rax
	mov	edi, 2
	call	write@PLT
	mov	edx, 55
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	write@PLT
	mov	DWORD PTR warned.0[rip], 1
.L2:
	mov	rbx, QWORD PTR -24[rbp]
	jmp	.L3
.L8:
	cmp	r12d, -1
	jne	.L4
	cmp	rbx, QWORD PTR -24[rbp]
	jne	.L9
	mov	eax, 0
	jmp	.L6
.L4:
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	edx, r12d
	mov	BYTE PTR [rax], dl
.L3:
	call	getchar@PLT
	mov	r12d, eax
	cmp	r12d, 10
	jne	.L8
	jmp	.L7
.L9:
	nop
.L7:
	mov	BYTE PTR [rbx], 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
	.local	warned.0
	.comm	warned.0,4,4
	.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	"869907.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	": warning: this program uses gets(), which is unsaf"
	.ascii	"e.\015\012\000"
	.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	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L10+4
	ldr	r4, [r3]
	ldr	r3, .L10+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	mov	r0, #2
	bl	write
	mov	r2, #55
	ldr	r1, .L10+8
	mov	r0, #2
	bl	write
	ldr	r3, .L10
	mov	r2, #1
	str	r2, [r3]
.L2:
	ldr	r4, [fp, #-16]
	b	.L3
.L8:
	cmn	r5, #1
	bne	.L4
	ldr	r3, [fp, #-16]
	cmp	r4, r3
	bne	.L9
	mov	r3, #0
	b	.L6
.L4:
	mov	r3, r4
	add	r4, r3, #1
	and	r2, r5, #255
	strb	r2, [r3]
.L3:
	bl	getchar
	mov	r5, r0
	cmp	r5, #10
	bne	.L8
	b	.L7
.L9:
	nop
.L7:
	mov	r3, #0
	strb	r3, [r4]
	ldr	r3, [fp, #-16]
.L6:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L11:
	.align	2
.L10:
	.word	warned.5392
	.word	__progname
	.word	.LC0
	.size	gets, .-gets
	.local	warned.5392
	.comm	warned.5392,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
