	.file	"842362.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%s"
.LC2:
	.string	"Case %d:\n"
.LC3:
	.string	"%d-%d times\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, 248
	.cfi_offset 3, -24
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -224[rbp], 0
	mov	DWORD PTR -220[rbp], 0
	mov	DWORD PTR -216[rbp], 1000
	mov	eax, DWORD PTR -216[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -160[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -152[rbp], rax
	mov	DWORD PTR -228[rbp], 0
	lea	rax, -228[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	mov	QWORD PTR -184[rbp], 0
	jmp	.L5
.L14:
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	jmp	.L6
.L11:
	cmp	QWORD PTR -192[rbp], 21
	jne	.L7
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	DWORD PTR -144[rbp+rax*4], edx
	mov	rcx, QWORD PTR -192[rbp]
	movabs	rdx, -6148914691236517205
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L17
	mov	QWORD PTR -176[rbp], 0
	add	QWORD PTR -200[rbp], 10
	jmp	.L17
.L7:
	mov	rcx, QWORD PTR -192[rbp]
	movabs	rdx, -6148914691236517205
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax
	mov	rdx, rax
	add	rdx, rdx
	add	rdx, rax
	mov	rax, rcx
	sub	rax, rdx
	test	rax, rax
	jne	.L10
	mov	QWORD PTR -176[rbp], 0
	add	QWORD PTR -200[rbp], 10
.L10:
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	DWORD PTR -144[rbp+rax*4], edx
	add	QWORD PTR -176[rbp], 1
	jmp	.L9
.L17:
	nop
.L9:
	add	QWORD PTR -192[rbp], 1
.L6:
	cmp	QWORD PTR -192[rbp], 26
	jbe	.L11
	mov	DWORD PTR -48[rbp], 82
	mov	DWORD PTR -44[rbp], 90
	mov	DWORD PTR -40[rbp], 91
	mov	DWORD PTR -36[rbp], 92
	mov	DWORD PTR -32[rbp], 93
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -184[rbp]
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -168[rbp], 0
	jmp	.L12
.L13:
	mov	rdx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 94
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	eax, DWORD PTR -144[rbp+rax*4]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -208[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	cdqe
	mov	edx, DWORD PTR -144[rbp+rax*4]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -204[rbp], eax
	mov	ecx, DWORD PTR -204[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -204[rbp], edx
	mov	eax, DWORD PTR -204[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -208[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -168[rbp], 1
.L12:
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cdqe
	cmp	QWORD PTR -168[rbp], rax
	jb	.L13
	add	QWORD PTR -184[rbp], 1
.L5:
	mov	eax, DWORD PTR -228[rbp]
	cdqe
	cmp	QWORD PTR -184[rbp], rax
	jb	.L14
	mov	eax, 0
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, 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	"842362.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Case %d:\012\000"
	.align	2
.LC3:
	.ascii	"%d-%d times\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 = 192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #196
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-164]
	mov	r3, #1000
	str	r3, [fp, #-160]
	ldr	ip, [fp, #-160]
	sub	r3, ip, #1
	str	r3, [fp, #-156]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r3, ip
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-192]
	sub	r3, fp, #192
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	bl	getchar
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L2
.L11:
	mov	r3, #0
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-188]
	mov	r3, #0
	str	r3, [fp, #-176]
	b	.L3
.L8:
	ldr	r3, [fp, #-184]
	cmp	r3, #21
	bne	.L4
	ldr	r2, [fp, #-188]
	ldr	r3, [fp, #-176]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-184]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r1, [fp, #-184]
	ldr	r3, .L15+8
	umull	r2, r3, r1, r3
	lsr	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L14
	mov	r3, #0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-188]
	add	r3, r3, #10
	str	r3, [fp, #-188]
	b	.L14
.L4:
	ldr	r1, [fp, #-184]
	ldr	r3, .L15+8
	umull	r2, r3, r1, r3
	lsr	r2, r3, #1
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L7
	mov	r3, #0
	str	r3, [fp, #-176]
	ldr	r3, [fp, #-188]
	add	r3, r3, #10
	str	r3, [fp, #-188]
.L7:
	ldr	r2, [fp, #-188]
	ldr	r3, [fp, #-176]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-184]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-176]
	add	r3, r3, #1
	str	r3, [fp, #-176]
	b	.L6
.L14:
	nop
.L6:
	ldr	r3, [fp, #-184]
	add	r3, r3, #1
	str	r3, [fp, #-184]
.L3:
	ldr	r3, [fp, #-184]
	cmp	r3, #26
	bls	.L8
	mov	r3, #82
	str	r3, [fp, #-40]
	mov	r3, #90
	str	r3, [fp, #-36]
	mov	r3, #91
	str	r3, [fp, #-32]
	mov	r3, #92
	str	r3, [fp, #-28]
	mov	r3, #93
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-152]
	ldr	r0, .L15+12
	bl	__isoc99_scanf
	bl	getchar
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L15+16
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-172]
	b	.L9
.L10:
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-172]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #94
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-124]
	ldr	r2, .L15+20
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-148]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-124]
	ldr	r3, .L15+20
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-140]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-144]
	ldr	r0, .L15+24
	bl	printf
	ldr	r3, [fp, #-172]
	add	r3, r3, #1
	str	r3, [fp, #-172]
.L9:
	ldr	r0, [fp, #-152]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-172]
	cmp	r3, r2
	bcc	.L10
	ldr	r3, [fp, #-180]
	add	r3, r3, #1
	str	r3, [fp, #-180]
.L2:
	ldr	r3, [fp, #-192]
	mov	r2, r3
	ldr	r3, [fp, #-180]
	cmp	r3, r2
	bcc	.L11
	mov	r3, #0
	mov	sp, r4
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC4
	.word	.LC0
	.word	-1431655765
	.word	.LC1
	.word	.LC2
	.word	1717986919
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
