	.file	"723355.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"update port = %x\n"
	.text
	.globl	update_port
	.type	update_port, @function
update_port:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	movss	DWORD PTR -12[rbp], xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR -12[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 4[rax], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	update_port, .-update_port
	.section	.rodata
.LC1:
	.string	"read port = %x\n"
	.text
	.globl	read_port
	.type	read_port, @function
read_port:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 4[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	movss	xmm0, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, 1
	jmp	.L4
.L3:
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	read_port, .-read_port
	.globl	ports
	.bss
	.align 32
	.type	ports, @object
	.size	ports, 80
ports:
	.zero	80
	.text
	.globl	add_fn
	.type	add_fn, @function
add_fn:
.LFB2:
	.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
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_port
	test	al, al
	je	.L6
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, 8[rax]
	lea	rax, -12[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	read_port
	test	al, al
	je	.L6
	movss	xmm1, DWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR -12[rbp]
	addss	xmm1, xmm0
	movd	edx, xmm1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	movd	xmm0, edx
	mov	rdi, rax
	call	update_port
	mov	eax, 0
	jmp	.L8
.L6:
	mov	eax, 1
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	add_fn, .-add_fn
	.globl	scale_fn
	.type	scale_fn, @function
scale_fn:
.LFB3:
	.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
	movss	xmm0, DWORD PTR .LC2[rip]
	movss	DWORD PTR -12[rbp], xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_port
	test	al, al
	je	.L11
	movss	xmm0, DWORD PTR -16[rbp]
	mulss	xmm0, DWORD PTR -12[rbp]
	movd	edx, xmm0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	movd	xmm0, edx
	mov	rdi, rax
	call	update_port
	mov	eax, 0
	jmp	.L13
.L11:
	mov	eax, 1
.L13:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	scale_fn, .-scale_fn
	.globl	filter_ctx
	.bss
	.align 4
	.type	filter_ctx, @object
	.size	filter_ctx, 4
filter_ctx:
	.zero	4
	.text
	.globl	filter_fn
	.type	filter_fn, @function
filter_fn:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	read_port
	test	al, al
	je	.L16
	mov	rax, QWORD PTR -16[rbp]
	movss	xmm1, DWORD PTR [rax]
	movss	xmm0, DWORD PTR -24[rbp]
	addss	xmm0, xmm1
	movss	xmm1, DWORD PTR .LC3[rip]
	divss	xmm0, xmm1
	movss	DWORD PTR -20[rbp], xmm0
	mov	rax, QWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR -20[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	edx, DWORD PTR -20[rbp]
	movd	xmm0, edx
	mov	rdi, rax
	call	update_port
	mov	eax, 0
	jmp	.L18
.L16:
	mov	eax, 1
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	filter_fn, .-filter_fn
	.globl	chain
	.section	.rodata
.LC4:
	.string	"add"
.LC5:
	.string	"scale"
.LC6:
	.string	"filter"
	.section	.data.rel.local,"aw"
	.align 32
	.type	chain, @object
	.size	chain, 192
chain:
	.long	0
	.zero	4
	.quad	.LC4
	.quad	ports
	.quad	2
	.quad	ports+16
	.quad	1
	.quad	add_fn
	.zero	8
	.long	1
	.zero	4
	.quad	.LC5
	.quad	ports+16
	.quad	1
	.quad	ports+24
	.quad	1
	.quad	scale_fn
	.zero	8
	.long	1
	.zero	4
	.quad	.LC6
	.quad	ports+24
	.quad	1
	.quad	ports+32
	.quad	1
	.quad	filter_fn
	.quad	filter_ctx
	.text
	.globl	process_block
	.type	process_block, @function
process_block:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	process_block, .-process_block
	.section	.rodata
.LC7:
	.string	"Block %s inputs = ["
.LC8:
	.string	"NEW"
.LC9:
	.string	"STALE"
.LC10:
	.string	"(%f, %s)"
.LC11:
	.string	", "
.LC12:
	.string	"]"
	.text
	.globl	print_block_inputs
	.type	print_block_inputs, @function
print_block_inputs:
.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	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	je	.L24
	lea	rax, .LC8[rip]
	jmp	.L25
.L24:
	lea	rax, .LC9[rip]
.L25:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 16[rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	movss	xmm0, DWORD PTR [rdx]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rsi, rax
	movq	xmm0, rdx
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	sub	rax, 1
	cmp	rdx, rax
	je	.L26
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	cmp	rdx, rax
	jb	.L27
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_block_inputs, .-print_block_inputs
	.section	.rodata
.LC13:
	.string	"Block %s outputs = ["
	.text
	.globl	print_block_outputs
	.type	print_block_outputs, @function
print_block_outputs:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L29
.L33:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	movzx	eax, BYTE PTR 4[rax]
	test	al, al
	je	.L30
	lea	rax, .LC8[rip]
	jmp	.L31
.L30:
	lea	rax, .LC9[rip]
.L31:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 32[rdx]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	movss	xmm0, DWORD PTR [rdx]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rdx, xmm1
	mov	rsi, rax
	movq	xmm0, rdx
	lea	rdi, .LC10[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	sub	rax, 1
	cmp	rdx, rax
	je	.L32
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L32:
	add	DWORD PTR -4[rbp], 1
.L29:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	cmp	rdx, rax
	jb	.L33
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_block_outputs, .-print_block_outputs
	.section	.rodata
.LC14:
	.string	"Num in chain = %i\n"
	.text
	.globl	process_chain
	.type	process_chain, @function
process_chain:
.LFB8:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L35
.L38:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	print_block_inputs
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	process_block
	test	eax, eax
	je	.L36
	mov	eax, 1
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 6
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	print_block_outputs
	add	DWORD PTR -4[rbp], 1
.L35:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	ja	.L38
	mov	eax, 1
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	process_chain, .-process_chain
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	QWORD PTR -48[rbp], rsi
	lea	rax, ports[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, ports[rip+8]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, ports[rip+16]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	jmp	.L40
.L41:
	pxor	xmm1, xmm1
	cvtsi2ss	xmm1, DWORD PTR -28[rbp]
	movd	edx, xmm1
	mov	rax, QWORD PTR -24[rbp]
	movd	xmm0, edx
	mov	rdi, rax
	call	update_port
	mov	rax, QWORD PTR -16[rbp]
	movss	xmm0, DWORD PTR .LC15[rip]
	mov	rdi, rax
	call	update_port
	mov	esi, 3
	lea	rdi, chain[rip]
	call	process_chain
	add	DWORD PTR -28[rbp], 1
.L40:
	cmp	DWORD PTR -28[rbp], 99
	jle	.L41
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC2:
	.long	1078523331
	.align 4
.LC3:
	.long	1073741824
	.align 4
.LC15:
	.long	1092616192
	.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	"723355.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"update port = %x\012\000"
	.text
	.align	2
	.global	update_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_port, %function
update_port:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]	@ float
	ldr	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-8]
	mov	r2, #1
	strb	r2, [r3, #4]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	update_port, .-update_port
	.section	.rodata
	.align	2
.LC1:
	.ascii	"read port = %x\012\000"
	.text
	.align	2
	.global	read_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_port, %function
read_port:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, .L7
	bl	printf
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-12]
	str	r2, [r3]	@ float
	mov	r3, #1
	b	.L6
.L5:
	mov	r3, #0
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.size	read_port, .-read_port
	.global	ports
	.bss
	.align	2
	.type	ports, %object
	.size	ports, 80
ports:
	.space	80
	.global	__aeabi_fadd
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	add_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_fn, %function
add_fn:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	read_port
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	add	r3, r3, #8
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	read_port
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #16]
	ldr	r3, [fp, #-24]	@ float
	ldr	r2, [fp, #-20]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	update_port
	mov	r3, #0
	b	.L12
.L10:
	mov	r3, #1
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.size	add_fn, .-add_fn
	.global	__aeabi_fmul
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scale_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	scale_fn, %function
scale_fn:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L21+4
	str	r3, [fp, #-20]	@ float
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	read_port
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #16]
	ldr	r3, [fp, #-24]	@ float
	ldr	r1, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	update_port
	mov	r3, #0
	b	.L19
.L17:
	mov	r3, #1
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.word	1078523331
	.size	scale_fn, .-scale_fn
	.global	filter_ctx
	.bss
	.align	2
	.type	filter_ctx, %object
	.size	filter_ctx, 4
filter_ctx:
	.space	4
	.global	__aeabi_fdiv
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	filter_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	filter_fn, %function
filter_fn:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	read_port
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]	@ float
	ldr	r2, [fp, #-20]	@ float
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, #1073741824
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	str	r3, [fp, #-12]	@ float
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]	@ float
	str	r2, [r3]	@ float
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r1, [fp, #-12]	@ float
	mov	r0, r3
	bl	update_port
	mov	r3, #0
	b	.L26
.L24:
	mov	r3, #1
.L26:
	ldr	r2, .L28
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC4
	.size	filter_fn, .-filter_fn
	.global	chain
	.section	.rodata
	.align	2
.LC5:
	.ascii	"add\000"
	.align	2
.LC6:
	.ascii	"scale\000"
	.align	2
.LC7:
	.ascii	"filter\000"
	.data
	.align	2
	.type	chain, %object
	.size	chain, 96
chain:
	.word	0
	.word	.LC5
	.word	ports
	.word	2
	.word	ports+16
	.word	1
	.word	add_fn
	.space	4
	.word	1
	.word	.LC6
	.word	ports+16
	.word	1
	.word	ports+24
	.word	1
	.word	scale_fn
	.space	4
	.word	1
	.word	.LC7
	.word	ports+24
	.word	1
	.word	ports+32
	.word	1
	.word	filter_fn
	.word	filter_ctx
	.text
	.align	2
	.global	process_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_block, %function
process_block:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	ldr	r0, [fp, #-8]
	blx	r3
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	process_block, .-process_block
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Block %s inputs = [\000"
	.global	__aeabi_f2d
	.align	2
.LC9:
	.ascii	"NEW\000"
	.align	2
.LC10:
	.ascii	"STALE\000"
	.align	2
.LC11:
	.ascii	"(%f, %s)\000"
	.align	2
.LC12:
	.ascii	", \000"
	.align	2
.LC13:
	.ascii	"]\000"
	.text
	.align	2
	.global	print_block_inputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_block_inputs, %function
print_block_inputs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L38
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L33
.L37:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-16]
	ldr	r0, [r1, #8]
	ldr	r1, [fp, #-8]
	lsl	r1, r1, #3
	add	r1, r0, r1
	ldrb	r1, [r1, #4]	@ zero_extendqisi2
	cmp	r1, #0
	beq	.L34
	ldr	r1, .L38+4
	b	.L35
.L34:
	ldr	r1, .L38+8
.L35:
	str	r1, [sp]
	ldr	r0, .L38+12
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L36
	ldr	r0, .L38+16
	bl	printf
.L36:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L33:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L37
	ldr	r0, .L38+20
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	print_block_inputs, .-print_block_inputs
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Block %s outputs = [\000"
	.text
	.align	2
	.global	print_block_outputs
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_block_outputs, %function
print_block_outputs:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L46
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L45:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, [fp, #-16]
	ldr	r0, [r1, #16]
	ldr	r1, [fp, #-8]
	lsl	r1, r1, #3
	add	r1, r0, r1
	ldrb	r1, [r1, #4]	@ zero_extendqisi2
	cmp	r1, #0
	beq	.L42
	ldr	r1, .L46+4
	b	.L43
.L42:
	ldr	r1, .L46+8
.L43:
	str	r1, [sp]
	ldr	r0, .L46+12
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	beq	.L44
	ldr	r0, .L46+16
	bl	printf
.L44:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bhi	.L45
	ldr	r0, .L46+20
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC14
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	print_block_outputs, .-print_block_outputs
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Num in chain = %i\012\000"
	.text
	.align	2
	.global	process_chain
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_chain, %function
process_chain:
	@ 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	r1, [fp, #-20]
	ldr	r0, .L53
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L49
.L52:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	print_block_inputs
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	process_block
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	mov	r3, #1
	b	.L51
.L50:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	bl	print_block_outputs
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bhi	.L52
	mov	r3, #1
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC15
	.size	process_chain, .-process_chain
	.global	__aeabi_i2f
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L59
	str	r3, [fp, #-16]
	ldr	r3, .L59+4
	str	r3, [fp, #-12]
	ldr	r3, .L59+8
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L56
.L57:
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	update_port
	ldr	r1, .L59+12
	ldr	r0, [fp, #-12]
	bl	update_port
	mov	r1, #3
	ldr	r0, .L59+16
	bl	process_chain
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	ldr	r3, [fp, #-20]
	cmp	r3, #99
	ble	.L57
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	ports
	.word	ports+8
	.word	ports+16
	.word	1092616192
	.word	chain
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
