	.file	"847681.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"cannot open %s\n"
.LC2:
	.string	" "
.LC3:
	.string	"CONSTANT"
.LC4:
	.string	"ZEROS"
.LC5:
	.string	"cannot allocate memery"
.LC7:
	.string	"POLES"
	.align 8
.LC6:
	.long	0
	.long	0
	.long	0
	.long	0
	.text
	.globl	parse_sacpz
	.type	parse_sacpz, @function
parse_sacpz:
.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, 640
	mov	QWORD PTR -600[rbp], rdi
	mov	QWORD PTR -608[rbp], rsi
	mov	QWORD PTR -616[rbp], rdx
	mov	QWORD PTR -624[rbp], rcx
	mov	QWORD PTR -632[rbp], r8
	mov	QWORD PTR -640[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -600[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -560[rbp], rax
	cmp	QWORD PTR -560[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -600[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L16
.L2:
	mov	DWORD PTR -580[rbp], 0
	mov	DWORD PTR -576[rbp], 0
	mov	DWORD PTR -568[rbp], 0
	mov	DWORD PTR -564[rbp], 0
	jmp	.L4
.L15:
	lea	rax, -528[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	rdx, QWORD PTR -640[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -632[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -632[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -624[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -624[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L16
.L7:
	mov	DWORD PTR -572[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -572[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR [rax], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip+8]
	movsd	QWORD PTR 8[rax], xmm0
	add	DWORD PTR -572[rbp], 1
.L8:
	mov	rax, QWORD PTR -632[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -572[rbp], eax
	jl	.L9
	mov	DWORD PTR -580[rbp], 1
	mov	DWORD PTR -576[rbp], 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rdx, QWORD PTR -616[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -616[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -608[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -608[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L11
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L16
.L11:
	mov	DWORD PTR -572[rbp], 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -608[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -572[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	movsd	xmm0, QWORD PTR .LC6[rip]
	movsd	QWORD PTR [rax], xmm0
	movsd	xmm0, QWORD PTR .LC6[rip+8]
	movsd	QWORD PTR 8[rax], xmm0
	add	DWORD PTR -572[rbp], 1
.L12:
	mov	rax, QWORD PTR -616[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -572[rbp], eax
	jl	.L13
	mov	DWORD PTR -580[rbp], 0
	mov	DWORD PTR -576[rbp], 1
	jmp	.L4
.L10:
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -544[rbp], rax
	lea	rsi, .LC2[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -552[rbp], rax
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -536[rbp], rax
	cmp	DWORD PTR -576[rbp], 1
	jne	.L14
	movsd	xmm0, QWORD PTR -536[rbp]
	pxor	xmm1, xmm1
	mulsd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR -608[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -564[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	movsd	QWORD PTR [rax], xmm1
	movsd	QWORD PTR 8[rax], xmm0
	add	DWORD PTR -564[rbp], 1
	jmp	.L4
.L14:
	cmp	DWORD PTR -580[rbp], 1
	jne	.L4
	movsd	xmm0, QWORD PTR -536[rbp]
	pxor	xmm1, xmm1
	mulsd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR -624[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -568[rbp]
	cdqe
	sal	rax, 4
	add	rax, rdx
	movsd	QWORD PTR [rax], xmm1
	movsd	QWORD PTR 8[rax], xmm0
	add	DWORD PTR -568[rbp], 1
.L4:
	mov	rdx, QWORD PTR -560[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L15
	mov	rax, QWORD PTR -560[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	parse_sacpz, .-parse_sacpz
	.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	"847681.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"cannot open %s\012\000"
	.align	2
.LC2:
	.ascii	" \000"
	.align	2
.LC3:
	.ascii	"CONSTANT\000"
	.align	2
.LC4:
	.ascii	"ZEROS\000"
	.align	2
.LC5:
	.ascii	"cannot allocate memery\000"
	.align	2
.LC7:
	.ascii	"POLES\000"
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.align	3
.LC6:
	.word	0
	.word	0
	.word	0
	.word	0
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	parse_sacpz
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_sacpz, %function
parse_sacpz:
	@ args = 8, pretend = 0, frame = 592
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #592
	str	r0, [fp, #-592]
	str	r1, [fp, #-596]
	str	r2, [fp, #-600]
	str	r3, [fp, #-604]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-608]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-612]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r1, .L18+4
	ldr	r0, [fp, #-592]
	bl	fopen
	str	r0, [fp, #-564]
	ldr	r3, [fp, #-564]
	cmp	r3, #0
	bne	.L2
	ldr	r1, [fp, #-592]
	ldr	r0, .L18+8
	bl	printf
	mvn	r3, #0
	b	.L16
.L2:
	mov	r3, #0
	str	r3, [fp, #-584]
	mov	r3, #0
	str	r3, [fp, #-580]
	mov	r3, #0
	str	r3, [fp, #-572]
	mov	r3, #0
	str	r3, [fp, #-568]
	b	.L4
.L15:
	sub	r3, fp, #536
	ldr	r1, .L18+12
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-560]
	ldr	r1, .L18+16
	ldr	r0, [fp, #-560]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r1, .L18+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-560]
	ldr	r0, [fp, #-560]
	bl	atof
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-612]
	stm	r1, {r2-r3}
	b	.L4
.L5:
	ldr	r1, .L18+20
	ldr	r0, [fp, #-560]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r1, .L18+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-560]
	ldr	r0, [fp, #-560]
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-608]
	str	r2, [r3]
	ldr	r3, [fp, #-608]
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-604]
	str	r2, [r3]
	ldr	r3, [fp, #-604]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L18+24
	bl	puts
	mvn	r3, #0
	b	.L16
.L7:
	mov	r3, #0
	str	r3, [fp, #-576]
	b	.L8
.L9:
	ldr	r3, [fp, #-604]
	ldr	r2, [r3]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #4
	add	r1, r2, r3
	ldr	r0, .L18+28
	ldmia	r0, {r2-r3}
	stm	r1, {r2-r3}
	add	r3, r0, #8
	ldmia	r3, {r2-r3}
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-576]
	add	r3, r3, #1
	str	r3, [fp, #-576]
.L8:
	ldr	r3, [fp, #-608]
	ldr	r3, [r3]
	ldr	r2, [fp, #-576]
	cmp	r2, r3
	blt	.L9
	mov	r3, #1
	str	r3, [fp, #-584]
	mov	r3, #0
	str	r3, [fp, #-580]
	b	.L4
.L6:
	ldr	r1, .L18+32
	ldr	r0, [fp, #-560]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	ldr	r1, .L18+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-560]
	ldr	r0, [fp, #-560]
	bl	atoi
	mov	r2, r0
	ldr	r3, [fp, #-600]
	str	r2, [r3]
	ldr	r3, [fp, #-600]
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-596]
	str	r2, [r3]
	ldr	r3, [fp, #-596]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r0, .L18+24
	bl	puts
	mvn	r3, #0
	b	.L16
.L11:
	mov	r3, #0
	str	r3, [fp, #-576]
	b	.L12
.L13:
	ldr	r3, [fp, #-596]
	ldr	r2, [r3]
	ldr	r3, [fp, #-576]
	lsl	r3, r3, #4
	add	r1, r2, r3
	ldr	r0, .L18+28
	ldmia	r0, {r2-r3}
	stm	r1, {r2-r3}
	add	r3, r0, #8
	ldmia	r3, {r2-r3}
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r3, [fp, #-576]
	add	r3, r3, #1
	str	r3, [fp, #-576]
.L12:
	ldr	r3, [fp, #-600]
	ldr	r3, [r3]
	ldr	r2, [fp, #-576]
	cmp	r2, r3
	blt	.L13
	mov	r3, #0
	str	r3, [fp, #-584]
	mov	r3, #1
	str	r3, [fp, #-580]
	b	.L4
.L10:
	ldr	r0, [fp, #-560]
	bl	atof
	str	r0, [fp, #-556]
	str	r1, [fp, #-552]
	ldr	r1, .L18+12
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-560]
	ldr	r0, [fp, #-560]
	bl	atof
	str	r0, [fp, #-548]
	str	r1, [fp, #-544]
	ldr	r3, [fp, #-580]
	cmp	r3, #1
	bne	.L14
	sub	r5, fp, #548
	ldmia	r5, {r4-r5}
	mov	r2, #0
	mov	r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #556
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-596]
	ldr	r2, [r3]
	ldr	r3, [fp, #-568]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r6, r0
	mov	r7, r1
	mov	r0, r4
	mov	r1, r5
	stm	r3, {r6-r7}
	str	r0, [r3, #8]
	str	r1, [r3, #12]
	ldr	r3, [fp, #-568]
	add	r3, r3, #1
	str	r3, [fp, #-568]
	b	.L4
.L14:
	ldr	r3, [fp, #-584]
	cmp	r3, #1
	bne	.L4
	sub	r5, fp, #548
	ldmia	r5, {r4-r5}
	mov	r2, #0
	mov	r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #556
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-604]
	ldr	r2, [r3]
	ldr	r3, [fp, #-572]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	r6, r0
	mov	r7, r1
	mov	r0, r4
	mov	r1, r5
	stm	r3, {r6-r7}
	str	r0, [r3, #8]
	str	r1, [r3, #12]
	ldr	r3, [fp, #-572]
	add	r3, r3, #1
	str	r3, [fp, #-572]
.L4:
	sub	r3, fp, #536
	ldr	r2, [fp, #-564]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, [fp, #-564]
	bl	fclose
	mov	r3, #0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	parse_sacpz, .-parse_sacpz
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
