	.file	"412676.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d."
.LC1:
	.string	"%04d"
	.text
	.globl	print
	.type	print, @function
print:
.LFB6:
	.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	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 2
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jl	.L3
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print, .-print
	.globl	pi
	.type	pi, @function
pi:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 3
	lea	edx, 3[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 2
	add	eax, 3
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	mov	WORD PTR [rax], 4
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -20[rbp]
	movsd	xmm0, QWORD PTR .LC2[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	jmp	.L5
.L10:
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	DWORD PTR -28[rbp], eax
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	imul	eax, DWORD PTR -32[rbp]
	add	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 12
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 10000
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1759218605
	shr	rdx, 32
	sar	edx, 12
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -24[rbp], eax
	sub	DWORD PTR -28[rbp], 1
.L6:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L7
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -32[rbp]
	add	eax, eax
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	movzx	ecx, ax
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax, 10000
	add	eax, ecx
	mov	esi, edx
	mov	edi, eax
	call	div@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -28[rbp], 1
.L8:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L9
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	movzx	edx, WORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 2
	add	edx, 2
	mov	WORD PTR [rax], dx
	sub	DWORD PTR -32[rbp], 1
.L5:
	cmp	DWORD PTR -32[rbp], 0
	jg	.L10
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	print
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	pi, .-pi
	.section	.rodata
	.align 8
.LC2:
	.long	-1133871366
	.long	1076532084
	.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	"412676.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d.\000"
	.align	2
.LC1:
	.ascii	"%04d\000"
	.text
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.size	print, .-print
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pi
	.syntax unified
	.arm
	.fpu softvfp
	.type	pi, %function
pi:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	add	r3, r3, #3
	add	r2, r3, #3
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #2
	add	r3, r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	memset
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	mov	r2, #4
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-24]
	bl	__aeabi_i2d
	ldr	r2, .L14+4
	ldr	r3, .L14+8
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-36]
	b	.L7
.L12:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L8
.L9:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	mul	r3, r2, r3
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r3, .L14+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #12
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-28]
	ldr	r2, .L14+12
	smull	r1, r2, r3, r2
	asr	r2, r2, #12
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L8:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L9
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L10
.L11:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r1, r1, r3
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #1
	add	r2, r3, #1
	sub	r3, fp, #16
	mov	r0, r3
	bl	div
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L11
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	ldrh	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #2
	add	r2, r2, #2
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	str	r3, [fp, #-36]
.L7:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bgt	.L12
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-20]
	bl	print
	nop
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	-1133871366
	.word	1076532084
	.word	1759218605
	.size	pi, .-pi
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
