	.file	"406916.c"
	.intel_syntax noprefix
	.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, 448
	mov	DWORD PTR -436[rbp], edi
	mov	QWORD PTR -448[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -416[rbp]
	mov	eax, 0
	mov	ecx, 50
	mov	rdi, rdx
	rep stosq
	lea	rdx, -416[rbp]
	mov	rcx, QWORD PTR -448[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	filltab
	mov	DWORD PTR -424[rbp], 0
	mov	DWORD PTR -420[rbp], 0
	jmp	.L2
.L12:
	cmp	DWORD PTR -428[rbp], 32
	jne	.L3
	add	DWORD PTR -420[rbp], 1
	add	DWORD PTR -424[rbp], 1
	jmp	.L4
.L8:
	add	DWORD PTR -420[rbp], 1
	add	DWORD PTR -424[rbp], 1
	mov	eax, DWORD PTR -424[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR -420[rbp]
	and	eax, 3
	test	eax, eax
	je	.L5
	jmp	.L6
.L7:
	mov	edi, 32
	call	putchar@PLT
	sub	DWORD PTR -420[rbp], 1
.L6:
	cmp	DWORD PTR -420[rbp], 0
	jne	.L7
	jmp	.L4
.L5:
	cmp	DWORD PTR -420[rbp], 0
	je	.L4
	mov	eax, DWORD PTR -420[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L4
	mov	edi, 9
	call	putchar@PLT
	mov	DWORD PTR -420[rbp], 0
.L4:
	call	getchar@PLT
	mov	DWORD PTR -428[rbp], eax
	cmp	DWORD PTR -428[rbp], 32
	je	.L8
	jmp	.L9
.L10:
	mov	edi, 32
	call	putchar@PLT
	sub	DWORD PTR -420[rbp], 1
.L9:
	cmp	DWORD PTR -420[rbp], 0
	jne	.L10
.L3:
	cmp	DWORD PTR -428[rbp], 10
	jne	.L11
	mov	eax, DWORD PTR -428[rbp]
	mov	edi, eax
	call	putchar@PLT
	mov	DWORD PTR -424[rbp], 0
	mov	DWORD PTR -420[rbp], 0
	jmp	.L2
.L11:
	mov	eax, DWORD PTR -428[rbp]
	mov	edi, eax
	call	putchar@PLT
	add	DWORD PTR -424[rbp], 1
	mov	DWORD PTR -420[rbp], 0
.L2:
	call	getchar@PLT
	mov	DWORD PTR -428[rbp], eax
	cmp	DWORD PTR -428[rbp], -1
	jne	.L12
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"pos: %d\n"
	.text
	.globl	filltab
	.type	filltab, @function
filltab:
.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, 48
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	cmp	DWORD PTR -20[rbp], 1
	jg	.L21
	mov	DWORD PTR -8[rbp], 1
	jmp	.L17
.L19:
	mov	eax, DWORD PTR -8[rbp]
	and	eax, 3
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L18:
	add	DWORD PTR -8[rbp], 1
.L17:
	cmp	DWORD PTR -8[rbp], 99
	jle	.L19
	jmp	.L23
.L22:
	add	QWORD PTR -32[rbp], 8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L21:
	sub	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	je	.L23
	cmp	DWORD PTR -8[rbp], 99
	jle	.L22
.L23:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	filltab, .-filltab
	.globl	atoi
	.type	atoi, @function
atoi:
.LFB2:
	.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 -8[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L25
.L26:
	add	DWORD PTR -12[rbp], 1
.L25:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	jne	.L26
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L27
	mov	eax, -1
	jmp	.L28
.L27:
	mov	eax, 1
.L28:
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L29
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 43
	jne	.L31
.L29:
	add	DWORD PTR -12[rbp], 1
	jmp	.L31
.L32:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -12[rbp], 1
.L31:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L32
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	atoi, .-atoi
	.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	"406916.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 = 424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #424
	str	r0, [fp, #-424]
	str	r1, [fp, #-428]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #408
	mov	r2, #400
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #408
	mov	r2, r3
	ldr	r1, [fp, #-428]
	ldr	r0, [fp, #-424]
	bl	filltab
	mov	r3, #0
	str	r3, [fp, #-416]
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L2
.L12:
	ldr	r3, [fp, #-420]
	cmp	r3, #32
	bne	.L3
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
	b	.L4
.L8:
	ldr	r3, [fp, #-412]
	add	r3, r3, #1
	str	r3, [fp, #-412]
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
	ldr	r3, [fp, #-416]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-412]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L5
	b	.L6
.L7:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-412]
	sub	r3, r3, #1
	str	r3, [fp, #-412]
.L6:
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	bne	.L7
	b	.L4
.L5:
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-412]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L4
	mov	r0, #9
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-412]
.L4:
	bl	getchar
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	cmp	r3, #32
	beq	.L8
	b	.L9
.L10:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-412]
	sub	r3, r3, #1
	str	r3, [fp, #-412]
.L9:
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	bne	.L10
.L3:
	ldr	r3, [fp, #-420]
	cmp	r3, #10
	bne	.L11
	ldr	r0, [fp, #-420]
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-416]
	mov	r3, #0
	str	r3, [fp, #-412]
	b	.L2
.L11:
	ldr	r0, [fp, #-420]
	bl	putchar
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
	mov	r3, #0
	str	r3, [fp, #-412]
.L2:
	bl	getchar
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	cmn	r3, #1
	bne	.L12
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pos: %d\012\000"
	.text
	.align	2
	.global	filltab
	.syntax unified
	.arm
	.fpu softvfp
	.type	filltab, %function
filltab:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L23
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L19
.L21:
	ldr	r3, [fp, #-12]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L20:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L21
	b	.L25
.L24:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L26
	bl	printf
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L23:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-12]
	cmp	r3, #99
	ble	.L24
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC1
	.size	filltab, .-filltab
	.align	2
	.global	atoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	atoi, %function
atoi:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L29
.L30:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L29:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L31
	mvn	r3, #0
	b	.L32
.L31:
	mov	r3, #1
.L32:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L33
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #43
	bne	.L35
.L33:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L35
.L36:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r1, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L35:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L36
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	atoi, .-atoi
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
