	.file	"546735.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC2:
	.string	"%d\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
	sub	rsp, 464
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -448[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -440[rbp], 0
	mov	DWORD PTR -436[rbp], 1
	mov	DWORD PTR -440[rbp], 0
	jmp	.L2
.L16:
	lea	rax, -444[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -432[rbp], 0
	mov	DWORD PTR -432[rbp], 0
	jmp	.L3
.L4:
	lea	rdx, -416[rbp]
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	DWORD PTR -432[rbp], 1
.L3:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -432[rbp], eax
	jl	.L4
	mov	DWORD PTR -428[rbp], 0
	mov	DWORD PTR -432[rbp], 0
	jmp	.L5
.L8:
	mov	DWORD PTR -428[rbp], 0
	jmp	.L6
.L7:
	add	DWORD PTR -436[rbp], 1
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	add	DWORD PTR -428[rbp], 1
.L6:
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -436[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	mov	DWORD PTR -436[rbp], 1
	add	DWORD PTR -432[rbp], 1
.L5:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -432[rbp], eax
	jl	.L8
	mov	DWORD PTR -436[rbp], 1
	mov	DWORD PTR -424[rbp], 0
	mov	DWORD PTR -432[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -432[rbp]
	add	eax, 1
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	cmp	edx, eax
	je	.L10
	add	DWORD PTR -436[rbp], 1
.L10:
	add	DWORD PTR -432[rbp], 1
.L9:
	mov	eax, DWORD PTR -444[rbp]
	sub	eax, 1
	cmp	DWORD PTR -432[rbp], eax
	jl	.L11
	mov	eax, DWORD PTR -436[rbp]
	mov	DWORD PTR -424[rbp], eax
	mov	DWORD PTR -436[rbp], 1
	mov	eax, DWORD PTR -424[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -420[rbp], eax
	mov	DWORD PTR -432[rbp], 1
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*4]
	mov	eax, DWORD PTR -432[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	cmp	edx, eax
	je	.L13
	sub	DWORD PTR -424[rbp], 1
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -420[rbp]
	movsd	QWORD PTR -456[rbp], xmm2
	mov	eax, DWORD PTR -424[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	addsd	xmm0, QWORD PTR -456[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -420[rbp], eax
	jmp	.L14
.L13:
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -420[rbp]
	movsd	QWORD PTR -456[rbp], xmm3
	mov	eax, DWORD PTR -424[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	addsd	xmm0, QWORD PTR -456[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -420[rbp], eax
.L14:
	add	DWORD PTR -432[rbp], 1
.L12:
	mov	eax, DWORD PTR -444[rbp]
	cmp	DWORD PTR -432[rbp], eax
	jl	.L15
	mov	eax, DWORD PTR -420[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -440[rbp], 1
.L2:
	mov	eax, DWORD PTR -448[rbp]
	cmp	DWORD PTR -440[rbp], eax
	jl	.L16
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.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	"546735.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.global	__aeabi_dadd
	.align	2
.LC1:
	.ascii	"%d\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #440
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #448
	mov	r1, r3
	ldr	r0, .L19+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-440]
	mov	r3, #1
	str	r3, [fp, #-436]
	mov	r3, #0
	str	r3, [fp, #-440]
	b	.L2
.L16:
	sub	r3, fp, #444
	mov	r1, r3
	ldr	r0, .L19+4
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-432]
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L3
.L4:
	sub	r2, fp, #416
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L19+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L3:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L4
	mov	r3, #0
	str	r3, [fp, #-428]
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L5
.L8:
	mov	r3, #0
	str	r3, [fp, #-428]
	b	.L6
.L7:
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	ldr	r2, .L19+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-428]
	add	r3, r3, #1
	str	r3, [fp, #-428]
.L6:
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-436]
	sub	r2, r3, #1
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-404]
	mov	r3, #1
	str	r3, [fp, #-436]
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L5:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L8
	mov	r3, #1
	str	r3, [fp, #-436]
	mov	r3, #0
	str	r3, [fp, #-424]
	mov	r3, #0
	str	r3, [fp, #-432]
	b	.L9
.L11:
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-404]
	cmp	r2, r3
	beq	.L10
	ldr	r3, [fp, #-436]
	add	r3, r3, #1
	str	r3, [fp, #-436]
.L10:
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L9:
	ldr	r3, [fp, #-444]
	sub	r3, r3, #1
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-436]
	str	r3, [fp, #-424]
	mov	r3, #1
	str	r3, [fp, #-436]
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-420]
	mov	r3, #1
	str	r3, [fp, #-432]
	b	.L12
.L15:
	ldr	r3, [fp, #-432]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-404]
	ldr	r3, [fp, #-432]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-404]
	cmp	r2, r3
	beq	.L13
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	str	r3, [fp, #-424]
	ldr	r0, [fp, #-420]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-420]
	b	.L14
.L13:
	ldr	r0, [fp, #-420]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-420]
.L14:
	ldr	r3, [fp, #-432]
	add	r3, r3, #1
	str	r3, [fp, #-432]
.L12:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-432]
	cmp	r2, r3
	blt	.L15
	ldr	r1, [fp, #-420]
	ldr	r0, .L19+12
	bl	printf
	ldr	r3, [fp, #-440]
	add	r3, r3, #1
	str	r3, [fp, #-440]
.L2:
	ldr	r3, [fp, #-448]
	ldr	r2, [fp, #-440]
	cmp	r2, r3
	blt	.L16
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC2
	.word	.LC0
	.word	1717986919
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
