	.file	"450651.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"SPI: SPI_IOC_MESSAGE Failed"
	.text
	.globl	transfer
	.type	transfer, @function
transfer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -72[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -28[rbp], 1000000
	mov	BYTE PTR -22[rbp], 8
	mov	WORD PTR -24[rbp], 0
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, 1075866368
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -52[rbp]
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	transfer, .-transfer
	.section	.rodata
.LC1:
	.string	"/dev/spidev1.0"
.LC2:
	.string	"SPI Error: Can't open device."
.LC3:
	.string	"SPI: Can't set SPI mode."
.LC4:
	.string	"SPI: Can't get SPI mode."
.LC5:
	.string	"SPI: Can't set bits per word."
.LC6:
	.string	"SPI: Can't get bits per word."
.LC7:
	.string	"SPI: Can't set max speed HZ"
.LC8:
	.string	"SPI: Can't get max speed HZ."
.LC9:
	.string	"SPI Mode is: %d\n"
.LC10:
	.string	"SPI Bits is: %d\n"
.LC11:
	.string	"SPI Speed is: %d\n"
	.align 8
.LC12:
	.string	"Counting through all of the LEDs:"
.LC13:
	.string	"Failed to update the display"
.LC14:
	.string	"%4d\r"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	BYTE PTR -23[rbp], 0
	mov	BYTE PTR -22[rbp], 8
	mov	BYTE PTR -21[rbp], 3
	mov	DWORD PTR -16[rbp], 1000000
	mov	esi, 2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L7
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L7:
	lea	rdx, -21[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1073834753
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L9:
	lea	rdx, -21[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 2147576577
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L10:
	lea	rdx, -22[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1073834755
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L11:
	lea	rdx, -22[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 2147576579
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L12
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L12:
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1074031364
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L13
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L13:
	lea	rdx, -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 2147773188
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L14
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L14:
	movzx	eax, BYTE PTR -21[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -22[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	DWORD PTR -20[rbp], 0
	jmp	.L15
.L17:
	lea	rdx, -23[rbp]
	lea	rsi, -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, 1
	mov	edi, eax
	call	transfer
	cmp	eax, -1
	jne	.L16
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L18
.L16:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 100000
	call	usleep@PLT
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
.L15:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 254
	jle	.L17
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L18:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.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	"450651.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"SPI: SPI_IOC_MESSAGE Failed\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	transfer
	.syntax unified
	.arm
	.fpu softvfp
	.type	transfer, %function
transfer:
	@ args = 0, pretend = 0, frame = 64
	@ 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]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-64]
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-28]
	ldr	r3, .L6+4
	str	r3, [fp, #-24]
	mov	r3, #8
	strb	r3, [fp, #-18]
	mov	r3, #0
	strh	r3, [fp, #-20]	@ movhi
	sub	r3, fp, #44
	mov	r2, r3
	ldr	r1, .L6+8
	ldr	r0, [fp, #-56]
	bl	ioctl
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L6+12
	bl	perror
	mvn	r3, #0
	b	.L4
.L2:
	ldr	r3, [fp, #-48]
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	1000000
	.word	1075866368
	.word	.LC0
	.size	transfer, .-transfer
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/dev/spidev1.0\000"
	.align	2
.LC3:
	.ascii	"SPI Error: Can't open device.\000"
	.align	2
.LC4:
	.ascii	"SPI: Can't set SPI mode.\000"
	.align	2
.LC5:
	.ascii	"SPI: Can't get SPI mode.\000"
	.align	2
.LC6:
	.ascii	"SPI: Can't set bits per word.\000"
	.align	2
.LC7:
	.ascii	"SPI: Can't get bits per word.\000"
	.align	2
.LC8:
	.ascii	"SPI: Can't set max speed HZ\000"
	.align	2
.LC9:
	.ascii	"SPI: Can't get max speed HZ.\000"
	.align	2
.LC10:
	.ascii	"SPI Mode is: %d\012\000"
	.align	2
.LC11:
	.ascii	"SPI Bits is: %d\012\000"
	.align	2
.LC12:
	.ascii	"SPI Speed is: %d\012\000"
	.align	2
.LC13:
	.ascii	"Counting through all of the LEDs:\000"
	.align	2
.LC14:
	.ascii	"Failed to update the display\000"
	.align	2
.LC15:
	.ascii	"%4d\015\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	strb	r3, [fp, #-23]
	mov	r3, #8
	strb	r3, [fp, #-22]
	mov	r3, #3
	strb	r3, [fp, #-21]
	ldr	r3, .L22+4
	str	r3, [fp, #-16]
	mov	r1, #2
	ldr	r0, .L22+8
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L22+12
	bl	perror
	mvn	r3, #0
	b	.L20
.L9:
	sub	r3, fp, #21
	mov	r2, r3
	ldr	r1, .L22+16
	ldr	r0, [fp, #-12]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L22+20
	bl	perror
	mvn	r3, #0
	b	.L20
.L11:
	sub	r3, fp, #21
	mov	r2, r3
	ldr	r1, .L22+24
	ldr	r0, [fp, #-12]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L22+28
	bl	perror
	mvn	r3, #0
	b	.L20
.L12:
	sub	r3, fp, #22
	mov	r2, r3
	ldr	r1, .L22+32
	ldr	r0, [fp, #-12]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L22+36
	bl	perror
	mvn	r3, #0
	b	.L20
.L13:
	sub	r3, fp, #22
	mov	r2, r3
	ldr	r1, .L22+40
	ldr	r0, [fp, #-12]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L22+44
	bl	perror
	mvn	r3, #0
	b	.L20
.L14:
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L22+48
	ldr	r0, [fp, #-12]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L22+52
	bl	perror
	mvn	r3, #0
	b	.L20
.L15:
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L22+56
	ldr	r0, [fp, #-12]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L16
	ldr	r0, .L22+60
	bl	perror
	mvn	r3, #0
	b	.L20
.L16:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L22+64
	bl	printf
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L22+68
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L22+72
	bl	printf
	ldr	r0, .L22+76
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L17
.L19:
	sub	r2, fp, #23
	sub	r1, fp, #20
	mov	r3, #1
	ldr	r0, [fp, #-12]
	bl	transfer
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L22+80
	bl	perror
	mvn	r3, #0
	b	.L20
.L18:
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L22+84
	bl	printf
	ldr	r3, .L22+88
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L22+92
	bl	usleep
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L17:
	ldr	r3, [fp, #-20]
	cmp	r3, #254
	ble	.L19
	ldr	r0, [fp, #-12]
	bl	close
	mov	r3, #0
.L20:
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC16
	.word	1000000
	.word	.LC2
	.word	.LC3
	.word	1073834753
	.word	.LC4
	.word	-2147390719
	.word	.LC5
	.word	1073834755
	.word	.LC6
	.word	-2147390717
	.word	.LC7
	.word	1074031364
	.word	.LC8
	.word	-2147194108
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	stdout
	.word	100000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
