	.file	"101231.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 4000004
a:
	.zero	4000004
	.globl	freq
	.align 32
	.type	freq, @object
	.size	freq, 40000004
freq:
	.zero	40000004
	.text
	.globl	bigMultiply
	.type	bigMultiply, @function
bigMultiply:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	rdx, QWORD PTR -8[rbp]
	imul	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	bigMultiply, .-bigMultiply
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"Test case #%d: "
.LC2:
	.string	"%lld\n\n"
	.text
	.globl	main
	.type	main, @function
main:
.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -32[rbp], 1
	jmp	.L4
.L14:
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	edx, 40000004
	mov	esi, 0
	lea	rdi, freq[rip]
	call	memset@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*4]
	lea	rdx, freq[rip]
	mov	edx, DWORD PTR [rcx+rdx]
	lea	ecx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	DWORD PTR [rdx+rax], ecx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L6
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, a[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -20[rbp], eax
.L6:
	add	DWORD PTR -28[rbp], 1
.L5:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -28[rbp], eax
	jl	.L7
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR freq[rip]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR freq[rip]
	mov	esi, edx
	mov	edi, eax
	call	bigMultiply
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR freq[rip]
	sub	eax, edx
	mov	ecx, DWORD PTR freq[rip+4]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR freq[rip+4]
	mov	esi, edx
	mov	edi, eax
	call	bigMultiply
	add	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -28[rbp], 2
	jmp	.L8
.L13:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	mov	DWORD PTR -24[rbp], eax
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, edx
	mov	edi, eax
	call	bigMultiply
	add	QWORD PTR -16[rbp], rax
.L11:
	mov	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -24[rbp], eax
.L10:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L12
.L9:
	add	DWORD PTR -28[rbp], 1
.L8:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -28[rbp], eax
	jle	.L13
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -32[rbp], 1
.L4:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L14
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"101231.c"
	.text
	.comm	a,4000004,4
	.comm	freq,40000004,4
	.align	2
	.global	bigMultiply
	.syntax unified
	.arm
	.fpu softvfp
	.type	bigMultiply, %function
bigMultiply:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, [fp, #-8]
	mul	r2, r0, r3
	ldr	r3, [fp, #-12]
	mul	r3, r1, r3
	add	ip, r2, r3
	ldr	lr, [fp, #-12]
	umull	r2, r3, lr, r0
	add	r1, ip, r3
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	bigMultiply, .-bigMultiply
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"Test case #%d: \000"
	.align	2
.LC2:
	.ascii	"%lld\012\012\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 = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #40
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L17+4
	bl	__isoc99_scanf
	mov	r3, #1
	str	r3, [fp, #-52]
	b	.L4
.L14:
	ldr	r1, [fp, #-52]
	ldr	r0, .L17+8
	bl	printf
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, .L17+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, .L17+12
	mov	r1, #0
	ldr	r0, .L17+16
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L5
.L7:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	ldr	r2, .L17+20
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L17+4
	bl	__isoc99_scanf
	ldr	r2, .L17+20
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L17+16
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L17+16
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L17+20
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bge	.L6
	ldr	r2, .L17+20
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-40]
.L6:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L5:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L7
	ldr	r3, .L17+16
	ldr	r0, [r3]
	ldr	r2, [fp, #-56]
	ldr	r3, .L17+16
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	bl	bigMultiply
	str	r0, [fp, #-36]
	str	r1, [fp, #-32]
	ldr	r3, .L17+16
	ldr	r0, [r3, #4]
	ldr	r2, [fp, #-56]
	ldr	r3, .L17+16
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, .L17+16
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	mov	r1, r3
	bl	bigMultiply
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-36]
	str	r5, [fp, #-32]
	mov	r3, #2
	str	r3, [fp, #-48]
	b	.L8
.L13:
	ldr	r2, .L17+16
	ldr	r3, [fp, #-48]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #1
	str	r3, [fp, #-44]
	b	.L10
.L12:
	ldr	r2, .L17+16
	ldr	r3, [fp, #-44]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L11
	ldr	r2, .L17+16
	ldr	r3, [fp, #-48]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L17+16
	ldr	r3, [fp, #-44]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	bigMultiply
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r6, r2, r0
	adc	r7, r3, r1
	str	r6, [fp, #-36]
	str	r7, [fp, #-32]
.L11:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	str	r3, [fp, #-44]
.L10:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L12
.L9:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L8:
	ldr	r3, [fp, #-40]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-48]
	cmp	r3, r2
	ble	.L13
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L17+24
	bl	printf
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L4:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	ble	.L14
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	40000004
	.word	freq
	.word	a
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
