	.file	"775995.c"
	.intel_syntax noprefix
	.text
	.globl	freq
	.type	freq, @function
freq:
.LFB6:
	.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	eax, DWORD PTR -4[rbp]
	test	rax, rax
	js	.L2
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	jmp	.L3
.L2:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	movapd	xmm1, xmm0
	addsd	xmm1, xmm0
.L3:
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	test	rax, rax
	js	.L4
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L5
.L4:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L5:
	mulsd	xmm1, xmm0
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	test	rax, rax
	js	.L6
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L7
.L6:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L7:
	divsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	freq, .-freq
	.globl	uifreq
	.type	uifreq, @function
uifreq:
.LFB7:
	.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	freq
	movsd	xmm1, QWORD PTR .LC0[rip]
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	uifreq, .-uifreq
	.section	.rodata
.LC1:
	.string	"%u\n"
.LC2:
	.string	"0 %u\n"
.LC3:
	.string	"%u %u\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 560
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -572[rbp], 240
	mov	DWORD PTR -568[rbp], 432
	mov	DWORD PTR -544[rbp], 1
	mov	DWORD PTR -540[rbp], 15
	mov	DWORD PTR -536[rbp], 8
	mov	DWORD PTR -532[rbp], 6
	mov	DWORD PTR -528[rbp], 5
	mov	DWORD PTR -524[rbp], 4
	mov	DWORD PTR -520[rbp], 7
	mov	DWORD PTR -516[rbp], 10
	mov	DWORD PTR -512[rbp], 3
	mov	DWORD PTR -508[rbp], 8
	mov	DWORD PTR -504[rbp], 5
	mov	DWORD PTR -500[rbp], 7
	mov	DWORD PTR -496[rbp], 15
	mov	DWORD PTR -480[rbp], 1
	mov	DWORD PTR -476[rbp], 14
	mov	DWORD PTR -472[rbp], 7
	mov	DWORD PTR -468[rbp], 5
	mov	DWORD PTR -464[rbp], 4
	mov	DWORD PTR -460[rbp], 3
	mov	DWORD PTR -456[rbp], 5
	mov	DWORD PTR -452[rbp], 7
	mov	DWORD PTR -448[rbp], 2
	mov	DWORD PTR -444[rbp], 5
	mov	DWORD PTR -440[rbp], 3
	mov	DWORD PTR -436[rbp], 4
	mov	DWORD PTR -432[rbp], 8
	mov	QWORD PTR -288[rbp], 4
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 4
	mov	QWORD PTR -264[rbp], 8
	mov	QWORD PTR -256[rbp], 12
	mov	QWORD PTR -248[rbp], 11
	mov	QWORD PTR -240[rbp], 9
	mov	QWORD PTR -232[rbp], -1
	mov	QWORD PTR -224[rbp], 7
	mov	QWORD PTR -216[rbp], 4
	mov	QWORD PTR -208[rbp], 13
	mov	QWORD PTR -200[rbp], 12
	mov	QWORD PTR -192[rbp], 6
	mov	QWORD PTR -184[rbp], 3
	mov	QWORD PTR -176[rbp], 2
	mov	QWORD PTR -168[rbp], -1
	mov	QWORD PTR -160[rbp], 4
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 4
	mov	QWORD PTR -136[rbp], 8
	mov	QWORD PTR -128[rbp], 12
	mov	QWORD PTR -120[rbp], 11
	mov	QWORD PTR -112[rbp], 9
	mov	QWORD PTR -104[rbp], -1
	mov	QWORD PTR -96[rbp], 7
	mov	QWORD PTR -88[rbp], 3
	mov	QWORD PTR -80[rbp], 12
	mov	QWORD PTR -72[rbp], 11
	mov	QWORD PTR -64[rbp], 6
	mov	QWORD PTR -56[rbp], 4
	mov	QWORD PTR -48[rbp], 3
	mov	QWORD PTR -40[rbp], -1
	mov	DWORD PTR -416[rbp], 3
	mov	DWORD PTR -412[rbp], 1
	mov	DWORD PTR -408[rbp], 2
	mov	DWORD PTR -404[rbp], 2
	mov	DWORD PTR -400[rbp], 3
	mov	DWORD PTR -396[rbp], 3
	mov	DWORD PTR -392[rbp], 5
	mov	DWORD PTR -388[rbp], 1
	mov	DWORD PTR -384[rbp], 3
	mov	DWORD PTR -380[rbp], 1
	mov	DWORD PTR -376[rbp], 2
	mov	DWORD PTR -372[rbp], 2
	mov	DWORD PTR -368[rbp], 3
	mov	DWORD PTR -364[rbp], 3
	mov	DWORD PTR -360[rbp], 5
	mov	DWORD PTR -356[rbp], 1
	mov	DWORD PTR -352[rbp], 3
	mov	DWORD PTR -348[rbp], 1
	mov	DWORD PTR -344[rbp], 2
	mov	DWORD PTR -340[rbp], 2
	mov	DWORD PTR -336[rbp], 3
	mov	DWORD PTR -332[rbp], 3
	mov	DWORD PTR -328[rbp], 5
	mov	DWORD PTR -324[rbp], 1
	mov	DWORD PTR -320[rbp], 3
	mov	DWORD PTR -316[rbp], 1
	mov	DWORD PTR -312[rbp], 2
	mov	DWORD PTR -308[rbp], 2
	mov	DWORD PTR -304[rbp], 3
	mov	DWORD PTR -300[rbp], 3
	mov	DWORD PTR -296[rbp], 5
	mov	DWORD PTR -292[rbp], 1
	mov	eax, DWORD PTR -572[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -560[rbp], 0
	jmp	.L12
.L15:
	mov	rax, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -288[rbp+rax*8]
	cmp	rax, -1
	jne	.L13
	mov	rax, QWORD PTR -560[rbp]
	mov	eax, DWORD PTR -416[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -288[rbp+rax*8]
	mov	rcx, rax
	movabs	rdx, 5675921253449092805
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	QWORD PTR -552[rbp], rax
	mov	rdx, QWORD PTR -552[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sub	rcx, rax
	mov	rdx, rcx
	mov	QWORD PTR -552[rbp], rdx
	mov	rax, QWORD PTR -560[rbp]
	mov	rax, QWORD PTR -288[rbp+rax*8]
	movabs	rdx, 5675921253449092805
	mul	rdx
	mov	rax, rdx
	shr	rax, 2
	mov	DWORD PTR -564[rbp], eax
	mov	rax, QWORD PTR -560[rbp]
	mov	ebx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -564[rbp]
	lea	r12d, 1[rax]
	mov	rcx, QWORD PTR -552[rbp]
	lea	rdx, -480[rbp]
	lea	rsi, -544[rbp]
	mov	eax, DWORD PTR -568[rbp]
	mov	edi, eax
	call	uifreq
	imul	eax, r12d
	mov	edx, ebx
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L14:
	add	QWORD PTR -560[rbp], 1
.L12:
	cmp	QWORD PTR -560[rbp], 31
	jbe	.L15
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	add	rsp, 560
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1071644672
	.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	"775995.c"
	.text
	.global	__aeabi_ui2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.align	2
	.global	freq
	.syntax unified
	.arm
	.fpu softvfp
	.type	freq, %function
freq:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-16]
	bl	__aeabi_ui2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	freq, .-freq
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.align	2
	.global	uifreq
	.syntax unified
	.arm
	.fpu softvfp
	.type	uifreq, %function
uifreq:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	freq
	mov	r2, #0
	ldr	r3, .L5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	1071644672
	.size	uifreq, .-uifreq
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%u\012\000"
	.align	2
.LC5:
	.ascii	"0 %u\012\000"
	.align	2
.LC6:
	.ascii	"%u %u\012\000"
	.align	2
.LC0:
	.word	1
	.word	15
	.word	8
	.word	6
	.word	5
	.word	4
	.word	7
	.word	10
	.word	3
	.word	8
	.word	5
	.word	7
	.word	15
	.align	2
.LC1:
	.word	1
	.word	14
	.word	7
	.word	5
	.word	4
	.word	3
	.word	5
	.word	7
	.word	2
	.word	5
	.word	3
	.word	4
	.word	8
	.align	2
.LC2:
	.word	4
	.word	0
	.word	4
	.word	8
	.word	12
	.word	11
	.word	9
	.word	-1
	.word	7
	.word	4
	.word	13
	.word	12
	.word	6
	.word	3
	.word	2
	.word	-1
	.word	4
	.word	0
	.word	4
	.word	8
	.word	12
	.word	11
	.word	9
	.word	-1
	.word	7
	.word	3
	.word	12
	.word	11
	.word	6
	.word	4
	.word	3
	.word	-1
	.align	2
.LC3:
	.word	3
	.word	1
	.word	2
	.word	2
	.word	3
	.word	3
	.word	5
	.word	1
	.word	3
	.word	1
	.word	2
	.word	2
	.word	3
	.word	3
	.word	5
	.word	1
	.word	3
	.word	1
	.word	2
	.word	2
	.word	3
	.word	3
	.word	5
	.word	1
	.word	3
	.word	1
	.word	2
	.word	2
	.word	3
	.word	3
	.word	5
	.word	1
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #388
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #240
	str	r3, [fp, #-392]
	mov	r3, #432
	str	r3, [fp, #-388]
	ldr	r3, .L14+4
	sub	ip, fp, #376
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r3, .L14+8
	sub	ip, fp, #324
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	ldr	r2, .L14+12
	sub	r3, fp, #272
	mov	r1, r2
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	ldr	r2, .L14+16
	sub	r3, fp, #144
	mov	r1, r2
	mov	r2, #128
	mov	r0, r3
	bl	memcpy
	ldr	r1, [fp, #-392]
	ldr	r0, .L14+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-396]
	b	.L8
.L11:
	ldr	r3, [fp, #-396]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	cmn	r3, #1
	bne	.L9
	ldr	r3, [fp, #-396]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-132]
	mov	r1, r3
	ldr	r0, .L14+24
	bl	printf
	b	.L10
.L9:
	ldr	r3, [fp, #-396]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	mov	r1, r3
	ldr	r3, .L14+28
	umull	r2, r3, r1, r3
	lsr	r2, r3, #2
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r3, r1, r3
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-396]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-260]
	mov	r2, r3
	ldr	r3, .L14+28
	umull	r1, r3, r2, r3
	lsr	r3, r3, #2
	str	r3, [fp, #-380]
	ldr	r3, [fp, #-380]
	add	r4, r3, #1
	sub	r2, fp, #324
	sub	r1, fp, #376
	ldr	r3, [fp, #-384]
	ldr	r0, [fp, #-388]
	bl	uifreq
	mov	r3, r0
	mul	r1, r3, r4
	ldr	r3, [fp, #-396]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-132]
	mov	r2, r3
	ldr	r0, .L14+32
	bl	printf
.L10:
	ldr	r3, [fp, #-396]
	add	r3, r3, #1
	str	r3, [fp, #-396]
.L8:
	ldr	r3, [fp, #-396]
	cmp	r3, #31
	bls	.L11
	mov	r3, #0
	ldr	r2, .L14
	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}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	1321528399
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
