	.file	"34288.c"
	.intel_syntax noprefix
	.text
	.type	readUInt, @function
readUInt:
.LFB0:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -5[rbp], al
.L2:
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	movsx	eax, BYTE PTR -5[rbp]
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fgetc@PLT
	mov	BYTE PTR -5[rbp], al
	cmp	BYTE PTR -5[rbp], 10
	jne	.L2
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	readUInt, .-readUInt
	.type	z1, @function
z1:
.LFB1:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -4[rbp], eax
.L5:
	cmp	DWORD PTR -20[rbp], 4
	jg	.L6
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	z1, .-z1
	.type	z2, @function
z2:
.LFB2:
	.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	edx, eax
	mov	eax, 3435973837
	imul	rax, rdx
	shr	rax, 32
	mov	edx, eax
	shr	edx, 2
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	imul	rax, rax, 1374389535
	shr	rax, 32
	shr	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	imul	rax, rax, 274877907
	shr	rax, 32
	shr	eax, 3
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, eax
	mov	eax, 3518437209
	imul	rax, rcx
	shr	rax, 32
	shr	eax, 9
	lea	ecx, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	imul	rdx, rdx, 1334532239
	shr	rdx, 32
	sub	eax, edx
	shr	eax
	add	eax, edx
	shr	eax, 11
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	imul	rax, rax, 1125899907
	shr	rax, 32
	shr	eax, 12
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	imul	rax, rax, 1801439851
	shr	rax, 32
	shr	eax, 15
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	imul	rax, rax, 1441151881
	shr	rax, 32
	shr	eax, 17
	add	eax, edx
	add	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	imul	rdx, rdx, 316718723
	shr	rdx, 32
	sub	eax, edx
	shr	eax
	add	eax, edx
	shr	eax, 20
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	eax, 3689348815
	imul	rax, rsi
	shr	rax, 32
	shr	eax, 23
	add	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	eax, eax
	imul	rax, rax, 737869763
	shr	rax, 32
	shr	eax, 23
	lea	esi, [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	imul	rdx, rdx, 427399187
	shr	rdx, 32
	sub	eax, edx
	shr	eax
	add	eax, edx
	shr	eax, 27
	add	eax, esi
	add	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	z2, .-z2
	.type	z3, @function
z3:
.LFB3:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 3
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	add	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 274877907
	shr	rdx, 32
	sar	edx, 3
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	add	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 8
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	add	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 351843721
	shr	rdx, 32
	sar	edx, 8
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	add	ecx, eax
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1125899907
	shr	rdx, 32
	sar	edx, 12
	sar	eax, 31
	mov	esi, eax
	mov	eax, edx
	sub	eax, esi
	add	eax, ecx
	add	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1125899907
	shr	rdx, 32
	sar	edx, 12
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
.L11:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L12
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	z3, .-z3
	.globl	main
	.type	main, @function
main:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	readUInt
	mov	DWORD PTR -64[rbp], eax
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rcx, QWORD PTR stdin[rip]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	jmp	.L15
.L21:
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -60[rbp], eax
	jmp	.L16
.L17:
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, edx
	mov	DWORD PTR -60[rbp], eax
.L16:
	add	QWORD PTR -48[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L17
	add	QWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	z2
	mov	DWORD PTR -60[rbp], eax
	mov	DWORD PTR -56[rbp], 0
.L18:
	mov	edx, DWORD PTR -60[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -56[rbp], edx
	mov	edx, ecx
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	mov	eax, DWORD PTR -60[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jg	.L18
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	lea	ecx, 48[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L19:
	sub	DWORD PTR -56[rbp], 1
	cmp	DWORD PTR -56[rbp], 0
	jns	.L20
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	BYTE PTR [rax], 10
.L15:
	mov	eax, DWORD PTR -64[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -64[rbp], edx
	test	eax, eax
	jne	.L21
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rdx
	mov	rdx, rsi
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.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	"34288.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	readUInt, %function
readUInt:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
.L2:
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fgetc
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L2
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stdin
	.size	readUInt, .-readUInt
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	z1, %function
z1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L7
.L8:
	ldr	r3, [fp, #-16]
	ldr	r2, .L10
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bgt	.L8
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	1717986919
	.size	z1, .-z1
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	z2, %function
z2:
	@ 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	r3, [fp, #-8]
	ldr	r2, .L14
	umull	r1, r3, r2, r3
	lsr	r2, r3, #2
	ldr	r3, [fp, #-8]
	ldr	r1, .L14+4
	umull	r0, r3, r1, r3
	lsr	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, .L14+8
	umull	r0, r3, r1, r3
	lsr	r3, r3, #3
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r1, .L14+12
	umull	r0, r3, r1, r3
	lsr	r3, r3, #9
	add	r1, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r3, .L14+16
	umull	r0, r3, r2, r3
	sub	r2, r2, r3
	lsr	r2, r2, #1
	add	r3, r3, r2
	lsr	r2, r3, #11
	ldr	r3, [fp, #-8]
	ldr	r0, .L14+20
	umull	ip, r3, r0, r3
	lsr	r3, r3, #12
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r0, .L14+24
	umull	ip, r3, r0, r3
	lsr	r3, r3, #15
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r0, .L14+28
	umull	ip, r3, r0, r3
	lsr	r3, r3, #17
	add	r3, r2, r3
	add	r1, r1, r3
	ldr	r2, [fp, #-8]
	ldr	r3, .L14+32
	umull	r0, r3, r2, r3
	sub	r2, r2, r3
	lsr	r2, r2, #1
	add	r3, r3, r2
	lsr	r2, r3, #20
	ldr	r3, [fp, #-8]
	ldr	r0, .L14+36
	umull	ip, r3, r0, r3
	lsr	r3, r3, #23
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldr	r0, .L14+40
	umull	ip, r3, r0, r3
	lsr	r3, r3, #23
	add	r0, r2, r3
	ldr	r2, [fp, #-8]
	ldr	r3, .L14+44
	umull	ip, r3, r2, r3
	sub	r2, r2, r3
	lsr	r2, r2, #1
	add	r3, r3, r2
	lsr	r3, r3, #27
	add	r3, r0, r3
	add	r3, r1, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	-858993459
	.word	1374389535
	.word	274877907
	.word	-776530087
	.word	1334532239
	.word	1125899907
	.word	1801439851
	.word	1441151881
	.word	316718723
	.word	-605618481
	.word	737869763
	.word	427399187
	.size	z2, .-z2
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	z3, %function
z3:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L18:
	ldr	r3, [fp, #-16]
	ldr	r2, .L20
	smull	r1, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, .L20+4
	smull	r0, r1, r3, r1
	asr	r1, r1, #3
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, .L20+8
	smull	r0, r1, r3, r1
	asr	r1, r1, #3
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, .L20+12
	smull	r0, r1, r3, r1
	asr	r1, r1, #8
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, .L20+16
	smull	r0, r1, r3, r1
	asr	r1, r1, #8
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	ldr	r1, .L20+20
	smull	r0, r1, r3, r1
	asr	r1, r1, #12
	asr	r3, r3, #31
	sub	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L20+20
	smull	r1, r2, r3, r2
	asr	r2, r2, #12
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L21:
	.align	2
.L20:
	.word	1717986919
	.word	1374389535
	.word	274877907
	.word	1759218605
	.word	351843721
	.word	1125899907
	.size	z3, .-z3
	.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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	readUInt
	str	r0, [fp, #-48]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-28]
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fread
	b	.L23
.L29:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-36]
	b	.L24
.L25:
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r2, r3
	str	r3, [fp, #-36]
.L24:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L25
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-36]
	mov	r0, r3
	bl	z2
	mov	r3, r0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
.L26:
	ldr	r1, [fp, #-36]
	ldr	r3, .L32+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, [fp, #-32]
	add	r1, r3, #1
	str	r1, [fp, #-32]
	and	r2, r2, #255
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-16]
	ldr	r3, [fp, #-36]
	ldr	r2, .L32+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L26
	b	.L27
.L28:
	sub	r2, fp, #20
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-40]
	add	r1, r3, #1
	str	r1, [fp, #-40]
	add	r2, r2, #48
	and	r2, r2, #255
	strb	r2, [r3]
.L27:
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L28
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	mov	r2, #10
	strb	r2, [r3]
.L23:
	ldr	r3, [fp, #-48]
	sub	r2, r3, #1
	str	r2, [fp, #-48]
	cmp	r3, #0
	bne	.L29
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L32+12
	ldr	r3, [r3]
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	fwrite
	ldr	r0, [fp, #-24]
	bl	free
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	stdin
	.word	1717986919
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
