	.file	"368000.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\ninput: "
	.align 8
.LC1:
	.string	"\n\344\275\240\345\205\261\350\276\223\345\205\245%d\344\270\252\345\255\227\347\254\246\344\270\262,\345\205\266\344\270\255\344\270\215\345\220\214\347\232\204\345\255\227\347\254\246\344\270\252\346\225\260\346\234\211%d\344\270\252.\n"
.LC2:
	.string	"\345\256\203\344\273\254\346\230\257: %s\n"
	.align 8
.LC3:
	.string	"\345\207\272\347\216\260\346\234\200\345\244\232\347\232\204\345\255\227\347\254\246\346\230\257%c,\345\256\203\346\200\273\345\205\261\345\207\272\347\216\260%d\346\254\241\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 264
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	DWORD PTR -144[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -264[rbp], 0
	mov	DWORD PTR -252[rbp], 0
	mov	BYTE PTR -266[rbp], 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -264[rbp]
	cdqe
	movzx	edx, BYTE PTR -265[rbp]
	mov	BYTE PTR -240[rbp+rax], dl
	mov	DWORD PTR -260[rbp], 0
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	cmp	BYTE PTR -265[rbp], al
	jne	.L4
	mov	BYTE PTR -266[rbp], 0
	jmp	.L5
.L4:
	mov	BYTE PTR -266[rbp], 1
	add	DWORD PTR -260[rbp], 1
.L3:
	mov	eax, DWORD PTR -260[rbp]
	movsx	rbx, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L6
.L5:
	cmp	BYTE PTR -266[rbp], 0
	je	.L7
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	movzx	edx, BYTE PTR -265[rbp]
	mov	BYTE PTR -128[rbp+rax], dl
.L7:
	add	DWORD PTR -264[rbp], 1
.L2:
	call	getchar@PLT
	mov	BYTE PTR -265[rbp], al
	cmp	BYTE PTR -265[rbp], 10
	jne	.L8
	mov	DWORD PTR -260[rbp], 0
	jmp	.L9
.L14:
	mov	DWORD PTR -252[rbp], 0
	mov	DWORD PTR -256[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -260[rbp]
	cdqe
	movzx	edx, BYTE PTR -128[rbp+rax]
	mov	eax, DWORD PTR -256[rbp]
	cdqe
	movzx	eax, BYTE PTR -240[rbp+rax]
	cmp	dl, al
	jne	.L11
	add	DWORD PTR -252[rbp], 1
.L11:
	add	DWORD PTR -256[rbp], 1
.L10:
	mov	eax, DWORD PTR -256[rbp]
	movsx	rbx, eax
	lea	rax, -240[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L12
	mov	eax, DWORD PTR -252[rbp]
	cmp	eax, DWORD PTR -244[rbp]
	jle	.L13
	mov	eax, DWORD PTR -252[rbp]
	mov	DWORD PTR -244[rbp], eax
	mov	eax, DWORD PTR -260[rbp]
	mov	DWORD PTR -248[rbp], eax
.L13:
	add	DWORD PTR -260[rbp], 1
.L9:
	mov	eax, DWORD PTR -260[rbp]
	movsx	rbx, eax
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L14
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	lea	rax, -240[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rbx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -248[rbp]
	cdqe
	movzx	eax, BYTE PTR -128[rbp+rax]
	movsx	eax, al
	mov	edx, DWORD PTR -244[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"368000.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012input: \000"
	.align	2
.LC1:
	.ascii	"\012\344\275\240\345\205\261\350\276\223\345\205\245"
	.ascii	"%d\344\270\252\345\255\227\347\254\246\344\270\262,"
	.ascii	"\345\205\266\344\270\255\344\270\215\345\220\214\347"
	.ascii	"\232\204\345\255\227\347\254\246\344\270\252\346\225"
	.ascii	"\260\346\234\211%d\344\270\252.\012\000"
	.align	2
.LC2:
	.ascii	"\345\256\203\344\273\254\346\230\257: %s\012\000"
	.align	2
.LC3:
	.ascii	"\345\207\272\347\216\260\346\234\200\345\244\232\347"
	.ascii	"\232\204\345\255\227\347\254\246\346\230\257%c,\345"
	.ascii	"\256\203\346\200\273\345\205\261\345\207\272\347\216"
	.ascii	"\260%d\346\254\241\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #236
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-216]
	sub	r3, fp, #212
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-116]
	sub	r3, fp, #112
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-240]
	mov	r3, #0
	str	r3, [fp, #-228]
	mov	r3, #1
	strb	r3, [fp, #-242]
	ldr	r0, .L17+4
	bl	printf
	b	.L2
.L8:
	sub	r2, fp, #216
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	ldrb	r2, [fp, #-241]
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L3
.L6:
	sub	r2, fp, #116
	ldr	r3, [fp, #-236]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldrb	r2, [fp, #-241]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L4
	mov	r3, #0
	strb	r3, [fp, #-242]
	b	.L5
.L4:
	mov	r3, #1
	strb	r3, [fp, #-242]
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L3:
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-236]
	cmp	r2, r3
	bcs	.L6
.L5:
	ldrb	r3, [fp, #-242]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r2, [fp, #-241]
	strb	r2, [r3, #-104]
.L7:
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L2:
	bl	getchar
	mov	r3, r0
	strb	r3, [fp, #-241]
	ldrb	r3, [fp, #-241]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L8
	mov	r3, #0
	str	r3, [fp, #-236]
	b	.L9
.L14:
	mov	r3, #0
	str	r3, [fp, #-228]
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L10
.L12:
	sub	r2, fp, #116
	ldr	r3, [fp, #-236]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #216
	ldr	r3, [fp, #-232]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L11
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L11:
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L10:
	sub	r3, fp, #216
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-232]
	cmp	r2, r3
	bhi	.L12
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-220]
	cmp	r2, r3
	ble	.L13
	ldr	r3, [fp, #-228]
	str	r3, [fp, #-220]
	ldr	r3, [fp, #-236]
	str	r3, [fp, #-224]
.L13:
	ldr	r3, [fp, #-236]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L9:
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-236]
	cmp	r2, r3
	bhi	.L14
	sub	r3, fp, #216
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #116
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L17+8
	bl	printf
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	sub	r2, fp, #116
	ldr	r3, [fp, #-224]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-220]
	mov	r1, r3
	ldr	r0, .L17+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
