	.file	"119737.c"
	.intel_syntax noprefix
	.text
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 603729
a:
	.zero	603729
	.globl	exp3
	.section	.rodata
	.align 32
	.type	exp3, @object
	.size	exp3, 32
exp3:
	.long	0
	.long	1
	.long	3
	.long	9
	.long	27
	.long	81
	.long	243
	.long	729
	.text
	.globl	fill
	.type	fill, @function
fill:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	DWORD PTR -32[rbp], ecx
	cmp	DWORD PTR -32[rbp], 0
	je	.L2
	mov	DWORD PTR -8[rbp], 0
	jmp	.L3
.L6:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L4
.L5:
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	mov	ecx, DWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	add	edx, ecx
	movsx	rdx, edx
	cdqe
	imul	rax, rax, 777
	add	rdx, rax
	lea	rax, a[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 32
	add	DWORD PTR -4[rbp], 1
.L4:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L5
	add	DWORD PTR -8[rbp], 1
.L3:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L6
	jmp	.L1
.L2:
	cmp	DWORD PTR -28[rbp], 1
	jne	.L8
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 777
	add	rdx, rax
	lea	rax, a[rip]
	add	rax, rdx
	mov	BYTE PTR [rax], 88
	jmp	.L1
.L8:
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	esi, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 1
	mov	edi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	edi, [rcx+rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, 1
	mov	esi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, [rcx+rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	mov	ecx, 0
	mov	edi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, [rcx+rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	mov	ecx, 1
	mov	edi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	edi, [rcx+rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, 0
	mov	esi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	ecx, DWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, [rcx+rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	mov	ecx, 1
	mov	edi, eax
	call	fill
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -24[rbp]
	lea	esi, [rcx+rax]
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rcx+rax]
	lea	ecx, [rax+rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, ecx
	mov	ecx, 0
	mov	edi, eax
	call	fill
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	fill, .-fill
	.section	.rodata
.LC0:
	.string	"-"
.LC1:
	.string	"%d"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L10
.L15:
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, eax
	mov	esi, 0
	mov	edi, 0
	call	fill
	mov	DWORD PTR -16[rbp], 0
	jmp	.L11
.L14:
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	imul	rax, rax, 777
	add	rdx, rax
	lea	rax, a[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L13
	mov	edi, 10
	call	putchar@PLT
	add	DWORD PTR -16[rbp], 1
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, exp3[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -16[rbp], eax
	jl	.L14
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L10:
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L15
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	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	"119737.c"
	.text
	.comm	a,603729,4
	.global	exp3
	.section	.rodata
	.align	2
	.type	exp3, %object
	.size	exp3, 32
exp3:
	.word	0
	.word	1
	.word	3
	.word	9
	.word	27
	.word	81
	.word	243
	.word	729
	.text
	.align	2
	.global	fill
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill, %function
fill:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L2
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L3
.L6:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r1, r1, r3
	ldr	r0, .L9
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r3, r0, r2
	add	r3, r3, r1
	mov	r2, #32
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L4:
	ldr	r2, .L9+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L5
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r2, .L9+4
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L6
	b	.L1
.L2:
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L8
	ldr	r1, .L9
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r2, r1, r2
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #88
	strb	r2, [r3]
	b	.L1
.L8:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #0
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #1
	ldr	r0, [fp, #-16]
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #0
	ldr	r0, [fp, #-16]
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #1
	ldr	r1, [fp, #-20]
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #0
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #1
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #0
	ldr	r1, [fp, #-20]
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #1
	bl	fill
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-16]
	add	r0, r2, r3
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	ldr	r2, .L9+4
	ldr	r3, [r2, r3, lsl #2]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-20]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	mov	r3, #0
	bl	fill
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	a
	.word	exp3
	.size	fill, .-fill
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-\000"
	.align	2
.LC1:
	.ascii	"%d\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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L12
.L17:
	ldr	r2, [fp, #-20]
	mov	r3, #0
	mov	r1, #0
	mov	r0, #0
	bl	fill
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L13
.L16:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L14
.L15:
	ldr	r1, .L20+4
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r2, r1, r2
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-20]
	ldr	r2, .L20+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L15
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L13:
	ldr	r3, [fp, #-20]
	ldr	r2, .L20+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L16
	ldr	r0, .L20+12
	bl	puts
.L12:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L20+16
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC2
	.word	a
	.word	exp3
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
