	.file	"745277.c"
	.intel_syntax noprefix
	.text
	.globl	s
	.bss
	.align 32
	.type	s, @object
	.size	s, 100010
s:
	.zero	100010
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 100010
t:
	.zero	100010
	.globl	P
	.align 32
	.type	P, @object
	.size	P, 10801080
P:
	.zero	10801080
	.globl	C
	.align 32
	.type	C, @object
	.size	C, 108
C:
	.zero	108
	.text
	.globl	bSearch
	.type	bSearch, @function
bSearch:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -8[rbp], -1
	jmp	.L2
.L4:
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -36[rbp], eax
	jg	.L3
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -28[rbp], eax
.L2:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L4
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bSearch, .-bSearch
	.section	.rodata
.LC0:
	.string	"%s%s"
.LC1:
	.string	"-1"
.LC2:
	.string	"%lld\n"
	.text
	.globl	MRoy
	.type	MRoy, @function
MRoy:
.LFB1:
	.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	rdx, t[rip]
	lea	rsi, s[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, s[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	sub	eax, 97
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, 1[rax]
	mov	ecx, DWORD PTR -20[rbp]
	movsx	rcx, ecx
	lea	rsi, 0[0+rcx*4]
	lea	rcx, C[rip]
	mov	DWORD PTR [rsi+rcx], edx
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 100010
	add	rax, rdx
	lea	rcx, 0[0+rax*4]
	lea	rdx, P[rip]
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	QWORD PTR -16[rbp], 1
	add	DWORD PTR -40[rbp], 1
.L7:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, s[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L8
	mov	QWORD PTR -8[rbp], 0
	mov	DWORD PTR -36[rbp], -1
	mov	DWORD PTR -32[rbp], 0
	jmp	.L9
.L14:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, t[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	sub	eax, 97
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, C[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rax, rax, 400040
	lea	rsi, P[rip]
	add	rax, rsi
	mov	esi, 0
	mov	rdi, rax
	call	bSearch
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L12
	add	QWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	imul	rax, rax, 400040
	lea	rdx, P[rip]
	mov	eax, DWORD PTR [rax+rdx]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -36[rbp], eax
.L13:
	add	DWORD PTR -32[rbp], 1
.L9:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, t[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L14
	mov	rax, QWORD PTR -8[rbp]
	imul	rax, QWORD PTR -16[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	add	rax, rdx
	add	rax, 1
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	MRoy, .-MRoy
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	MRoy
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"745277.c"
	.text
	.comm	s,100010,4
	.comm	t,100010,4
	.comm	P,10801080,4
	.comm	C,108,4
	.align	2
	.global	bSearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	bSearch, %function
bSearch:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mvn	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L4:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bgt	.L3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L4
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bSearch, .-bSearch
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s%s\000"
	.align	2
.LC1:
	.ascii	"-1\000"
	.align	2
.LC2:
	.ascii	"%lld\012\000"
	.text
	.align	2
	.global	MRoy
	.syntax unified
	.arm
	.fpu softvfp
	.type	MRoy, %function
MRoy:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #48
	ldr	r2, .L15
	ldr	r1, .L15+4
	ldr	r0, .L15+8
	bl	__isoc99_scanf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L7
.L8:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #97
	str	r3, [fp, #-48]
	ldr	r2, .L15+12
	ldr	r3, [fp, #-48]
	ldr	r0, [r2, r3, lsl #2]
	add	r2, r0, #1
	ldr	r1, .L15+12
	ldr	r3, [fp, #-48]
	str	r2, [r1, r3, lsl #2]
	ldr	ip, .L15+16
	ldr	r1, [fp, #-48]
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	sub	r3, r3, r2
	add	r3, r3, r1
	add	r3, r3, r0
	ldr	r2, [fp, #-68]
	str	r2, [ip, r3, lsl #2]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-44]
	str	r9, [fp, #-40]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L7:
	ldr	r2, .L15+4
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L8
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	mvn	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L9
.L14:
	ldr	r2, .L15
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #97
	str	r3, [fp, #-56]
	ldr	r2, .L15+12
	ldr	r3, [fp, #-56]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L15+20
	bl	puts
	b	.L6
.L10:
	ldr	r3, [fp, #-56]
	ldr	r2, .L15+24
	mul	r3, r2, r3
	ldr	r2, .L15+16
	add	r0, r3, r2
	ldr	r2, .L15+12
	ldr	r3, [fp, #-56]
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, r3, #1
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	mov	r1, #0
	bl	bSearch
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmn	r3, #1
	bne	.L12
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
	ldr	r2, .L15+16
	ldr	r3, [fp, #-56]
	ldr	r1, .L15+24
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	b	.L13
.L12:
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-64]
.L13:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L9:
	ldr	r2, .L15
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	mul	r2, r3, r2
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r1, r2, r3
	ldr	ip, [fp, #-36]
	ldr	r0, [fp, #-44]
	umull	r2, r3, ip, r0
	add	r1, r1, r3
	mov	r3, r1
	ldr	r1, [fp, #-64]
	mov	r0, r1
	asr	r1, r0, #31
	adds	r4, r2, r0
	adc	r5, r3, r1
	adds	r3, r4, #1
	str	r3, [fp, #-76]
	adc	r3, r5, #0
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	ldr	r0, .L15+28
	bl	printf
	nop
.L6:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L16:
	.align	2
.L15:
	.word	t
	.word	s
	.word	.LC0
	.word	C
	.word	P
	.word	.LC1
	.word	400040
	.word	.LC2
	.size	MRoy, .-MRoy
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	MRoy
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
