	.file	"307913.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 168
	.cfi_offset 3, -24
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -156[rbp], 0
	mov	DWORD PTR -152[rbp], 0
	cmp	DWORD PTR -164[rbp], 1
	jne	.L3
	mov	DWORD PTR -160[rbp], 8
	mov	DWORD PTR -156[rbp], 8
	jmp	.L3
.L6:
	add	QWORD PTR -176[rbp], 8
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 43
	je	.L4
	cmp	eax, 45
	jne	.L5
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -160[rbp], eax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -156[rbp], eax
	jmp	.L3
.L5:
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ebx, DWORD PTR -152[rbp]
	lea	edx, 1[rbx]
	mov	DWORD PTR -152[rbp], edx
	mov	rdi, rax
	call	atoi@PLT
	movsx	rdx, ebx
	mov	DWORD PTR -144[rbp+rdx*4], eax
	nop
.L3:
	sub	DWORD PTR -164[rbp], 1
	cmp	DWORD PTR -164[rbp], 0
	jg	.L6
	cmp	DWORD PTR -152[rbp], 0
	jne	.L7
	cmp	DWORD PTR -160[rbp], 0
	je	.L8
	mov	eax, DWORD PTR -160[rbp]
	jmp	.L9
.L8:
	mov	eax, 8
.L9:
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	je	.L10
	mov	eax, DWORD PTR -156[rbp]
	jmp	.L11
.L10:
	mov	eax, 8
.L11:
	mov	DWORD PTR -156[rbp], eax
.L7:
	cmp	DWORD PTR -156[rbp], 0
	je	.L18
	mov	DWORD PTR -152[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -156[rbp]
	imul	eax, DWORD PTR -152[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -160[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -152[rbp]
	cdqe
	mov	DWORD PTR -144[rbp+rax*4], edx
	add	DWORD PTR -152[rbp], 1
.L13:
	cmp	DWORD PTR -152[rbp], 29
	jle	.L14
.L18:
	nop
.L15:
	lea	rax, -144[rbp]
	mov	esi, 30
	mov	rdi, rax
	call	entab
	mov	DWORD PTR -148[rbp], eax
	cmp	DWORD PTR -148[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -148[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	entab
	.type	entab, @function
entab:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L30:
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jle	.L21
	add	DWORD PTR -16[rbp], 1
.L21:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jne	.L22
	mov	eax, -2
	jmp	.L23
.L22:
	cmp	DWORD PTR -4[rbp], 32
	je	.L24
	cmp	DWORD PTR -8[rbp], 0
	je	.L25
	jmp	.L26
.L27:
	mov	edi, 32
	call	putchar@PLT
	sub	DWORD PTR -8[rbp], 1
.L26:
	cmp	DWORD PTR -8[rbp], 0
	jg	.L27
.L25:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L20
.L24:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L28
	mov	edi, 9
	call	putchar@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L20
.L28:
	add	DWORD PTR -8[rbp], 1
.L20:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L29
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L30
.L29:
	cmp	DWORD PTR -4[rbp], -1
	jne	.L31
	mov	eax, -1
	jmp	.L23
.L31:
	mov	eax, 0
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	entab, .-entab
	.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	"307913.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #156
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-144]
	ldr	r3, [fp, #-160]
	cmp	r3, #1
	bne	.L3
	mov	r3, #8
	str	r3, [fp, #-152]
	mov	r3, #8
	str	r3, [fp, #-148]
	b	.L3
.L6:
	ldr	r3, [fp, #-164]
	add	r3, r3, #4
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-164]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	beq	.L4
	cmp	r3, #45
	bne	.L5
	ldr	r3, [fp, #-164]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-164]
	str	r2, [r3]
	ldr	r3, [fp, #-164]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-152]
	b	.L3
.L4:
	ldr	r3, [fp, #-164]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-164]
	str	r2, [r3]
	ldr	r3, [fp, #-164]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-148]
	b	.L3
.L5:
	ldr	r3, [fp, #-164]
	ldr	r2, [r3]
	ldr	r4, [fp, #-144]
	add	r3, r4, #1
	str	r3, [fp, #-144]
	mov	r0, r2
	bl	atoi
	mov	r2, r0
	lsl	r3, r4, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-124]
	nop
.L3:
	ldr	r3, [fp, #-160]
	sub	r3, r3, #1
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bgt	.L6
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-152]
	b	.L9
.L8:
	mov	r3, #8
.L9:
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-148]
	b	.L11
.L10:
	mov	r3, #8
.L11:
	str	r3, [fp, #-148]
.L7:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L18
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L13
.L14:
	ldr	r3, [fp, #-148]
	ldr	r2, [fp, #-144]
	mul	r2, r3, r2
	ldr	r3, [fp, #-152]
	add	r2, r2, r3
	ldr	r3, [fp, #-144]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-124]
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L13:
	ldr	r3, [fp, #-144]
	cmp	r3, #29
	ble	.L14
.L18:
	nop
.L15:
	sub	r3, fp, #136
	mov	r1, #30
	mov	r0, r3
	bl	entab
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-140]
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	entab
	.syntax unified
	.arm
	.fpu softvfp
	.type	entab, %function
entab:
	@ 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, #-24]
	str	r1, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L32:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L23
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L23:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bne	.L24
	mvn	r3, #1
	b	.L25
.L24:
	ldr	r3, [fp, #-8]
	cmp	r3, #32
	beq	.L26
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L27
	b	.L28
.L29:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L28:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L29
.L27:
	ldr	r0, [fp, #-8]
	bl	putchar
	b	.L22
.L26:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L30
	mov	r0, #9
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L22
.L30:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L22:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L31
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L32
.L31:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L33
	mvn	r3, #0
	b	.L25
.L33:
	mov	r3, #0
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	entab, .-entab
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
