	.file	"342801.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%ld\n"
	.text
	.globl	GetDemand
	.type	GetDemand, @function
GetDemand:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	GetDemand, .-GetDemand
	.section	.rodata
.LC2:
	.string	"r"
.LC3:
	.string	"sis1.dat"
.LC4:
	.string	"Cannot open input file %s\n"
.LC7:
	.string	"\nfor %ld time intervals "
	.align 8
.LC8:
	.string	"with an average demand of %6.2f\n"
	.align 8
.LC9:
	.string	"and policy parameters (s, S) = (%d, %d)\n\n"
	.align 8
.LC10:
	.string	"   average order ............ = %6.2f\n"
	.align 8
.LC11:
	.string	"   setup frequency .......... = %6.2f\n"
	.align 8
.LC12:
	.string	"   average holding level .... = %6.2f\n"
	.align 8
.LC13:
	.string	"   average shortage level ... = %6.2f\n"
	.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, 96
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 80
	pxor	xmm0, xmm0
	movsd	QWORD PTR -48[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movsd	QWORD PTR -16[rbp], xmm0
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L14
.L12:
	add	QWORD PTR -88[rbp], 1
	cmp	QWORD PTR -80[rbp], 19
	jg	.L8
	mov	eax, 80
	sub	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	jmp	.L9
.L8:
	mov	QWORD PTR -72[rbp], 0
.L9:
	mov	rax, QWORD PTR -72[rbp]
	add	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	GetDemand
	mov	QWORD PTR -56[rbp], rax
	movsd	xmm1, QWORD PTR -16[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -56[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jle	.L10
	movsd	xmm1, QWORD PTR -40[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -80[rbp]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, QWORD PTR -56[rbp]
	movsd	xmm2, QWORD PTR .LC6[rip]
	mulsd	xmm2, xmm3
	subsd	xmm0, xmm2
	addsd	xmm0, xmm1
	movsd	QWORD PTR -40[rbp], xmm0
	jmp	.L11
.L10:
	movsd	xmm2, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -80[rbp]
	imul	rax, rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -56[rbp]
	movapd	xmm3, xmm0
	addsd	xmm3, xmm0
	divsd	xmm1, xmm3
	movapd	xmm0, xmm1
	addsd	xmm0, xmm2
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm2, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -80[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -80[rbp]
	imul	rax, rdx
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -56[rbp]
	movapd	xmm3, xmm0
	addsd	xmm3, xmm0
	divsd	xmm1, xmm3
	movapd	xmm0, xmm1
	addsd	xmm0, xmm2
	movsd	QWORD PTR -32[rbp], xmm0
.L11:
	mov	rax, QWORD PTR -56[rbp]
	sub	QWORD PTR -80[rbp], rax
.L7:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L12
	cmp	QWORD PTR -80[rbp], 79
	jg	.L13
	mov	eax, 80
	sub	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	movsd	xmm1, QWORD PTR -48[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm1, QWORD PTR -24[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -72[rbp]
	add	QWORD PTR -80[rbp], rax
.L13:
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm0, QWORD PTR -16[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 1
	call	printf@PLT
	mov	edx, 80
	mov	esi, 20
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	movsd	xmm0, QWORD PTR -24[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -48[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC11[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -40[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC12[rip]
	mov	eax, 1
	call	printf@PLT
	movsd	xmm0, QWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, QWORD PTR -88[rbp]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1072693248
	.align 8
.LC6:
	.long	0
	.long	1071644672
	.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	"342801.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%ld\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetDemand
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetDemand, %function
GetDemand:
	@ 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]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L4+4
	ldr	r0, [fp, #-16]
	bl	__isoc99_fscanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC1
	.word	.LC0
	.size	GetDemand, .-GetDemand
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"sis1.dat\000"
	.align	2
.LC4:
	.ascii	"Cannot open input file %s\012\000"
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_ddiv
	.align	2
.LC5:
	.ascii	"\012for %ld time intervals \000"
	.align	2
.LC6:
	.ascii	"with an average demand of %6.2f\012\000"
	.align	2
.LC7:
	.ascii	"and policy parameters (s, S) = (%d, %d)\012\012\000"
	.align	2
.LC8:
	.ascii	"   average order ............ = %6.2f\012\000"
	.align	2
.LC9:
	.ascii	"   setup frequency .......... = %6.2f\012\000"
	.align	2
.LC10:
	.ascii	"   average holding level .... = %6.2f\012\000"
	.align	2
.LC11:
	.ascii	"   average shortage level ... = %6.2f\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #80
	str	r3, [fp, #-76]
	sub	r3, fp, #60
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L17
	ldr	r0, .L17+4
	bl	fopen
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17+4
	ldr	r1, .L17+12
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L16
.L14:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-76]
	cmp	r3, #19
	bgt	.L10
	ldr	r3, [fp, #-76]
	rsb	r3, r3, #80
	str	r3, [fp, #-72]
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L17+16
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-72]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L11
.L10:
	mov	r3, #0
	str	r3, [fp, #-72]
.L11:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	str	r3, [fp, #-76]
	ldr	r0, [fp, #-68]
	bl	GetDemand
	str	r0, [fp, #-64]
	sub	r5, fp, #28
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	ble	.L12
	sub	r5, fp, #52
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L17+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	b	.L13
.L12:
	sub	r5, fp, #52
	ldmia	r5, {r4-r5}
	ldr	r3, [fp, #-76]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	ldr	r1, [fp, #-64]
	ldr	r2, [fp, #-76]
	sub	r2, r1, r2
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
.L13:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-76]
.L9:
	ldr	r0, [fp, #-68]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-76]
	cmp	r3, #79
	bgt	.L15
	ldr	r3, [fp, #-76]
	rsb	r3, r3, #80
	str	r3, [fp, #-72]
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	mov	r2, #0
	ldr	r3, .L17+16
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-72]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-72]
	add	r3, r2, r3
	str	r3, [fp, #-76]
.L15:
	ldr	r1, [fp, #-80]
	ldr	r0, .L17+24
	bl	printf
	sub	r5, fp, #28
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L17+28
	bl	printf
	mov	r2, #80
	mov	r1, #20
	ldr	r0, .L17+32
	bl	printf
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L17+36
	bl	printf
	sub	r5, fp, #60
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L17+40
	bl	printf
	sub	r5, fp, #52
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L17+44
	bl	printf
	sub	r5, fp, #44
	ldmia	r5, {r4-r5}
	ldr	r0, [fp, #-80]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L17+48
	bl	printf
	ldr	r0, [fp, #-68]
	bl	fclose
	mov	r3, #0
.L16:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	1072693248
	.word	1071644672
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
