	.file	"293851.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"malloc"
	.text
	.type	from_string, @function
from_string:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 12[rax]
	mov	eax, eax
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	from_string, .-from_string
	.section	.rodata
.LC1:
	.string	"%s: invalid length %lu\n"
.LC2:
	.string	"%s: bad bit %d\n"
	.text
	.type	from_std_logic_vector, @function
from_std_logic_vector:
.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -16[rbp], 0
	cmp	QWORD PTR -48[rbp], 64
	jbe	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, rdx
	lea	rdx, __func__.4[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L6
.L10:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 2
	jne	.L7
	mov	BYTE PTR -17[rbp], 0
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 3
	jne	.L9
	mov	BYTE PTR -17[rbp], 1
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, edx
	lea	rdx, __func__.4[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	BYTE PTR -17[rbp], 0
.L8:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, [rax+rax]
	movzx	eax, BYTE PTR -17[rbp]
	or	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	add	QWORD PTR -40[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L6:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L10
	mov	rax, QWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	from_std_logic_vector, .-from_std_logic_vector
	.type	to_std_logic_vector, @function
to_std_logic_vector:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	cmp	QWORD PTR -40[rbp], 64
	jbe	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, rdx
	lea	rdx, __func__.3[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	QWORD PTR -8[rbp], 0
	jmp	.L14
.L17:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	sub	eax, 1
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 3
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 2
.L16:
	add	QWORD PTR -32[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L14:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jb	.L17
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	to_std_logic_vector, .-to_std_logic_vector
	.local	behavioural_regions
	.comm	behavioural_regions,3072,32
	.local	region_nr
	.comm	region_nr,8,8
	.section	.rodata
	.align 8
.LC3:
	.string	"%s: too many regions, bump MAX_REGIONS\n"
.LC4:
	.string	"%s: could not open %s\n"
.LC5:
	.string	"fstat"
.LC6:
	.string	"mmap"
.LC7:
	.string	"%s: mmap(MAP_FIXED) failed\n"
	.text
	.globl	behavioural_initialize
	.type	behavioural_initialize, @function
behavioural_initialize:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR region_nr[rip]
	cmp	rax, 128
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __func__.2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rdx, QWORD PTR region_nr[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, behavioural_regions[rip]
	add	rax, rdx
	mov	QWORD PTR -200[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	from_string
	mov	rdx, QWORD PTR -200[rbp]
	mov	QWORD PTR [rdx], rax
	call	getpagesize@PLT
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -240[rbp]
	lea	rbx, [rdx+rax]
	call	getpagesize@PLT
	neg	eax
	cdqe
	and	rbx, rax
	mov	rdx, rbx
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L20
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rdx
	lea	rdx, __func__.2[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -212[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L21
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	rbx, QWORD PTR -128[rbp]
	call	getpagesize@PLT
	sub	eax, 1
	cdqe
	add	rbx, rax
	call	getpagesize@PLT
	neg	eax
	cdqe
	and	rax, rbx
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -192[rbp], rax
	jnb	.L22
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	r9d, 0
	mov	r8d, -1
	mov	ecx, 34
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -208[rbp], rax
	cmp	QWORD PTR -208[rbp], -1
	jne	.L23
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	cmp	QWORD PTR -192[rbp], 0
	je	.L24
	mov	rdx, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	edx, DWORD PTR -212[rbp]
	mov	rsi, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR -208[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 18
	mov	edx, 3
	mov	rdi, rax
	call	mmap@PLT
	mov	QWORD PTR -184[rbp], rax
	cmp	QWORD PTR -184[rbp], -1
	jne	.L25
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	mov	rax, QWORD PTR -184[rbp]
	cmp	rax, QWORD PTR -208[rbp]
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __func__.2[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	edx, DWORD PTR -212[rbp]
	mov	rax, QWORD PTR -192[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 2
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -208[rbp], rax
	cmp	QWORD PTR -208[rbp], -1
	jne	.L24
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rdx, QWORD PTR region_nr[rip]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rcx, rax
	lea	rdx, behavioural_regions[rip+16]
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR region_nr[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR region_nr[rip], rdx
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	behavioural_initialize, .-behavioural_initialize
	.section	.rodata
.LC8:
	.string	"%s: bad index %d\n"
	.align 8
.LC9:
	.string	"%s: bad memory access %lx %lx\n"
	.text
	.globl	behavioural_read
	.type	behavioural_read, @function
behavioural_read:
.LFB10:
	.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
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	QWORD PTR -40[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	from_std_logic_vector
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR region_nr[rip]
	cmp	rdx, rax
	jbe	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -76[rbp]
	mov	ecx, edx
	lea	rdx, __func__.1[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, behavioural_regions[rip]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -32[rbp], 0
	jmp	.L30
.L32:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jbe	.L31
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, __func__.1[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -32[rbp]
	sal	eax, 3
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	QWORD PTR -40[rbp], rax
	add	QWORD PTR -32[rbp], 1
.L30:
	cmp	QWORD PTR -32[rbp], 7
	jbe	.L32
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 64
	mov	rsi, rcx
	mov	rdi, rax
	call	to_std_logic_vector
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	behavioural_read, .-behavioural_read
	.globl	behavioural_write
	.type	behavioural_write, @function
behavioural_write:
.LFB11:
	.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
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -68[rbp], edx
	mov	DWORD PTR -72[rbp], ecx
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	from_std_logic_vector
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	from_std_logic_vector
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR region_nr[rip]
	cmp	rdx, rax
	jbe	.L34
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -72[rbp]
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	lea	rdx, behavioural_regions[rip]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L35
.L39:
	mov	eax, DWORD PTR -68[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, edx
	shr	rax, cl
	and	eax, 1
	test	rax, rax
	je	.L40
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jbe	.L38
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L38:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	sal	eax, 3
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L37
.L40:
	nop
.L37:
	add	QWORD PTR -40[rbp], 1
.L35:
	cmp	QWORD PTR -40[rbp], 7
	jbe	.L39
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	behavioural_write, .-behavioural_write
	.section	.rodata
	.align 16
	.type	__func__.4, @object
	.size	__func__.4, 22
__func__.4:
	.string	"from_std_logic_vector"
	.align 16
	.type	__func__.3, @object
	.size	__func__.3, 20
__func__.3:
	.string	"to_std_logic_vector"
	.align 16
	.type	__func__.2, @object
	.size	__func__.2, 23
__func__.2:
	.string	"behavioural_initialize"
	.align 16
	.type	__func__.1, @object
	.size	__func__.1, 17
__func__.1:
	.string	"behavioural_read"
	.align 16
	.type	__func__.0, @object
	.size	__func__.0, 18
__func__.0:
	.string	"behavioural_write"
	.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	"293851.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"malloc\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	from_string, %function
from_string:
	@ 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, [fp, #-24]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	from_string, .-from_string
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s: invalid length %lu\012\000"
	.align	2
.LC2:
	.ascii	"%s: bad bit %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	from_std_logic_vector, %function
from_std_logic_vector:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	cmp	r3, #64
	bls	.L7
	ldr	r3, .L14
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r2, .L14+4
	ldr	r1, .L14+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L7:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L12:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L9
	mov	r3, #0
	strb	r3, [fp, #-13]
	b	.L10
.L9:
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L11
	mov	r3, #1
	strb	r3, [fp, #-13]
	b	.L10
.L11:
	ldr	r3, .L14
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L14+4
	ldr	r1, .L14+12
	bl	fprintf
	mov	r3, #0
	strb	r3, [fp, #-13]
.L10:
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #1
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L8:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L12
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r3, #0
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	stderr
	.word	__func__.6125
	.word	.LC1
	.word	.LC2
	.size	from_std_logic_vector, .-from_std_logic_vector
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_std_logic_vector, %function
to_std_logic_vector:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #64
	bls	.L17
	ldr	r3, .L22
	ldr	r0, [r3]
	ldr	r3, [fp, #-24]
	ldr	r2, .L22+4
	ldr	r1, .L22+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L18
.L21:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	sub	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	lsr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-20]
	mov	r2, #3
	strb	r2, [r3]
	b	.L20
.L19:
	ldr	r3, [fp, #-20]
	mov	r2, #2
	strb	r2, [r3]
.L20:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L18:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcc	.L21
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stderr
	.word	__func__.6136
	.word	.LC1
	.size	to_std_logic_vector, .-to_std_logic_vector
	.local	behavioural_regions
	.comm	behavioural_regions,1536,4
	.local	region_nr
	.comm	region_nr,4,4
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%s: too many regions, bump MAX_REGIONS\012\000"
	.align	2
.LC4:
	.ascii	"%s: could not open %s\012\000"
	.align	2
.LC5:
	.ascii	"fstat\000"
	.align	2
.LC6:
	.ascii	"mmap\000"
	.align	2
.LC7:
	.ascii	"%s: mmap(MAP_FIXED) failed\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	behavioural_initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	behavioural_initialize, %function
behavioural_initialize:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #140
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r3, #128
	bne	.L25
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, .L34+12
	ldr	r1, .L34+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L25:
	ldr	r3, .L34+4
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L34+20
	add	r3, r3, r2
	str	r3, [fp, #-124]
	ldr	r0, [fp, #-136]
	bl	from_string
	mov	r2, r0
	ldr	r3, [fp, #-124]
	str	r2, [r3]
	bl	getpagesize
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	add	r3, r2, r3
	sub	r4, r3, #1
	bl	getpagesize
	mov	r3, r0
	rsb	r3, r3, #0
	and	r2, r4, r3
	ldr	r3, [fp, #-124]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmn	r3, #1
	bne	.L26
	ldr	r3, .L34+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	ldr	r2, .L34+12
	ldr	r1, .L34+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L26:
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	ldr	r0, .L34+28
	bl	perror
	mov	r0, #1
	bl	exit
.L27:
	ldr	r4, [fp, #-64]
	bl	getpagesize
	mov	r3, r0
	sub	r3, r3, #1
	add	r4, r4, r3
	bl	getpagesize
	mov	r3, r0
	rsb	r3, r3, #0
	and	r3, r3, r4
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-116]
	cmp	r2, r3
	bcs	.L28
	ldr	r3, [fp, #-124]
	ldr	r1, [r3, #4]
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #34
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L34+32
	bl	perror
	mov	r0, #1
	bl	exit
.L29:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	beq	.L30
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-128]
	bl	munmap
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-120]
	str	r3, [sp]
	mov	r3, #18
	mov	r2, #3
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-128]
	bl	mmap
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L34+32
	bl	perror
	mov	r0, #1
	bl	exit
.L31:
	ldr	r2, [fp, #-112]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	beq	.L30
	ldr	r3, .L34+8
	ldr	r3, [r3]
	ldr	r2, .L34+12
	ldr	r1, .L34+36
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L28:
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-120]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #3
	ldr	r1, [fp, #-116]
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L34+32
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, .L34+4
	ldr	r2, [r3]
	ldr	r1, .L34+20
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #8
	ldr	r2, [fp, #-128]
	str	r2, [r3]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L34+4
	str	r2, [r1]
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC8
	.word	region_nr
	.word	stderr
	.word	__func__.6156
	.word	.LC3
	.word	behavioural_regions
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	behavioural_initialize, .-behavioural_initialize
	.section	.rodata
	.align	2
.LC9:
	.ascii	"%s: bad index %d\012\000"
	.align	2
.LC10:
	.ascii	"%s: bad memory access %lx %lx\012\000"
	.text
	.align	2
	.global	behavioural_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	behavioural_read, %function
behavioural_read:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r1, #64
	ldr	r0, [fp, #-36]
	bl	from_std_logic_vector
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	ldr	r3, .L41
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L37
	ldr	r3, .L41+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, .L41+8
	ldr	r1, .L41+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L37:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L41+16
	add	r3, r3, r2
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L38
.L40:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bls	.L39
	ldr	r3, .L41+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L41+8
	ldr	r1, .L41+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L39:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	lsl	r3, r2, r3
	ldr	r2, [fp, #-24]
	orr	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L38:
	ldr	r3, [fp, #-20]
	cmp	r3, #7
	bls	.L40
	mov	r2, #64
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	to_std_logic_vector
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	region_nr
	.word	stderr
	.word	__func__.6168
	.word	.LC9
	.word	behavioural_regions
	.word	.LC10
	.size	behavioural_read, .-behavioural_read
	.align	2
	.global	behavioural_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	behavioural_write, %function
behavioural_write:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r1, #64
	ldr	r0, [fp, #-32]
	bl	from_std_logic_vector
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	str	r3, [fp, #-20]
	mov	r1, #64
	ldr	r0, [fp, #-36]
	bl	from_std_logic_vector
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-44]
	ldr	r3, .L51
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L44
	ldr	r3, .L51+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	ldr	r2, .L51+8
	ldr	r1, .L51+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L44:
	ldr	r2, [fp, #-44]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L51+16
	add	r3, r3, r2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L45
.L49:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	lsr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L50
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bls	.L48
	ldr	r3, .L51+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L51+8
	ldr	r1, .L51+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L48:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	lsr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	b	.L47
.L50:
	nop
.L47:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L45:
	ldr	r3, [fp, #-24]
	cmp	r3, #7
	bls	.L49
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	region_nr
	.word	stderr
	.word	__func__.6183
	.word	.LC9
	.word	behavioural_regions
	.word	.LC10
	.size	behavioural_write, .-behavioural_write
	.section	.rodata
	.align	2
	.type	__func__.6125, %object
	.size	__func__.6125, 22
__func__.6125:
	.ascii	"from_std_logic_vector\000"
	.align	2
	.type	__func__.6136, %object
	.size	__func__.6136, 20
__func__.6136:
	.ascii	"to_std_logic_vector\000"
	.align	2
	.type	__func__.6156, %object
	.size	__func__.6156, 23
__func__.6156:
	.ascii	"behavioural_initialize\000"
	.align	2
	.type	__func__.6168, %object
	.size	__func__.6168, 17
__func__.6168:
	.ascii	"behavioural_read\000"
	.align	2
	.type	__func__.6183, %object
	.size	__func__.6183, 18
__func__.6183:
	.ascii	"behavioural_write\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
