	.file	"602089.c"
	.intel_syntax noprefix
	.text
	.globl	num
	.bss
	.align 32
	.type	num, @object
	.size	num, 100000
num:
	.zero	100000
	.section	.rodata
.LC0:
	.string	"%s"
	.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, 48
	lea	rsi, num[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40[rbp], 0
	lea	rdi, num[rip]
	call	strlen@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	cmp	al, 44
	je	.L3
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rcx, num[rip]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -40[rbp], 1
.L3:
	add	DWORD PTR -36[rbp], 1
.L2:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L4
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 2
	mov	DWORD PTR -36[rbp], eax
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	cmp	DWORD PTR -32[rbp], eax
	jg	.L22
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	DWORD PTR -32[rbp], eax
	sub	DWORD PTR -36[rbp], 1
.L5:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L9
	jmp	.L8
.L22:
	nop
.L8:
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, num[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jle	.L11
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	jle	.L11
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -24[rbp], eax
.L11:
	add	DWORD PTR -36[rbp], 1
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L12
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rcx, num[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -28[rbp]
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, num[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	DWORD PTR -36[rbp], 0
	jmp	.L13
.L17:
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	lea	rcx, num[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	cmp	dl, al
	jle	.L15
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	cdqe
	lea	rdx, num[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, num[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, edx
	cdqe
	lea	rdx, num[rip]
	mov	BYTE PTR [rax+rdx], cl
.L15:
	add	DWORD PTR -20[rbp], 1
.L14:
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jl	.L16
	add	DWORD PTR -36[rbp], 1
.L13:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L17
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -36[rbp], 0
	jmp	.L18
.L20:
	cmp	DWORD PTR -16[rbp], 0
	je	.L19
	mov	edi, 44
	call	putchar@PLT
.L19:
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, num[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -36[rbp], 1
.L18:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jl	.L20
	mov	eax, 0
	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	"602089.c"
	.text
	.comm	num,100000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r1, .L23
	ldr	r0, .L23+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r0, .L23
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L2
.L4:
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #44
	beq	.L3
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L23
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L3:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-16]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, .L23
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	str	r3, [fp, #-40]
	b	.L5
.L9:
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	cmp	r3, r2
	bgt	.L22
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
.L5:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bge	.L9
	b	.L8
.L22:
	nop
.L8:
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L10
.L12:
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, .L23
	ldr	r3, [fp, #-12]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L11
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	ble	.L11
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
.L11:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L10:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L12
	ldr	r2, .L23
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L23
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	and	r1, r3, #255
	ldr	r2, .L23
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L13
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L14
.L16:
	ldr	r2, .L23
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r1, .L23
	ldrb	r3, [r1, r3]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L15
	ldr	r2, .L23
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, .L23
	ldrb	r1, [r2, r3]	@ zero_extendqisi2
	ldr	r2, .L23
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	and	r1, r2, #255
	ldr	r2, .L23
	strb	r1, [r2, r3]
.L15:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L14:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L16
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L13:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L17
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L18
.L20:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L19
	mov	r0, #44
	bl	putchar
.L19:
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r2, .L23
	ldr	r3, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L18:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	num
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
