	.file	"225143523.c"
	.intel_syntax noprefix
	.text
	.globl	CANConfig
	.data
	.align 32
	.type	CANConfig, @object
	.size	CANConfig, 56
CANConfig:
	.value	0
	.zero	6
	.quad	0
	.long	1
	.zero	4
	.quad	0
	.byte	1
	.byte	8
	.byte	0
	.byte	0
	.zero	4
	.quad	0
	.byte	0
	.byte	0
	.zero	6
	.align 32
	.type	OptionsTable, @object
	.size	OptionsTable, 80
OptionsTable:
	.quad	8
	.quad	1
	.quad	2
	.quad	8
	.quad	4
	.quad	16
	.quad	1
	.quad	4
	.quad	16
	.quad	128
	.section	.rodata
.LC0:
	.string	"Xil_Out32"
	.text
	.type	Xil_Out32, @function
Xil_Out32:
.LFB6:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Xil_Out32, .-Xil_Out32
	.section	.rodata
.LC1:
	.string	"Xil_In32"
	.text
	.type	Xil_In32, @function
Xil_In32:
.LFB7:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Xil_In32, .-Xil_In32
	.globl	myDevice
	.bss
	.align 32
	.type	myDevice, @object
	.size	myDevice, 176
myDevice:
	.zero	176
	.globl	ptr
	.align 8
	.type	ptr, @object
	.size	ptr, 8
ptr:
	.zero	8
	.section	.rodata
.LC2:
	.string	"/dev/spidev32766.0"
.LC3:
	.string	"Open error: "
.LC4:
	.string	"Open success"
.LC5:
	.string	"rbuf[%d] = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 576
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -552[rbp], rax
	mov	DWORD PTR -564[rbp], 8
	mov	DWORD PTR -560[rbp], 8
	mov	DWORD PTR -18[rbp], 253690111
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -556[rbp], eax
	cmp	DWORD PTR -556[rbp], 0
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -556[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	dumpstat
	lea	rax, -544[rbp]
	mov	edx, 512
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -544[rbp]
	mov	eax, DWORD PTR -556[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -568[rbp], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -568[rbp]
	cdqe
	mov	edx, DWORD PTR -544[rbp+rax*4]
	mov	eax, DWORD PTR -568[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -568[rbp], 1
.L6:
	cmp	DWORD PTR -568[rbp], 127
	jle	.L7
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"read"
.LC7:
	.string	"short read\n"
.LC8:
	.string	"read(%2d, %2d): %02x %02x,"
.LC9:
	.string	" %02x"
	.text
	.type	do_read, @function
do_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, 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	.L11
	mov	DWORD PTR -72[rbp], 2
	jmp	.L12
.L11:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 32
	jbe	.L12
	mov	DWORD PTR -72[rbp], 32
.L12:
	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	.L13
	lea	rdi, .LC6[rip]
	call	perror@PLT
	jmp	.L10
.L13:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	jmp	.L10
.L15:
	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, .LC8[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	.L16
.L17:
	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, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jg	.L17
	mov	edi, 10
	call	putchar@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	do_read, .-do_read
	.section	.rodata
.LC10:
	.string	"before do_msg ioctl"
.LC11:
	.string	"after do_msg ioctl"
.LC12:
	.string	"status : %d\n"
.LC13:
	.string	"SPI_IOC_MESSAGE"
.LC14:
	.string	"response(%2d, %2d): "
	.text
	.type	do_msg, @function
do_msg:
.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	DWORD PTR -136[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -112[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -48[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -136[rbp]
	cmp	eax, 32
	jbe	.L21
	mov	DWORD PTR -136[rbp], 32
.L21:
	mov	BYTE PTR -48[rbp], -86
	lea	rax, -48[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	DWORD PTR -96[rbp], 1
	lea	rax, -48[rbp]
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -136[rbp]
	mov	DWORD PTR -64[rbp], eax
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, 1077963520
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -124[rbp], eax
	lea	rdi, .LC11[rip]
	call	puts@PLT
	cmp	DWORD PTR -124[rbp], 0
	jns	.L22
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L20
.L22:
	mov	edx, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L24
.L25:
	mov	rax, QWORD PTR -120[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -120[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -136[rbp], 1
.L24:
	cmp	DWORD PTR -136[rbp], 0
	jne	.L25
	mov	edi, 10
	call	putchar@PLT
.L20:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	do_msg, .-do_msg
	.section	.rodata
.LC15:
	.string	"SPI rd_mode"
.LC16:
	.string	"SPI rd_lsb_fist"
.LC17:
	.string	"SPI bits_per_word"
.LC18:
	.string	"SPI max_speed_hz"
.LC19:
	.string	"(lsb first) "
.LC20:
	.string	""
	.align 8
.LC21:
	.string	"%s: spi read mode 0x%x, %d bits %sper word, %d Hz max\n"
	.text
	.type	dumpstat, @function
dumpstat:
.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, 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	.L28
	lea	rdi, .LC15[rip]
	call	perror@PLT
	jmp	.L27
.L28:
	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	.L30
	lea	rdi, .LC16[rip]
	call	perror@PLT
	jmp	.L27
.L30:
	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	.L31
	lea	rdi, .LC17[rip]
	call	perror@PLT
	jmp	.L27
.L31:
	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	.L32
	lea	rdi, .LC18[rip]
	call	perror@PLT
	jmp	.L27
.L32:
	mov	edi, DWORD PTR -12[rbp]
	movzx	eax, BYTE PTR -18[rbp]
	test	al, al
	je	.L33
	lea	rax, .LC19[rip]
	jmp	.L34
.L33:
	lea	rax, .LC20[rip]
.L34:
	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, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
.L27:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	dumpstat, .-dumpstat
	.section	.rodata
.LC22:
	.string	"Initialize"
	.text
	.globl	Initialize
	.type	Initialize, @function
Initialize:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC22[rip]
	call	puts@PLT
	mov	edx, 1073741824
	mov	esi, 1073807360
	lea	rdi, myDevice[rip]
	call	CAN_begin
	mov	esi, 0
	lea	rdi, myDevice[rip]
	call	CAN_Configure
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	Initialize, .-Initialize
	.section	.rodata
.LC23:
	.string	"CAN_begin"
	.text
	.globl	CAN_begin
	.type	CAN_begin, @function
CAN_begin:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	lea	rdi, .LC23[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR CANConfig[rip+8], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rdi, rax
	call	CAN_SPIInit
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	CAN_begin, .-CAN_begin
	.section	.rodata
.LC24:
	.string	"CAN_Configure"
	.text
	.globl	CAN_Configure
	.type	CAN_Configure, @function
CAN_Configure:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	WORD PTR -11[rbp], -1146
	mov	BYTE PTR -9[rbp], 65
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 128
	mov	edx, 224
	mov	esi, 15
	mov	rdi, rax
	call	CAN_ModifyReg
	lea	rdx, -11[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 3
	mov	esi, 40
	mov	rdi, rax
	call	CAN_WriteReg
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	CAN_ClearReg
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 12
	mov	esi, 16
	mov	rdi, rax
	call	CAN_ClearReg
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 8
	mov	esi, 32
	mov	rdi, rax
	call	CAN_ClearReg
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 14
	mov	esi, 48
	mov	rdi, rax
	call	CAN_ClearReg
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 14
	mov	esi, 64
	mov	rdi, rax
	call	CAN_ClearReg
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 14
	mov	esi, 80
	mov	rdi, rax
	call	CAN_ClearReg
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 96
	mov	edx, 100
	mov	esi, 96
	mov	rdi, rax
	call	CAN_ModifyReg
	movzx	eax, BYTE PTR -28[rbp]
	sal	eax, 5
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, edx
	mov	edx, 224
	mov	esi, 15
	mov	rdi, rax
	call	CAN_ModifyReg
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L40
	call	__stack_chk_fail@PLT
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	CAN_Configure, .-CAN_Configure
	.section	.rodata
.LC25:
	.string	"CAN_SPIInit"
	.text
	.globl	CAN_SPIInit
	.type	CAN_SPIInit, @function
CAN_SPIInit:
.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	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC25[rip]
	call	puts@PLT
	mov	rdx, QWORD PTR CANConfig[rip+8]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, CANConfig[rip]
	mov	rdi, rax
	call	XSpi_CfgInitialize
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L42
	mov	eax, 1
	jmp	.L43
.L42:
	mov	QWORD PTR -8[rbp], 19
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XSpi_SetOptions
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L44
	mov	eax, 1
	jmp	.L43
.L44:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	XSpi_SetSlaveSelect
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L45
	mov	eax, 1
	jmp	.L43
.L45:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XSpi_Start
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 28
	mov	esi, 0
	mov	rdi, rax
	call	Xil_Out32
	mov	eax, 0
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	CAN_SPIInit, .-CAN_SPIInit
	.section	.rodata
.LC26:
	.string	"CAN_ModifyReg"
	.text
	.globl	CAN_ModifyReg
	.type	CAN_ModifyReg, @function
CAN_ModifyReg:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, ecx
	mov	ecx, esi
	mov	BYTE PTR -28[rbp], cl
	mov	BYTE PTR -32[rbp], dl
	mov	BYTE PTR -36[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	BYTE PTR -12[rbp], 5
	movzx	eax, BYTE PTR -28[rbp]
	mov	BYTE PTR -11[rbp], al
	movzx	eax, BYTE PTR -32[rbp]
	mov	BYTE PTR -10[rbp], al
	movzx	eax, BYTE PTR -36[rbp]
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, 8[rax]
	lea	rax, -12[rbp]
	mov	ecx, 4
	mov	edx, 0
	mov	rsi, rax
	call	XSpi_Transfer
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	CAN_ModifyReg, .-CAN_ModifyReg
	.section	.rodata
.LC27:
	.string	"CAN_WriteReg"
	.text
	.globl	CAN_WriteReg
	.type	CAN_WriteReg, @function
CAN_WriteReg:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -104[rbp], rdx
	mov	QWORD PTR -112[rbp], rcx
	mov	BYTE PTR -92[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 2
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L49:
	cmp	rsp, rdx
	je	.L50
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L49
.L50:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L51
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L51:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 2
	mov	rax, QWORD PTR -64[rbp]
	movzx	edx, BYTE PTR -92[rbp]
	mov	BYTE PTR 1[rax], dl
	mov	QWORD PTR -80[rbp], 0
	jmp	.L52
.L53:
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -80[rbp]
	lea	rcx, 2[rdx]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax+rcx], dl
	add	QWORD PTR -80[rbp], 1
.L52:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -112[rbp]
	jb	.L53
	mov	rax, QWORD PTR -112[rbp]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rdi, 8[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	rsi, rax
	call	XSpi_Transfer
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	CAN_WriteReg, .-CAN_WriteReg
	.section	.rodata
.LC28:
	.string	"CAN_ClearReg"
	.text
	.globl	CAN_ClearReg
	.type	CAN_ClearReg, @function
CAN_ClearReg:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -104[rbp], rdx
	mov	BYTE PTR -92[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC28[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 2
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L56:
	cmp	rsp, rdx
	je	.L57
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L56
.L57:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L58
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L58:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], 2
	mov	rax, QWORD PTR -64[rbp]
	movzx	edx, BYTE PTR -92[rbp]
	mov	BYTE PTR 1[rax], dl
	mov	rax, QWORD PTR -104[rbp]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rdi, 8[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	rsi, rax
	call	XSpi_Transfer
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	CAN_ClearReg, .-CAN_ClearReg
	.section	.rodata
.LC29:
	.string	"CAN_ReadStatus"
	.text
	.globl	CAN_ReadStatus
	.type	CAN_ReadStatus, @function
CAN_ReadStatus:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC29[rip]
	call	puts@PLT
	mov	WORD PTR -10[rbp], 160
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, 8[rax]
	lea	rdx, -10[rbp]
	lea	rax, -10[rbp]
	mov	ecx, 2
	mov	rsi, rax
	call	XSpi_Transfer
	movzx	eax, BYTE PTR -9[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	CAN_ReadStatus, .-CAN_ReadStatus
	.section	.rodata
.LC30:
	.string	"CAN_SendMessage"
	.align 8
.LC31:
	.string	"CAN_SendMessage message.dlc: %02x\r\n"
.LC32:
	.string	"CAN_SendMessage: %02x\r\n"
	.text
	.globl	CAN_SendMessage
	.type	CAN_SendMessage, @function
CAN_SendMessage:
.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, 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	rdi, .LC30[rip]
	call	puts@PLT
	cmp	DWORD PTR -44[rbp], 2
	je	.L64
	cmp	DWORD PTR -44[rbp], 2
	ja	.L65
	cmp	DWORD PTR -44[rbp], 0
	je	.L66
	cmp	DWORD PTR -44[rbp], 1
	je	.L67
	jmp	.L65
.L66:
	mov	BYTE PTR -23[rbp], 1
	mov	BYTE PTR -22[rbp], 0
	jmp	.L68
.L67:
	mov	BYTE PTR -23[rbp], 2
	mov	BYTE PTR -22[rbp], 2
	jmp	.L68
.L64:
	mov	BYTE PTR -23[rbp], 4
	mov	BYTE PTR -22[rbp], 4
	jmp	.L68
.L65:
	mov	eax, 1
	jmp	.L74
.L68:
	movzx	eax, WORD PTR 16[rbp]
	shr	ax, 3
	mov	BYTE PTR -21[rbp], al
	movzx	eax, WORD PTR 16[rbp]
	movzx	eax, ax
	sal	eax, 5
	mov	BYTE PTR -20[rbp], al
	movzx	eax, BYTE PTR -20[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR 32[rbp]
	movzx	eax, al
	sal	eax, 3
	and	eax, 8
	or	eax, edx
	mov	BYTE PTR -20[rbp], al
	movzx	edx, BYTE PTR -20[rbp]
	mov	rax, QWORD PTR 24[rbp]
	shr	rax, 16
	and	eax, 3
	or	eax, edx
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR 24[rbp]
	shr	rax, 8
	mov	BYTE PTR -19[rbp], al
	mov	rax, QWORD PTR 24[rbp]
	mov	BYTE PTR -18[rbp], al
	movzx	eax, BYTE PTR 33[rbp]
	movzx	eax, al
	sal	eax, 6
	and	eax, 64
	mov	BYTE PTR -17[rbp], al
	movzx	eax, BYTE PTR -17[rbp]
	mov	edx, eax
	movzx	eax, BYTE PTR 35[rbp]
	and	eax, 15
	or	eax, edx
	mov	BYTE PTR -17[rbp], al
	mov	BYTE PTR -24[rbp], 0
	jmp	.L70
.L71:
	movzx	eax, BYTE PTR -24[rbp]
	movzx	edx, BYTE PTR -24[rbp]
	lea	ecx, 5[rdx]
	cdqe
	movzx	edx, BYTE PTR 36[rbp+rax]
	movsx	rax, ecx
	mov	BYTE PTR -21[rbp+rax], dl
	movzx	eax, BYTE PTR -24[rbp]
	add	eax, 1
	mov	BYTE PTR -24[rbp], al
.L70:
	movzx	eax, BYTE PTR 35[rbp]
	cmp	BYTE PTR -24[rbp], al
	jb	.L71
	movzx	eax, BYTE PTR 35[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	BYTE PTR -24[rbp], 0
	jmp	.L72
.L73:
	movzx	eax, BYTE PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -21[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC32[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -24[rbp]
	add	eax, 1
	mov	BYTE PTR -24[rbp], al
.L72:
	movzx	eax, BYTE PTR 35[rbp]
	movzx	eax, al
	lea	edx, 4[rax]
	movzx	eax, BYTE PTR -24[rbp]
	cmp	edx, eax
	jge	.L73
	movzx	eax, BYTE PTR 35[rbp]
	movzx	eax, al
	add	eax, 5
	movsx	rcx, eax
	movzx	esi, BYTE PTR -22[rbp]
	lea	rdx, -21[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	CAN_LoadTxBuffer
	movzx	edx, BYTE PTR -23[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	CAN_RequestToSend
	mov	eax, 0
.L74:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L75
	call	__stack_chk_fail@PLT
.L75:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	CAN_SendMessage, .-CAN_SendMessage
	.section	.rodata
.LC33:
	.string	"CAN_LoadTxBuffet"
	.text
	.globl	CAN_LoadTxBuffer
	.type	CAN_LoadTxBuffer, @function
CAN_LoadTxBuffer:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 72
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -104[rbp], rdx
	mov	QWORD PTR -112[rbp], rcx
	mov	BYTE PTR -92[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	lea	rdi, .LC33[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 1
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L77:
	cmp	rsp, rdx
	je	.L78
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L77
.L78:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L79
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L79:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -64[rbp], rax
	movzx	eax, BYTE PTR -92[rbp]
	or	eax, 64
	mov	edx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax], dl
	mov	QWORD PTR -80[rbp], 0
	jmp	.L80
.L81:
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -80[rbp]
	lea	rcx, 1[rdx]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	BYTE PTR [rax+rcx], dl
	add	QWORD PTR -80[rbp], 1
.L80:
	mov	rax, QWORD PTR -80[rbp]
	cmp	rax, QWORD PTR -112[rbp]
	jb	.L81
	mov	rax, QWORD PTR -112[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -88[rbp]
	lea	rdi, 8[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	ecx, edx
	mov	edx, 0
	mov	rsi, rax
	call	XSpi_Transfer
	mov	rsp, rbx
	nop
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L82
	call	__stack_chk_fail@PLT
.L82:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	CAN_LoadTxBuffer, .-CAN_LoadTxBuffer
	.section	.rodata
.LC34:
	.string	"CAN_RequestToSend"
	.text
	.globl	CAN_RequestToSend
	.type	CAN_RequestToSend, @function
CAN_RequestToSend:
.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	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC34[rip]
	call	puts@PLT
	movzx	eax, BYTE PTR -28[rbp]
	or	eax, -128
	mov	BYTE PTR -9[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	lea	rdi, 8[rax]
	lea	rax, -9[rbp]
	mov	ecx, 1
	mov	edx, 0
	mov	rsi, rax
	call	XSpi_Transfer
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	CAN_RequestToSend, .-CAN_RequestToSend
	.section	.rodata
.LC35:
	.string	"CAN_end"
	.text
	.globl	CAN_end
	.type	CAN_end, @function
CAN_end:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC35[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	rdi, rax
	call	XSpi_Stop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	CAN_end, .-CAN_end
	.section	.rodata
.LC36:
	.string	"XSpi_CfgInitialize"
	.text
	.globl	XSpi_CfgInitialize
	.type	XSpi_CfgInitialize, @function
XSpi_CfgInitialize:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 60[rax]
	cmp	eax, 572662306
	jne	.L87
	mov	eax, 5
	jmp	.L92
.L87:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 128[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 104[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 112[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 120[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 124[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 64[rax], edx
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR 80[rax], dl
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 33[rax]
	test	al, al
	jne	.L89
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR 81[rax], 8
	jmp	.L90
.L89:
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR 33[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR 81[rax], dl
.L90:
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR 34[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR 82[rax], dl
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 152[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	movzx	edx, BYTE PTR 48[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR 160[rax], dl
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 56[rax], 286331153
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 80[rax]
	movzx	eax, al
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 96[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 49[rax]
	cmp	al, 1
	jne	.L91
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -24[rbp], rax
	or	QWORD PTR -24[rbp], 102
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	BYTE PTR -11[rbp], -97
	mov	BYTE PTR -10[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	movzx	eax, BYTE PTR -11[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 104
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	movzx	eax, BYTE PTR -10[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 104
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	mov	rdx, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 104
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -24[rbp], rax
	and	QWORD PTR -24[rbp], -257
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -24[rbp], rax
	or	QWORD PTR -24[rbp], 256
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 108
	mov	rdi, rax
	call	Xil_In32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 108
	mov	rdi, rax
	call	Xil_In32
.L91:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	XSpi_Reset
	mov	eax, 0
.L92:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	XSpi_CfgInitialize, .-XSpi_CfgInitialize
	.section	.rodata
.LC37:
	.string	"XSpi_SetOptions"
	.text
	.globl	XSpi_SetOptions
	.type	XSpi_SetOptions, @function
XSpi_SetOptions:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 128[rax]
	test	eax, eax
	je	.L95
	mov	eax, 21
	jmp	.L96
.L95:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 1
	test	rax, rax
	je	.L97
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 72[rax]
	test	rax, rax
	je	.L97
	mov	eax, 1158
	jmp	.L96
.L97:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	jmp	.L98
.L101:
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, OptionsTable[rip]
	mov	rax, QWORD PTR [rdx+rax]
	and	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L99
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, OptionsTable[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	or	QWORD PTR -16[rbp], rax
	jmp	.L100
.L99:
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, OptionsTable[rip+8]
	mov	rax, QWORD PTR [rdx+rax]
	not	rax
	and	QWORD PTR -16[rbp], rax
.L100:
	add	QWORD PTR -8[rbp], 1
.L98:
	cmp	QWORD PTR -8[rbp], 4
	jbe	.L101
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	eax, 0
.L96:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	XSpi_SetOptions, .-XSpi_SetOptions
	.section	.rodata
.LC38:
	.string	"XSpi_SetSlaveSelect"
	.text
	.globl	XSpi_SetSlaveSelect
	.type	XSpi_SetSlaveSelect, @function
XSpi_SetSlaveSelect:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	lea	rdi, .LC38[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 128[rax]
	test	eax, eax
	je	.L103
	mov	eax, 21
	jmp	.L104
.L103:
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 80[rax]
	movzx	eax, al
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L105
.L107:
	mov	eax, DWORD PTR -4[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	ecx, eax
	shr	rdx, cl
	mov	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L106
	add	DWORD PTR -8[rbp], 1
.L106:
	sub	DWORD PTR -4[rbp], 1
.L105:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L107
	cmp	DWORD PTR -8[rbp], 1
	jle	.L108
	mov	eax, 1156
	jmp	.L104
.L108:
	mov	rax, QWORD PTR -32[rbp]
	not	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 96[rax], rdx
	mov	eax, 0
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	XSpi_SetSlaveSelect, .-XSpi_SetSlaveSelect
	.section	.rodata
.LC39:
	.string	"XSpi_Start"
	.text
	.globl	XSpi_Start
	.type	XSpi_Start, @function
XSpi_Start:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC39[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 60[rax]
	cmp	eax, 572662306
	jne	.L110
	mov	eax, 5
	jmp	.L111
.L110:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 40
	mov	rdi, rax
	call	Xil_In32
	or	rax, 8235
	mov	rdx, rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 40
	mov	rsi, rdx
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 60[rax], 572662306
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -8[rbp], rax
	or	QWORD PTR -8[rbp], 98
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 28
	mov	esi, 2147483648
	mov	rdi, rax
	call	Xil_Out32
	mov	eax, 0
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	XSpi_Start, .-XSpi_Start
	.section	.rodata
.LC40:
	.string	"XSpi_Reset"
	.text
	.globl	XSpi_Reset
	.type	XSpi_Reset, @function
XSpi_Reset:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	XSpi_Abort
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 96[rax], rdx
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 64
	mov	esi, 10
	mov	rdi, rax
	call	Xil_Out32
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	XSpi_Reset, .-XSpi_Reset
	.section	.rodata
.LC41:
	.string	"XSpi_Abort"
.LC42:
	.string	"XSpi_SetSlaveSelectReg"
.LC43:
	.string	"SlaveSelectMask %d\n"
.LC44:
	.string	"Xspi_GetControlReg"
.LC45:
	.string	"XSpi_SetControlReg"
	.text
	.globl	XSpi_Abort
	.type	XSpi_Abort, @function
XSpi_Abort:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC41[rip]
	call	puts@PLT
	lea	rdi, .LC42[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rsi, rax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 112
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	lea	rdi, .LC44[rip]
	call	puts@PLT
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	WORD PTR -2[rbp], ax
	or	WORD PTR -2[rbp], 256
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 64[rax]
	test	eax, eax
	je	.L114
	or	WORD PTR -2[rbp], 96
.L114:
	lea	rdi, .LC45[rip]
	call	puts@PLT
	movzx	eax, WORD PTR -2[rbp]
	mov	rdx, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 96
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 124[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 120[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 128[rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	XSpi_Abort, .-XSpi_Abort
	.section	.rodata
.LC46:
	.string	"XSpi_Transfer"
	.text
	.globl	XSpi_Transfer
	.type	XSpi_Transfer, @function
XSpi_Transfer:
.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, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	lea	rdi, .LC46[rip]
	call	puts@PLT
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 60[rax]
	cmp	eax, 572662306
	je	.L116
	mov	eax, 6
	jmp	.L117
.L116:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 128[rax]
	test	eax, eax
	je	.L118
	mov	eax, 21
	jmp	.L117
.L118:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 28
	mov	rdi, rax
	call	Xil_In32
	mov	edx, 2147483648
	cmp	rax, rdx
	sete	al
	movzx	eax, al
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 28
	mov	esi, 0
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 4
	test	rax, rax
	je	.L119
	mov	rax, QWORD PTR -8[rbp]
	and	eax, 1
	test	rax, rax
	jne	.L119
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 88[rax]
	cmp	rdx, rax
	jne	.L119
	cmp	QWORD PTR -16[rbp], 1
	jne	.L120
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 28
	mov	esi, 2147483648
	mov	rdi, rax
	call	Xil_Out32
.L120:
	mov	eax, 1155
	jmp	.L117
.L119:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 128[rax], 1
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 112[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	DWORD PTR 120[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -76[rbp]
	mov	DWORD PTR 124[rax], edx
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 81[rax]
	mov	BYTE PTR -33[rbp], al
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 100
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -32[rbp], rax
	jmp	.L121
.L126:
	cmp	BYTE PTR -33[rbp], 8
	jne	.L122
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	QWORD PTR -24[rbp], rax
	jmp	.L123
.L122:
	cmp	BYTE PTR -33[rbp], 16
	jne	.L124
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	QWORD PTR -24[rbp], rax
	jmp	.L123
.L124:
	cmp	BYTE PTR -33[rbp], 32
	jne	.L123
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L123:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 104[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 104[rax]
	movzx	eax, BYTE PTR -33[rbp]
	shr	al, 3
	movzx	eax, al
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 124[rax]
	movzx	edx, BYTE PTR -33[rbp]
	shr	dl, 3
	movzx	ecx, dl
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 124[rax], edx
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 100
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -32[rbp], rax
.L121:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 8
	test	rax, rax
	jne	.L125
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 124[rax]
	test	eax, eax
	jne	.L126
.L125:
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 96[rax]
	mov	rdx, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 112
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -8[rbp], rax
	and	QWORD PTR -8[rbp], -257
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	cmp	QWORD PTR -16[rbp], 1
	jne	.L129
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 40
	mov	rdi, rax
	call	Xil_In32
	or	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 40
	mov	rsi, rdx
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 28
	mov	esi, 2147483648
	mov	rdi, rax
	call	Xil_Out32
	jmp	.L128
.L130:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 32
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 4
	test	rax, rax
	je	.L130
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 32
	mov	rdi, rax
	call	Xil_In32
	or	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 32
	mov	rsi, rdx
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	or	ah, 1
	mov	rdx, rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rsi, rdx
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 100
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -32[rbp], rax
	jmp	.L131
.L135:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 108
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -24[rbp], rax
	cmp	BYTE PTR -33[rbp], 8
	jne	.L132
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	je	.L133
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 112[rdx], rcx
	mov	rdx, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L133
.L132:
	cmp	BYTE PTR -33[rbp], 16
	jne	.L134
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	je	.L133
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	WORD PTR [rax], dx
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	lea	rdx, 2[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 112[rax], rdx
	jmp	.L133
.L134:
	cmp	BYTE PTR -33[rbp], 32
	jne	.L133
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	test	rax, rax
	je	.L133
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 112[rax]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 112[rax], rdx
.L133:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	movzx	eax, BYTE PTR -33[rbp]
	shr	al, 3
	movzx	eax, al
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 32[rax], rdx
	movzx	eax, BYTE PTR -33[rbp]
	shr	al, 3
	movzx	eax, al
	sub	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 100
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -32[rbp], rax
.L131:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 1
	test	rax, rax
	je	.L135
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 124[rax]
	test	eax, eax
	je	.L129
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 100
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -32[rbp], rax
	jmp	.L136
.L141:
	cmp	BYTE PTR -33[rbp], 8
	jne	.L137
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	QWORD PTR -24[rbp], rax
	jmp	.L138
.L137:
	cmp	BYTE PTR -33[rbp], 16
	jne	.L139
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	QWORD PTR -24[rbp], rax
	jmp	.L138
.L139:
	cmp	BYTE PTR -33[rbp], 32
	jne	.L138
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 104[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L138:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 104[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 104[rax]
	movzx	eax, BYTE PTR -33[rbp]
	shr	al, 3
	movzx	eax, al
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 104[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 124[rax]
	movzx	edx, BYTE PTR -33[rbp]
	shr	dl, 3
	movzx	ecx, dl
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 124[rax], edx
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 100
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -32[rbp], rax
.L136:
	mov	rax, QWORD PTR -32[rbp]
	and	eax, 8
	test	rax, rax
	jne	.L140
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 124[rax]
	test	eax, eax
	jne	.L141
.L140:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -8[rbp], rax
	and	QWORD PTR -8[rbp], -257
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 96[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
.L129:
	cmp	DWORD PTR -76[rbp], 0
	jne	.L130
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	or	ah, 1
	mov	rdx, rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rsi, rdx
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 88[rax]
	mov	rdx, QWORD PTR ptr[rip]
	mov	rdx, QWORD PTR [rdx]
	add	rdx, 112
	mov	rsi, rax
	mov	rdi, rdx
	call	Xil_Out32
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 128[rax], 0
.L128:
	mov	eax, 0
.L117:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	XSpi_Transfer, .-XSpi_Transfer
	.section	.rodata
.LC47:
	.string	"Xspi_stop"
	.text
	.globl	XSpi_Stop
	.type	XSpi_Stop, @function
XSpi_Stop:
.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	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC47[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 128[rax]
	test	eax, eax
	je	.L143
	mov	eax, 21
	jmp	.L144
.L143:
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 28
	mov	esi, 0
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rdi, rax
	call	Xil_In32
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	and	rax, -3
	mov	rdx, rax
	mov	rax, QWORD PTR ptr[rip]
	mov	rax, QWORD PTR [rax]
	add	rax, 96
	mov	rsi, rdx
	mov	rdi, rax
	call	Xil_Out32
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 60[rax], 0
	mov	eax, 0
.L144:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	XSpi_Stop, .-XSpi_Stop
	.section	.rodata
.LC48:
	.string	"Run"
.LC49:
	.string	"Waiting to send"
.LC50:
	.string	"sending"
	.align 8
.LC51:
	.string	"requesting to transmit message through transmit buffer 0"
	.align 8
.LC52:
	.string	"Waiting to complete transmission"
	.text
	.globl	Run
	.type	Run, @function
Run:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC48[rip]
	call	puts@PLT
.L148:
	lea	rdi, .LC49[rip]
	call	puts@PLT
.L146:
	lea	rdi, myDevice[rip]
	call	CAN_ReadStatus
	mov	BYTE PTR -49[rbp], al
	movzx	eax, BYTE PTR -49[rbp]
	and	eax, 4
	test	eax, eax
	jne	.L146
	lea	rax, -48[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	ComposeMessage
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	call	PrintMessage
	add	rsp, 32
	mov	ecx, 0
	mov	edx, 4
	mov	esi, 44
	lea	rdi, myDevice[rip]
	call	CAN_ModifyReg
	lea	rdi, .LC51[rip]
	call	puts@PLT
	push	QWORD PTR -24[rbp]
	push	QWORD PTR -32[rbp]
	push	QWORD PTR -40[rbp]
	push	QWORD PTR -48[rbp]
	mov	esi, 0
	lea	rdi, myDevice[rip]
	call	CAN_SendMessage
	add	rsp, 32
	mov	ecx, 0
	mov	edx, 4
	mov	esi, 44
	lea	rdi, myDevice[rip]
	call	CAN_ModifyReg
.L147:
	lea	rdi, myDevice[rip]
	call	CAN_ReadStatus
	mov	BYTE PTR -49[rbp], al
	lea	rdi, .LC52[rip]
	call	puts@PLT
	movzx	eax, BYTE PTR -49[rbp]
	and	eax, 8
	test	eax, eax
	jne	.L147
	mov	edi, 1
	call	sleep@PLT
	jmp	.L148
	.cfi_endproc
.LFE32:
	.size	Run, .-Run
	.section	.rodata
.LC53:
	.string	"Cleanup"
	.text
	.globl	Cleanup
	.type	Cleanup, @function
Cleanup:
.LFB33:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC53[rip]
	call	puts@PLT
	lea	rdi, myDevice[rip]
	call	CAN_end
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	Cleanup, .-Cleanup
	.section	.rodata
.LC54:
	.string	"PrintMessage"
.LC55:
	.string	"mesage:"
.LC56:
	.string	"Extended"
.LC57:
	.string	"Standart"
.LC58:
	.string	"\t%s Frame\n"
.LC59:
	.string	"\tID: %03x\n"
.LC60:
	.string	"\tEID: %05x\n"
.LC61:
	.string	"\tRemote Transmit Request"
.LC62:
	.string	"\tStandard Transmit Request"
.LC63:
	.string	"\tdlc: %01x\n"
.LC64:
	.string	"\tdata:"
.LC65:
	.string	"\t%02x\n"
	.text
	.globl	PrintMessage
	.type	PrintMessage, @function
PrintMessage:
.LFB34:
	.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
	lea	rdi, .LC54[rip]
	call	puts@PLT
	lea	rdi, .LC55[rip]
	call	puts@PLT
	movzx	eax, BYTE PTR 32[rbp]
	test	al, al
	je	.L152
	lea	rax, .LC56[rip]
	jmp	.L153
.L152:
	lea	rax, .LC57[rip]
.L153:
	mov	rsi, rax
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR 16[rbp]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC59[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR 32[rbp]
	test	al, al
	je	.L154
	movzx	eax, BYTE PTR 32[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC60[rip]
	mov	eax, 0
	call	printf@PLT
.L154:
	movzx	eax, BYTE PTR 33[rbp]
	test	al, al
	je	.L155
	lea	rdi, .LC61[rip]
	call	puts@PLT
	jmp	.L156
.L155:
	lea	rdi, .LC62[rip]
	call	puts@PLT
.L156:
	movzx	eax, BYTE PTR 35[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC64[rip]
	call	puts@PLT
	mov	BYTE PTR -1[rbp], 0
	jmp	.L157
.L158:
	movzx	eax, BYTE PTR -1[rbp]
	cdqe
	movzx	eax, BYTE PTR 36[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC65[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -1[rbp]
	add	eax, 1
	mov	BYTE PTR -1[rbp], al
.L157:
	movzx	eax, BYTE PTR 35[rbp]
	cmp	BYTE PTR -1[rbp], al
	jb	.L158
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	PrintMessage, .-PrintMessage
	.section	.rodata
.LC66:
	.string	"ComposeMessage"
	.text
	.globl	ComposeMessage
	.type	ComposeMessage, @function
ComposeMessage:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC66[rip]
	call	puts@PLT
	mov	WORD PTR -48[rbp], 2
	mov	BYTE PTR -29[rbp], 8
	mov	QWORD PTR -40[rbp], 0
	mov	BYTE PTR -31[rbp], 0
	mov	BYTE PTR -32[rbp], 0
	mov	BYTE PTR -28[rbp], 1
	mov	BYTE PTR -27[rbp], 2
	mov	BYTE PTR -26[rbp], 4
	mov	BYTE PTR -25[rbp], 8
	mov	BYTE PTR -24[rbp], 16
	mov	BYTE PTR -23[rbp], 32
	mov	BYTE PTR -22[rbp], 64
	mov	BYTE PTR -21[rbp], -128
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L161
	call	__stack_chk_fail@PLT
.L161:
	mov	rax, QWORD PTR -56[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	ComposeMessage, .-ComposeMessage
	.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	"225143523.c"
	.text
	.global	CANConfig
	.data
	.align	2
	.type	CANConfig, %object
	.size	CANConfig, 28
CANConfig:
	.short	0
	.space	2
	.word	0
	.word	1
	.word	0
	.byte	1
	.byte	8
	.byte	0
	.byte	0
	.word	0
	.byte	0
	.byte	0
	.space	2
	.align	2
	.type	OptionsTable, %object
	.size	OptionsTable, 40
OptionsTable:
	.word	8
	.word	1
	.word	2
	.word	8
	.word	4
	.word	16
	.word	1
	.word	4
	.word	16
	.word	128
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Xil_Out32\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Xil_Out32, %function
Xil_Out32:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L2
	bl	puts
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	Xil_Out32, .-Xil_Out32
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Xil_In32\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Xil_In32, %function
Xil_In32:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L6
	bl	puts
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.size	Xil_In32, .-Xil_In32
	.comm	myDevice,96,4
	.comm	ptr,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/dev/spidev32766.0\000"
	.align	2
.LC3:
	.ascii	"Open error: \000"
	.align	2
.LC4:
	.ascii	"Open success\000"
	.align	2
.LC5:
	.ascii	"rbuf[%d] = %d\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #552
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	str	r3, [fp, #-548]
	mov	r3, #8
	str	r3, [fp, #-544]
	mov	r3, #8
	str	r3, [fp, #-540]
	ldr	r3, .L14+8
	str	r3, [fp, #-20]
	mov	r1, #2
	ldr	r0, .L14+4
	bl	open
	str	r0, [fp, #-536]
	ldr	r3, [fp, #-536]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L14+12
	bl	perror
	mvn	r0, #0
	bl	exit
.L9:
	ldr	r0, .L14+16
	bl	puts
	ldr	r1, [fp, #-536]
	ldr	r0, [fp, #-548]
	bl	dumpstat
	sub	r3, fp, #532
	mov	r2, #512
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #532
	mov	r2, #128
	mov	r1, r3
	ldr	r0, [fp, #-536]
	bl	read
	mov	r3, #0
	str	r3, [fp, #-552]
	b	.L10
.L11:
	ldr	r3, [fp, #-552]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-528]
	mov	r2, r3
	ldr	r1, [fp, #-552]
	ldr	r0, .L14+20
	bl	printf
	ldr	r3, [fp, #-552]
	add	r3, r3, #1
	str	r3, [fp, #-552]
.L10:
	ldr	r3, [fp, #-552]
	cmp	r3, #127
	ble	.L11
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC6
	.word	.LC2
	.word	253690111
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"read\000"
	.align	2
.LC8:
	.ascii	"short read\012\000"
	.align	2
.LC9:
	.ascii	"read(%2d, %2d): %02x %02x,\000"
	.align	2
.LC10:
	.ascii	" %02x\000"
	.align	2
.LC11:
	.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, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bgt	.L17
	mov	r3, #2
	str	r3, [fp, #-60]
	b	.L18
.L17:
	ldr	r3, [fp, #-60]
	cmp	r3, #32
	bls	.L18
	mov	r3, #32
	str	r3, [fp, #-60]
.L18:
	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	.L19
	ldr	r0, .L26+4
	bl	perror
	b	.L16
.L19:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	beq	.L21
	ldr	r3, .L26+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L26+12
	bl	fwrite
	b	.L16
.L21:
	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, .L26+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	.L22
.L23:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L26+20
	bl	printf
.L22:
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bgt	.L23
	mov	r0, #10
	bl	putchar
.L16:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC11
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	do_read, .-do_read
	.section	.rodata
	.align	2
.LC12:
	.ascii	"before do_msg ioctl\000"
	.align	2
.LC13:
	.ascii	"after do_msg ioctl\000"
	.align	2
.LC14:
	.ascii	"status : %d\012\000"
	.align	2
.LC15:
	.ascii	"SPI_IOC_MESSAGE\000"
	.align	2
.LC16:
	.ascii	"response(%2d, %2d): \000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_msg, %function
do_msg:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #108
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-124]
	cmp	r3, #32
	bls	.L29
	mov	r3, #32
	str	r3, [fp, #-124]
.L29:
	mvn	r3, #85
	strb	r3, [fp, #-40]
	sub	r3, fp, #40
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-92]
	sub	r3, fp, #40
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-60]
	ldr	r0, .L35+4
	bl	puts
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L35+8
	ldr	r0, [fp, #-120]
	bl	ioctl
	str	r0, [fp, #-112]
	ldr	r0, .L35+12
	bl	puts
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L30
	ldr	r1, [fp, #-112]
	ldr	r0, .L35+16
	bl	printf
	ldr	r0, .L35+20
	bl	perror
	b	.L28
.L30:
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-124]
	ldr	r0, .L35+24
	bl	printf
	sub	r3, fp, #40
	str	r3, [fp, #-116]
	b	.L32
.L33:
	ldr	r3, [fp, #-116]
	add	r2, r3, #1
	str	r2, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L35+28
	bl	printf
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	str	r3, [fp, #-124]
.L32:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L33
	mov	r0, #10
	bl	putchar
.L28:
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC17
	.word	.LC12
	.word	1077963520
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC10
	.size	do_msg, .-do_msg
	.section	.rodata
	.align	2
.LC18:
	.ascii	"SPI rd_mode\000"
	.align	2
.LC19:
	.ascii	"SPI rd_lsb_fist\000"
	.align	2
.LC20:
	.ascii	"SPI bits_per_word\000"
	.align	2
.LC21:
	.ascii	"SPI max_speed_hz\000"
	.align	2
.LC22:
	.ascii	"(lsb first) \000"
	.align	2
.LC23:
	.ascii	"\000"
	.align	2
.LC24:
	.ascii	"%s: spi read mode 0x%x, %d bits %sper word, %d Hz m"
	.ascii	"ax\012\000"
	.align	2
.LC25:
	.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, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L47+4
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L38
	ldr	r0, .L47+8
	bl	perror
	b	.L37
.L38:
	sub	r3, fp, #18
	mov	r2, r3
	ldr	r1, .L47+12
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L40
	ldr	r0, .L47+16
	bl	perror
	b	.L37
.L40:
	sub	r3, fp, #17
	mov	r2, r3
	ldr	r1, .L47+20
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L47+24
	bl	perror
	b	.L37
.L41:
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L47+28
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L47+32
	bl	perror
	b	.L37
.L42:
	ldr	r1, [fp, #-16]
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L43
	ldr	r3, .L47+36
	b	.L44
.L43:
	ldr	r3, .L47+40
.L44:
	ldr	r2, [fp, #-12]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-24]
	ldr	r0, .L47+44
	bl	printf
.L37:
	ldr	r3, .L47
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC25
	.word	-2147194107
	.word	.LC18
	.word	-2147390718
	.word	.LC19
	.word	-2147390717
	.word	.LC20
	.word	-2147194108
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	dumpstat, .-dumpstat
	.section	.rodata
	.align	2
.LC26:
	.ascii	"Initialize\000"
	.text
	.align	2
	.global	Initialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	Initialize, %function
Initialize:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L50
	bl	puts
	mov	r2, #1073741824
	ldr	r1, .L50+4
	ldr	r0, .L50+8
	bl	CAN_begin
	mov	r1, #0
	ldr	r0, .L50+8
	bl	CAN_Configure
	nop
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC26
	.word	1073807360
	.word	myDevice
	.size	Initialize, .-Initialize
	.section	.rodata
	.align	2
.LC27:
	.ascii	"CAN_begin\000"
	.text
	.align	2
	.global	CAN_begin
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_begin, %function
CAN_begin:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, .L53
	bl	puts
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r2, .L53+4
	ldr	r3, [fp, #-16]
	str	r3, [r2, #4]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r0, r3
	bl	CAN_SPIInit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC27
	.word	CANConfig
	.size	CAN_begin, .-CAN_begin
	.section	.rodata
	.align	2
.LC28:
	.ascii	"CAN_Configure\000"
	.align	2
.LC29:
	.ascii	"\206\373A"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_Configure
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_Configure, %function
CAN_Configure:
	@ 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, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L57+4
	bl	puts
	ldr	r2, .L57+8
	sub	r3, fp, #12
	ldr	r2, [r2]
	strh	r2, [r3]	@ movhi
	add	r3, r3, #2
	lsr	r2, r2, #16
	strb	r2, [r3]
	mov	r3, #128
	mov	r2, #224
	mov	r1, #15
	ldr	r0, [fp, #-16]
	bl	CAN_ModifyReg
	sub	r2, fp, #12
	mov	r3, #3
	mov	r1, #40
	ldr	r0, [fp, #-16]
	bl	CAN_WriteReg
	mov	r2, #12
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	CAN_ClearReg
	mov	r2, #12
	mov	r1, #16
	ldr	r0, [fp, #-16]
	bl	CAN_ClearReg
	mov	r2, #8
	mov	r1, #32
	ldr	r0, [fp, #-16]
	bl	CAN_ClearReg
	mov	r2, #14
	mov	r1, #48
	ldr	r0, [fp, #-16]
	bl	CAN_ClearReg
	mov	r2, #14
	mov	r1, #64
	ldr	r0, [fp, #-16]
	bl	CAN_ClearReg
	mov	r2, #14
	mov	r1, #80
	ldr	r0, [fp, #-16]
	bl	CAN_ClearReg
	mov	r3, #96
	mov	r2, #100
	mov	r1, #96
	ldr	r0, [fp, #-16]
	bl	CAN_ModifyReg
	ldrb	r3, [fp, #-17]
	lsl	r3, r3, #5
	and	r3, r3, #255
	mov	r2, #224
	mov	r1, #15
	ldr	r0, [fp, #-16]
	bl	CAN_ModifyReg
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC30
	.word	.LC28
	.word	.LC29
	.size	CAN_Configure, .-CAN_Configure
	.section	.rodata
	.align	2
.LC31:
	.ascii	"CAN_SPIInit\000"
	.text
	.align	2
	.global	CAN_SPIInit
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_SPIInit, %function
CAN_SPIInit:
	@ 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	r0, .L64
	bl	puts
	ldr	r3, .L64+4
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r1, .L64+4
	ldr	r0, [fp, #-16]
	bl	XSpi_CfgInitialize
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L60
	mov	r3, #1
	b	.L61
.L60:
	mov	r3, #19
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	XSpi_SetOptions
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L62
	mov	r3, #1
	b	.L61
.L62:
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	XSpi_SetSlaveSelect
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L63
	mov	r3, #1
	b	.L61
.L63:
	ldr	r0, [fp, #-16]
	bl	XSpi_Start
	ldr	r3, .L64+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #28
	mov	r1, #0
	mov	r0, r3
	bl	Xil_Out32
	mov	r3, #0
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC31
	.word	CANConfig
	.word	ptr
	.size	CAN_SPIInit, .-CAN_SPIInit
	.section	.rodata
	.align	2
.LC32:
	.ascii	"CAN_ModifyReg\000"
	.align	2
.LC33:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_ModifyReg
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_ModifyReg, %function
CAN_ModifyReg:
	@ 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, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L68+4
	bl	puts
	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]
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	sub	r1, fp, #12
	mov	r3, #4
	mov	r2, #0
	bl	XSpi_Transfer
	nop
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L67
	bl	__stack_chk_fail
.L67:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC33
	.word	.LC32
	.size	CAN_ModifyReg, .-CAN_ModifyReg
	.section	.rodata
	.align	2
.LC34:
	.ascii	"CAN_WriteReg\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_WriteReg
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_WriteReg, %function
CAN_WriteReg:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, r1
	strb	r3, [fp, #-33]
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L74+4
	bl	puts
	ldr	r3, [fp, #-44]
	add	ip, r3, #2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-33]
	strb	r2, [r3, #1]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L71
.L72:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L71:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L72
	ldr	r3, [fp, #-32]
	add	r0, r3, #4
	ldr	r3, [fp, #-44]
	add	r3, r3, #2
	mov	r2, #0
	ldr	r1, [fp, #-20]
	bl	XSpi_Transfer
	mov	sp, r4
	nop
	ldr	r3, .L74
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L73
	bl	__stack_chk_fail
.L73:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC35
	.word	.LC34
	.size	CAN_WriteReg, .-CAN_WriteReg
	.section	.rodata
	.align	2
.LC36:
	.ascii	"CAN_ClearReg\000"
	.align	2
.LC37:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_ClearReg
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_ClearReg, %function
CAN_ClearReg:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	mov	r3, r1
	str	r2, [fp, #-40]
	strb	r3, [fp, #-33]
	ldr	r3, .L78
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L78+4
	bl	puts
	ldr	r3, [fp, #-40]
	add	ip, r3, #2
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldrb	r2, [fp, #-33]
	strb	r2, [r3, #1]
	ldr	r3, [fp, #-32]
	add	r0, r3, #4
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	mov	r2, #0
	ldr	r1, [fp, #-20]
	bl	XSpi_Transfer
	mov	sp, r4
	nop
	ldr	r3, .L78
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L77
	bl	__stack_chk_fail
.L77:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L79:
	.align	2
.L78:
	.word	.LC37
	.word	.LC36
	.size	CAN_ClearReg, .-CAN_ClearReg
	.section	.rodata
	.align	2
.LC38:
	.ascii	"CAN_ReadStatus\000"
	.align	2
.LC39:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_ReadStatus
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_ReadStatus, %function
CAN_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, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L83+4
	bl	puts
	mov	r3, #160
	strh	r3, [fp, #-12]	@ movhi
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	sub	r2, fp, #12
	sub	r1, fp, #12
	mov	r3, #2
	bl	XSpi_Transfer
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	ldr	r2, .L83
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC39
	.word	.LC38
	.size	CAN_ReadStatus, .-CAN_ReadStatus
	.section	.rodata
	.align	2
.LC40:
	.ascii	"CAN_SendMessage\000"
	.align	2
.LC41:
	.ascii	"CAN_SendMessage message.dlc: %02x\015\012\000"
	.align	2
.LC42:
	.ascii	"CAN_SendMessage: %02x\015\012\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_SendMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_SendMessage, %function
CAN_SendMessage:
	@ args = 28, pretend = 16, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	add	r0, fp, #8
	stm	r0, {r1, r2, r3}
	ldr	r3, .L98
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L98+4
	bl	puts
	ldr	r3, [fp, #28]
	cmp	r3, #2
	beq	.L86
	ldr	r3, [fp, #28]
	cmp	r3, #2
	bhi	.L87
	ldr	r3, [fp, #28]
	cmp	r3, #0
	beq	.L88
	ldr	r3, [fp, #28]
	cmp	r3, #1
	beq	.L89
	b	.L87
.L88:
	mov	r3, #1
	strb	r3, [fp, #-26]
	mov	r3, #0
	strb	r3, [fp, #-25]
	b	.L90
.L89:
	mov	r3, #2
	strb	r3, [fp, #-26]
	mov	r3, #2
	strb	r3, [fp, #-25]
	b	.L90
.L86:
	mov	r3, #4
	strb	r3, [fp, #-26]
	mov	r3, #4
	strb	r3, [fp, #-25]
	b	.L90
.L87:
	mov	r3, #1
	b	.L96
.L90:
	ldrh	r3, [fp, #8]
	lsr	r3, r3, #3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-24]
	ldrh	r3, [fp, #8]
	lsl	r3, r3, #5
	and	r3, r3, #255
	strb	r3, [fp, #-23]
	ldrb	r3, [fp, #-23]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #16]	@ zero_extendqisi2
	lsl	r3, r3, #3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #8
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-23]
	ldrb	r2, [fp, #-23]	@ zero_extendqisi2
	ldr	r3, [fp, #12]
	lsr	r3, r3, #16
	and	r3, r3, #255
	and	r3, r3, #3
	and	r3, r3, #255
	orr	r3, r2, r3
	and	r3, r3, #255
	strb	r3, [fp, #-23]
	ldr	r3, [fp, #12]
	lsr	r3, r3, #8
	and	r3, r3, #255
	strb	r3, [fp, #-22]
	ldr	r3, [fp, #12]
	and	r3, r3, #255
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #17]	@ zero_extendqisi2
	lsl	r3, r3, #6
	and	r3, r3, #255
	and	r3, r3, #64
	and	r3, r3, #255
	strb	r3, [fp, #-20]
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #19]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #15
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-27]
	b	.L92
.L93:
	ldrb	r2, [fp, #-27]	@ zero_extendqisi2
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	add	r3, r3, #5
	add	r1, fp, #4
	add	r2, r1, r2
	ldrb	r2, [r2, #16]	@ zero_extendqisi2
	sub	r1, fp, #4
	add	r3, r1, r3
	strb	r2, [r3, #-20]
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-27]
.L92:
	ldrb	r3, [fp, #19]	@ zero_extendqisi2
	ldrb	r2, [fp, #-27]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L93
	ldrb	r3, [fp, #19]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L98+8
	bl	printf
	mov	r3, #0
	strb	r3, [fp, #-27]
	b	.L94
.L95:
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-20]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L98+12
	bl	printf
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-27]
.L94:
	ldrb	r3, [fp, #19]	@ zero_extendqisi2
	add	r2, r3, #4
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	cmp	r2, r3
	bge	.L95
	ldrb	r3, [fp, #19]	@ zero_extendqisi2
	add	r3, r3, #5
	sub	r2, fp, #24
	ldrb	r1, [fp, #-25]	@ zero_extendqisi2
	ldr	r0, [fp, #-32]
	bl	CAN_LoadTxBuffer
	ldrb	r3, [fp, #-26]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	CAN_RequestToSend
	mov	r3, #0
.L96:
	ldr	r2, .L98
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L97
	bl	__stack_chk_fail
.L97:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L99:
	.align	2
.L98:
	.word	.LC43
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	CAN_SendMessage, .-CAN_SendMessage
	.section	.rodata
	.align	2
.LC44:
	.ascii	"CAN_LoadTxBuffet\000"
	.align	2
.LC45:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_LoadTxBuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_LoadTxBuffer, %function
CAN_LoadTxBuffer:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	mov	r3, r1
	strb	r3, [fp, #-33]
	ldr	r3, .L104
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	ldr	r0, .L104+4
	bl	puts
	ldr	r3, [fp, #-44]
	add	ip, r3, #1
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-24]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #0
	str	r3, [fp, #-20]
	ldrb	r3, [fp, #-33]
	orr	r3, r3, #64
	and	r2, r3, #255
	ldr	r3, [fp, #-20]
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L101
.L102:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r2, [fp, #-20]
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L101:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bcc	.L102
	ldr	r3, [fp, #-32]
	add	r0, r3, #4
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	mov	r2, #0
	ldr	r1, [fp, #-20]
	bl	XSpi_Transfer
	mov	sp, r4
	nop
	ldr	r3, .L104
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L103
	bl	__stack_chk_fail
.L103:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L105:
	.align	2
.L104:
	.word	.LC45
	.word	.LC44
	.size	CAN_LoadTxBuffer, .-CAN_LoadTxBuffer
	.section	.rodata
	.align	2
.LC46:
	.ascii	"CAN_RequestToSend\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAN_RequestToSend
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_RequestToSend, %function
CAN_RequestToSend:
	@ 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, .L108
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L108+4
	bl	puts
	ldrb	r3, [fp, #-17]
	mvn	r3, r3, lsl #25
	mvn	r3, r3, lsr #25
	and	r3, r3, #255
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	add	r0, r3, #4
	sub	r1, fp, #12
	mov	r3, #1
	mov	r2, #0
	bl	XSpi_Transfer
	nop
	ldr	r3, .L108
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L107
	bl	__stack_chk_fail
.L107:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC47
	.word	.LC46
	.size	CAN_RequestToSend, .-CAN_RequestToSend
	.section	.rodata
	.align	2
.LC48:
	.ascii	"CAN_end\000"
	.text
	.align	2
	.global	CAN_end
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAN_end, %function
CAN_end:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L111
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r0, r3
	bl	XSpi_Stop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC48
	.size	CAN_end, .-CAN_end
	.section	.rodata
	.align	2
.LC49:
	.ascii	"XSpi_CfgInitialize\000"
	.align	2
.LC50:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XSpi_CfgInitialize
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_CfgInitialize, %function
XSpi_CfgInitialize:
	@ 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]
	ldr	r3, .L121
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L121+4
	bl	puts
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	ldr	r2, .L121+8
	cmp	r3, r2
	bne	.L114
	mov	r3, #5
	b	.L119
.L114:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #72]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #56]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #60]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #64]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #68]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-28]
	ldrb	r2, [r3, #16]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #44]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L116
	ldr	r3, [fp, #-24]
	mov	r2, #8
	strb	r2, [r3, #45]
	b	.L117
.L116:
	ldr	r3, [fp, #-28]
	ldrb	r2, [r3, #17]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #45]
.L117:
	ldr	r3, [fp, #-28]
	ldrb	r2, [r3, #18]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #46]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #84]
	ldr	r3, [fp, #-28]
	ldrb	r2, [r3, #24]	@ zero_extendqisi2
	ldr	r3, [fp, #-24]
	strb	r2, [r3, #88]
	ldr	r3, [fp, #-24]
	ldr	r2, .L121+12
	str	r2, [r3, #28]
	ldr	r3, [fp, #-24]
	ldrb	r3, [r3, #44]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, #1
	lsl	r3, r3, r2
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-24]
	str	r2, [r3, #48]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3, #25]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L118
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	orr	r3, r3, #102
	str	r3, [fp, #-16]
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Xil_Out32
	mvn	r3, #96
	strb	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-11]
	mov	r3, #0
	strb	r3, [fp, #-10]
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #104
	ldrb	r2, [fp, #-12]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #104
	ldrb	r2, [fp, #-11]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #104
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	mov	r1, r2
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	bic	r3, r3, #256
	str	r3, [fp, #-16]
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	orr	r3, r3, #256
	str	r3, [fp, #-16]
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #108
	mov	r0, r3
	bl	Xil_In32
	ldr	r3, .L121+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #108
	mov	r0, r3
	bl	Xil_In32
.L118:
	ldr	r0, [fp, #-24]
	bl	XSpi_Reset
	mov	r3, #0
.L119:
	ldr	r2, .L121
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L120
	bl	__stack_chk_fail
.L120:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L122:
	.align	2
.L121:
	.word	.LC50
	.word	.LC49
	.word	572662306
	.word	286331153
	.word	ptr
	.size	XSpi_CfgInitialize, .-XSpi_CfgInitialize
	.section	.rodata
	.align	2
.LC51:
	.ascii	"XSpi_SetOptions\000"
	.text
	.align	2
	.global	XSpi_SetOptions
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_SetOptions, %function
XSpi_SetOptions:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L131
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #72]
	cmp	r3, #0
	beq	.L124
	mov	r3, #21
	b	.L125
.L124:
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L126
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	beq	.L126
	ldr	r3, .L131+4
	b	.L125
.L126:
	ldr	r3, .L131+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L127
.L130:
	ldr	r2, .L131+12
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #3]
	ldr	r3, [fp, #-20]
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L128
	ldr	r2, .L131+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	orr	r3, r2, r3
	str	r3, [fp, #-12]
	b	.L129
.L128:
	ldr	r2, .L131+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mvn	r3, r3
	ldr	r2, [fp, #-12]
	and	r3, r3, r2
	str	r3, [fp, #-12]
.L129:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L127:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	bls	.L130
	ldr	r3, .L131+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	Xil_Out32
	mov	r3, #0
.L125:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L132:
	.align	2
.L131:
	.word	.LC51
	.word	1158
	.word	ptr
	.word	OptionsTable
	.size	XSpi_SetOptions, .-XSpi_SetOptions
	.section	.rodata
	.align	2
.LC52:
	.ascii	"XSpi_SetSlaveSelect\000"
	.text
	.align	2
	.global	XSpi_SetSlaveSelect
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_SetSlaveSelect, %function
XSpi_SetSlaveSelect:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r0, .L140
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #72]
	cmp	r3, #0
	beq	.L134
	mov	r3, #21
	b	.L135
.L134:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #44]	@ zero_extendqisi2
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L136
.L138:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	lsr	r3, r2, r3
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L137
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L137:
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L136:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L138
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	ble	.L139
	ldr	r3, .L140+4
	b	.L135
.L139:
	ldr	r3, [fp, #-20]
	mvn	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #52]
	mov	r3, #0
.L135:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	.LC52
	.word	1156
	.size	XSpi_SetSlaveSelect, .-XSpi_SetSlaveSelect
	.section	.rodata
	.align	2
.LC53:
	.ascii	"XSpi_Start\000"
	.text
	.align	2
	.global	XSpi_Start
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_Start, %function
XSpi_Start:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r0, .L145
	bl	puts
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #32]
	ldr	r2, .L145+4
	cmp	r3, r2
	bne	.L143
	mov	r3, #5
	b	.L144
.L143:
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r4, r3, #40
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #40
	mov	r0, r3
	bl	Xil_In32
	mov	r3, r0
	orr	r3, r3, #8192
	orr	r3, r3, #43
	mov	r1, r3
	mov	r0, r4
	bl	Xil_Out32
	ldr	r3, [fp, #-24]
	ldr	r2, .L145+4
	str	r2, [r3, #32]
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	orr	r3, r3, #98
	str	r3, [fp, #-16]
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L145+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #28
	mov	r1, #-2147483648
	mov	r0, r3
	bl	Xil_Out32
	mov	r3, #0
.L144:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L146:
	.align	2
.L145:
	.word	.LC53
	.word	572662306
	.word	ptr
	.size	XSpi_Start, .-XSpi_Start
	.section	.rodata
	.align	2
.LC54:
	.ascii	"XSpi_Reset\000"
	.text
	.align	2
	.global	XSpi_Reset
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_Reset, %function
XSpi_Reset:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L148
	bl	puts
	ldr	r0, [fp, #-8]
	bl	XSpi_Abort
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #52]
	ldr	r3, .L148+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #64
	mov	r1, #10
	mov	r0, r3
	bl	Xil_Out32
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L149:
	.align	2
.L148:
	.word	.LC54
	.word	ptr
	.size	XSpi_Reset, .-XSpi_Reset
	.section	.rodata
	.align	2
.LC55:
	.ascii	"XSpi_Abort\000"
	.align	2
.LC56:
	.ascii	"XSpi_SetSlaveSelectReg\000"
	.align	2
.LC57:
	.ascii	"SlaveSelectMask %d\012\000"
	.align	2
.LC58:
	.ascii	"Xspi_GetControlReg\000"
	.align	2
.LC59:
	.ascii	"XSpi_SetControlReg\000"
	.text
	.align	2
	.global	XSpi_Abort
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_Abort, %function
XSpi_Abort:
	@ 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	r0, .L152
	bl	puts
	ldr	r0, .L152+4
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r1, r3
	ldr	r0, .L152+8
	bl	printf
	ldr	r3, .L152+12
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r2, r3, #112
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #48]
	mov	r1, r3
	mov	r0, r2
	bl	Xil_Out32
	ldr	r0, .L152+16
	bl	puts
	ldr	r3, .L152+12
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #256
	strh	r3, [fp, #-6]	@ movhi
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	beq	.L151
	ldrh	r3, [fp, #-6]	@ movhi
	orr	r3, r3, #96
	strh	r3, [fp, #-6]	@ movhi
.L151:
	ldr	r0, .L152+20
	bl	puts
	ldr	r3, .L152+12
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldrh	r2, [fp, #-6]
	mov	r1, r2
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #68]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #64]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #72]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L153:
	.align	2
.L152:
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	ptr
	.word	.LC58
	.word	.LC59
	.size	XSpi_Abort, .-XSpi_Abort
	.section	.rodata
	.align	2
.LC60:
	.ascii	"XSpi_Transfer\000"
	.text
	.align	2
	.global	XSpi_Transfer
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_Transfer, %function
XSpi_Transfer:
	@ args = 0, 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	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r0, .L181
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #32]
	ldr	r2, .L181+4
	cmp	r3, r2
	beq	.L155
	mov	r3, #6
	b	.L156
.L155:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #72]
	cmp	r3, #0
	beq	.L157
	mov	r3, #21
	b	.L156
.L157:
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #28
	mov	r0, r3
	bl	Xil_In32
	mov	r3, r0
	cmp	r3, #-2147483648
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-20]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #28
	mov	r1, #0
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L158
	ldr	r3, [fp, #-16]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L158
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #48]
	cmp	r2, r3
	bne	.L158
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L159
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #28
	mov	r1, #-2147483648
	mov	r0, r3
	bl	Xil_Out32
.L159:
	ldr	r3, .L181+12
	b	.L156
.L158:
	ldr	r3, [fp, #-40]
	mov	r2, #1
	str	r2, [r3, #72]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-44]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-48]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-52]
	str	r2, [r3, #64]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-52]
	str	r2, [r3, #68]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #45]
	strb	r3, [fp, #-29]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #100
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-28]
	b	.L160
.L165:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L161
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-24]
	b	.L162
.L161:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #16
	bne	.L163
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldrh	r3, [r3]
	str	r3, [fp, #-24]
	b	.L162
.L163:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L162
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L162:
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #104
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	lsr	r2, r2, #3
	and	r2, r2, #255
	add	r2, r3, r2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #68]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	lsr	r2, r2, #3
	and	r2, r2, #255
	sub	r2, r3, r2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #68]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #100
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-28]
.L160:
	ldr	r3, [fp, #-28]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L164
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	bne	.L165
.L164:
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r2, r3, #112
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	mov	r1, r3
	mov	r0, r2
	bl	Xil_Out32
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	bic	r3, r3, #256
	str	r3, [fp, #-16]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L168
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r4, r3, #40
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #40
	mov	r0, r3
	bl	Xil_In32
	mov	r3, r0
	orr	r3, r3, #4
	mov	r1, r3
	mov	r0, r4
	bl	Xil_Out32
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #28
	mov	r1, #-2147483648
	mov	r0, r3
	bl	Xil_Out32
	b	.L167
.L169:
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #32
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L169
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r4, r3, #32
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #32
	mov	r0, r3
	bl	Xil_In32
	mov	r3, r0
	orr	r3, r3, #4
	mov	r1, r3
	mov	r0, r4
	bl	Xil_Out32
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r2, r3, #96
	ldr	r3, [fp, #-16]
	orr	r3, r3, #256
	mov	r1, r3
	mov	r0, r2
	bl	Xil_Out32
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #100
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-28]
	b	.L170
.L174:
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #108
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-24]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L171
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L172
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	add	r1, r3, #1
	ldr	r2, [fp, #-40]
	str	r1, [r2, #60]
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L172
.L171:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #16
	bne	.L173
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L172
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	ldr	r2, [fp, #-24]
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	add	r2, r3, #2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #60]
	b	.L172
.L173:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L172
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	cmp	r3, #0
	beq	.L172
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #60]
	add	r2, r3, #4
	ldr	r3, [fp, #-40]
	str	r2, [r3, #60]
.L172:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	lsr	r2, r2, #3
	and	r2, r2, #255
	add	r2, r3, r2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #16]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	lsr	r3, r3, #3
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-52]
	sub	r3, r3, r2
	str	r3, [fp, #-52]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #100
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-28]
.L170:
	ldr	r3, [fp, #-28]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L174
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	beq	.L168
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #100
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-28]
	b	.L175
.L180:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #8
	bne	.L176
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-24]
	b	.L177
.L176:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #16
	bne	.L178
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldrh	r3, [r3]
	str	r3, [fp, #-24]
	b	.L177
.L178:
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L177
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L177:
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #104
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #56]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	lsr	r2, r2, #3
	and	r2, r2, #255
	add	r2, r3, r2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #68]
	ldrb	r2, [fp, #-29]	@ zero_extendqisi2
	lsr	r2, r2, #3
	and	r2, r2, #255
	sub	r2, r3, r2
	ldr	r3, [fp, #-40]
	str	r2, [r3, #68]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #100
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-28]
.L175:
	ldr	r3, [fp, #-28]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L179
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	bne	.L180
.L179:
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	bic	r3, r3, #256
	str	r3, [fp, #-16]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	Xil_Out32
.L168:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L169
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-16]
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r2, r3, #96
	ldr	r3, [fp, #-16]
	orr	r3, r3, #256
	mov	r1, r3
	mov	r0, r2
	bl	Xil_Out32
	ldr	r3, .L181+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r2, r3, #112
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #48]
	mov	r1, r3
	mov	r0, r2
	bl	Xil_Out32
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3, #72]
.L167:
	mov	r3, #0
.L156:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L182:
	.align	2
.L181:
	.word	.LC60
	.word	572662306
	.word	ptr
	.word	1155
	.size	XSpi_Transfer, .-XSpi_Transfer
	.section	.rodata
	.align	2
.LC61:
	.ascii	"Xspi_stop\000"
	.text
	.align	2
	.global	XSpi_Stop
	.syntax unified
	.arm
	.fpu softvfp
	.type	XSpi_Stop, %function
XSpi_Stop:
	@ 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	r0, .L186
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #72]
	cmp	r3, #0
	beq	.L184
	mov	r3, #21
	b	.L185
.L184:
	ldr	r3, .L186+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #28
	mov	r1, #0
	mov	r0, r3
	bl	Xil_Out32
	ldr	r3, .L186+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r3, r3, #96
	mov	r0, r3
	bl	Xil_In32
	str	r0, [fp, #-8]
	ldr	r3, .L186+4
	ldr	r3, [r3]
	ldr	r3, [r3]
	add	r2, r3, #96
	ldr	r3, [fp, #-8]
	bic	r3, r3, #2
	mov	r1, r3
	mov	r0, r2
	bl	Xil_Out32
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #32]
	mov	r3, #0
.L185:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L187:
	.align	2
.L186:
	.word	.LC61
	.word	ptr
	.size	XSpi_Stop, .-XSpi_Stop
	.section	.rodata
	.align	2
.LC62:
	.ascii	"Run\000"
	.align	2
.LC63:
	.ascii	"Waiting to send\000"
	.align	2
.LC64:
	.ascii	"sending\000"
	.align	2
.LC65:
	.ascii	"requesting to transmit message through transmit buf"
	.ascii	"fer 0\000"
	.align	2
.LC66:
	.ascii	"Waiting to complete transmission\000"
	.align	2
.LC67:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Run
	.syntax unified
	.arm
	.fpu softvfp
	.type	Run, %function
Run:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L193
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L193+4
	bl	puts
.L191:
	ldr	r0, .L193+8
	bl	puts
.L189:
	ldr	r0, .L193+12
	bl	CAN_ReadStatus
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	and	r3, r3, #4
	cmp	r3, #0
	bne	.L189
	sub	r3, fp, #28
	mov	r0, r3
	bl	ComposeMessage
	ldr	r0, .L193+16
	bl	printf
	ldr	r3, [fp, #-12]
	str	r3, [sp]
	sub	r3, fp, #28
	ldm	r3, {r0, r1, r2, r3}
	bl	PrintMessage
	mov	r3, #0
	mov	r2, #4
	mov	r1, #44
	ldr	r0, .L193+12
	bl	CAN_ModifyReg
	ldr	r0, .L193+20
	bl	puts
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r2, sp
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	sub	r3, fp, #28
	ldm	r3, {r1, r2, r3}
	ldr	r0, .L193+12
	bl	CAN_SendMessage
	mov	r3, #0
	mov	r2, #4
	mov	r1, #44
	ldr	r0, .L193+12
	bl	CAN_ModifyReg
.L190:
	ldr	r0, .L193+12
	bl	CAN_ReadStatus
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldr	r0, .L193+24
	bl	puts
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L190
	mov	r0, #1
	bl	sleep
	b	.L191
.L194:
	.align	2
.L193:
	.word	.LC67
	.word	.LC62
	.word	.LC63
	.word	myDevice
	.word	.LC64
	.word	.LC65
	.word	.LC66
	.size	Run, .-Run
	.section	.rodata
	.align	2
.LC68:
	.ascii	"Cleanup\000"
	.text
	.align	2
	.global	Cleanup
	.syntax unified
	.arm
	.fpu softvfp
	.type	Cleanup, %function
Cleanup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L196
	bl	puts
	ldr	r0, .L196+4
	bl	CAN_end
	nop
	pop	{fp, pc}
.L197:
	.align	2
.L196:
	.word	.LC68
	.word	myDevice
	.size	Cleanup, .-Cleanup
	.section	.rodata
	.align	2
.LC69:
	.ascii	"PrintMessage\000"
	.align	2
.LC70:
	.ascii	"mesage:\000"
	.align	2
.LC71:
	.ascii	"Extended\000"
	.align	2
.LC72:
	.ascii	"Standart\000"
	.align	2
.LC73:
	.ascii	"\011%s Frame\012\000"
	.align	2
.LC74:
	.ascii	"\011ID: %03x\012\000"
	.align	2
.LC75:
	.ascii	"\011EID: %05x\012\000"
	.align	2
.LC76:
	.ascii	"\011Remote Transmit Request\000"
	.align	2
.LC77:
	.ascii	"\011Standard Transmit Request\000"
	.align	2
.LC78:
	.ascii	"\011dlc: %01x\012\000"
	.align	2
.LC79:
	.ascii	"\011data:\000"
	.align	2
.LC80:
	.ascii	"\011%02x\012\000"
	.text
	.align	2
	.global	PrintMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintMessage, %function
PrintMessage:
	@ args = 20, pretend = 16, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #16
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	add	ip, fp, #4
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, .L206
	bl	puts
	ldr	r0, .L206+4
	bl	puts
	ldrb	r3, [fp, #12]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L199
	ldr	r3, .L206+8
	b	.L200
.L199:
	ldr	r3, .L206+12
.L200:
	mov	r1, r3
	ldr	r0, .L206+16
	bl	printf
	ldrh	r3, [fp, #4]
	mov	r1, r3
	ldr	r0, .L206+20
	bl	printf
	ldrb	r3, [fp, #12]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L201
	ldrb	r3, [fp, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L206+24
	bl	printf
.L201:
	ldrb	r3, [fp, #13]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L202
	ldr	r0, .L206+28
	bl	puts
	b	.L203
.L202:
	ldr	r0, .L206+32
	bl	puts
.L203:
	ldrb	r3, [fp, #15]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L206+36
	bl	printf
	ldr	r0, .L206+40
	bl	puts
	mov	r3, #0
	strb	r3, [fp, #-5]
	b	.L204
.L205:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L206+44
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #1
	strb	r3, [fp, #-5]
.L204:
	ldrb	r3, [fp, #15]	@ zero_extendqisi2
	ldrb	r2, [fp, #-5]	@ zero_extendqisi2
	cmp	r2, r3
	bcc	.L205
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L207:
	.align	2
.L206:
	.word	.LC69
	.word	.LC70
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.word	.LC78
	.word	.LC79
	.word	.LC80
	.size	PrintMessage, .-PrintMessage
	.section	.rodata
	.align	2
.LC81:
	.ascii	"ComposeMessage\000"
	.align	2
.LC82:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ComposeMessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	ComposeMessage, %function
ComposeMessage:
	@ 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]
	ldr	r3, .L211
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L211+4
	bl	puts
	mov	r3, #2
	strh	r3, [fp, #-28]	@ movhi
	mov	r3, #8
	strb	r3, [fp, #-17]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	strb	r3, [fp, #-19]
	mov	r3, #0
	strb	r3, [fp, #-20]
	mov	r3, #1
	strb	r3, [fp, #-16]
	mov	r3, #2
	strb	r3, [fp, #-15]
	mov	r3, #4
	strb	r3, [fp, #-14]
	mov	r3, #8
	strb	r3, [fp, #-13]
	mov	r3, #16
	strb	r3, [fp, #-12]
	mov	r3, #32
	strb	r3, [fp, #-11]
	mov	r3, #64
	strb	r3, [fp, #-10]
	mvn	r3, #127
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-32]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r3, .L211
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L210
	bl	__stack_chk_fail
.L210:
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L212:
	.align	2
.L211:
	.word	.LC82
	.word	.LC81
	.size	ComposeMessage, .-ComposeMessage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
