	.file	"150866.c"
	.intel_syntax noprefix
	.text
	.globl	doInputShaping
	.type	doInputShaping, @function
doInputShaping:
.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, 80
	movss	DWORD PTR -68[rbp], xmm0
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movss	xmm0, DWORD PTR .LC0[rip]
	movss	DWORD PTR -40[rbp], xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -32[rbp], xmm0
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -28[rbp], xmm0
	movss	xmm0, DWORD PTR .LC1[rip]
	movss	DWORD PTR -24[rbp], xmm0
	pxor	xmm0, xmm0
	movss	DWORD PTR -20[rbp], xmm0
	movss	xmm1, DWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR .LC2[rip]
	mulss	xmm0, xmm1
	movss	DWORD PTR -16[rbp], xmm0
	movss	xmm0, DWORD PTR -40[rbp]
	movss	DWORD PTR -12[rbp], xmm0
	mov	eax, DWORD PTR impulse_buffer_pos.1[rip]
	cmp	eax, -1
	jne	.L2
	mov	DWORD PTR -52[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	movss	xmm1, DWORD PTR -20[rbp+rax*4]
	movss	xmm0, DWORD PTR .LC4[rip]
	mulss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC0[rip]
	subss	xmm0, xmm1
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	call	ceil@PLT
	cvttsd2si	eax, xmm0
	mov	edx, DWORD PTR -52[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, impulse_buffer_pos.1[rip]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -52[rbp], 1
.L3:
	cmp	DWORD PTR -52[rbp], 2
	jle	.L4
.L2:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, impulse_buffer_pos.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, impulse_buffer_pos.1[rip]
	mov	DWORD PTR [rdx+rax], ecx
	add	DWORD PTR -48[rbp], 1
.L5:
	cmp	DWORD PTR -48[rbp], 2
	jle	.L6
	mov	DWORD PTR -44[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, impulse_buffer_pos.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 200
	jle	.L8
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, impulse_buffer_pos.1[rip]
	mov	DWORD PTR [rdx+rax], 0
.L8:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, impulse_buffer_pos.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shaped_output_buffer.0[rip]
	movss	xmm1, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	movss	xmm0, DWORD PTR -32[rbp+rax*4]
	mulss	xmm0, DWORD PTR -68[rbp]
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, impulse_buffer_pos.1[rip]
	mov	eax, DWORD PTR [rdx+rax]
	addss	xmm0, xmm1
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shaped_output_buffer.0[rip]
	movss	DWORD PTR [rdx+rax], xmm0
	add	DWORD PTR -44[rbp], 1
.L7:
	cmp	DWORD PTR -44[rbp], 2
	jle	.L9
	mov	eax, DWORD PTR impulse_buffer_pos.1[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shaped_output_buffer.0[rip]
	movss	xmm0, DWORD PTR [rdx+rax]
	movss	DWORD PTR -36[rbp], xmm0
	mov	eax, DWORD PTR impulse_buffer_pos.1[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, shaped_output_buffer.0[rip]
	pxor	xmm0, xmm0
	movss	DWORD PTR [rdx+rax], xmm0
	movss	xmm0, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	doInputShaping, .-doInputShaping
	.section	.rodata
	.align 8
.LC6:
	.string	"sample: %d \t\t x = %.2f \t shaped = %.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, 1648
	mov	DWORD PTR -1636[rbp], edi
	mov	QWORD PTR -1648[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1620[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -1620[rbp]
	cdqe
	movss	xmm0, DWORD PTR .LC5[rip]
	movss	DWORD PTR -1616[rbp+rax*4], xmm0
	mov	eax, DWORD PTR -1620[rbp]
	cdqe
	mov	eax, DWORD PTR -1616[rbp+rax*4]
	movd	xmm0, eax
	call	doInputShaping
	movd	eax, xmm0
	mov	edx, DWORD PTR -1620[rbp]
	movsx	rdx, edx
	mov	DWORD PTR -816[rbp+rdx*4], eax
	mov	eax, DWORD PTR -1620[rbp]
	cdqe
	movss	xmm0, DWORD PTR -816[rbp+rax*4]
	cvtss2sd	xmm0, xmm0
	mov	eax, DWORD PTR -1620[rbp]
	cdqe
	movss	xmm1, DWORD PTR -1616[rbp+rax*4]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rdx, xmm2
	mov	eax, DWORD PTR -1620[rbp]
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 2
	call	printf@PLT
	add	DWORD PTR -1620[rbp], 1
.L13:
	cmp	DWORD PTR -1620[rbp], 199
	jle	.L14
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.data
	.align 8
	.type	impulse_buffer_pos.1, @object
	.size	impulse_buffer_pos.1, 12
impulse_buffer_pos.1:
	.long	-1
	.zero	8
	.local	shaped_output_buffer.0
	.comm	shaped_output_buffer.0,800,32
	.section	.rodata
	.align 4
.LC0:
	.long	1065353216
	.align 4
.LC1:
	.long	1048576000
	.align 4
.LC2:
	.long	1056964608
	.align 4
.LC4:
	.long	1112014848
	.align 4
.LC5:
	.long	1120403456
	.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	"150866.c"
	.text
	.global	__aeabi_fmul
	.global	__aeabi_fsub
	.global	__aeabi_f2d
	.global	__aeabi_d2iz
	.global	__aeabi_fadd
	.section	.rodata
	.align	2
.LC0:
	.word	1048576000
	.word	1056964608
	.word	1048576000
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	doInputShaping
	.syntax unified
	.arm
	.fpu softvfp
	.type	doInputShaping, %function
doInputShaping:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-64]	@ float
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1065353216
	str	r3, [fp, #-48]	@ float
	ldr	r2, .L12+4
	sub	r3, fp, #40
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, #0
	str	r3, [fp, #-28]	@ float
	mov	r1, #1056964608
	ldr	r0, [fp, #-48]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	str	r3, [fp, #-24]	@ float
	ldr	r3, [fp, #-48]	@ float
	str	r3, [fp, #-20]	@ float
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L3
.L4:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-16]	@ float
	ldr	r1, .L12+12
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, #1065353216
	mov	r0, r3
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	ceil
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r1, .L12+8
	ldr	r3, [fp, #-60]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L3:
	ldr	r3, [fp, #-60]
	cmp	r3, #2
	ble	.L4
.L2:
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L5
.L6:
	ldr	r2, .L12+8
	ldr	r3, [fp, #-56]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L12+8
	ldr	r3, [fp, #-56]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L5:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L6
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L7
.L9:
	ldr	r2, .L12+8
	ldr	r3, [fp, #-52]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #200
	ble	.L8
	ldr	r2, .L12+8
	ldr	r3, [fp, #-52]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
.L8:
	ldr	r2, .L12+8
	ldr	r3, [fp, #-52]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L12+16
	ldr	r5, [r2, r3, lsl #2]	@ float
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-28]	@ float
	ldr	r1, [fp, #-64]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L12+8
	ldr	r3, [fp, #-52]
	ldr	r4, [r2, r3, lsl #2]
	mov	r0, r5
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L12+16
	str	r2, [r3, r4, lsl #2]	@ float
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L7:
	ldr	r3, [fp, #-52]
	cmp	r3, #2
	ble	.L9
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, .L12+16
	ldr	r3, [r2, r3, lsl #2]	@ float
	str	r3, [fp, #-44]	@ float
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, .L12+16
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]	@ float
	ldr	r3, [fp, #-44]	@ float
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.word	impulse_buffer_pos.5643
	.word	1112014848
	.word	shaped_output_buffer.5642
	.size	doInputShaping, .-doInputShaping
	.section	.rodata
	.align	2
.LC2:
	.ascii	"sample: %d \011\011 x = %.2f \011 shaped = %.2f\012"
	.ascii	"\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1616
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1616
	sub	sp, sp, #8
	str	r0, [fp, #-1624]
	str	r1, [fp, #-1628]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1620]
	b	.L15
.L16:
	ldr	r3, [fp, #-1620]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L19+4
	str	r2, [r3, #-1604]	@ float
	ldr	r3, [fp, #-1620]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-1604]	@ float
	mov	r0, r3
	bl	doInputShaping
	mov	r2, r0
	ldr	r3, [fp, #-1620]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-804]	@ float
	ldr	r3, [fp, #-1620]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-1604]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-1620]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-804]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r1, [fp, #-1620]
	ldr	r0, .L19+8
	bl	printf
	ldr	r3, [fp, #-1620]
	add	r3, r3, #1
	str	r3, [fp, #-1620]
.L15:
	ldr	r3, [fp, #-1620]
	cmp	r3, #199
	ble	.L16
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	1120403456
	.word	.LC2
	.size	main, .-main
	.data
	.align	2
	.type	impulse_buffer_pos.5643, %object
	.size	impulse_buffer_pos.5643, 12
impulse_buffer_pos.5643:
	.word	-1
	.space	8
	.local	shaped_output_buffer.5642
	.comm	shaped_output_buffer.5642,800,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
