	.file	"98576060.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%*d"
.LC1:
	.string	"%d %s\n"
.LC2:
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L2
.L19:
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	sub	eax, 48
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], dl
	add	DWORD PTR -28[rbp], 1
.L3:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	test	al, al
	jne	.L4
	sub	DWORD PTR -28[rbp], 1
.L16:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	add	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -24[rbp]
	mov	ecx, edx
	movsx	rdx, eax
	mov	BYTE PTR -19[rbp+rdx], cl
	cdqe
	movzx	edx, BYTE PTR -19[rbp+rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], dl
	add	DWORD PTR -24[rbp], 1
.L5:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -24[rbp], eax
	jle	.L6
	mov	DWORD PTR -24[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	mov	esi, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	movsx	dx, al
	imul	edx, edx, 103
	shr	dx, 8
	sar	dl, 2
	sar	al, 7
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	edx, [rsi+rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -19[rbp+rax], dl
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	edx, BYTE PTR -19[rbp+rax]
	movsx	ax, dl
	imul	eax, eax, 103
	shr	ax, 8
	sar	al, 2
	mov	esi, edx
	sar	sil, 7
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], cl
	add	DWORD PTR -24[rbp], 1
.L7:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L8
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	test	al, al
	je	.L9
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	cdqe
	mov	BYTE PTR -19[rbp+rax], 0
.L9:
	add	DWORD PTR -32[rbp], 1
	mov	DWORD PTR -24[rbp], 0
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	edx, BYTE PTR -19[rbp+rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	cmp	dl, al
	jne	.L23
	add	DWORD PTR -24[rbp], 1
.L10:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -24[rbp], eax
	jle	.L13
	jmp	.L12
.L23:
	nop
.L12:
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	add	eax, 1
	cmp	DWORD PTR -24[rbp], eax
	je	.L24
	jmp	.L16
.L24:
	nop
	mov	DWORD PTR -24[rbp], 0
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -19[rbp+rax]
	add	eax, 48
	mov	edx, eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], dl
	add	DWORD PTR -24[rbp], 1
.L17:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L18
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -19[rbp+rax], 0
	lea	rdx, -19[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rax, -19[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L19
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	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	"98576060.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%*d\000"
	.align	2
.LC1:
	.ascii	"%d %s\012\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L25+4
	bl	__isoc99_scanf
	b	.L2
.L19:
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L3
.L4:
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L3:
	sub	r2, fp, #20
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L16:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L5
.L6:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-16]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r0, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r0, r3
	add	r2, r1, r2
	and	r1, r2, #255
	sub	r2, fp, #4
	add	r2, r2, r3
	strb	r1, [r2, #-16]
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-16]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L5:
	ldr	r3, [fp, #-28]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	ble	.L6
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r1, [r3, #-16]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L25+8
	umull	r0, r3, r2, r3
	lsr	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	add	r2, r1, r2
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-16]
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L25+8
	umull	r1, r3, r2, r3
	lsr	r1, r3, #3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L7:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L8
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-16]
.L9:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L10
.L13:
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r1, r3
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-16]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L23
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L10:
	ldr	r3, [fp, #-28]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	cmp	r3, r2
	ble	.L13
	b	.L12
.L23:
	nop
.L12:
	ldr	r3, [fp, #-28]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	beq	.L24
	b	.L16
.L24:
	nop
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L17
.L18:
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #48
	and	r1, r3, #255
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L17:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	ble	.L18
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #20
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L25+12
	bl	printf
.L2:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L25+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L19
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC3
	.word	.LC0
	.word	-858993459
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
