	.file	"212005.c"
	.intel_syntax noprefix
	.text
	.globl	TX
	.data
	.align 16
	.type	TX, @object
	.size	TX, 20
TX:
	.value	0
	.zero	2
	.long	2
	.byte	1
	.byte	0
	.byte	8
	.string	""
	.string	""
	.zero	6
	.byte	0
	.globl	RX
	.bss
	.align 16
	.type	RX, @object
	.size	RX, 20
RX:
	.zero	20
	.globl	fd_spi
	.align 4
	.type	fd_spi, @object
	.size	fd_spi, 4
fd_spi:
	.zero	4
	.globl	tx_sidh
	.type	tx_sidh, @object
	.size	tx_sidh, 1
tx_sidh:
	.zero	1
	.globl	fd_lidar
	.align 4
	.type	fd_lidar, @object
	.size	fd_lidar, 4
fd_lidar:
	.zero	4
	.globl	receives
	.data
	.align 8
	.type	receives, @object
	.size	receives, 8
receives:
	.string	""
	.string	""
	.string	""
	.ascii	"\001\002\003\004\005"
	.globl	options
	.type	options, @object
	.size	options, 1
options:
	.byte	1
	.globl	fname
	.bss
	.align 8
	.type	fname, @object
	.size	fname, 8
fname:
	.zero	8
	.globl	Lidar_Value
	.align 4
	.type	Lidar_Value, @object
	.size	Lidar_Value, 4
Lidar_Value:
	.zero	4
	.section	.rodata
.LC0:
	.string	"/dev/spidev1.0"
	.align 8
.LC1:
	.string	"shm_PmodToLidar generation failed"
	.align 8
.LC2:
	.string	"shm_PmodToLidar reference failed"
	.align 8
.LC3:
	.string	"shm_LidarToPmod generation failed"
	.align 8
.LC4:
	.string	"shm_LidarToPmod reference failed"
	.align 8
.LC5:
	.string	"shm_LidarValue generation failed"
	.align 8
.LC6:
	.string	"shm_LidarValue reference failed"
.LC7:
	.string	"pmodToLidarFlag"
.LC8:
	.string	"SEMA OPEN ERROR\n"
.LC9:
	.string	"lidarToPmodFlag"
.LC10:
	.string	"/dev/i2c-0"
.LC11:
	.string	"Lidar Failed"
.LC12:
	.string	"Slave Addr Connect Failed\n"
.LC13:
	.string	"Lidar Success"
.LC14:
	.string	"LLLLLLLLLLLLLLL VALUE : %d\n"
.LC15:
	.string	"pmodToInputFlag"
.LC16:
	.string	"inputToPmodFlag"
.LC17:
	.string	"/dev/uio0"
	.align 8
.LC18:
	.string	"Invalid UIO device file : %s.\n"
.LC19:
	.string	"Input Success"
.LC20:
	.string	"Spi Open Success\n"
.LC21:
	.string	"Spi Open Success"
	.align 8
.LC22:
	.string	"MCP25625 Initialized Successfully!"
.LC23:
	.string	"MCP25625 Initializing Error\n"
.LC24:
	.string	"Receive SUCCESS RX0IF= %d\n"
.LC25:
	.string	"rx_value"
	.align 8
.LC26:
	.string	"Standard ID : 0x%x DLC : %1d Data\n"
.LC27:
	.string	"Lidar =%d\n"
.LC28:
	.string	"Input =%d\n"
.LC29:
	.string	"Receive SUCCESS RX1IF=%d\n"
.LC30:
	.string	"Standard ID : 0x%x DLC : %1d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -192[rbp], rax
	mov	BYTE PTR -237[rbp], 0
	mov	DWORD PTR -232[rbp], 3
	mov	eax, DWORD PTR -232[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -184[rbp], rdx
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	movsx	rdx, eax
	mov	rsi, rdx
	mov	edi, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ecx, 16
	mov	edx, 0
	div	rcx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -176[rbp], rax
	mov	BYTE PTR -238[rbp], 0
	mov	DWORD PTR -228[rbp], 0
	mov	DWORD PTR -224[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	DWORD PTR -236[rbp], 0
	jmp	.L5
.L6:
	call	fork@PLT
	mov	ecx, eax
	mov	rax, QWORD PTR -176[rbp]
	mov	edx, DWORD PTR -236[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -236[rbp], 1
.L5:
	mov	eax, DWORD PTR -236[rbp]
	cmp	eax, DWORD PTR -232[rbp]
	jl	.L6
	mov	rax, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L7
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1234
	call	shmget@PLT
	mov	DWORD PTR -220[rbp], eax
	cmp	DWORD PTR -220[rbp], -1
	jne	.L8
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -220[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], -1
	jne	.L10
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L10:
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1236
	call	shmget@PLT
	mov	DWORD PTR -216[rbp], eax
	cmp	DWORD PTR -216[rbp], -1
	jne	.L11
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -216[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], -1
	jne	.L12
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L12:
	mov	edx, 950
	mov	esi, 4
	mov	edi, 1238
	call	shmget@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L13
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -212[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -128[rbp], rax
	cmp	QWORD PTR -128[rbp], -1
	jne	.L14
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L14:
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L15
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L15:
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L16
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L16:
	lea	rax, .LC10[rip]
	mov	QWORD PTR fname[rip], rax
	mov	rax, QWORD PTR fname[rip]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd_lidar[rip], eax
	mov	eax, DWORD PTR fd_lidar[rip]
	test	eax, eax
	jg	.L17
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L17:
	mov	eax, DWORD PTR fd_lidar[rip]
	mov	edx, 98
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L18
	lea	rdi, .LC12[rip]
	call	perror@PLT
.L18:
	mov	esi, 128
	mov	edi, 2
	call	lidar_write
	mov	esi, 8
	mov	edi, 4
	call	lidar_write
	mov	esi, 0
	mov	edi, 28
	call	lidar_write
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L24:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -120[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L19
	movzx	eax, BYTE PTR -238[rbp]
	add	eax, 1
	mov	BYTE PTR -238[rbp], al
	cmp	BYTE PTR -238[rbp], 99
	jne	.L20
	mov	BYTE PTR -238[rbp], 0
	movzx	eax, BYTE PTR options[rip]
	movzx	eax, al
	lea	rdx, receives[rip]
	mov	esi, eax
	mov	edi, 1
	call	measurement
	mov	eax, DWORD PTR Lidar_Value[rip]
	test	eax, eax
	jne	.L21
	movzx	eax, BYTE PTR options[rip]
	movzx	eax, al
	lea	rdx, receives[rip]
	mov	esi, eax
	mov	edi, 1
	call	measurement
.L21:
	mov	edx, DWORD PTR Lidar_Value[rip]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	edi, 3700
	call	usleep@PLT
	jmp	.L22
.L20:
	movzx	eax, BYTE PTR options[rip]
	movzx	eax, al
	lea	rdx, receives[rip]
	mov	esi, eax
	mov	edi, 0
	call	measurement
	mov	eax, DWORD PTR Lidar_Value[rip]
	test	eax, eax
	jne	.L23
	movzx	eax, BYTE PTR options[rip]
	movzx	eax, al
	lea	rdx, receives[rip]
	mov	esi, eax
	mov	edi, 1
	call	measurement
.L23:
	mov	edx, DWORD PTR Lidar_Value[rip]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], edx
	mov	edi, 3700
	call	usleep@PLT
.L22:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	BYTE PTR [rax], 1
.L19:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	jmp	.L24
.L7:
	mov	rax, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L25
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1235
	call	shmget@PLT
	mov	DWORD PTR -208[rbp], eax
	cmp	DWORD PTR -208[rbp], -1
	jne	.L26
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L26:
	mov	eax, DWORD PTR -208[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], -1
	jne	.L27
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L27:
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1237
	call	shmget@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], -1
	jne	.L28
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L28:
	mov	eax, DWORD PTR -204[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], -1
	jne	.L29
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L29:
	mov	edx, 950
	mov	esi, 4
	mov	edi, 1239
	call	shmget@PLT
	mov	DWORD PTR -200[rbp], eax
	cmp	DWORD PTR -200[rbp], -1
	jne	.L30
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L30:
	mov	eax, DWORD PTR -200[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -136[rbp], rax
	cmp	QWORD PTR -136[rbp], -1
	jne	.L31
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L31:
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L32
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L32:
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L33
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L33:
	lea	rax, .LC17[rip]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jg	.L34
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	call	usage
	mov	eax, -1
	jmp	.L9
.L34:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -196[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	esi, 65536
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 4
	mov	DWORD PTR [rax], 1023
.L36:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -112[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L35
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -96[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -112[rbp]
	mov	BYTE PTR [rax], 0
.L35:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	jmp	.L36
.L25:
	mov	rax, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L37
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1234
	call	shmget@PLT
	mov	DWORD PTR -220[rbp], eax
	cmp	DWORD PTR -220[rbp], -1
	jne	.L38
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L38:
	mov	eax, DWORD PTR -220[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], -1
	jne	.L39
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L39:
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1236
	call	shmget@PLT
	mov	DWORD PTR -216[rbp], eax
	cmp	DWORD PTR -216[rbp], -1
	jne	.L40
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L40:
	mov	eax, DWORD PTR -216[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	QWORD PTR -152[rbp], -1
	jne	.L41
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L41:
	mov	edx, 950
	mov	esi, 4
	mov	edi, 1238
	call	shmget@PLT
	mov	DWORD PTR -212[rbp], eax
	cmp	DWORD PTR -212[rbp], -1
	jne	.L42
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L42:
	mov	eax, DWORD PTR -212[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -128[rbp], rax
	cmp	QWORD PTR -128[rbp], -1
	jne	.L43
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L43:
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1235
	call	shmget@PLT
	mov	DWORD PTR -208[rbp], eax
	cmp	DWORD PTR -208[rbp], -1
	jne	.L44
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L44:
	mov	eax, DWORD PTR -208[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -160[rbp], rax
	cmp	QWORD PTR -160[rbp], -1
	jne	.L45
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L45:
	mov	edx, 950
	mov	esi, 1
	mov	edi, 1237
	call	shmget@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], -1
	jne	.L46
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L46:
	mov	eax, DWORD PTR -204[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], -1
	jne	.L47
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L47:
	mov	edx, 950
	mov	esi, 4
	mov	edi, 1239
	call	shmget@PLT
	mov	DWORD PTR -200[rbp], eax
	cmp	DWORD PTR -200[rbp], -1
	jne	.L48
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L48:
	mov	eax, DWORD PTR -200[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	shmat@PLT
	mov	QWORD PTR -136[rbp], rax
	cmp	QWORD PTR -136[rbp], -1
	jne	.L49
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L9
.L49:
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -144[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -120[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -112[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	BYTE PTR [rax], 0
	lea	rdi, .LC9[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC16[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC7[rip]
	call	sem_unlink@PLT
	lea	rdi, .LC15[rip]
	call	sem_unlink@PLT
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L50
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L50:
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L51
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L51:
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L52
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L52:
	mov	ecx, 1
	mov	edx, 511
	mov	esi, 64
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	sem_open@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L53
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L53:
	mov	rax, QWORD PTR -192[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd_spi[rip], eax
	mov	eax, DWORD PTR fd_spi[rip]
	test	eax, eax
	jns	.L54
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L54:
	lea	rdi, .LC21[rip]
	call	puts@PLT
	mov	edx, DWORD PTR fd_spi[rip]
	mov	rax, QWORD PTR -192[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	dumpstat
	mov	eax, DWORD PTR fd_spi[rip]
	mov	ecx, 0
	mov	edx, 4
	mov	esi, 3
	mov	edi, eax
	call	mcp25625_init
	test	al, al
	je	.L55
	lea	rdi, .LC22[rip]
	call	puts@PLT
	jmp	.L56
.L55:
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L56:
	mov	eax, DWORD PTR fd_spi[rip]
	mov	edi, eax
	call	mcp25625_readStatus
	mov	BYTE PTR RX[rip+19], al
	movzx	eax, BYTE PTR RX[rip+19]
	and	eax, 3
	mov	BYTE PTR RX[rip+19], al
	movzx	eax, BYTE PTR RX[rip+19]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L57
	movzx	eax, BYTE PTR tx_sidh[rip]
	sub	eax, 1
	movzx	esi, al
	mov	eax, DWORD PTR fd_spi[rip]
	mov	ecx, 0
	mov	edx, 8
	mov	edi, eax
	call	mcp25625_modifyRegister
	movzx	eax, BYTE PTR RX[rip+19]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fd_spi[rip]
	mov	r8d, 1
	lea	rcx, RX[rip+11]
	lea	rdx, RX[rip+9]
	lea	rsi, RX[rip]
	mov	edi, eax
	call	readMsgBuf
	test	al, al
	je	.L56
	mov	edi, 100
	call	usleep@PLT
	movzx	eax, BYTE PTR RX[rip+18]
	mov	BYTE PTR -237[rbp], al
	cmp	BYTE PTR -237[rbp], 70
	jne	.L56
	lea	rdi, .LC25[rip]
	call	puts@PLT
	movzx	eax, BYTE PTR RX[rip+9]
	movzx	edx, al
	movzx	eax, WORD PTR RX[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	nop
.L59:
	mov	rax, QWORD PTR -104[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L59
	mov	rax, QWORD PTR -96[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L59
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	mov	BYTE PTR TX[rip+11], al
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	sar	eax, 8
	and	eax, 3
	mov	BYTE PTR TX[rip+12], al
	mov	rax, QWORD PTR -104[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	sem_wait@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	mov	BYTE PTR TX[rip+17], al
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	sar	eax, 8
	and	eax, 3
	mov	BYTE PTR TX[rip+18], al
	mov	rax, QWORD PTR -96[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	sem_post@PLT
	movzx	eax, BYTE PTR TX[rip+10]
	movzx	r9d, al
	movzx	eax, BYTE PTR TX[rip+9]
	movzx	r8d, al
	movzx	eax, BYTE PTR TX[rip+8]
	movzx	ecx, al
	mov	edx, DWORD PTR TX[rip+4]
	movzx	eax, WORD PTR TX[rip]
	movzx	esi, ax
	mov	eax, DWORD PTR fd_spi[rip]
	sub	rsp, 8
	lea	rdi, TX[rip+11]
	push	rdi
	mov	edi, eax
	call	sendMsgBuf
	add	rsp, 16
	movzx	eax, BYTE PTR tx_sidh[rip]
	sub	eax, 1
	movzx	esi, al
	mov	eax, DWORD PTR fd_spi[rip]
	mov	ecx, 0
	mov	edx, 8
	mov	edi, eax
	call	mcp25625_modifyRegister
	movzx	eax, BYTE PTR TX[rip+11]
	movzx	edx, al
	movzx	eax, BYTE PTR TX[rip+12]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR TX[rip+17]
	movzx	edx, al
	movzx	eax, BYTE PTR TX[rip+18]
	movzx	eax, al
	sal	eax, 8
	or	eax, edx
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1000
	call	usleep@PLT
	jmp	.L56
.L57:
	movzx	eax, BYTE PTR RX[rip+19]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L56
	movzx	eax, BYTE PTR tx_sidh[rip]
	sub	eax, 1
	movzx	esi, al
	mov	eax, DWORD PTR fd_spi[rip]
	mov	ecx, 0
	mov	edx, 8
	mov	edi, eax
	call	mcp25625_modifyRegister
	movzx	eax, BYTE PTR RX[rip+19]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR fd_spi[rip]
	mov	r8d, 2
	lea	rcx, RX[rip+11]
	lea	rdx, RX[rip+9]
	lea	rsi, RX[rip]
	mov	edi, eax
	call	readMsgBuf
	movzx	eax, BYTE PTR RX[rip+9]
	movzx	edx, al
	movzx	eax, WORD PTR RX[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC30[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L56
.L37:
	mov	eax, 0
.L9:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC31:
	.string	" *argv[0] -d <UIO_DEV_FILE> -i|-o <VALUE>"
	.align 8
.LC32:
	.string	"\t-d\t\t\t\t\tUIO device file. e.g. /dev/uio0"
.LC33:
	.string	"\t-i\t\t\t\t\tINPUT from GPIO"
.LC34:
	.string	"\t-o <VALUE>\t\t\tOUTPUT to GPIO"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC31[rip]
	call	puts@PLT
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC33[rip]
	call	puts@PLT
	lea	rdi, .LC34[rip]
	call	puts@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	usage, .-usage
	.section	.rodata
.LC35:
	.string	"Write Reg Error"
.LC36:
	.string	"Read Reg Error"
	.text
	.globl	get_status
	.type	get_status, @function
get_status:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -9[rbp], 1
	mov	eax, DWORD PTR fd_lidar[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 1
	je	.L65
	lea	rdi, .LC35[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L68
.L65:
	mov	eax, DWORD PTR fd_lidar[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, 1
	je	.L67
	lea	rdi, .LC36[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L68
.L67:
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	and	eax, 1
.L68:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_status, .-get_status
	.section	.rodata
.LC37:
	.string	"Busy Count Time Out!"
	.text
	.globl	lidar_read
	.type	lidar_read, @function
lidar_read:
.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	eax, edi
	mov	DWORD PTR -40[rbp], esi
	mov	QWORD PTR -48[rbp], rdx
	mov	BYTE PTR -36[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR -36[rbp]
	mov	BYTE PTR -9[rbp], al
	mov	DWORD PTR -20[rbp], 1
	mov	DWORD PTR -16[rbp], 0
	jmp	.L71
.L72:
	call	get_status
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -16[rbp], 1
	cmp	DWORD PTR -16[rbp], 9999
	jbe	.L71
	lea	rdi, .LC37[rip]
	call	puts@PLT
.L71:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L72
	cmp	DWORD PTR -20[rbp], 0
	jne	.L76
	mov	eax, DWORD PTR fd_lidar[rip]
	lea	rcx, -9[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 1
	je	.L74
	lea	rdi, .LC35[rip]
	call	perror@PLT
.L74:
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR fd_lidar[rip]
	mov	rcx, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -40[rbp]
	cmp	rax, rdx
	je	.L76
	lea	rdi, .LC36[rip]
	call	perror@PLT
.L76:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	lidar_read, .-lidar_read
	.globl	lidar_write
	.type	lidar_write, @function
lidar_write:
.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, 32
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -24[rbp]
	mov	BYTE PTR -9[rbp], al
	mov	eax, DWORD PTR fd_lidar[rip]
	lea	rcx, -10[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, 2
	je	.L78
	lea	rdi, .LC35[rip]
	call	perror@PLT
.L78:
	mov	edi, 1000
	call	usleep@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L79
	call	__stack_chk_fail@PLT
.L79:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	lidar_write, .-lidar_write
	.globl	measurement
	.type	measurement, @function
measurement:
.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, 32
	mov	ecx, edi
	mov	eax, esi
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR -20[rbp], dl
	mov	BYTE PTR -24[rbp], al
	cmp	BYTE PTR -20[rbp], 0
	je	.L81
	mov	esi, 4
	mov	edi, 0
	call	lidar_write
	jmp	.L82
.L81:
	mov	esi, 3
	mov	edi, 0
	call	lidar_write
.L82:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, rax
	mov	esi, 8
	mov	edi, 137
	call	lidar_read
	mov	BYTE PTR -1[rbp], 1
	jmp	.L83
.L84:
	movzx	eax, BYTE PTR -1[rbp]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR -1[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L83:
	cmp	BYTE PTR -1[rbp], 5
	jbe	.L84
	movzx	eax, BYTE PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	display
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	measurement, .-measurement
	.globl	display
	.type	display, @function
display:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	BYTE PTR -4[rbp], al
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR Lidar_Value[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	display, .-display
	.globl	WAIT
	.type	WAIT, @function
WAIT:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L87
.L88:
	add	DWORD PTR -4[rbp], 1
.L87:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L88
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	WAIT, .-WAIT
	.section	.rodata
.LC38:
	.string	"Entering Configuration Mode.."
	.align 8
.LC39:
	.string	"Fail to Entering Configuration Mode.."
.LC40:
	.string	"Bitrate Setting Success!!"
.LC41:
	.string	"Fail to Setting Bitrate.."
.LC42:
	.string	"Entering to Normal Mode...!"
	.align 8
.LC43:
	.string	"Fail to Entering Normal Mode.."
	.text
	.globl	mcp25625_init
	.type	mcp25625_init, @function
mcp25625_init:
.LFB14:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, ecx
	mov	ecx, esi
	mov	BYTE PTR -8[rbp], cl
	mov	BYTE PTR -12[rbp], dl
	mov	BYTE PTR -16[rbp], al
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	mcp25625_reset
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 128
	mov	edi, eax
	call	mcp25625_setCANCTRL_Mode
	test	al, al
	je	.L90
	lea	rdi, .LC38[rip]
	call	puts@PLT
	movzx	edx, BYTE PTR -16[rbp]
	movzx	ecx, BYTE PTR -12[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	mcp25625_configRate
	test	al, al
	je	.L93
	jmp	.L97
.L90:
	lea	rdi, .LC39[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L92
.L97:
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	mcp25625_initCANBuffers
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 96
	mov	edx, 96
	mov	esi, 96
	mov	edi, eax
	call	mcp25625_modifyRegister
	mov	eax, DWORD PTR -4[rbp]
	mov	ecx, 96
	mov	edx, 96
	mov	esi, 112
	mov	edi, eax
	call	mcp25625_modifyRegister
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	mcp25625_setCANCTRL_Mode
	test	al, al
	je	.L95
	jmp	.L98
.L93:
	lea	rdi, .LC41[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L92
.L98:
	lea	rdi, .LC42[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L92
.L95:
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	eax, 0
.L92:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	mcp25625_init, .-mcp25625_init
	.globl	mcp25625_reset
	.type	mcp25625_reset, @function
mcp25625_reset:
.LFB15:
	.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -9[rbp], -64
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L100
	call	__stack_chk_fail@PLT
.L100:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	mcp25625_reset, .-mcp25625_reset
	.globl	mcp25625_setCANCTRL_Mode
	.type	mcp25625_setCANCTRL_Mode, @function
mcp25625_setCANCTRL_Mode:
.LFB16:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -24[rbp], al
	movzx	edx, BYTE PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, edx
	mov	edx, 224
	mov	esi, 15
	mov	edi, eax
	call	mcp25625_modifyRegister
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 15
	mov	edi, eax
	call	mcp25625_readRegister
	mov	BYTE PTR -1[rbp], al
	and	BYTE PTR -1[rbp], -32
	movzx	eax, BYTE PTR -1[rbp]
	cmp	al, BYTE PTR -24[rbp]
	jne	.L102
	mov	eax, 1
	jmp	.L103
.L102:
	mov	eax, 0
.L103:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	mcp25625_setCANCTRL_Mode, .-mcp25625_setCANCTRL_Mode
	.globl	mcp25625_configRate
	.type	mcp25625_configRate, @function
mcp25625_configRate:
.LFB17:
	.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	DWORD PTR -20[rbp], edi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -28[rbp], al
	mov	BYTE PTR -1[rbp], 1
	movzx	eax, BYTE PTR -28[rbp]
	cmp	eax, 2
	je	.L105
	cmp	eax, 2
	jg	.L106
	test	eax, eax
	je	.L107
	cmp	eax, 1
	je	.L108
	jmp	.L106
.L105:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	eax, 5
	ja	.L109
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L111[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L111[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L111:
	.long	.L116-.L111
	.long	.L115-.L111
	.long	.L114-.L111
	.long	.L113-.L111
	.long	.L112-.L111
	.long	.L110-.L111
	.text
.L116:
	mov	BYTE PTR -4[rbp], 3
	mov	BYTE PTR -3[rbp], -65
	mov	BYTE PTR -2[rbp], -121
	jmp	.L117
.L115:
	mov	BYTE PTR -4[rbp], 1
	mov	BYTE PTR -3[rbp], -65
	mov	BYTE PTR -2[rbp], -121
	jmp	.L117
.L114:
	mov	BYTE PTR -4[rbp], 1
	mov	BYTE PTR -3[rbp], -76
	mov	BYTE PTR -2[rbp], -122
	jmp	.L117
.L113:
	mov	BYTE PTR -4[rbp], 0
	mov	BYTE PTR -3[rbp], -76
	mov	BYTE PTR -2[rbp], -122
	jmp	.L117
.L112:
	mov	BYTE PTR -4[rbp], 0
	mov	BYTE PTR -3[rbp], -79
	mov	BYTE PTR -2[rbp], -123
	jmp	.L117
.L110:
	mov	BYTE PTR -4[rbp], 0
	mov	BYTE PTR -3[rbp], -112
	mov	BYTE PTR -2[rbp], -126
	jmp	.L117
.L109:
	mov	BYTE PTR -1[rbp], 0
	mov	eax, 0
	jmp	.L118
.L117:
	jmp	.L119
.L108:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	eax, 5
	ja	.L120
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L122[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L122[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L122:
	.long	.L127-.L122
	.long	.L126-.L122
	.long	.L125-.L122
	.long	.L124-.L122
	.long	.L123-.L122
	.long	.L121-.L122
	.text
.L127:
	mov	BYTE PTR -4[rbp], 7
	mov	BYTE PTR -3[rbp], -1
	mov	BYTE PTR -2[rbp], -121
	jmp	.L128
.L126:
	mov	BYTE PTR -4[rbp], 3
	mov	BYTE PTR -3[rbp], -1
	mov	BYTE PTR -2[rbp], -121
	jmp	.L128
.L125:
	mov	BYTE PTR -4[rbp], 3
	mov	BYTE PTR -3[rbp], -6
	mov	BYTE PTR -2[rbp], -121
	jmp	.L128
.L124:
	mov	BYTE PTR -4[rbp], 1
	mov	BYTE PTR -3[rbp], -6
	mov	BYTE PTR -2[rbp], -121
	jmp	.L128
.L123:
	mov	BYTE PTR -4[rbp], 65
	mov	BYTE PTR -3[rbp], -15
	mov	BYTE PTR -2[rbp], -123
	jmp	.L128
.L121:
	mov	BYTE PTR -4[rbp], 0
	mov	BYTE PTR -3[rbp], -16
	mov	BYTE PTR -2[rbp], -122
	jmp	.L128
.L120:
	mov	BYTE PTR -1[rbp], 0
	mov	eax, 0
	jmp	.L118
.L128:
	jmp	.L119
.L107:
	movzx	eax, BYTE PTR -24[rbp]
	cmp	eax, 5
	ja	.L129
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L131[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L131[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L131:
	.long	.L136-.L131
	.long	.L135-.L131
	.long	.L134-.L131
	.long	.L133-.L131
	.long	.L132-.L131
	.long	.L130-.L131
	.text
.L136:
	mov	BYTE PTR -4[rbp], 9
	mov	BYTE PTR -3[rbp], -1
	mov	BYTE PTR -2[rbp], -121
	jmp	.L137
.L135:
	mov	BYTE PTR -4[rbp], 4
	mov	BYTE PTR -3[rbp], -1
	mov	BYTE PTR -2[rbp], -121
	jmp	.L137
.L134:
	mov	BYTE PTR -4[rbp], 4
	mov	BYTE PTR -3[rbp], -6
	mov	BYTE PTR -2[rbp], -121
	jmp	.L137
.L133:
	mov	BYTE PTR -4[rbp], 1
	mov	BYTE PTR -3[rbp], -1
	mov	BYTE PTR -2[rbp], -121
	jmp	.L137
.L132:
	mov	BYTE PTR -4[rbp], 65
	mov	BYTE PTR -3[rbp], -5
	mov	BYTE PTR -2[rbp], -122
	jmp	.L137
.L130:
	mov	BYTE PTR -4[rbp], 0
	mov	BYTE PTR -3[rbp], -6
	mov	BYTE PTR -2[rbp], -121
	jmp	.L137
.L129:
	mov	BYTE PTR -1[rbp], 0
	mov	eax, 0
	jmp	.L118
.L137:
	jmp	.L119
.L106:
	mov	BYTE PTR -1[rbp], 0
	mov	eax, 0
	jmp	.L118
.L119:
	cmp	BYTE PTR -1[rbp], 0
	je	.L138
	movzx	edx, BYTE PTR -2[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 40
	mov	edi, eax
	call	mcp25625_setRegister
	mov	edi, 100
	call	WAIT
	movzx	edx, BYTE PTR -3[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 41
	mov	edi, eax
	call	mcp25625_setRegister
	mov	edi, 100
	call	WAIT
	movzx	edx, BYTE PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 42
	mov	edi, eax
	call	mcp25625_setRegister
	mov	edi, 100
	call	WAIT
	mov	eax, 1
	jmp	.L118
.L138:
	mov	eax, 0
.L118:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	mcp25625_configRate, .-mcp25625_configRate
	.globl	mcp25625_initCANBuffers
	.type	mcp25625_initCANBuffers, @function
mcp25625_initCANBuffers:
.LFB18:
	.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	DWORD PTR -20[rbp], edi
	mov	BYTE PTR -3[rbp], 0
	mov	BYTE PTR -2[rbp], 16
	mov	BYTE PTR -4[rbp], 0
	jmp	.L140
.L141:
	movzx	ecx, BYTE PTR -3[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	mcp25625_setRegister
	movzx	ecx, BYTE PTR -2[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	mcp25625_setRegister
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 1
	mov	BYTE PTR -4[rbp], al
.L140:
	cmp	BYTE PTR -4[rbp], 8
	jbe	.L141
	mov	BYTE PTR -3[rbp], 32
	mov	BYTE PTR -4[rbp], 0
	jmp	.L142
.L143:
	movzx	ecx, BYTE PTR -3[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	mcp25625_setRegister
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 1
	mov	BYTE PTR -4[rbp], al
.L142:
	cmp	BYTE PTR -4[rbp], 4
	jbe	.L143
	mov	BYTE PTR -3[rbp], 48
	mov	BYTE PTR -2[rbp], 64
	mov	BYTE PTR -1[rbp], 80
	mov	BYTE PTR -4[rbp], 0
	jmp	.L144
.L145:
	movzx	ecx, BYTE PTR -3[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	mcp25625_setRegister
	movzx	ecx, BYTE PTR -2[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	mcp25625_setRegister
	movzx	ecx, BYTE PTR -1[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	edi, eax
	call	mcp25625_setRegister
	movzx	eax, BYTE PTR -3[rbp]
	add	eax, 1
	mov	BYTE PTR -3[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	add	eax, 1
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 1
	mov	BYTE PTR -4[rbp], al
.L144:
	cmp	BYTE PTR -4[rbp], 10
	jbe	.L145
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 96
	mov	edi, eax
	call	mcp25625_setRegister
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 112
	mov	edi, eax
	call	mcp25625_setRegister
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	mcp25625_initCANBuffers, .-mcp25625_initCANBuffers
	.globl	mcp25625_modifyRegister
	.type	mcp25625_modifyRegister, @function
mcp25625_modifyRegister:
.LFB19:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, ecx
	mov	ecx, esi
	mov	BYTE PTR -24[rbp], cl
	mov	BYTE PTR -28[rbp], dl
	mov	BYTE PTR -32[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	edx, 4
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -12[rbp], 5
	movzx	eax, BYTE PTR -24[rbp]
	mov	BYTE PTR -11[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR -9[rbp], al
	lea	rcx, -12[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L147
	call	__stack_chk_fail@PLT
.L147:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	mcp25625_modifyRegister, .-mcp25625_modifyRegister
	.globl	mcp25625_readRegister
	.type	mcp25625_readRegister, @function
mcp25625_readRegister:
.LFB20:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -24[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -10[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -10[rbp], 3
	movzx	eax, BYTE PTR -24[rbp]
	mov	BYTE PTR -9[rbp], al
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	movzx	eax, BYTE PTR -10[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L150
	call	__stack_chk_fail@PLT
.L150:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	mcp25625_readRegister, .-mcp25625_readRegister
	.globl	mcp25625_setRegister
	.type	mcp25625_setRegister, @function
mcp25625_setRegister:
.LFB21:
	.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	DWORD PTR -20[rbp], edi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -11[rbp]
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -11[rbp], 2
	movzx	eax, BYTE PTR -24[rbp]
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -9[rbp], al
	lea	rcx, -11[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L152
	call	__stack_chk_fail@PLT
.L152:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	mcp25625_setRegister, .-mcp25625_setRegister
	.globl	mcp25625_getNextFreeTXBuf
	.type	mcp25625_getNextFreeTXBuf, @function
mcp25625_getNextFreeTXBuf:
.LFB22:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	WORD PTR -11[rbp], 16432
	mov	BYTE PTR -9[rbp], 80
	mov	BYTE PTR -13[rbp], 2
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], 0
	mov	BYTE PTR -14[rbp], 0
	jmp	.L154
.L157:
	movzx	eax, BYTE PTR -14[rbp]
	cdqe
	movzx	eax, BYTE PTR -11[rbp+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mcp25625_readRegister
	mov	BYTE PTR -12[rbp], al
	movzx	eax, BYTE PTR -12[rbp]
	and	eax, 8
	test	eax, eax
	jne	.L155
	movzx	eax, BYTE PTR -14[rbp]
	cdqe
	movzx	eax, BYTE PTR -11[rbp+rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	BYTE PTR -13[rbp], 1
	movzx	eax, BYTE PTR -13[rbp]
	jmp	.L158
.L155:
	movzx	eax, BYTE PTR -14[rbp]
	add	eax, 1
	mov	BYTE PTR -14[rbp], al
.L154:
	cmp	BYTE PTR -14[rbp], 2
	jbe	.L157
	movzx	eax, BYTE PTR -13[rbp]
.L158:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L159
	call	__stack_chk_fail@PLT
.L159:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	mcp25625_getNextFreeTXBuf, .-mcp25625_getNextFreeTXBuf
	.globl	mcp25625_write_data
	.type	mcp25625_write_data, @function
mcp25625_write_data:
.LFB23:
	.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	eax, esi
	mov	BYTE PTR -40[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR -17[rbp], al
	lea	rax, -11[rbp]
	mov	edx, 3
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -11[rbp], 2
	mov	DWORD PTR -16[rbp], 0
	jmp	.L161
.L162:
	movzx	eax, BYTE PTR -17[rbp]
	lea	edx, 1[rax]
	mov	BYTE PTR -17[rbp], dl
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, TX[rip+11]
	movzx	eax, BYTE PTR [rax+rdx]
	mov	BYTE PTR -9[rbp], al
	lea	rcx, -11[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 3
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	add	DWORD PTR -16[rbp], 1
.L161:
	movzx	eax, BYTE PTR TX[rip+10]
	movzx	eax, al
	cmp	DWORD PTR -16[rbp], eax
	jl	.L162
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L163
	call	__stack_chk_fail@PLT
.L163:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	mcp25625_write_data, .-mcp25625_write_data
	.globl	sendMsgBuf
	.type	sendMsgBuf, @function
sendMsgBuf:
.LFB24:
	.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 -20[rbp], edi
	mov	eax, esi
	mov	DWORD PTR -28[rbp], edx
	mov	edx, ecx
	mov	esi, r8d
	mov	ecx, r9d
	mov	WORD PTR -24[rbp], ax
	mov	eax, edx
	mov	BYTE PTR -32[rbp], al
	mov	eax, esi
	mov	BYTE PTR -36[rbp], al
	mov	eax, ecx
	mov	BYTE PTR -40[rbp], al
	movzx	r8d, BYTE PTR -40[rbp]
	movzx	edi, BYTE PTR -36[rbp]
	movzx	ecx, BYTE PTR -32[rbp]
	movzx	esi, WORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -20[rbp]
	sub	rsp, 8
	push	QWORD PTR 16[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	edi, eax
	call	setMsg
	add	rsp, 16
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	sendMsg
	mov	BYTE PTR -1[rbp], al
	movzx	eax, BYTE PTR -1[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	sendMsgBuf, .-sendMsgBuf
	.section	.rodata
.LC44:
	.string	"canID = %02x\n"
.LC45:
	.string	"canEID = %02x\n"
.LC46:
	.string	"canIDE = %02x\n"
.LC47:
	.string	"canRTR = %02x\n"
.LC48:
	.string	"canDLC = %02x\n"
.LC49:
	.string	"TX.Buf[%d] = %02x\n"
	.text
	.globl	setMsg
	.type	setMsg, @function
setMsg:
.LFB25:
	.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 -20[rbp], edi
	mov	eax, esi
	mov	DWORD PTR -28[rbp], edx
	mov	edx, ecx
	mov	esi, r8d
	mov	ecx, r9d
	mov	WORD PTR -24[rbp], ax
	mov	eax, edx
	mov	BYTE PTR -32[rbp], al
	mov	eax, esi
	mov	BYTE PTR -36[rbp], al
	mov	eax, ecx
	mov	BYTE PTR -40[rbp], al
	movzx	eax, WORD PTR -24[rbp]
	mov	WORD PTR TX[rip], ax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR TX[rip+4], eax
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR TX[rip+8], al
	movzx	eax, BYTE PTR -36[rbp]
	mov	BYTE PTR TX[rip+9], al
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR TX[rip+10], al
	mov	DWORD PTR -4[rbp], 0
	jmp	.L167
.L168:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR 16[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, TX[rip+11]
	mov	BYTE PTR [rax+rcx], dl
	add	DWORD PTR -4[rbp], 1
.L167:
	movzx	eax, BYTE PTR -40[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L168
	movzx	eax, WORD PTR TX[rip]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR TX[rip+4]
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR TX[rip+8]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR TX[rip+9]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC47[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR TX[rip+10]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC48[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L169
.L170:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, TX[rip+11]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC49[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L169:
	movzx	eax, BYTE PTR -40[rbp]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L170
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	setMsg, .-setMsg
	.section	.rodata
.LC50:
	.string	"selected txbuf = %02x\n"
	.text
	.globl	sendMsg
	.type	sendMsg, @function
sendMsg:
.LFB26:
	.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	DWORD PTR -20[rbp], edi
	mov	WORD PTR -2[rbp], 0
.L173:
	mov	eax, DWORD PTR -20[rbp]
	lea	rsi, tx_sidh[rip]
	mov	edi, eax
	call	mcp25625_getNextFreeTXBuf
	mov	BYTE PTR -4[rbp], al
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
	cmp	BYTE PTR -4[rbp], 2
	jne	.L172
	cmp	WORD PTR -2[rbp], 99
	jbe	.L173
.L172:
	movzx	eax, BYTE PTR tx_sidh[rip]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	WORD PTR -2[rbp], 100
	jne	.L174
	mov	eax, 6
	jmp	.L175
.L174:
	mov	WORD PTR -2[rbp], 0
	movzx	eax, BYTE PTR tx_sidh[rip]
	movzx	edx, al
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mcp25625_write_canMsg
	movzx	eax, BYTE PTR tx_sidh[rip]
	sub	eax, 1
	movzx	esi, al
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 8
	mov	edx, 8
	mov	edi, eax
	call	mcp25625_modifyRegister
.L177:
	movzx	eax, WORD PTR -2[rbp]
	add	eax, 1
	mov	WORD PTR -2[rbp], ax
	movzx	eax, BYTE PTR tx_sidh[rip]
	sub	eax, 1
	movzx	edx, al
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mcp25625_readRegister
	mov	BYTE PTR -3[rbp], al
	and	BYTE PTR -3[rbp], 8
	cmp	BYTE PTR -3[rbp], 0
	je	.L176
	cmp	WORD PTR -2[rbp], 99
	jbe	.L177
.L176:
	cmp	WORD PTR -2[rbp], 100
	jne	.L178
	mov	eax, 7
	jmp	.L175
.L178:
	mov	eax, 1
.L175:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	sendMsg, .-sendMsg
	.globl	mcp25625_write_canMsg
	.type	mcp25625_write_canMsg, @function
mcp25625_write_canMsg:
.LFB27:
	.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	eax, esi
	mov	BYTE PTR -40[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR -40[rbp]
	mov	BYTE PTR -24[rbp], al
	movzx	eax, BYTE PTR TX[rip+10]
	mov	BYTE PTR -23[rbp], al
	mov	BYTE PTR -25[rbp], -128
	lea	rax, -22[rbp]
	mov	edx, 14
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	movzx	ecx, BYTE PTR -24[rbp]
	lea	rdx, -22[rbp]
	lea	rsi, -25[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	mcp25625_setMsg
	lea	rcx, -25[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L180
	call	__stack_chk_fail@PLT
.L180:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	mcp25625_write_canMsg, .-mcp25625_write_canMsg
	.globl	mcp25625_setMsg
	.type	mcp25625_setMsg, @function
mcp25625_setMsg:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	eax, ecx
	mov	BYTE PTR -40[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR TX[rip+10]
	mov	BYTE PTR -19[rbp], al
	lea	rax, -12[rbp]
	mov	edx, 4
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR TX[rip+4]
	mov	WORD PTR -18[rbp], ax
	movzx	eax, WORD PTR -18[rbp]
	mov	BYTE PTR -9[rbp], al
	movzx	eax, WORD PTR -18[rbp]
	shr	ax, 8
	mov	BYTE PTR -10[rbp], al
	mov	eax, DWORD PTR TX[rip+4]
	shr	eax, 16
	mov	WORD PTR -18[rbp], ax
	movzx	eax, WORD PTR -18[rbp]
	and	eax, 3
	mov	BYTE PTR -11[rbp], al
	movzx	edx, BYTE PTR -11[rbp]
	movzx	eax, WORD PTR -18[rbp]
	sal	eax, 3
	and	eax, -32
	add	eax, edx
	mov	BYTE PTR -11[rbp], al
	movzx	eax, BYTE PTR -11[rbp]
	or	eax, 8
	mov	BYTE PTR -11[rbp], al
	movzx	eax, WORD PTR -18[rbp]
	shr	ax, 5
	mov	BYTE PTR -12[rbp], al
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR [rax], 64
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	movzx	eax, BYTE PTR -12[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 2[rax]
	movzx	eax, BYTE PTR -11[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 3[rax]
	movzx	eax, BYTE PTR -10[rbp]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 4[rax]
	movzx	eax, BYTE PTR -9[rbp]
	mov	BYTE PTR [rdx], al
	movzx	eax, BYTE PTR TX[rip+9]
	cmp	al, 1
	jne	.L182
	or	BYTE PTR -19[rbp], 64
.L182:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 5[rax]
	movzx	eax, BYTE PTR -19[rbp]
	mov	BYTE PTR [rdx], al
	mov	DWORD PTR -16[rbp], 0
	jmp	.L183
.L184:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 6[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rcx, TX[rip+11]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -16[rbp], 1
.L183:
	movzx	eax, BYTE PTR TX[rip+10]
	movzx	eax, al
	cmp	DWORD PTR -16[rbp], eax
	jl	.L184
	movzx	ecx, BYTE PTR -40[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	mcp25625_loadTXBuffer
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L185
	call	__stack_chk_fail@PLT
.L185:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	mcp25625_setMsg, .-mcp25625_setMsg
	.globl	mcp25625_loadTXBuffer
	.type	mcp25625_loadTXBuffer, @function
mcp25625_loadTXBuffer:
.LFB29:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	eax, ecx
	mov	BYTE PTR -24[rbp], al
	movzx	eax, BYTE PTR -24[rbp]
	sub	eax, 49
	cmp	eax, 37
	ja	.L187
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L189[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L189[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L189:
	.long	.L194-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L193-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L192-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L191-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L190-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L187-.L189
	.long	.L188-.L189
	.text
.L194:
	mov	BYTE PTR -1[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L187
.L193:
	mov	BYTE PTR -1[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L187
.L192:
	mov	BYTE PTR -1[rbp], 2
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L187
.L191:
	mov	BYTE PTR -1[rbp], 3
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L187
.L190:
	mov	BYTE PTR -1[rbp], 4
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L187
.L188:
	mov	BYTE PTR -1[rbp], 5
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	nop
.L187:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	or	al, BYTE PTR -1[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR TX[rip+10]
	movzx	eax, al
	lea	edx, 6[rax]
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	mcp25625_loadTXBuffer, .-mcp25625_loadTXBuffer
	.section	.rodata
.LC51:
	.string	"readMsgBuf FUNC"
.LC52:
	.string	"Receive Success"
.LC53:
	.string	"Receive Fail"
	.text
	.globl	readMsgBuf
	.type	readMsgBuf, @function
readMsgBuf:
.LFB30:
	.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	eax, r8d
	mov	BYTE PTR -8[rbp], al
	lea	rdi, .LC51[rip]
	call	puts@PLT
	movzx	edx, BYTE PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	readMsg
	cmp	al, 1
	jne	.L196
	movzx	edx, WORD PTR RX[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], dx
	movzx	edx, BYTE PTR RX[rip+9]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR RX[rip+8]
	test	al, al
	je	.L197
	mov	DWORD PTR RX[rip+4], -2147483648
.L197:
	lea	rdi, .LC52[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L198
.L196:
	lea	rdi, .LC53[rip]
	call	puts@PLT
	mov	eax, 0
.L198:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	readMsgBuf, .-readMsgBuf
	.section	.rodata
.LC54:
	.string	"readMsg FUNC"
	.text
	.globl	readMsg
	.type	readMsg, @function
readMsg:
.LFB31:
	.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	DWORD PTR -20[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -24[rbp], al
	lea	rdi, .LC54[rip]
	call	puts@PLT
	movzx	eax, BYTE PTR -24[rbp]
	mov	BYTE PTR -2[rbp], al
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 1
	test	eax, eax
	je	.L200
	mov	BYTE PTR -1[rbp], 0
	movzx	edx, BYTE PTR -1[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 97
	mov	edi, eax
	call	mcp25625_read_canMsg
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	esi, 44
	mov	edi, eax
	call	mcp25625_modifyRegister
	mov	BYTE PTR -3[rbp], 1
	jmp	.L201
.L200:
	movzx	eax, BYTE PTR -2[rbp]
	and	eax, 2
	test	eax, eax
	je	.L202
	mov	BYTE PTR -1[rbp], 1
	movzx	edx, BYTE PTR -1[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 113
	mov	edi, eax
	call	mcp25625_read_canMsg
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 44
	mov	edi, eax
	call	mcp25625_modifyRegister
	mov	BYTE PTR -3[rbp], 1
	jmp	.L201
.L202:
	mov	BYTE PTR -3[rbp], 0
.L201:
	movzx	eax, BYTE PTR -3[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	readMsg, .-readMsg
	.globl	mcp25625_readStatus
	.type	mcp25625_readStatus, @function
mcp25625_readStatus:
.LFB32:
	.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -10[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	BYTE PTR -10[rbp], -96
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	movzx	eax, BYTE PTR -10[rbp]
	and	eax, 3
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -10[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L206
	call	__stack_chk_fail@PLT
.L206:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	mcp25625_readStatus, .-mcp25625_readStatus
	.section	.rodata
.LC55:
	.string	"read_canMsg FUNC"
	.text
	.globl	mcp25625_read_canMsg
	.type	mcp25625_read_canMsg, @function
mcp25625_read_canMsg:
.LFB33:
	.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	DWORD PTR -20[rbp], edi
	mov	ecx, esi
	mov	eax, edx
	mov	edx, ecx
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -28[rbp], al
	lea	rdi, .LC55[rip]
	call	puts@PLT
	movzx	eax, BYTE PTR -24[rbp]
	mov	BYTE PTR -1[rbp], al
	movzx	edx, BYTE PTR -28[rbp]
	movzx	esi, BYTE PTR -1[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, edx
	lea	rcx, RX[rip]
	lea	rdx, RX[rip+8]
	mov	edi, eax
	call	mcp25625_read_buf
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	mcp25625_read_canMsg, .-mcp25625_read_canMsg
	.section	.rodata
.LC56:
	.string	"read_buf FUNC"
.LC57:
	.string	"RXBUF[%d] = %x\n"
.LC58:
	.string	"Std ID : 0x%x\n"
.LC59:
	.string	"Ext ID : 0x%x\n"
.LC60:
	.string	"RXBxCTRL : 0x%x\n"
.LC61:
	.string	"DLC : 0x%x\n"
.LC62:
	.string	"RXBUF DATA = 0x%x\n"
.LC63:
	.string	"RTR : 0x%x\n"
	.text
	.globl	mcp25625_read_buf
	.type	mcp25625_read_buf, @function
mcp25625_read_buf:
.LFB34:
	.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, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	eax, esi
	mov	QWORD PTR -64[rbp], rdx
	mov	QWORD PTR -72[rbp], rcx
	mov	edx, r8d
	mov	BYTE PTR -56[rbp], al
	mov	eax, edx
	mov	BYTE PTR -76[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC56[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	WORD PTR [rax], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 0
	mov	BYTE PTR -40[rbp], 0
	jmp	.L209
.L210:
	movzx	edx, BYTE PTR -56[rbp]
	movzx	eax, BYTE PTR -40[rbp]
	add	eax, edx
	movzx	edx, al
	movzx	ebx, BYTE PTR -40[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mcp25625_readRegister
	movsx	rdx, ebx
	mov	BYTE PTR -37[rbp+rdx], al
	movzx	eax, BYTE PTR -40[rbp]
	cdqe
	movzx	eax, BYTE PTR -37[rbp+rax]
	movzx	edx, al
	movzx	eax, BYTE PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -40[rbp]
	add	eax, 1
	mov	BYTE PTR -40[rbp], al
.L209:
	cmp	BYTE PTR -40[rbp], 12
	jbe	.L210
	movzx	eax, BYTE PTR -37[rbp]
	movzx	eax, al
	lea	edx, 0[0+rax*8]
	movzx	eax, BYTE PTR -36[rbp]
	shr	al, 5
	movzx	eax, al
	add	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -39[rbp]
	add	eax, 1
	cdqe
	movzx	eax, BYTE PTR -37[rbp+rax]
	movzx	eax, al
	and	eax, 8
	test	eax, eax
	je	.L211
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR [rax]
	lea	edx, 0[0+rax*4]
	movzx	eax, BYTE PTR -36[rbp]
	movzx	eax, al
	and	eax, 3
	add	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR [rax]
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -35[rbp]
	movzx	eax, al
	add	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR [rax]
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -34[rbp]
	movzx	eax, al
	add	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC59[rip]
	mov	eax, 0
	call	printf@PLT
.L211:
	movzx	eax, BYTE PTR -56[rbp]
	sub	eax, 1
	movzx	edx, al
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	mcp25625_readRegister
	mov	BYTE PTR -38[rbp], al
	movzx	eax, BYTE PTR -38[rbp]
	mov	esi, eax
	lea	rdi, .LC60[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -33[rbp]
	mov	BYTE PTR RX[rip+9], al
	movzx	eax, BYTE PTR RX[rip+9]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC61[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -40[rbp], 0
	jmp	.L212
.L213:
	movzx	eax, BYTE PTR -40[rbp]
	add	eax, 5
	movzx	ecx, BYTE PTR -40[rbp]
	cdqe
	movzx	edx, BYTE PTR -37[rbp+rax]
	movsx	rax, ecx
	lea	rcx, RX[rip+11]
	mov	BYTE PTR [rax+rcx], dl
	movzx	eax, BYTE PTR -40[rbp]
	cdqe
	lea	rdx, RX[rip+11]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC62[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -40[rbp]
	add	eax, 1
	mov	BYTE PTR -40[rbp], al
.L212:
	movzx	eax, BYTE PTR RX[rip+9]
	cmp	BYTE PTR -40[rbp], al
	jb	.L213
	movzx	eax, BYTE PTR -38[rbp]
	and	eax, 8
	test	eax, eax
	je	.L214
	mov	BYTE PTR RX[rip+10], 1
	jmp	.L215
.L214:
	mov	BYTE PTR RX[rip+10], 0
.L215:
	movzx	eax, BYTE PTR RX[rip+10]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L216
	call	__stack_chk_fail@PLT
.L216:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	mcp25625_read_buf, .-mcp25625_read_buf
	.section	.rodata
.LC64:
	.string	"ReadRXBuffer Func"
.LC65:
	.string	"RXB[%d] = 0x%x\n"
	.text
	.globl	mcp25625_ReadRXBuffer
	.type	mcp25625_ReadRXBuffer, @function
mcp25625_ReadRXBuffer:
.LFB35:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, ecx
	mov	BYTE PTR -24[rbp], dl
	mov	BYTE PTR -36[rbp], al
	lea	rdi, .LC64[rip]
	call	puts@PLT
	cmp	BYTE PTR -36[rbp], 0
	jne	.L218
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, -7
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L219
.L218:
	cmp	BYTE PTR -36[rbp], 1
	jne	.L219
	movzx	eax, BYTE PTR -24[rbp]
	and	eax, -7
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
.L219:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 13
	mov	rsi, rcx
	mov	edi, eax
	call	do_msg
	mov	DWORD PTR -4[rbp], 0
	jmp	.L220
.L221:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC65[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L220:
	cmp	DWORD PTR -4[rbp], 12
	jle	.L221
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	mcp25625_ReadRXBuffer, .-mcp25625_ReadRXBuffer
	.section	.rodata
.LC66:
	.string	"SPI rd_mode"
.LC67:
	.string	"SPI rd_lsb_fist"
.LC68:
	.string	"SPI bits_per_word"
.LC69:
	.string	"SPI max_speed_hz"
.LC70:
	.string	"(lsb first) "
.LC71:
	.string	""
	.align 8
.LC72:
	.string	"%s: spi read mode 0x%x, %d bits %sper word, %d Hz max\n"
	.text
	.type	dumpstat, @function
dumpstat:
.LFB36:
	.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	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, 2147773189
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L223
	lea	rdi, .LC66[rip]
	call	perror@PLT
	jmp	.L222
.L223:
	lea	rdx, -18[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, 2147576578
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L225
	lea	rdi, .LC67[rip]
	call	perror@PLT
	jmp	.L222
.L225:
	lea	rdx, -17[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, 2147576579
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L226
	lea	rdi, .LC68[rip]
	call	perror@PLT
	jmp	.L222
.L226:
	lea	rdx, -12[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, 2147773188
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L227
	lea	rdi, .LC69[rip]
	call	perror@PLT
	jmp	.L222
.L227:
	mov	edi, DWORD PTR -12[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	test	al, al
	je	.L228
	lea	rax, .LC70[rip]
	jmp	.L229
.L228:
	lea	rax, .LC71[rip]
.L229:
	movzx	edx, BYTE PTR -17[rbp]
	movzx	ecx, dl
	mov	edx, DWORD PTR -16[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	r9d, edi
	mov	r8, rax
	lea	rdi, .LC72[rip]
	mov	eax, 0
	call	printf@PLT
.L222:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L231
	call	__stack_chk_fail@PLT
.L231:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	dumpstat, .-dumpstat
	.section	.rodata
.LC73:
	.string	"status : %d\n"
.LC74:
	.string	"SPI_IOC_MESSAGE"
	.text
	.type	do_msg, @function
do_msg:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -104[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -80[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	mov	DWORD PTR -32[rbp], eax
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 1077963520
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L232
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC73[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC74[rip]
	call	perror@PLT
.L232:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L235
	call	__stack_chk_fail@PLT
.L235:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	do_msg, .-do_msg
	.section	.rodata
.LC75:
	.string	"read"
.LC76:
	.string	"short read\n"
.LC77:
	.string	"read(%2d, %2d): %02x %02x,"
.LC78:
	.string	" %02x"
	.text
	.type	do_read, @function
do_read:
.LFB38:
	.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	DWORD PTR -68[rbp], edi
	mov	DWORD PTR -72[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -72[rbp], 1
	jg	.L237
	mov	DWORD PTR -72[rbp], 2
	jmp	.L238
.L237:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 32
	jbe	.L238
	mov	DWORD PTR -72[rbp], 32
.L238:
	lea	rax, -48[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L239
	lea	rdi, .LC75[rip]
	call	perror@PLT
	jmp	.L236
.L239:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	je	.L241
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC76[rip]
	call	fwrite@PLT
	jmp	.L236
.L241:
	movzx	eax, BYTE PTR -47[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -48[rbp]
	movzx	ecx, al
	mov	edx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -72[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC77[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -60[rbp], 2
	lea	rax, -48[rbp]
	add	rax, 2
	mov	QWORD PTR -56[rbp], rax
	jmp	.L242
.L243:
	mov	rax, QWORD PTR -56[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -56[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC78[rip]
	mov	eax, 0
	call	printf@PLT
.L242:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jg	.L243
	mov	edi, 10
	call	putchar@PLT
.L236:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L245
	call	__stack_chk_fail@PLT
.L245:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	do_read, .-do_read
	.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	"212005.c"
	.text
	.global	TX
	.data
	.align	2
	.type	TX, %object
	.size	TX, 20
TX:
	.short	0
	.space	2
	.word	2
	.byte	1
	.byte	0
	.byte	8
	.ascii	"\000\000"
	.space	6
	.byte	0
	.comm	RX,20,4
	.comm	fd_spi,4,4
	.comm	tx_sidh,1,1
	.comm	fd_lidar,4,4
	.global	receives
	.align	2
	.type	receives, %object
	.size	receives, 8
receives:
	.ascii	"\000\000\000\001\002\003\004\005"
	.global	options
	.type	options, %object
	.size	options, 1
options:
	.byte	1
	.comm	fname,4,4
	.comm	Lidar_Value,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/spidev1.0\000"
	.align	2
.LC1:
	.ascii	"shm_PmodToLidar generation failed\000"
	.align	2
.LC2:
	.ascii	"shm_PmodToLidar reference failed\000"
	.align	2
.LC3:
	.ascii	"shm_LidarToPmod generation failed\000"
	.align	2
.LC4:
	.ascii	"shm_LidarToPmod reference failed\000"
	.align	2
.LC5:
	.ascii	"shm_LidarValue generation failed\000"
	.align	2
.LC6:
	.ascii	"shm_LidarValue reference failed\000"
	.align	2
.LC7:
	.ascii	"pmodToLidarFlag\000"
	.align	2
.LC8:
	.ascii	"SEMA OPEN ERROR\012\000"
	.align	2
.LC9:
	.ascii	"lidarToPmodFlag\000"
	.align	2
.LC10:
	.ascii	"/dev/i2c-0\000"
	.align	2
.LC11:
	.ascii	"Lidar Failed\000"
	.align	2
.LC12:
	.ascii	"Slave Addr Connect Failed\012\000"
	.align	2
.LC13:
	.ascii	"Lidar Success\000"
	.align	2
.LC14:
	.ascii	"LLLLLLLLLLLLLLL VALUE : %d\012\000"
	.align	2
.LC15:
	.ascii	"pmodToInputFlag\000"
	.align	2
.LC16:
	.ascii	"inputToPmodFlag\000"
	.align	2
.LC17:
	.ascii	"/dev/uio0\000"
	.align	2
.LC18:
	.ascii	"Invalid UIO device file : %s.\012\000"
	.align	2
.LC19:
	.ascii	"Input Success\000"
	.align	2
.LC20:
	.ascii	"Spi Open Success\012\000"
	.align	2
.LC21:
	.ascii	"Spi Open Success\000"
	.align	2
.LC22:
	.ascii	"MCP25625 Initialized Successfully!\000"
	.align	2
.LC23:
	.ascii	"MCP25625 Initializing Error\012\000"
	.align	2
.LC24:
	.ascii	"Receive SUCCESS RX0IF= %d\012\000"
	.align	2
.LC25:
	.ascii	"rx_value\000"
	.align	2
.LC26:
	.ascii	"Standard ID : 0x%x DLC : %1d Data\012\000"
	.align	2
.LC27:
	.ascii	"Lidar =%d\012\000"
	.align	2
.LC28:
	.ascii	"Input =%d\012\000"
	.align	2
.LC29:
	.ascii	"Receive SUCCESS RX1IF=%d\012\000"
	.align	2
.LC30:
	.ascii	"Standard ID : 0x%x DLC : %1d\012\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #156
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r3, .L59+4
	str	r3, [fp, #-140]
	mov	r3, #0
	strb	r3, [fp, #-145]
	mov	r3, #3
	str	r3, [fp, #-136]
	ldr	ip, [fp, #-136]
	sub	r3, ip, #1
	str	r3, [fp, #-132]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #16
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-128]
	mov	r3, #0
	strb	r3, [fp, #-146]
	mov	r3, #0
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-108]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	mov	r3, #0
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L2
.L3:
	bl	fork
	mov	r3, r0
	mov	r1, r3
	ldr	r3, [fp, #-128]
	ldr	r2, [fp, #-144]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L2:
	ldr	r2, [fp, #-144]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-128]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+12
	bl	shmget
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L59+16
	bl	puts
	mvn	r3, #0
	b	.L6
.L5:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-92]
	bl	shmat
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L59+20
	bl	puts
	mvn	r3, #0
	b	.L6
.L7:
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+24
	bl	shmget
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L59+28
	bl	puts
	mvn	r3, #0
	b	.L6
.L8:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-88]
	bl	shmat
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L59+32
	bl	puts
	mvn	r3, #0
	b	.L6
.L9:
	ldr	r2, .L59+8
	mov	r1, #4
	ldr	r0, .L59+36
	bl	shmget
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L59+40
	bl	puts
	mvn	r3, #0
	b	.L6
.L10:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-84]
	bl	shmat
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L59+44
	bl	puts
	mvn	r3, #0
	b	.L6
.L11:
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-48]
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+52
	bl	sem_open
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L12:
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+60
	bl	sem_open
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L13:
	ldr	r3, .L59+64
	ldr	r2, .L59+68
	str	r2, [r3]
	ldr	r3, .L59+64
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L59+72
	str	r3, [r2]
	ldr	r3, .L59+72
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L14
	ldr	r0, .L59+76
	bl	puts
	mvn	r3, #0
	b	.L6
.L14:
	ldr	r3, .L59+72
	ldr	r3, [r3]
	mov	r2, #98
	ldr	r1, .L59+80
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L59+84
	bl	perror
.L15:
	mov	r1, #128
	mov	r0, #2
	bl	lidar_write
	mov	r1, #8
	mov	r0, #4
	bl	lidar_write
	mov	r1, #0
	mov	r0, #28
	bl	lidar_write
	ldr	r0, .L59+88
	bl	puts
.L21:
	ldr	r0, [fp, #-44]
	bl	sem_wait
	ldr	r3, [fp, #-68]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L16
	ldrb	r3, [fp, #-146]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-146]
	ldrb	r3, [fp, #-146]	@ zero_extendqisi2
	cmp	r3, #99
	bne	.L17
	mov	r3, #0
	strb	r3, [fp, #-146]
	ldr	r3, .L59+92
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L59+96
	mov	r1, r3
	mov	r0, #1
	bl	measurement
	ldr	r3, .L59+100
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r3, .L59+92
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L59+96
	mov	r1, r3
	mov	r0, #1
	bl	measurement
.L18:
	ldr	r3, .L59+100
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	str	r2, [r3]
	ldr	r0, .L59+104
	bl	usleep
	b	.L19
.L17:
	ldr	r3, .L59+92
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L59+96
	mov	r1, r3
	mov	r0, #0
	bl	measurement
	ldr	r3, .L59+100
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L59+92
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, .L59+96
	mov	r1, r3
	mov	r0, #1
	bl	measurement
.L20:
	ldr	r3, .L59+100
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	str	r2, [r3]
	ldr	r0, .L59+104
	bl	usleep
.L19:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L59+108
	bl	printf
	ldr	r3, [fp, #-68]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	mov	r2, #1
	strb	r2, [r3]
.L16:
	ldr	r0, [fp, #-44]
	bl	sem_post
	b	.L21
.L4:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L22
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+112
	bl	shmget
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L59+16
	bl	puts
	mvn	r3, #0
	b	.L6
.L23:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-80]
	bl	shmat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L59+20
	bl	puts
	mvn	r3, #0
	b	.L6
.L24:
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+116
	bl	shmget
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L59+28
	bl	puts
	mvn	r3, #0
	b	.L6
.L25:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-76]
	bl	shmat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L59+32
	bl	puts
	mvn	r3, #0
	b	.L6
.L26:
	ldr	r2, .L59+8
	mov	r1, #4
	ldr	r0, .L59+120
	bl	shmget
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L27
	ldr	r0, .L59+40
	bl	puts
	mvn	r3, #0
	b	.L6
.L27:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	shmat
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmn	r3, #1
	bne	.L28
	ldr	r0, .L59+44
	bl	puts
	mvn	r3, #0
	b	.L6
.L28:
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-52]
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+124
	bl	sem_open
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L29:
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+128
	bl	sem_open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L30:
	ldr	r3, .L59+132
	str	r3, [fp, #-28]
	mov	r1, #2
	ldr	r0, [fp, #-28]
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bgt	.L31
	ldr	r1, [fp, #-28]
	ldr	r0, .L59+136
	bl	printf
	bl	usage
	mvn	r3, #0
	b	.L6
.L31:
	ldr	r0, .L59+140
	bl	puts
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r1, #65536
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r2, .L59+144
	str	r2, [r3]
.L33:
	ldr	r0, [fp, #-40]
	bl	sem_wait
	ldr	r3, [fp, #-64]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-52]
	str	r2, [r3]
	ldr	r3, [fp, #-56]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	mov	r2, #0
	strb	r2, [r3]
.L32:
	ldr	r0, [fp, #-40]
	bl	sem_post
	b	.L33
.L22:
	ldr	r3, [fp, #-128]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L34
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+12
	bl	shmget
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L59+16
	bl	puts
	mvn	r3, #0
	b	.L6
.L35:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-92]
	bl	shmat
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L59+20
	bl	puts
	mvn	r3, #0
	b	.L6
.L36:
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+24
	bl	shmget
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmn	r3, #1
	bne	.L37
	ldr	r0, .L59+28
	bl	puts
	mvn	r3, #0
	b	.L6
.L37:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-88]
	bl	shmat
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	bne	.L38
	ldr	r0, .L59+32
	bl	puts
	mvn	r3, #0
	b	.L6
.L38:
	ldr	r2, .L59+8
	mov	r1, #4
	ldr	r0, .L59+36
	bl	shmget
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L39
	ldr	r0, .L59+40
	bl	puts
	mvn	r3, #0
	b	.L6
.L39:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-84]
	bl	shmat
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmn	r3, #1
	bne	.L40
	ldr	r0, .L59+44
	bl	puts
	mvn	r3, #0
	b	.L6
.L40:
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+112
	bl	shmget
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L41
	ldr	r0, .L59+16
	bl	puts
	mvn	r3, #0
	b	.L6
.L41:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-80]
	bl	shmat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L42
	ldr	r0, .L59+20
	bl	puts
	mvn	r3, #0
	b	.L6
.L42:
	ldr	r2, .L59+8
	mov	r1, #1
	ldr	r0, .L59+116
	bl	shmget
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmn	r3, #1
	bne	.L43
	ldr	r0, .L59+28
	bl	puts
	mvn	r3, #0
	b	.L6
.L43:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-76]
	bl	shmat
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmn	r3, #1
	bne	.L44
	ldr	r0, .L59+32
	bl	puts
	mvn	r3, #0
	b	.L6
.L44:
	ldr	r2, .L59+8
	mov	r1, #4
	ldr	r0, .L59+120
	bl	shmget
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L45
	ldr	r0, .L59+40
	bl	puts
	mvn	r3, #0
	b	.L6
.L45:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	shmat
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-100]
	cmn	r3, #1
	bne	.L46
	ldr	r0, .L59+44
	bl	puts
	mvn	r3, #0
	b	.L6
.L46:
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-104]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-100]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-68]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-56]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, .L59+60
	bl	sem_unlink
	ldr	r0, .L59+128
	bl	sem_unlink
	ldr	r0, .L59+52
	bl	sem_unlink
	ldr	r0, .L59+124
	bl	sem_unlink
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+52
	bl	sem_open
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bne	.L47
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L47:
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+124
	bl	sem_open
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L48
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L48:
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+60
	bl	sem_open
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L49
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L49:
	mov	r3, #1
	ldr	r2, .L59+48
	mov	r1, #64
	ldr	r0, .L59+128
	bl	sem_open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L50
	ldr	r0, .L59+56
	bl	perror
	mvn	r3, #0
	b	.L6
.L50:
	mov	r1, #2
	ldr	r0, [fp, #-140]
	bl	open
	mov	r3, r0
	ldr	r2, .L59+148
	str	r3, [r2]
	ldr	r3, .L59+148
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L51
	ldr	r0, .L59+152
	bl	perror
	mvn	r3, #0
	b	.L6
.L51:
	ldr	r0, .L59+156
	bl	puts
	ldr	r3, .L59+148
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-140]
	bl	dumpstat
	ldr	r3, .L59+148
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #4
	mov	r1, #3
	bl	mcp25625_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L52
	ldr	r0, .L59+160
	bl	puts
	b	.L53
.L52:
	ldr	r0, .L59+164
	bl	perror
	mvn	r3, #0
	b	.L6
.L53:
	ldr	r3, .L59+148
	ldr	r3, [r3]
	mov	r0, r3
	bl	mcp25625_readStatus
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L59+168
	strb	r2, [r3, #19]
	ldr	r3, .L59+168
	ldrb	r3, [r3, #19]	@ zero_extendqisi2
	and	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, .L59+168
	strb	r2, [r3, #19]
	ldr	r3, .L59+168
	ldrb	r3, [r3, #19]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L54
	ldr	r3, .L59+148
	ldr	r0, [r3]
	ldr	r3, .L59+172
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r1, r3, #255
	mov	r3, #0
	mov	r2, #8
	bl	mcp25625_modifyRegister
	ldr	r3, .L59+168
	ldrb	r3, [r3, #19]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L59+176
	bl	printf
	ldr	r3, .L59+148
	ldr	r0, [r3]
	mov	r3, #1
	str	r3, [sp]
	ldr	r3, .L59+180
	ldr	r2, .L59+184
	ldr	r1, .L59+168
	bl	readMsgBuf
	mov	r3, r0
	cmp	r3, #0
	beq	.L53
	mov	r0, #100
	bl	usleep
	ldr	r3, .L59+168
	ldrb	r3, [r3, #18]
	strb	r3, [fp, #-145]
	ldrb	r3, [fp, #-145]	@ zero_extendqisi2
	cmp	r3, #70
	bne	.L53
	ldr	r0, .L59+188
	bl	puts
	ldr	r3, .L59+168
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r3, .L59+168
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L59+192
	bl	printf
	ldr	r0, [fp, #-40]
	bl	sem_wait
	ldr	r3, [fp, #-64]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r0, [fp, #-40]
	bl	sem_post
	ldr	r0, [fp, #-44]
	bl	sem_wait
	ldr	r3, [fp, #-68]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r0, [fp, #-44]
	bl	sem_post
	nop
.L56:
	ldr	r3, [fp, #-60]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L56
	ldr	r0, [fp, #-36]
	bl	sem_wait
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	and	r2, r3, #255
	ldr	r3, .L59+196
	strb	r2, [r3, #11]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r3, r3, #255
	and	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, .L59+196
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-60]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r0, [fp, #-32]
	bl	sem_post
	ldr	r0, [fp, #-32]
	bl	sem_wait
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	and	r2, r3, #255
	ldr	r3, .L59+196
	strb	r2, [r3, #17]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	asr	r3, r3, #8
	and	r3, r3, #255
	and	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, .L59+196
	strb	r2, [r3, #18]
	ldr	r3, [fp, #-56]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-32]
	bl	sem_post
	ldr	r3, .L59+148
	ldr	r0, [r3]
	ldr	r3, .L59+196
	ldrh	r1, [r3]
	ldr	r3, .L59+196
	ldr	ip, [r3, #4]
	ldr	r3, .L59+196
	ldrb	lr, [r3, #8]	@ zero_extendqisi2
	ldr	r3, .L59+196
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	ldr	r2, .L59+196
	ldrb	r2, [r2, #10]	@ zero_extendqisi2
	ldr	r4, .L59+200
	str	r4, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	sendMsgBuf
	ldr	r3, .L59+148
	ldr	r0, [r3]
	ldr	r3, .L59+172
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r1, r3, #255
	mov	r3, #0
	mov	r2, #8
	bl	mcp25625_modifyRegister
	ldr	r3, .L59+196
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L59+196
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L59+204
	bl	printf
	ldr	r3, .L59+196
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L59+196
	ldrb	r3, [r3, #18]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L59+208
	bl	printf
	mov	r0, #1000
	bl	usleep
	b	.L53
.L54:
	ldr	r3, .L59+168
	ldrb	r3, [r3, #19]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L53
	ldr	r3, .L59+148
	ldr	r0, [r3]
	ldr	r3, .L59+172
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r1, r3, #255
	mov	r3, #0
	mov	r2, #8
	bl	mcp25625_modifyRegister
	ldr	r3, .L59+168
	ldrb	r3, [r3, #19]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L59+212
	bl	printf
	ldr	r3, .L59+148
	ldr	r0, [r3]
	mov	r3, #2
	str	r3, [sp]
	ldr	r3, .L59+180
	ldr	r2, .L59+184
	ldr	r1, .L59+168
	bl	readMsgBuf
	ldr	r3, .L59+168
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r3, .L59+168
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L59+216
	bl	printf
	b	.L53
.L34:
	mov	r3, #0
.L6:
	mov	sp, r4
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC31
	.word	.LC0
	.word	950
	.word	1234
	.word	.LC1
	.word	.LC2
	.word	1236
	.word	.LC3
	.word	.LC4
	.word	1238
	.word	.LC5
	.word	.LC6
	.word	511
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	fname
	.word	.LC10
	.word	fd_lidar
	.word	.LC11
	.word	1795
	.word	.LC12
	.word	.LC13
	.word	options
	.word	receives
	.word	Lidar_Value
	.word	3700
	.word	.LC14
	.word	1235
	.word	1237
	.word	1239
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	1023
	.word	fd_spi
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	RX
	.word	tx_sidh
	.word	.LC24
	.word	RX+11
	.word	RX+9
	.word	.LC25
	.word	.LC26
	.word	TX
	.word	TX+11
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.section	.rodata
	.align	2
.LC32:
	.ascii	" *argv[0] -d <UIO_DEV_FILE> -i|-o <VALUE>\000"
	.align	2
.LC33:
	.ascii	"\011-d\011\011\011\011\011UIO device file. e.g. /de"
	.ascii	"v/uio0\000"
	.align	2
.LC34:
	.ascii	"\011-i\011\011\011\011\011INPUT from GPIO\000"
	.align	2
.LC35:
	.ascii	"\011-o <VALUE>\011\011\011OUTPUT to GPIO\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L63
	bl	puts
	ldr	r0, .L63+4
	bl	printf
	ldr	r0, .L63+8
	bl	puts
	ldr	r0, .L63+12
	bl	puts
	nop
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC36:
	.ascii	"Write Reg Error\000"
	.align	2
.LC37:
	.ascii	"Read Reg Error\000"
	.align	2
.LC38:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_status
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_status, %function
get_status:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L71
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	strb	r3, [fp, #-12]
	ldr	r3, .L71+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #1
	beq	.L66
	ldr	r0, .L71+8
	bl	perror
	mvn	r3, #0
	b	.L69
.L66:
	ldr	r3, .L71+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, r3
	bl	read
	mov	r3, r0
	cmp	r3, #1
	beq	.L68
	ldr	r0, .L71+12
	bl	perror
	mvn	r3, #0
	b	.L69
.L68:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	and	r3, r3, #1
.L69:
	ldr	r2, .L71
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L70
	bl	__stack_chk_fail
.L70:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC38
	.word	fd_lidar
	.word	.LC36
	.word	.LC37
	.size	get_status, .-get_status
	.section	.rodata
	.align	2
.LC39:
	.ascii	"Busy Count Time Out!\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lidar_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	lidar_read, %function
lidar_read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	mov	r3, r0
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	strb	r3, [fp, #-21]
	ldr	r3, .L80
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-21]
	strb	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L74
.L75:
	bl	get_status
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, .L80+4
	cmp	r3, r2
	bls	.L74
	ldr	r0, .L80+8
	bl	puts
.L74:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L75
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L79
	ldr	r3, .L80+12
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #1
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #1
	beq	.L77
	ldr	r0, .L80+16
	bl	perror
.L77:
	ldr	r3, .L80+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	read
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	cmp	r3, r2
	beq	.L79
	ldr	r0, .L80+20
	bl	perror
.L79:
	nop
	ldr	r3, .L80
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L78
	bl	__stack_chk_fail
.L78:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC40
	.word	9999
	.word	.LC39
	.word	fd_lidar
	.word	.LC36
	.word	.LC37
	.size	lidar_read, .-lidar_read
	.section	.rodata
	.align	2
.LC41:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	lidar_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	lidar_write, %function
lidar_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-13]
	mov	r3, r2
	strb	r3, [fp, #-14]
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-13]
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-14]
	strb	r3, [fp, #-11]
	ldr	r3, .L85+4
	ldr	r3, [r3]
	sub	r1, fp, #12
	mov	r2, #2
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #2
	beq	.L83
	ldr	r0, .L85+8
	bl	perror
.L83:
	mov	r0, #1000
	bl	usleep
	nop
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC41
	.word	fd_lidar
	.word	.LC36
	.size	lidar_write, .-lidar_write
	.align	2
	.global	measurement
	.syntax unified
	.arm
	.fpu softvfp
	.type	measurement, %function
measurement:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	str	r2, [fp, #-20]
	strb	r3, [fp, #-13]
	mov	r3, r1
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L88
	mov	r1, #4
	mov	r0, #0
	bl	lidar_write
	b	.L89
.L88:
	mov	r1, #3
	mov	r0, #0
	bl	lidar_write
.L89:
	ldr	r2, [fp, #-20]
	mov	r1, #8
	mov	r0, #137
	bl	lidar_read
	mov	r3, #1
	strb	r3, [fp, #-5]
	b	.L90
.L91:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L90:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #5
	bls	.L91
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	display
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	measurement, .-measurement
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-12]
	add	r2, r2, #5
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	ldr	r2, .L93
	str	r3, [r2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L94:
	.align	2
.L93:
	.word	Lidar_Value
	.size	display, .-display
	.align	2
	.global	WAIT
	.syntax unified
	.arm
	.fpu softvfp
	.type	WAIT, %function
WAIT:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L96
.L97:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L96:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L97
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	WAIT, .-WAIT
	.section	.rodata
	.align	2
.LC42:
	.ascii	"Entering Configuration Mode..\000"
	.align	2
.LC43:
	.ascii	"Fail to Entering Configuration Mode..\000"
	.align	2
.LC44:
	.ascii	"Bitrate Setting Success!!\000"
	.align	2
.LC45:
	.ascii	"Fail to Setting Bitrate..\000"
	.align	2
.LC46:
	.ascii	"Entering to Normal Mode...!\000"
	.align	2
.LC47:
	.ascii	"Fail to Entering Normal Mode..\000"
	.text
	.align	2
	.global	mcp25625_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_init, %function
mcp25625_init:
	@ 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]
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-9]
	mov	r3, r1
	strb	r3, [fp, #-10]
	mov	r3, r2
	strb	r3, [fp, #-11]
	ldr	r0, [fp, #-8]
	bl	mcp25625_reset
	mov	r1, #128
	ldr	r0, [fp, #-8]
	bl	mcp25625_setCANCTRL_Mode
	mov	r3, r0
	cmp	r3, #0
	beq	.L99
	ldr	r0, .L108
	bl	puts
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	mcp25625_configRate
	mov	r3, r0
	cmp	r3, #0
	beq	.L102
	b	.L106
.L99:
	ldr	r0, .L108+4
	bl	puts
	mov	r3, #0
	b	.L101
.L106:
	ldr	r0, .L108+8
	bl	puts
	ldr	r0, [fp, #-8]
	bl	mcp25625_initCANBuffers
	mov	r3, #96
	mov	r2, #96
	mov	r1, #96
	ldr	r0, [fp, #-8]
	bl	mcp25625_modifyRegister
	mov	r3, #96
	mov	r2, #96
	mov	r1, #112
	ldr	r0, [fp, #-8]
	bl	mcp25625_modifyRegister
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	mcp25625_setCANCTRL_Mode
	mov	r3, r0
	cmp	r3, #0
	beq	.L104
	b	.L107
.L102:
	ldr	r0, .L108+12
	bl	puts
	mov	r3, #0
	b	.L101
.L107:
	ldr	r0, .L108+16
	bl	puts
	mov	r3, #1
	b	.L101
.L104:
	ldr	r0, .L108+20
	bl	puts
	mov	r3, #0
.L101:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.size	mcp25625_init, .-mcp25625_init
	.section	.rodata
	.align	2
.LC48:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_reset, %function
mcp25625_reset:
	@ 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, .L112
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #63
	strb	r3, [fp, #-9]
	sub	r3, fp, #9
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	do_msg
	nop
	ldr	r3, .L112
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L111
	bl	__stack_chk_fail
.L111:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L113:
	.align	2
.L112:
	.word	.LC48
	.size	mcp25625_reset, .-mcp25625_reset
	.align	2
	.global	mcp25625_setCANCTRL_Mode
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_setCANCTRL_Mode, %function
mcp25625_setCANCTRL_Mode:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r2, #224
	mov	r1, #15
	ldr	r0, [fp, #-16]
	bl	mcp25625_modifyRegister
	mov	r1, #15
	ldr	r0, [fp, #-16]
	bl	mcp25625_readRegister
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]
	bic	r3, r3, #31
	strb	r3, [fp, #-5]
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L115
	mov	r3, #1
	b	.L116
.L115:
	mov	r3, #0
.L116:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mcp25625_setCANCTRL_Mode, .-mcp25625_setCANCTRL_Mode
	.align	2
	.global	mcp25625_configRate
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_configRate, %function
mcp25625_configRate:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, r2
	strb	r3, [fp, #-18]
	mov	r3, #1
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #2
	beq	.L118
	cmp	r3, #2
	bgt	.L119
	cmp	r3, #0
	beq	.L120
	cmp	r3, #1
	beq	.L121
	b	.L119
.L118:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L122
.L124:
	.word	.L129
	.word	.L128
	.word	.L127
	.word	.L126
	.word	.L125
	.word	.L123
.L129:
	mov	r3, #3
	strb	r3, [fp, #-8]
	mvn	r3, #64
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L130
.L128:
	mov	r3, #1
	strb	r3, [fp, #-8]
	mvn	r3, #64
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L130
.L127:
	mov	r3, #1
	strb	r3, [fp, #-8]
	mvn	r3, #75
	strb	r3, [fp, #-7]
	mvn	r3, #121
	strb	r3, [fp, #-6]
	b	.L130
.L126:
	mov	r3, #0
	strb	r3, [fp, #-8]
	mvn	r3, #75
	strb	r3, [fp, #-7]
	mvn	r3, #121
	strb	r3, [fp, #-6]
	b	.L130
.L125:
	mov	r3, #0
	strb	r3, [fp, #-8]
	mvn	r3, #78
	strb	r3, [fp, #-7]
	mvn	r3, #122
	strb	r3, [fp, #-6]
	b	.L130
.L123:
	mov	r3, #0
	strb	r3, [fp, #-8]
	mvn	r3, #111
	strb	r3, [fp, #-7]
	mvn	r3, #125
	strb	r3, [fp, #-6]
	b	.L130
.L122:
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	b	.L131
.L130:
	b	.L132
.L121:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L133
.L135:
	.word	.L140
	.word	.L139
	.word	.L138
	.word	.L137
	.word	.L136
	.word	.L134
.L140:
	mov	r3, #7
	strb	r3, [fp, #-8]
	mvn	r3, #0
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L141
.L139:
	mov	r3, #3
	strb	r3, [fp, #-8]
	mvn	r3, #0
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L141
.L138:
	mov	r3, #3
	strb	r3, [fp, #-8]
	mvn	r3, #5
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L141
.L137:
	mov	r3, #1
	strb	r3, [fp, #-8]
	mvn	r3, #5
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L141
.L136:
	mov	r3, #65
	strb	r3, [fp, #-8]
	mvn	r3, #14
	strb	r3, [fp, #-7]
	mvn	r3, #122
	strb	r3, [fp, #-6]
	b	.L141
.L134:
	mov	r3, #0
	strb	r3, [fp, #-8]
	mvn	r3, #15
	strb	r3, [fp, #-7]
	mvn	r3, #121
	strb	r3, [fp, #-6]
	b	.L141
.L133:
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	b	.L131
.L141:
	b	.L132
.L120:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L142
.L144:
	.word	.L149
	.word	.L148
	.word	.L147
	.word	.L146
	.word	.L145
	.word	.L143
.L149:
	mov	r3, #9
	strb	r3, [fp, #-8]
	mvn	r3, #0
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L150
.L148:
	mov	r3, #4
	strb	r3, [fp, #-8]
	mvn	r3, #0
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L150
.L147:
	mov	r3, #4
	strb	r3, [fp, #-8]
	mvn	r3, #5
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L150
.L146:
	mov	r3, #1
	strb	r3, [fp, #-8]
	mvn	r3, #0
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L150
.L145:
	mov	r3, #65
	strb	r3, [fp, #-8]
	mvn	r3, #4
	strb	r3, [fp, #-7]
	mvn	r3, #121
	strb	r3, [fp, #-6]
	b	.L150
.L143:
	mov	r3, #0
	strb	r3, [fp, #-8]
	mvn	r3, #5
	strb	r3, [fp, #-7]
	mvn	r3, #120
	strb	r3, [fp, #-6]
	b	.L150
.L142:
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	b	.L131
.L150:
	b	.L132
.L119:
	mov	r3, #0
	strb	r3, [fp, #-5]
	mov	r3, #0
	b	.L131
.L132:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L151
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mov	r2, r3
	mov	r1, #40
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	mov	r0, #100
	bl	WAIT
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	mov	r2, r3
	mov	r1, #41
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	mov	r0, #100
	bl	WAIT
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	mov	r2, r3
	mov	r1, #42
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	mov	r0, #100
	bl	WAIT
	mov	r3, #1
	b	.L131
.L151:
	mov	r3, #0
.L131:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mcp25625_configRate, .-mcp25625_configRate
	.align	2
	.global	mcp25625_initCANBuffers
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_initCANBuffers, %function
mcp25625_initCANBuffers:
	@ 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]
	mov	r3, #0
	strb	r3, [fp, #-7]
	mov	r3, #16
	strb	r3, [fp, #-6]
	mov	r3, #0
	strb	r3, [fp, #-8]
	b	.L153
.L154:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-8]
.L153:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #8
	bls	.L154
	mov	r3, #32
	strb	r3, [fp, #-7]
	mov	r3, #0
	strb	r3, [fp, #-8]
	b	.L155
.L156:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-8]
.L155:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #4
	bls	.L156
	mov	r3, #48
	strb	r3, [fp, #-7]
	mov	r3, #64
	strb	r3, [fp, #-6]
	mov	r3, #80
	strb	r3, [fp, #-5]
	mov	r3, #0
	strb	r3, [fp, #-8]
	b	.L157
.L158:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-8]
.L157:
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #10
	bls	.L158
	mov	r2, #0
	mov	r1, #96
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	mov	r2, #0
	mov	r1, #112
	ldr	r0, [fp, #-16]
	bl	mcp25625_setRegister
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	mcp25625_initCANBuffers, .-mcp25625_initCANBuffers
	.section	.rodata
	.align	2
.LC49:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_modifyRegister
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_modifyRegister, %function
mcp25625_modifyRegister:
	@ 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]
	mov	r0, r1
	mov	r1, r2
	mov	r2, r3
	mov	r3, r0
	strb	r3, [fp, #-17]
	mov	r3, r1
	strb	r3, [fp, #-18]
	mov	r3, r2
	strb	r3, [fp, #-19]
	ldr	r3, .L161
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #5
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-17]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-18]
	strb	r3, [fp, #-10]
	ldrb	r3, [fp, #-19]
	strb	r3, [fp, #-9]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	do_msg
	nop
	ldr	r3, .L161
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L160
	bl	__stack_chk_fail
.L160:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L162:
	.align	2
.L161:
	.word	.LC49
	.size	mcp25625_modifyRegister, .-mcp25625_modifyRegister
	.section	.rodata
	.align	2
.LC50:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_readRegister
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_readRegister, %function
mcp25625_readRegister:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r3, .L166
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #3
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-17]
	strb	r3, [fp, #-11]
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	do_msg
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	ldr	r2, .L166
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L165
	bl	__stack_chk_fail
.L165:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L167:
	.align	2
.L166:
	.word	.LC50
	.size	mcp25625_readRegister, .-mcp25625_readRegister
	.section	.rodata
	.align	2
.LC51:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_setRegister
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_setRegister, %function
mcp25625_setRegister:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, r2
	strb	r3, [fp, #-18]
	ldr	r3, .L170
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, #3
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-17]
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-18]
	strb	r3, [fp, #-10]
	sub	r3, fp, #12
	mov	r2, #3
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	do_msg
	nop
	ldr	r3, .L170
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L169
	bl	__stack_chk_fail
.L169:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L171:
	.align	2
.L170:
	.word	.LC51
	.size	mcp25625_setRegister, .-mcp25625_setRegister
	.section	.rodata
	.align	2
.LC52:
	.ascii	"0@P"
	.align	2
.LC53:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_getNextFreeTXBuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_getNextFreeTXBuf, %function
mcp25625_getNextFreeTXBuf:
	@ 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, .L179
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L179+4
	sub	r3, fp, #12
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r3, #2
	strb	r3, [fp, #-14]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-15]
	b	.L173
.L176:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	mcp25625_readRegister
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L174
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-8]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-28]
	strb	r2, [r3]
	mov	r3, #1
	strb	r3, [fp, #-14]
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	b	.L177
.L174:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-15]
.L173:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r3, #2
	bls	.L176
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
.L177:
	ldr	r2, .L179
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L178
	bl	__stack_chk_fail
.L178:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L180:
	.align	2
.L179:
	.word	.LC53
	.word	.LC52
	.size	mcp25625_getNextFreeTXBuf, .-mcp25625_getNextFreeTXBuf
	.section	.rodata
	.align	2
.LC54:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_write_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_write_data, %function
mcp25625_write_data:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-25]
	ldr	r3, .L185
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-25]
	strb	r3, [fp, #-17]
	sub	r3, fp, #12
	mov	r2, #3
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strb	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L182
.L183:
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	add	r2, r3, #1
	strb	r2, [fp, #-17]
	strb	r3, [fp, #-11]
	ldr	r2, .L185+4
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	add	r3, r3, #11
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-10]
	sub	r3, fp, #12
	mov	r2, #3
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	do_msg
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L182:
	ldr	r3, .L185+4
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L183
	nop
	ldr	r3, .L185
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L184
	bl	__stack_chk_fail
.L184:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L186:
	.align	2
.L185:
	.word	.LC54
	.word	TX
	.size	mcp25625_write_data, .-mcp25625_write_data
	.align	2
	.global	sendMsgBuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendMsgBuf, %function
sendMsgBuf:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-16]
	str	r2, [fp, #-24]
	mov	r2, r3
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, r2
	strb	r3, [fp, #-19]
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	ldrh	r1, [fp, #-18]
	ldr	r3, [fp, #12]
	str	r3, [sp, #8]
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	str	r3, [sp, #4]
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	setMsg
	ldr	r0, [fp, #-16]
	bl	sendMsg
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	sendMsgBuf, .-sendMsgBuf
	.section	.rodata
	.align	2
.LC55:
	.ascii	"canID = %02x\012\000"
	.align	2
.LC56:
	.ascii	"canEID = %02x\012\000"
	.align	2
.LC57:
	.ascii	"canIDE = %02x\012\000"
	.align	2
.LC58:
	.ascii	"canRTR = %02x\012\000"
	.align	2
.LC59:
	.ascii	"canDLC = %02x\012\000"
	.align	2
.LC60:
	.ascii	"TX.Buf[%d] = %02x\012\000"
	.text
	.align	2
	.global	setMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	setMsg, %function
setMsg:
	@ args = 12, 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	r2, [fp, #-24]
	mov	r2, r3
	mov	r3, r1	@ movhi
	strh	r3, [fp, #-18]	@ movhi
	mov	r3, r2
	strb	r3, [fp, #-19]
	ldr	r2, .L194
	ldrh	r3, [fp, #-18]	@ movhi
	strh	r3, [r2]	@ movhi
	ldr	r2, .L194
	ldr	r3, [fp, #-24]
	str	r3, [r2, #4]
	ldr	r2, .L194
	ldrb	r3, [fp, #-19]
	strb	r3, [r2, #8]
	ldr	r2, .L194
	ldrb	r3, [fp, #4]
	strb	r3, [r2, #9]
	ldr	r2, .L194
	ldrb	r3, [fp, #8]
	strb	r3, [r2, #10]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L190
.L191:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #12]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L194
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #11
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L190:
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L191
	ldr	r3, .L194
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L194+4
	bl	printf
	ldr	r3, .L194
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L194+8
	bl	printf
	ldr	r3, .L194
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L194+12
	bl	printf
	ldr	r3, .L194
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L194+16
	bl	printf
	ldr	r3, .L194
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L194+20
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L192
.L193:
	ldr	r2, .L194
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	add	r3, r3, #11
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L194+24
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L192:
	ldrb	r3, [fp, #8]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L193
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L195:
	.align	2
.L194:
	.word	TX
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.size	setMsg, .-setMsg
	.section	.rodata
	.align	2
.LC61:
	.ascii	"selected txbuf = %02x\012\000"
	.text
	.align	2
	.global	sendMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendMsg, %function
sendMsg:
	@ 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]
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
.L198:
	ldr	r1, .L204
	ldr	r0, [fp, #-16]
	bl	mcp25625_getNextFreeTXBuf
	mov	r3, r0
	strb	r3, [fp, #-8]
	ldrh	r3, [fp, #-6]
	add	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
	ldrb	r3, [fp, #-8]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L197
	ldrh	r3, [fp, #-6]
	cmp	r3, #99
	bls	.L198
.L197:
	ldr	r3, .L204
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L204+4
	bl	printf
	ldrh	r3, [fp, #-6]
	cmp	r3, #100
	bne	.L199
	mov	r3, #6
	b	.L200
.L199:
	mov	r3, #0
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, .L204
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_write_canMsg
	ldr	r3, .L204
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r1, r3, #255
	mov	r3, #8
	mov	r2, #8
	ldr	r0, [fp, #-16]
	bl	mcp25625_modifyRegister
.L202:
	ldrh	r3, [fp, #-6]
	add	r3, r3, #1
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, .L204
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mcp25625_readRegister
	mov	r3, r0
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-7]
	and	r3, r3, #8
	strb	r3, [fp, #-7]
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L201
	ldrh	r3, [fp, #-6]
	cmp	r3, #99
	bls	.L202
.L201:
	ldrh	r3, [fp, #-6]
	cmp	r3, #100
	bne	.L203
	mov	r3, #7
	b	.L200
.L203:
	mov	r3, #1
.L200:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L205:
	.align	2
.L204:
	.word	tx_sidh
	.word	.LC61
	.size	sendMsg, .-sendMsg
	.section	.rodata
	.align	2
.LC62:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_write_canMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_write_canMsg, %function
mcp25625_write_canMsg:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	mov	r3, r1
	strb	r3, [fp, #-33]
	ldr	r3, .L208
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldrb	r3, [fp, #-33]
	strb	r3, [fp, #-26]
	ldr	r3, .L208+4
	ldrb	r3, [r3, #10]
	strb	r3, [fp, #-25]
	mvn	r3, #127
	strb	r3, [fp, #-27]
	sub	r3, fp, #24
	mov	r2, #14
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	sub	r2, fp, #24
	sub	r1, fp, #27
	ldr	r0, [fp, #-32]
	bl	mcp25625_setMsg
	sub	r3, fp, #27
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	do_msg
	nop
	ldr	r3, .L208
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L207
	bl	__stack_chk_fail
.L207:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L209:
	.align	2
.L208:
	.word	.LC62
	.word	TX
	.size	mcp25625_write_canMsg, .-mcp25625_write_canMsg
	.section	.rodata
	.align	2
.LC63:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_setMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_setMsg, %function
mcp25625_setMsg:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	strb	r3, [fp, #-33]
	ldr	r3, .L215
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L215+4
	ldrb	r3, [r3, #10]
	strb	r3, [fp, #-19]
	sub	r3, fp, #12
	mov	r2, #4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L215+4
	ldr	r3, [r3, #4]
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-18]	@ movhi
	and	r3, r3, #255
	strb	r3, [fp, #-9]
	ldrh	r3, [fp, #-18]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	ldr	r3, .L215+4
	ldr	r3, [r3, #4]
	lsr	r3, r3, #16
	strh	r3, [fp, #-18]	@ movhi
	ldrh	r3, [fp, #-18]	@ movhi
	and	r3, r3, #255
	and	r3, r3, #3
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	ldrh	r3, [fp, #-18]	@ movhi
	and	r3, r3, #255
	lsl	r3, r3, #3
	and	r3, r3, #255
	bic	r3, r3, #31
	and	r3, r3, #255
	add	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	orr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	ldrh	r3, [fp, #-18]
	lsr	r3, r3, #5
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	mov	r2, #64
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #3
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #4
	ldrb	r2, [fp, #-9]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, .L215+4
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L211
	ldrb	r3, [fp, #-19]
	orr	r3, r3, #64
	strb	r3, [fp, #-19]
.L211:
	ldr	r3, [fp, #-32]
	add	r3, r3, #5
	ldrb	r2, [fp, #-19]
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L212
.L213:
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, .L215+4
	ldr	r2, [fp, #-16]
	add	r2, r1, r2
	add	r2, r2, #11
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L212:
	ldr	r3, .L215+4
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	blt	.L213
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	mcp25625_loadTXBuffer
	nop
	ldr	r3, .L215
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L214
	bl	__stack_chk_fail
.L214:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L216:
	.align	2
.L215:
	.word	.LC63
	.word	TX
	.size	mcp25625_setMsg, .-mcp25625_setMsg
	.align	2
	.global	mcp25625_loadTXBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_loadTXBuffer, %function
mcp25625_loadTXBuffer:
	@ 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]
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	sub	r3, r3, #49
	cmp	r3, #37
	ldrls	pc, [pc, r3, asl #2]
	b	.L218
.L220:
	.word	.L225
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L224
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L223
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L222
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L221
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L218
	.word	.L219
.L225:
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	b	.L218
.L224:
	mov	r3, #1
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	b	.L218
.L223:
	mov	r3, #2
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #2
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	b	.L218
.L222:
	mov	r3, #3
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #2
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	b	.L218
.L221:
	mov	r3, #4
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	b	.L218
.L219:
	mov	r3, #5
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	nop
.L218:
	ldr	r3, [fp, #-24]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldrb	r3, [fp, #-5]
	orr	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-24]
	strb	r2, [r3]
	ldr	r3, .L226
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	add	r3, r3, #6
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	do_msg
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L227:
	.align	2
.L226:
	.word	TX
	.size	mcp25625_loadTXBuffer, .-mcp25625_loadTXBuffer
	.section	.rodata
	.align	2
.LC64:
	.ascii	"readMsgBuf FUNC\000"
	.align	2
.LC65:
	.ascii	"Receive Success\000"
	.align	2
.LC66:
	.ascii	"Receive Fail\000"
	.text
	.align	2
	.global	readMsgBuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	readMsgBuf, %function
readMsgBuf:
	@ args = 4, 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r0, .L232
	bl	puts
	ldrb	r3, [fp, #4]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	readMsg
	mov	r3, r0
	cmp	r3, #1
	bne	.L229
	ldr	r3, .L232+4
	ldrh	r2, [r3]
	ldr	r3, [fp, #-12]
	strh	r2, [r3]	@ movhi
	ldr	r3, .L232+4
	ldrb	r2, [r3, #9]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, .L232+4
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L230
	ldr	r3, .L232+4
	mov	r2, #-2147483648
	str	r2, [r3, #4]
.L230:
	ldr	r0, .L232+8
	bl	puts
	mov	r3, #1
	b	.L231
.L229:
	ldr	r0, .L232+12
	bl	puts
	mov	r3, #0
.L231:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L233:
	.align	2
.L232:
	.word	.LC64
	.word	RX
	.word	.LC65
	.word	.LC66
	.size	readMsgBuf, .-readMsgBuf
	.section	.rodata
	.align	2
.LC67:
	.ascii	"readMsg FUNC\000"
	.text
	.align	2
	.global	readMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	readMsg, %function
readMsg:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r0, .L239
	bl	puts
	ldrb	r3, [fp, #-17]
	strb	r3, [fp, #-6]
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L235
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r2, r3
	mov	r1, #97
	ldr	r0, [fp, #-16]
	bl	mcp25625_read_canMsg
	mov	r3, #0
	mov	r2, #1
	mov	r1, #44
	ldr	r0, [fp, #-16]
	bl	mcp25625_modifyRegister
	mov	r3, #1
	strb	r3, [fp, #-7]
	b	.L236
.L235:
	ldrb	r3, [fp, #-6]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L237
	mov	r3, #1
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r2, r3
	mov	r1, #113
	ldr	r0, [fp, #-16]
	bl	mcp25625_read_canMsg
	mov	r3, #0
	mov	r2, #2
	mov	r1, #44
	ldr	r0, [fp, #-16]
	bl	mcp25625_modifyRegister
	mov	r3, #1
	strb	r3, [fp, #-7]
	b	.L236
.L237:
	mov	r3, #0
	strb	r3, [fp, #-7]
.L236:
	ldrb	r3, [fp, #-7]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L240:
	.align	2
.L239:
	.word	.LC67
	.size	readMsg, .-readMsg
	.section	.rodata
	.align	2
.LC68:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_readStatus
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_readStatus, %function
mcp25625_readStatus:
	@ 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, .L244
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mvn	r3, #95
	strb	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	do_msg
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	and	r3, r3, #3
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	ldr	r2, .L244
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L243
	bl	__stack_chk_fail
.L243:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L245:
	.align	2
.L244:
	.word	.LC68
	.size	mcp25625_readStatus, .-mcp25625_readStatus
	.section	.rodata
	.align	2
.LC69:
	.ascii	"read_canMsg FUNC\000"
	.text
	.align	2
	.global	mcp25625_read_canMsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_read_canMsg, %function
mcp25625_read_canMsg:
	@ 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]
	mov	r3, r1
	strb	r3, [fp, #-17]
	mov	r3, r2
	strb	r3, [fp, #-18]
	ldr	r0, .L247
	bl	puts
	ldrb	r3, [fp, #-17]
	strb	r3, [fp, #-5]
	ldrb	r1, [fp, #-5]	@ zero_extendqisi2
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	str	r3, [sp]
	ldr	r3, .L247+4
	ldr	r2, .L247+8
	ldr	r0, [fp, #-16]
	bl	mcp25625_read_buf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L248:
	.align	2
.L247:
	.word	.LC69
	.word	RX
	.word	RX+8
	.size	mcp25625_read_canMsg, .-mcp25625_read_canMsg
	.section	.rodata
	.align	2
.LC70:
	.ascii	"read_buf FUNC\000"
	.align	2
.LC71:
	.ascii	"RXBUF[%d] = %x\012\000"
	.align	2
.LC72:
	.ascii	"Std ID : 0x%x\012\000"
	.align	2
.LC73:
	.ascii	"Ext ID : 0x%x\012\000"
	.align	2
.LC74:
	.ascii	"RXBxCTRL : 0x%x\012\000"
	.align	2
.LC75:
	.ascii	"DLC : 0x%x\012\000"
	.align	2
.LC76:
	.ascii	"RXBUF DATA = 0x%x\012\000"
	.align	2
.LC77:
	.ascii	"RTR : 0x%x\012\000"
	.align	2
.LC78:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mcp25625_read_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_read_buf, %function
mcp25625_read_buf:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	mov	r3, r1
	strb	r3, [fp, #-41]
	ldr	r3, .L258
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L258+4
	bl	puts
	ldr	r3, [fp, #-52]
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-48]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-35]
	b	.L250
.L251:
	ldrb	r2, [fp, #-41]
	ldrb	r3, [fp, #-35]
	add	r3, r2, r3
	and	r3, r3, #255
	ldrb	r4, [fp, #-35]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	mcp25625_readRegister
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	add	r3, r3, r4
	strb	r2, [r3, #-20]
	ldrb	r1, [fp, #-35]	@ zero_extendqisi2
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-20]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L258+8
	bl	printf
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-35]
.L250:
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	cmp	r3, #12
	bls	.L251
	ldrb	r3, [fp, #-32]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	lsr	r3, r3, #5
	and	r3, r3, #255
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-52]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L258+12
	bl	printf
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	add	r3, r3, #1
	sub	r2, fp, #12
	add	r3, r2, r3
	ldrb	r3, [r3, #-20]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L252
	ldr	r3, [fp, #-48]
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	lsl	r3, r3, #2
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-52]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-52]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-52]
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L258+16
	bl	printf
.L252:
	ldrb	r3, [fp, #-41]
	sub	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	mcp25625_readRegister
	mov	r3, r0
	strb	r3, [fp, #-33]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L258+20
	bl	printf
	ldrb	r2, [fp, #-28]	@ zero_extendqisi2
	ldr	r3, .L258+24
	strb	r2, [r3, #9]
	ldr	r3, .L258+24
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L258+28
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-35]
	b	.L253
.L254:
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	add	r2, r3, #5
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	sub	r1, fp, #12
	add	r2, r1, r2
	ldrb	r1, [r2, #-20]	@ zero_extendqisi2
	ldr	r2, .L258+24
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3, #11]
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	ldr	r2, .L258+24
	add	r3, r2, r3
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L258+32
	bl	printf
	ldrb	r3, [fp, #-35]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-35]
.L253:
	ldr	r3, .L258+24
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	ldrb	r2, [fp, #-35]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L254
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L255
	ldr	r3, .L258+24
	mov	r2, #1
	strb	r2, [r3, #10]
	b	.L256
.L255:
	ldr	r3, .L258+24
	mov	r2, #0
	strb	r2, [r3, #10]
.L256:
	ldr	r3, .L258+24
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L258+36
	bl	printf
	nop
	ldr	r3, .L258
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L257
	bl	__stack_chk_fail
.L257:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L259:
	.align	2
.L258:
	.word	.LC78
	.word	.LC70
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	RX
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.size	mcp25625_read_buf, .-mcp25625_read_buf
	.section	.rodata
	.align	2
.LC79:
	.ascii	"ReadRXBuffer Func\000"
	.align	2
.LC80:
	.ascii	"RXB[%d] = 0x%x\012\000"
	.text
	.align	2
	.global	mcp25625_ReadRXBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcp25625_ReadRXBuffer, %function
mcp25625_ReadRXBuffer:
	@ 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]
	mov	r1, r2
	mov	r2, r3
	mov	r3, r1
	strb	r3, [fp, #-21]
	mov	r3, r2
	strb	r3, [fp, #-22]
	ldr	r0, .L265
	bl	puts
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L261
	ldrb	r3, [fp, #-21]
	bic	r3, r3, #6
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	b	.L262
.L261:
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L262
	ldrb	r3, [fp, #-21]
	bic	r3, r3, #6
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
.L262:
	mov	r2, #13
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	do_msg
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L263
.L264:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L265+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L263:
	ldr	r3, [fp, #-8]
	cmp	r3, #12
	ble	.L264
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L266:
	.align	2
.L265:
	.word	.LC79
	.word	.LC80
	.size	mcp25625_ReadRXBuffer, .-mcp25625_ReadRXBuffer
	.section	.rodata
	.align	2
.LC81:
	.ascii	"SPI rd_mode\000"
	.align	2
.LC82:
	.ascii	"SPI rd_lsb_fist\000"
	.align	2
.LC83:
	.ascii	"SPI bits_per_word\000"
	.align	2
.LC84:
	.ascii	"SPI max_speed_hz\000"
	.align	2
.LC85:
	.ascii	"(lsb first) \000"
	.align	2
.LC86:
	.ascii	"\000"
	.align	2
.LC87:
	.ascii	"%s: spi read mode 0x%x, %d bits %sper word, %d Hz m"
	.ascii	"ax\012\000"
	.align	2
.LC88:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dumpstat, %function
dumpstat:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L277
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L277+4
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L268
	ldr	r0, .L277+8
	bl	perror
	b	.L267
.L268:
	sub	r3, fp, #18
	mov	r2, r3
	ldr	r1, .L277+12
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L270
	ldr	r0, .L277+16
	bl	perror
	b	.L267
.L270:
	sub	r3, fp, #17
	mov	r2, r3
	ldr	r1, .L277+20
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L271
	ldr	r0, .L277+24
	bl	perror
	b	.L267
.L271:
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L277+28
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L272
	ldr	r0, .L277+32
	bl	perror
	b	.L267
.L272:
	ldr	r1, [fp, #-16]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L273
	ldr	r3, .L277+36
	b	.L274
.L273:
	ldr	r3, .L277+40
.L274:
	ldr	r2, [fp, #-12]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-24]
	ldr	r0, .L277+44
	bl	printf
.L267:
	ldr	r3, .L277
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L276
	bl	__stack_chk_fail
.L276:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L278:
	.align	2
.L277:
	.word	.LC88
	.word	-2147194107
	.word	.LC81
	.word	-2147390718
	.word	.LC82
	.word	-2147390717
	.word	.LC83
	.word	-2147194108
	.word	.LC84
	.word	.LC85
	.word	.LC86
	.word	.LC87
	.size	dumpstat, .-dumpstat
	.section	.rodata
	.align	2
.LC89:
	.ascii	"status : %d\012\000"
	.align	2
.LC90:
	.ascii	"SPI_IOC_MESSAGE\000"
	.align	2
.LC91:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_msg, %function
do_msg:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	ldr	r3, .L283
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #76
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-92]
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-92]
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-28]
	sub	r3, fp, #76
	mov	r2, r3
	ldr	r1, .L283+4
	ldr	r0, [fp, #-88]
	bl	ioctl
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L279
	ldr	r1, [fp, #-80]
	ldr	r0, .L283+8
	bl	printf
	ldr	r0, .L283+12
	bl	perror
.L279:
	ldr	r3, .L283
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L282
	bl	__stack_chk_fail
.L282:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L284:
	.align	2
.L283:
	.word	.LC91
	.word	1077963520
	.word	.LC89
	.word	.LC90
	.size	do_msg, .-do_msg
	.section	.rodata
	.align	2
.LC92:
	.ascii	"read\000"
	.align	2
.LC93:
	.ascii	"short read\012\000"
	.align	2
.LC94:
	.ascii	"read(%2d, %2d): %02x %02x,\000"
	.align	2
.LC95:
	.ascii	" %02x\000"
	.align	2
.LC96:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_read, %function
do_read:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L295
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bgt	.L286
	mov	r3, #2
	str	r3, [fp, #-60]
	b	.L287
.L286:
	ldr	r3, [fp, #-60]
	cmp	r3, #32
	bls	.L287
	mov	r3, #32
	str	r3, [fp, #-60]
.L287:
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r2, [fp, #-60]
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	read
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L288
	ldr	r0, .L295+4
	bl	perror
	b	.L285
.L288:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	beq	.L290
	ldr	r3, .L295+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L295+12
	bl	fwrite
	b	.L285
.L290:
	ldrb	r3, [fp, #-40]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-39]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-60]
	ldr	r0, .L295+16
	bl	printf
	ldr	r3, [fp, #-44]
	sub	r3, r3, #2
	str	r3, [fp, #-44]
	sub	r3, fp, #40
	add	r3, r3, #2
	str	r3, [fp, #-48]
	b	.L291
.L292:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L295+20
	bl	printf
.L291:
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bgt	.L292
	mov	r0, #10
	bl	putchar
.L285:
	ldr	r3, .L295
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L294
	bl	__stack_chk_fail
.L294:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L296:
	.align	2
.L295:
	.word	.LC96
	.word	.LC92
	.word	stderr
	.word	.LC93
	.word	.LC94
	.word	.LC95
	.size	do_read, .-do_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
