	.file	"426489.c"
	.intel_syntax noprefix
	.text
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.globl	w
	.align 32
	.type	w, @object
	.size	w, 800000
w:
	.zero	800000
	.globl	t
	.align 8
	.type	t, @object
	.size	t, 8
t:
	.zero	8
	.text
	.globl	down
	.type	down, @function
down:
.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 -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR j[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR k[rip], eax
	jmp	.L2
.L6:
	mov	eax, DWORD PTR k[rip]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jge	.L3
	mov	eax, DWORD PTR k[rip]
	add	eax, 1
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR k[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rax, QWORD PTR [rcx+rax]
	cmp	rdx, rax
	jge	.L3
	mov	eax, DWORD PTR k[rip]
	add	eax, 1
	mov	DWORD PTR k[rip], eax
.L3:
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR k[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rax, QWORD PTR [rcx+rax]
	cmp	rdx, rax
	jl	.L7
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR t[rip], rax
	mov	eax, DWORD PTR k[rip]
	mov	edx, DWORD PTR j[rip]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rax, QWORD PTR [rcx+rax]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, w[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	edx, DWORD PTR k[rip]
	mov	rax, QWORD PTR t[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, w[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR k[rip]
	mov	DWORD PTR j[rip], eax
	mov	eax, DWORD PTR k[rip]
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR k[rip], eax
.L2:
	mov	edx, DWORD PTR k[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jl	.L6
	jmp	.L8
.L7:
	nop
.L8:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	down, .-down
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%lld"
	.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
	lea	rsi, n[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L10
.L11:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L10:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR n[rip]
	cmp	edx, eax
	jne	.L11
	mov	eax, DWORD PTR n[rip]
	sar	eax
	mov	DWORD PTR i[rip], eax
	jmp	.L12
.L13:
	mov	eax, DWORD PTR i[rip]
	mov	edi, eax
	call	down
	mov	eax, DWORD PTR i[rip]
	sub	eax, 1
	mov	DWORD PTR i[rip], eax
.L12:
	mov	eax, DWORD PTR i[rip]
	test	eax, eax
	jns	.L13
	jmp	.L14
.L15:
	mov	rax, QWORD PTR w[rip]
	mov	QWORD PTR t[rip], rax
	mov	eax, DWORD PTR n[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR w[rip], rax
	mov	edx, DWORD PTR n[rip]
	mov	rax, QWORD PTR t[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, w[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	edi, 0
	call	down
	mov	rcx, QWORD PTR w[rip]
	mov	eax, DWORD PTR n[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, w[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rax, rcx
	add	rax, rax
	mov	QWORD PTR w[rip], rax
	mov	edi, 0
	call	down
.L14:
	mov	eax, DWORD PTR n[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR n[rip], edx
	cmp	eax, 1
	jg	.L15
	mov	rax, QWORD PTR w[rip]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	pop	rbp
	.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	"426489.c"
	.text
	.comm	n,4,4
	.comm	i,4,4
	.comm	j,4,4
	.comm	k,4,4
	.comm	w,800000,8
	.comm	t,8,8
	.align	2
	.global	down
	.syntax unified
	.arm
	.fpu softvfp
	.type	down, %function
down:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L9
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
	b	.L2
.L6:
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L3
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, .L9+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L3
	ldr	r3, .L9+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
.L3:
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, .L9+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, .L9+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L7
	ldr	r3, .L9
	ldr	r3, [r3]
	ldr	r2, .L9+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, .L9+16
	stm	r1, {r2-r3}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, .L9+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+12
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, .L9+4
	ldr	r1, [r3]
	ldr	r3, .L9+16
	ldmia	r3, {r2-r3}
	ldr	r0, .L9+12
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	ldr	r3, .L9+4
	ldr	r3, [r3]
	ldr	r2, .L9
	str	r3, [r2]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	lsl	r3, r3, #1
	add	r3, r3, #1
	ldr	r2, .L9+4
	str	r3, [r2]
.L2:
	ldr	r3, .L9+4
	ldr	r2, [r3]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L6
	b	.L8
.L7:
	nop
.L8:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	j
	.word	k
	.word	n
	.word	w
	.word	t
	.size	down, .-down
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"%lld\000"
	.text
	.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	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	ldr	r1, .L19
	ldr	r0, .L19+4
	bl	__isoc99_scanf
	ldr	r3, .L19+8
	mov	r2, #0
	str	r2, [r3]
	b	.L12
.L13:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	lsl	r3, r3, #3
	ldr	r2, .L19+12
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L19+16
	bl	__isoc99_scanf
	ldr	r3, .L19+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+8
	str	r3, [r2]
.L12:
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L13
	ldr	r3, .L19
	ldr	r3, [r3]
	asr	r3, r3, #1
	ldr	r2, .L19+8
	str	r3, [r2]
	b	.L14
.L15:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	down
	ldr	r3, .L19+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19+8
	str	r3, [r2]
.L14:
	ldr	r3, .L19+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L15
	b	.L16
.L17:
	ldr	r3, .L19+12
	ldmia	r3, {r2-r3}
	ldr	r1, .L19+20
	stm	r1, {r2-r3}
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, .L19+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	ldr	r1, .L19+12
	stm	r1, {r2-r3}
	ldr	r3, .L19
	ldr	r1, [r3]
	ldr	r3, .L19+20
	ldmia	r3, {r2-r3}
	ldr	r0, .L19+12
	lsl	r1, r1, #3
	add	r1, r0, r1
	stm	r1, {r2-r3}
	mov	r0, #0
	bl	down
	ldr	r3, .L19+12
	ldmia	r3, {r0-r1}
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, .L19+12
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	adds	r6, r4, r4
	adc	r7, r5, r5
	mov	r2, r6
	mov	r3, r7
	ldr	r1, .L19+12
	stm	r1, {r2-r3}
	mov	r0, #0
	bl	down
.L16:
	ldr	r3, .L19
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L19
	str	r2, [r1]
	cmp	r3, #1
	bgt	.L17
	ldr	r3, .L19+12
	ldmia	r3, {r2-r3}
	ldr	r0, .L19+16
	bl	printf
	mov	r3, #0
	mov	r0, r3
	pop	{r4, r5, r6, r7, fp, pc}
.L20:
	.align	2
.L19:
	.word	n
	.word	.LC0
	.word	i
	.word	w
	.word	.LC1
	.word	t
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
