	.file	"977381.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"%s\n"
.LC2:
	.string	"0"
.LC3:
	.string	"Case #%d: %s %s\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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 2168
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rax, -10352[rbp]
	mov	edx, 10000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -352[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -240[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -128[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -10368[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -10364[rbp], 0
	jmp	.L2
.L3:
	lea	rcx, -10352[rbp]
	mov	eax, DWORD PTR -10364[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -10364[rbp], 1
.L2:
	mov	eax, DWORD PTR -10368[rbp]
	cmp	DWORD PTR -10364[rbp], eax
	jl	.L3
	mov	DWORD PTR -10364[rbp], 0
	jmp	.L4
.L15:
	lea	rax, -352[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -240[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -128[rbp]
	mov	edx, 100
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -10352[rbp]
	mov	eax, DWORD PTR -10364[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -10360[rbp], eax
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -10360[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -10364[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	add	rax, rcx
	sub	rax, 10336
	movzx	eax, BYTE PTR [rax]
	cmp	al, 52
	je	.L6
	mov	eax, DWORD PTR -10360[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -10364[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	lea	rax, -16[rax]
	add	rax, rbp
	add	rax, rcx
	sub	rax, 10336
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -10360[rbp]
	cdqe
	mov	BYTE PTR -352[rbp+rax], dl
	mov	eax, DWORD PTR -10360[rbp]
	cdqe
	mov	BYTE PTR -240[rbp+rax], 48
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -10360[rbp]
	cdqe
	mov	BYTE PTR -352[rbp+rax], 50
	mov	eax, DWORD PTR -10360[rbp]
	cdqe
	mov	BYTE PTR -240[rbp+rax], 50
.L7:
	sub	DWORD PTR -10360[rbp], 1
.L5:
	cmp	DWORD PTR -10360[rbp], 0
	jns	.L8
	mov	DWORD PTR -10356[rbp], 0
	mov	DWORD PTR -10360[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -10360[rbp]
	cdqe
	movzx	eax, BYTE PTR -240[rbp+rax]
	cmp	al, 48
	je	.L10
	mov	eax, DWORD PTR -10356[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10356[rbp], edx
	mov	edx, DWORD PTR -10360[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR -240[rbp+rdx]
	cdqe
	mov	BYTE PTR -128[rbp+rax], dl
	jmp	.L11
.L10:
	cmp	DWORD PTR -10356[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -10356[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10356[rbp], edx
	mov	edx, DWORD PTR -10360[rbp]
	movsx	rdx, edx
	movzx	edx, BYTE PTR -240[rbp+rdx]
	cdqe
	mov	BYTE PTR -128[rbp+rax], dl
.L11:
	add	DWORD PTR -10360[rbp], 1
.L9:
	mov	eax, DWORD PTR -10360[rbp]
	movsx	rbx, eax
	lea	rax, -240[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L12
	lea	rax, -128[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L13
	lea	rax, -128[rbp]
	jmp	.L14
.L13:
	lea	rax, .LC2[rip]
.L14:
	mov	edx, DWORD PTR -10364[rbp]
	lea	esi, 1[rdx]
	lea	rdx, -352[rbp]
	mov	rcx, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -10364[rbp], 1
.L4:
	mov	eax, DWORD PTR -10368[rbp]
	cmp	DWORD PTR -10364[rbp], eax
	jl	.L15
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"977381.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"%s\012\000"
	.align	2
.LC2:
	.ascii	"0\000"
	.align	2
.LC3:
	.ascii	"Case #%d: %s %s\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 = 10320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #10304
	sub	sp, sp, #16
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #10304
	sub	r3, r3, #4
	ldr	r2, .L18+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #308
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #208
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #10304
	sub	r3, r3, #4
	sub	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L18+8
	bl	__isoc99_scanf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2124]
	b	.L2
.L3:
	sub	r1, fp, #10304
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-2124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r1, r3
	ldr	r0, .L18+12
	bl	__isoc99_scanf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2124]
	add	r3, r3, #1
	str	r3, [r2, #-2124]
.L2:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2128]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-2124]
	cmp	r2, r3
	blt	.L3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2124]
	b	.L4
.L15:
	sub	r3, fp, #308
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #208
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r1, fp, #10304
	sub	r1, r1, #4
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-2124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #8192
	sub	r2, r2, #4
	str	r3, [r2, #-2120]
	b	.L5
.L8:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-2124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r2, r3
	sub	r3, r3, #2112
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #52
	beq	.L6
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r2, [r3, #-2124]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r2, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r2, r3
	sub	r3, r3, #2112
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #308
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	sub	r2, fp, #208
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	b	.L7
.L6:
	sub	r2, fp, #308
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r2, r3
	mov	r2, #50
	strb	r2, [r3]
	sub	r2, fp, #208
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r2, r3
	mov	r2, #50
	strb	r2, [r3]
.L7:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	sub	r3, r3, #1
	str	r3, [r2, #-2120]
.L5:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	cmp	r3, #0
	bge	.L8
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2116]
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-2120]
	b	.L9
.L12:
	sub	r2, fp, #208
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	beq	.L10
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2116]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2116]
	sub	r1, fp, #208
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-2120]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-104]
	b	.L11
.L10:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2116]
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2116]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-2116]
	sub	r1, fp, #208
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-2120]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-104]
.L11:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	add	r3, r3, #1
	str	r3, [r2, #-2120]
.L9:
	sub	r3, fp, #208
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2120]
	cmp	r2, r3
	bhi	.L12
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2124]
	add	r1, r3, #1
	sub	r3, fp, #108
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #108
	b	.L14
.L13:
	ldr	r3, .L18+16
.L14:
	sub	r2, fp, #308
	ldr	r0, .L18+20
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2124]
	add	r3, r3, #1
	str	r3, [r2, #-2124]
.L4:
	sub	r3, fp, #8192
	sub	r3, r3, #4
	ldr	r3, [r3, #-2128]
	sub	r2, fp, #8192
	sub	r2, r2, #4
	ldr	r2, [r2, #-2124]
	cmp	r2, r3
	blt	.L15
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	10000
	.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
