	.file	"102114.c"
	.intel_syntax noprefix
	.text
	.data
	.type	bits, @object
	.size	bits, 1
bits:
	.byte	8
	.align 4
	.type	speed, @object
	.size	speed, 4
speed:
	.long	16000000
	.local	delay
	.comm	delay,2,2
	.local	leptfd
	.comm	leptfd,4,4
	.text
	.globl	leptopen
	.type	leptopen, @function
leptopen:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -24[rbp], 0
	movabs	rax, 7597699219061040175
	mov	QWORD PTR -23[rbp], rax
	mov	DWORD PTR -15[rbp], 813065572
	mov	WORD PTR -11[rbp], 12334
	mov	BYTE PTR -9[rbp], 0
	lea	rax, -23[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR leptfd[rip], eax
	mov	eax, DWORD PTR leptfd[rip]
	test	eax, eax
	jns	.L2
	mov	eax, -1
	jmp	.L10
.L2:
	mov	eax, DWORD PTR leptfd[rip]
	lea	rdx, -24[rbp]
	mov	esi, 1073834753
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L4
	mov	eax, -2
	jmp	.L10
.L4:
	mov	eax, DWORD PTR leptfd[rip]
	lea	rdx, -24[rbp]
	mov	esi, 2147576577
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L5
	mov	eax, -3
	jmp	.L10
.L5:
	mov	eax, DWORD PTR leptfd[rip]
	lea	rdx, bits[rip]
	mov	esi, 1073834755
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L6
	mov	eax, -4
	jmp	.L10
.L6:
	mov	eax, DWORD PTR leptfd[rip]
	lea	rdx, bits[rip]
	mov	esi, 2147576579
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L7
	mov	eax, -5
	jmp	.L10
.L7:
	mov	eax, DWORD PTR leptfd[rip]
	lea	rdx, speed[rip]
	mov	esi, 1074031364
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L8
	mov	eax, -6
	jmp	.L10
.L8:
	mov	eax, DWORD PTR leptfd[rip]
	lea	rdx, speed[rip]
	mov	esi, 2147773188
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L9
	mov	eax, -7
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	leptopen, .-leptopen
	.globl	leptclose
	.type	leptclose, @function
leptclose:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR leptfd[rip]
	mov	edi, eax
	call	close@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	leptclose, .-leptclose
	.section	.rodata
.LC0:
	.string	"!\n"
.LC1:
	.string	"[%d]"
	.text
	.globl	leptget
	.type	leptget, @function
leptget:
.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, 416
	mov	QWORD PTR -408[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -400[rbp], -1
	mov	DWORD PTR -396[rbp], 0
	mov	DWORD PTR -392[rbp], 0
.L24:
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	lea	rax, -176[rbp]
	mov	QWORD PTR -384[rbp], rax
	lea	rax, -352[rbp]
	mov	QWORD PTR -376[rbp], rax
	mov	DWORD PTR -368[rbp], 164
	mov	eax, DWORD PTR speed[rip]
	mov	DWORD PTR -364[rbp], eax
	movzx	eax, WORD PTR delay[rip]
	mov	WORD PTR -360[rbp], ax
	movzx	eax, BYTE PTR bits[rip]
	mov	BYTE PTR -358[rbp], al
	mov	eax, DWORD PTR leptfd[rip]
	lea	rdx, -384[rbp]
	mov	esi, 1075866368
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -388[rbp], eax
	cmp	DWORD PTR -388[rbp], 0
	jg	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 49
	call	fputc@PLT
	jmp	.L23
.L14:
	movzx	eax, BYTE PTR -352[rbp]
	movzx	eax, al
	and	eax, 15
	cmp	eax, 15
	jne	.L16
	cmp	DWORD PTR -392[rbp], 0
	jne	.L17
	mov	edi, 25000
	call	usleep@PLT
	jmp	.L18
.L17:
	mov	edi, 1000
	call	usleep@PLT
.L18:
	add	DWORD PTR -392[rbp], 1
	jmp	.L23
.L16:
	mov	DWORD PTR -392[rbp], 0
	movzx	eax, BYTE PTR -351[rbp]
	movzx	eax, al
	mov	DWORD PTR -400[rbp], eax
	add	DWORD PTR -396[rbp], 1
	cmp	DWORD PTR -400[rbp], 59
	jle	.L19
	cmp	DWORD PTR -396[rbp], 8
	jle	.L20
	mov	edi, 125000
	call	usleep@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 2
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
.L20:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -400[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L23
.L19:
	mov	DWORD PTR -396[rbp], 0
	mov	DWORD PTR -388[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -388[rbp]
	add	eax, 2
	add	eax, eax
	cdqe
	movzx	eax, BYTE PTR -352[rbp+rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -388[rbp]
	add	eax, eax
	add	eax, 5
	cdqe
	movzx	eax, BYTE PTR -352[rbp+rax]
	movzx	eax, al
	mov	ecx, edx
	or	ecx, eax
	mov	edx, DWORD PTR -400[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 4
	mov	edx, eax
	mov	eax, DWORD PTR -388[rbp]
	add	eax, edx
	cdqe
	lea	rdx, [rax+rax]
	mov	rax, QWORD PTR -408[rbp]
	add	rax, rdx
	mov	edx, ecx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -388[rbp], 1
.L21:
	cmp	DWORD PTR -388[rbp], 79
	jle	.L22
.L23:
	cmp	DWORD PTR -400[rbp], 59
	jne	.L24
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	leptget, .-leptget
	.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	"102114.c"
	.text
	.data
	.type	bits, %object
	.size	bits, 1
bits:
	.byte	8
	.align	2
	.type	speed, %object
	.size	speed, 4
speed:
	.word	16000000
	.local	delay
	.comm	delay,2,2
	.local	leptfd
	.comm	leptfd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/spidev0.0\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	leptopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	leptopen, %function
leptopen:
	@ 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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-25]
	ldr	r3, .L12+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	sub	r3, fp, #24
	mov	r1, #2
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L12+8
	str	r3, [r2]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	mvn	r3, #0
	b	.L10
.L2:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r2, fp, #25
	ldr	r1, .L12+12
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	mvn	r3, #1
	b	.L10
.L4:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	sub	r2, fp, #25
	ldr	r1, .L12+16
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L5
	mvn	r3, #2
	b	.L10
.L5:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, .L12+20
	ldr	r1, .L12+24
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	mvn	r3, #3
	b	.L10
.L6:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, .L12+20
	ldr	r1, .L12+28
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	mvn	r3, #4
	b	.L10
.L7:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, .L12+32
	ldr	r1, .L12+36
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	mvn	r3, #5
	b	.L10
.L8:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, .L12+32
	ldr	r1, .L12+40
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	mvn	r3, #6
	b	.L10
.L9:
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.word	leptfd
	.word	1073834753
	.word	-2147390719
	.word	bits
	.word	1073834755
	.word	-2147390717
	.word	speed
	.word	1074031364
	.word	-2147194108
	.size	leptopen, .-leptopen
	.align	2
	.global	leptclose
	.syntax unified
	.arm
	.fpu softvfp
	.type	leptclose, %function
leptclose:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	leptfd
	.size	leptclose, .-leptclose
	.section	.rodata
	.align	2
.LC2:
	.ascii	"!\012\000"
	.align	2
.LC3:
	.ascii	"[%d]\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	leptget
	.syntax unified
	.arm
	.fpu softvfp
	.type	leptget, %function
leptget:
	@ args = 0, pretend = 0, frame = 392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #392
	str	r0, [fp, #-392]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-388]
	mov	r3, #0
	str	r3, [fp, #-384]
	mov	r3, #0
	str	r3, [fp, #-380]
.L28:
	mov	r3, #0
	str	r3, [fp, #-172]
	sub	r3, fp, #168
	mov	r2, #160
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #372
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #172
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-372]
	str	r3, [fp, #-368]
	sub	r3, fp, #336
	mov	r2, r3
	mov	r3, #0
	str	r2, [fp, #-364]
	str	r3, [fp, #-360]
	mov	r3, #164
	str	r3, [fp, #-356]
	ldr	r3, .L31+4
	ldr	r3, [r3]
	str	r3, [fp, #-352]
	ldr	r3, .L31+8
	ldrh	r2, [r3]
	sub	r3, fp, #4
	sub	r3, r3, #368
	strh	r2, [r3, #24]	@ movhi
	ldr	r3, .L31+12
	ldrb	r3, [r3]	@ zero_extendqisi2
	strb	r3, [fp, #-346]
	ldr	r3, .L31+16
	ldr	r3, [r3]
	sub	r2, fp, #372
	ldr	r1, .L31+20
	mov	r0, r3
	bl	ioctl
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bgt	.L18
	ldr	r3, .L31+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #49
	bl	fputc
	b	.L27
.L18:
	ldrb	r3, [fp, #-336]	@ zero_extendqisi2
	and	r3, r3, #15
	cmp	r3, #15
	bne	.L20
	ldr	r3, [fp, #-380]
	cmp	r3, #0
	bne	.L21
	ldr	r0, .L31+28
	bl	usleep
	b	.L22
.L21:
	mov	r0, #1000
	bl	usleep
.L22:
	ldr	r3, [fp, #-380]
	add	r3, r3, #1
	str	r3, [fp, #-380]
	b	.L27
.L20:
	mov	r3, #0
	str	r3, [fp, #-380]
	ldrb	r3, [fp, #-335]	@ zero_extendqisi2
	str	r3, [fp, #-388]
	ldr	r3, [fp, #-384]
	add	r3, r3, #1
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-388]
	cmp	r3, #59
	ble	.L23
	ldr	r3, [fp, #-384]
	cmp	r3, #8
	ble	.L24
	ldr	r0, .L31+32
	bl	usleep
	ldr	r3, .L31+24
	ldr	r3, [r3]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, .L31+36
	bl	fwrite
.L24:
	ldr	r3, .L31+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-388]
	ldr	r1, .L31+40
	mov	r0, r3
	bl	fprintf
	b	.L27
.L23:
	mov	r3, #0
	str	r3, [fp, #-384]
	mov	r3, #0
	str	r3, [fp, #-376]
	b	.L25
.L26:
	ldr	r3, [fp, #-376]
	add	r3, r3, #2
	lsl	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-332]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldr	r3, [fp, #-376]
	lsl	r3, r3, #1
	add	r3, r3, #5
	sub	r1, fp, #4
	add	r3, r1, r3
	ldrb	r3, [r3, #-332]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r1, r3, #16
	ldr	r2, [fp, #-388]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	lsl	r3, r3, #1
	ldr	r2, [fp, #-392]
	add	r3, r2, r3
	lsl	r2, r1, #16
	lsr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-376]
	add	r3, r3, #1
	str	r3, [fp, #-376]
.L25:
	ldr	r3, [fp, #-376]
	cmp	r3, #79
	ble	.L26
.L27:
	ldr	r3, [fp, #-388]
	cmp	r3, #59
	bne	.L28
	mov	r3, #0
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC4
	.word	speed
	.word	delay
	.word	bits
	.word	leptfd
	.word	1075866368
	.word	stderr
	.word	25000
	.word	125000
	.word	.LC2
	.word	.LC3
	.size	leptget, .-leptget
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
