	.file	"850030.c"
	.intel_syntax noprefix
	.text
	.globl	strip_newline
	.type	strip_newline, @function
strip_newline:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L3
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L1
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L5
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	strip_newline, .-strip_newline
	.section	.rodata
.LC0:
	.string	"Please enter your name: "
.LC1:
	.string	"Alex"
.LC2:
	.string	"That's my name too."
.LC3:
	.string	"That's not my name."
.LC4:
	.string	"Your name is %d letters long\n"
.LC5:
	.string	"Enter your last name: "
.LC6:
	.string	"Your full name is %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -240[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -240[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	strip_newline
	lea	rax, -240[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L8
.L7:
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L8:
	lea	rax, -240[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -176[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	fgets@PLT
	lea	rax, -176[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	strip_newline
	mov	BYTE PTR -112[rbp], 0
	lea	rdx, -240[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -112[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 32
	lea	rdx, -176[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"850030.c"
	.text
	.align	2
	.global	strip_newline
	.syntax unified
	.arm
	.fpu softvfp
	.type	strip_newline, %function
strip_newline:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L1
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L5
.L1:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	strip_newline, .-strip_newline
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Please enter your name: \000"
	.align	2
.LC1:
	.ascii	"Alex\000"
	.align	2
.LC2:
	.ascii	"That's my name too.\000"
	.align	2
.LC3:
	.ascii	"That's not my name.\000"
	.align	2
.LC4:
	.ascii	"Your name is %d letters long\012\000"
	.align	2
.LC5:
	.ascii	"Enter your last name: \000"
	.align	2
.LC6:
	.ascii	" \000"
	.align	2
.LC7:
	.ascii	"Your full name is %s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #208
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L11+4
	bl	printf
	ldr	r3, .L11+8
	ldr	r2, [r3]
	sub	r3, fp, #212
	mov	r1, #50
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #212
	mov	r1, #50
	mov	r0, r3
	bl	strip_newline
	sub	r3, fp, #212
	ldr	r1, .L11+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L11+16
	bl	puts
	b	.L8
.L7:
	ldr	r0, .L11+20
	bl	puts
.L8:
	sub	r3, fp, #212
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L11+24
	bl	printf
	ldr	r0, .L11+28
	bl	printf
	ldr	r3, .L11+8
	ldr	r2, [r3]
	sub	r3, fp, #160
	mov	r1, #50
	mov	r0, r3
	bl	fgets
	sub	r3, fp, #160
	mov	r1, #50
	mov	r0, r3
	bl	strip_newline
	mov	r3, #0
	strb	r3, [fp, #-108]
	sub	r2, fp, #212
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #108
	add	r3, r3, r2
	ldr	r2, .L11+32
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r2, fp, #160
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L11+36
	bl	printf
	bl	getchar
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC8
	.word	.LC0
	.word	stdin
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
