	.file	"4969.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
	.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
	sub	rsp, 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -440[rbp], 0
	mov	DWORD PTR -444[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	BYTE PTR -224[rbp+rax], 0
	add	DWORD PTR -444[rbp], 1
.L2:
	cmp	DWORD PTR -444[rbp], 200
	jle	.L3
	jmp	.L4
.L14:
	lea	rax, -432[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -440[rbp], eax
	mov	eax, DWORD PTR -440[rbp]
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -432[rbp+rax]
	cmp	al, 10
	jne	.L5
	sub	DWORD PTR -440[rbp], 1
.L5:
	cmp	DWORD PTR -440[rbp], 1
	jne	.L6
	movzx	eax, BYTE PTR -432[rbp]
	cmp	al, 48
	je	.L24
.L6:
	mov	DWORD PTR -444[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -440[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -432[rbp+rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -436[rbp], eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -432[rbp+rax]
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -440[rbp]
	sub	eax, 1
	sub	eax, DWORD PTR -444[rbp]
	cdqe
	mov	BYTE PTR -432[rbp+rax], dl
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	BYTE PTR -432[rbp+rax], dl
	add	DWORD PTR -444[rbp], 1
.L8:
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -444[rbp], eax
	jl	.L9
	mov	eax, DWORD PTR -440[rbp]
	cdq
	shr	edx, 31
	add	eax, edx
	and	eax, 1
	sub	eax, edx
	cmp	eax, 1
	jne	.L10
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	movsx	rax, edx
	movzx	eax, BYTE PTR -432[rbp+rax]
	sub	eax, 48
	mov	ecx, eax
	movsx	rax, edx
	mov	BYTE PTR -432[rbp+rax], cl
.L10:
	mov	DWORD PTR -444[rbp], 0
	jmp	.L11
.L13:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -432[rbp+rax]
	add	eax, edx
	mov	edx, eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	BYTE PTR -224[rbp+rax], dl
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	cmp	al, 9
	jle	.L12
	mov	eax, DWORD PTR -444[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -444[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -224[rbp+rax], dl
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	sub	eax, 10
	mov	edx, eax
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	mov	BYTE PTR -224[rbp+rax], dl
.L12:
	add	DWORD PTR -444[rbp], 1
.L11:
	mov	eax, DWORD PTR -444[rbp]
	cmp	eax, DWORD PTR -440[rbp]
	jl	.L13
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -432[rbp]
	mov	esi, 199
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L14
	jmp	.L7
.L24:
	nop
.L7:
	mov	DWORD PTR -440[rbp], 200
	jmp	.L15
.L18:
	mov	eax, DWORD PTR -440[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	test	al, al
	jne	.L25
	sub	DWORD PTR -440[rbp], 1
.L15:
	cmp	DWORD PTR -440[rbp], 0
	jns	.L18
	jmp	.L17
.L25:
	nop
.L17:
	cmp	DWORD PTR -440[rbp], -1
	jne	.L19
	mov	DWORD PTR -440[rbp], 0
.L19:
	mov	eax, DWORD PTR -440[rbp]
	mov	DWORD PTR -444[rbp], eax
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -444[rbp]
	cdqe
	movzx	eax, BYTE PTR -224[rbp+rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -444[rbp], 1
.L20:
	cmp	DWORD PTR -444[rbp], 0
	jns	.L21
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	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	"4969.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #424
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-424]
	mov	r3, #0
	str	r3, [fp, #-428]
	b	.L2
.L3:
	sub	r2, fp, #212
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L2:
	ldr	r3, [fp, #-428]
	cmp	r3, #200
	ble	.L3
	b	.L4
.L14:
	sub	r3, fp, #416
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-424]
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-412]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L5
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	str	r3, [fp, #-424]
.L5:
	ldr	r3, [fp, #-424]
	cmp	r3, #1
	bne	.L6
	ldrb	r3, [fp, #-416]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L24
.L6:
	mov	r3, #0
	str	r3, [fp, #-428]
	b	.L8
.L9:
	ldr	r3, [fp, #-424]
	sub	r2, r3, #1
	ldr	r3, [fp, #-428]
	sub	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-412]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-420]
	sub	r2, fp, #416
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-424]
	sub	r1, r3, #1
	ldr	r3, [fp, #-428]
	sub	r3, r1, r3
	sub	r2, r2, #48
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-412]
	ldr	r3, [fp, #-420]
	and	r1, r3, #255
	sub	r2, fp, #416
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L8:
	ldr	r3, [fp, #-424]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-428]
	cmp	r3, r2
	blt	.L9
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	and	r3, r3, #1
	rsblt	r3, r3, #0
	cmp	r3, #1
	bne	.L10
	ldr	r3, [fp, #-424]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	sub	r2, fp, #4
	add	r2, r2, r3
	ldrb	r2, [r2, #-412]	@ zero_extendqisi2
	sub	r2, r2, #48
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-412]
.L10:
	mov	r3, #0
	str	r3, [fp, #-428]
	b	.L11
.L13:
	sub	r2, fp, #212
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #416
	ldr	r3, [fp, #-428]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r1, r3, #255
	sub	r2, fp, #212
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #212
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #9
	bls	.L12
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r2, [r3, #-208]	@ zero_extendqisi2
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	add	r2, r2, #1
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-208]
	sub	r2, fp, #212
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #10
	and	r1, r3, #255
	sub	r2, fp, #212
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L12:
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L11:
	ldr	r2, [fp, #-428]
	ldr	r3, [fp, #-424]
	cmp	r2, r3
	blt	.L13
.L4:
	ldr	r3, .L26+4
	ldr	r2, [r3]
	sub	r3, fp, #416
	mov	r1, #199
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	b	.L7
.L24:
	nop
.L7:
	mov	r3, #200
	str	r3, [fp, #-424]
	b	.L15
.L18:
	sub	r2, fp, #212
	ldr	r3, [fp, #-424]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	str	r3, [fp, #-424]
.L15:
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	bge	.L18
	b	.L17
.L25:
	nop
.L17:
	ldr	r3, [fp, #-424]
	cmn	r3, #1
	bne	.L19
	mov	r3, #0
	str	r3, [fp, #-424]
.L19:
	ldr	r3, [fp, #-424]
	str	r3, [fp, #-428]
	b	.L20
.L21:
	sub	r2, fp, #212
	ldr	r3, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, [fp, #-428]
	sub	r3, r3, #1
	str	r3, [fp, #-428]
.L20:
	ldr	r3, [fp, #-428]
	cmp	r3, #0
	bge	.L21
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC1
	.word	stdin
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
