	.file	"117362.c"
	.intel_syntax noprefix
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
.LC0:
	.string	"read"
.LC1:
	.string	"short read\n"
.LC2:
	.string	"read(%2d, %2d): %02x %02x,"
.LC3:
	.string	" %02x"
	.text
	.type	do_read, @function
do_read:
.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, 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	.L2
	mov	DWORD PTR -72[rbp], 2
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 32
	jbe	.L3
	mov	DWORD PTR -72[rbp], 32
.L3:
	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	.L4
	lea	rdi, .LC0[rip]
	call	perror@PLT
	jmp	.L1
.L4:
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 11
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	jmp	.L1
.L6:
	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, .LC2[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	.L7
.L8:
	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, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jg	.L8
	mov	edi, 10
	call	putchar@PLT
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	do_read, .-do_read
	.section	.rodata
.LC4:
	.string	"SPI_IOC_MESSAGE"
.LC5:
	.string	"response(%2d, %2d): "
	.text
	.type	do_msg, @function
do_msg:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 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	.L12
	mov	DWORD PTR -136[rbp], 32
.L12:
	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	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
	cmp	DWORD PTR -124[rbp], 0
	jns	.L13
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L11
.L13:
	mov	edx, DWORD PTR -124[rbp]
	mov	eax, DWORD PTR -136[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L15
.L16:
	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, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -136[rbp], 1
.L15:
	cmp	DWORD PTR -136[rbp], 0
	jne	.L16
	mov	edi, 10
	call	putchar@PLT
.L11:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	do_msg, .-do_msg
	.section	.rodata
.LC6:
	.string	"SPI rd_mode"
.LC7:
	.string	"SPI rd_lsb_fist"
.LC8:
	.string	"SPI bits_per_word"
.LC9:
	.string	"SPI max_speed_hz"
.LC10:
	.string	"(lsb first) "
.LC11:
	.string	""
	.align 8
.LC12:
	.string	"%s: spi mode %d, %d bits %sper word, %d Hz max\n"
	.text
	.type	dumpstat, @function
dumpstat:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -15[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 2147576577
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L19
	lea	rdi, .LC6[rip]
	call	perror@PLT
	jmp	.L18
.L19:
	lea	rdx, -14[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 2147576578
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L21
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L18
.L21:
	lea	rdx, -13[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 2147576579
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L22
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L18
.L22:
	lea	rdx, -12[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, 2147773188
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L23
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L18
.L23:
	mov	edi, DWORD PTR -12[rbp]
	movzx	eax, BYTE PTR -14[rbp]
	test	al, al
	je	.L24
	lea	rax, .LC10[rip]
	jmp	.L25
.L24:
	lea	rax, .LC11[rip]
.L25:
	movzx	edx, BYTE PTR -13[rbp]
	movzx	ecx, dl
	movzx	edx, BYTE PTR -15[rbp]
	movzx	edx, dl
	mov	rsi, QWORD PTR -24[rbp]
	mov	r9d, edi
	mov	r8, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dumpstat, .-dumpstat
	.section	.rodata
	.align 8
.LC13:
	.string	"usage: %s [-h] [-m N] [-r N] /dev/spidevB.D\n"
.LC14:
	.string	"hm:r:v"
.LC15:
	.string	"open"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L29
.L37:
	cmp	DWORD PTR -16[rbp], 118
	je	.L30
	cmp	DWORD PTR -16[rbp], 118
	jg	.L29
	cmp	DWORD PTR -16[rbp], 114
	je	.L31
	cmp	DWORD PTR -16[rbp], 114
	jg	.L29
	cmp	DWORD PTR -16[rbp], 109
	je	.L32
	cmp	DWORD PTR -16[rbp], 109
	jg	.L29
	cmp	DWORD PTR -16[rbp], 63
	je	.L33
	cmp	DWORD PTR -16[rbp], 104
	je	.L33
	jmp	.L29
.L32:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	js	.L42
	jmp	.L29
.L31:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	js	.L43
	jmp	.L29
.L30:
	mov	eax, DWORD PTR verbose[rip]
	add	eax, 1
	mov	DWORD PTR verbose[rip], eax
	jmp	.L29
.L42:
	nop
	jmp	.L33
.L43:
	nop
	jmp	.L33
.L44:
	nop
.L33:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L36
.L29:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], -1
	jne	.L37
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	cmp	DWORD PTR -36[rbp], eax
	jne	.L44
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L39
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L36
.L39:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	dumpstat
	cmp	DWORD PTR -20[rbp], 0
	je	.L40
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	do_msg
.L40:
	cmp	DWORD PTR -24[rbp], 0
	je	.L41
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	do_read
.L41:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"117362.c"
	.text
	.local	verbose
	.comm	verbose,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"read\000"
	.align	2
.LC1:
	.ascii	"short read\012\000"
	.align	2
.LC2:
	.ascii	"read(%2d, %2d): %02x %02x,\000"
	.align	2
.LC3:
	.ascii	" %02x\000"
	.align	2
.LC4:
	.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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	cmp	r3, #1
	bgt	.L2
	mov	r3, #2
	str	r3, [fp, #-60]
	b	.L3
.L2:
	ldr	r3, [fp, #-60]
	cmp	r3, #32
	bls	.L3
	mov	r3, #32
	str	r3, [fp, #-60]
.L3:
	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	.L4
	ldr	r0, .L11+4
	bl	perror
	b	.L1
.L4:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	cmp	r2, r3
	beq	.L6
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #11
	mov	r1, #1
	ldr	r0, .L11+12
	bl	fwrite
	b	.L1
.L6:
	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, .L11+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	.L7
.L8:
	ldr	r3, [fp, #-48]
	add	r2, r3, #1
	str	r2, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L11+20
	bl	printf
.L7:
	ldr	r3, [fp, #-44]
	sub	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bgt	.L8
	mov	r0, #10
	bl	putchar
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	do_read, .-do_read
	.section	.rodata
	.align	2
.LC5:
	.ascii	"SPI_IOC_MESSAGE\000"
	.align	2
.LC6:
	.ascii	"response(%2d, %2d): \000"
	.align	2
.LC7:
	.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, .L20
	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	.L14
	mov	r3, #32
	str	r3, [fp, #-124]
.L14:
	mvn	r3, #85
	strb	r3, [fp, #-40]
	sub	r3, fp, #40
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-92]
	sub	r3, fp, #40
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-124]
	str	r3, [fp, #-60]
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L20+4
	ldr	r0, [fp, #-120]
	bl	ioctl
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L20+8
	bl	perror
	b	.L13
.L15:
	ldr	r2, [fp, #-112]
	ldr	r1, [fp, #-124]
	ldr	r0, .L20+12
	bl	printf
	sub	r3, fp, #40
	str	r3, [fp, #-116]
	b	.L17
.L18:
	ldr	r3, [fp, #-116]
	add	r2, r3, #1
	str	r2, [fp, #-116]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L20+16
	bl	printf
	ldr	r3, [fp, #-124]
	sub	r3, r3, #1
	str	r3, [fp, #-124]
.L17:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L18
	mov	r0, #10
	bl	putchar
.L13:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	1077963520
	.word	.LC5
	.word	.LC6
	.word	.LC3
	.size	do_msg, .-do_msg
	.section	.rodata
	.align	2
.LC8:
	.ascii	"SPI rd_mode\000"
	.align	2
.LC9:
	.ascii	"SPI rd_lsb_fist\000"
	.align	2
.LC10:
	.ascii	"SPI bits_per_word\000"
	.align	2
.LC11:
	.ascii	"SPI max_speed_hz\000"
	.align	2
.LC12:
	.ascii	"(lsb first) \000"
	.align	2
.LC13:
	.ascii	"\000"
	.align	2
.LC14:
	.ascii	"%s: spi mode %d, %d bits %sper word, %d Hz max\012\000"
	.align	2
.LC15:
	.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, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #15
	mov	r2, r3
	ldr	r1, .L32+4
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L32+8
	bl	perror
	b	.L22
.L23:
	sub	r3, fp, #14
	mov	r2, r3
	ldr	r1, .L32+12
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L25
	ldr	r0, .L32+16
	bl	perror
	b	.L22
.L25:
	sub	r3, fp, #13
	mov	r2, r3
	ldr	r1, .L32+20
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L26
	ldr	r0, .L32+24
	bl	perror
	b	.L22
.L26:
	sub	r3, fp, #12
	mov	r2, r3
	ldr	r1, .L32+28
	ldr	r0, [fp, #-28]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L27
	ldr	r0, .L32+32
	bl	perror
	b	.L22
.L27:
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-14]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	ldr	r3, .L32+36
	b	.L29
.L28:
	ldr	r3, .L32+40
.L29:
	ldr	r2, [fp, #-12]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-24]
	ldr	r0, .L32+44
	bl	printf
.L22:
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC15
	.word	-2147390719
	.word	.LC8
	.word	-2147390718
	.word	.LC9
	.word	-2147390717
	.word	.LC10
	.word	-2147194108
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	dumpstat, .-dumpstat
	.section	.rodata
	.align	2
.LC16:
	.ascii	"usage: %s [-h] [-m N] [-r N] /dev/spidevB.D\012\000"
	.align	2
.LC17:
	.ascii	"hm:r:v\000"
	.align	2
.LC18:
	.ascii	"open\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L35
.L44:
	ldr	r3, [fp, #-16]
	cmp	r3, #63
	beq	.L36
	ldr	r3, [fp, #-16]
	cmp	r3, #63
	blt	.L35
	ldr	r3, [fp, #-16]
	cmp	r3, #118
	bgt	.L35
	ldr	r3, [fp, #-16]
	cmp	r3, #104
	blt	.L35
	ldr	r3, [fp, #-16]
	sub	r3, r3, #104
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L35
.L38:
	.word	.L36
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L40
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L39
	.word	.L35
	.word	.L35
	.word	.L35
	.word	.L37
.L40:
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L49
	b	.L35
.L39:
	ldr	r3, .L52
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L50
	b	.L35
.L37:
	ldr	r3, .L52+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L52+4
	str	r3, [r2]
	b	.L35
.L49:
	nop
	b	.L36
.L50:
	nop
	b	.L36
.L51:
	nop
.L36:
	ldr	r3, .L52+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L52+12
	bl	fprintf
	mov	r3, #1
	b	.L43
.L35:
	ldr	r2, .L52+16
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L44
	ldr	r3, .L52+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L51
	ldr	r3, .L52+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-36]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L46
	ldr	r0, .L52+24
	bl	perror
	mov	r3, #1
	b	.L43
.L46:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	dumpstat
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L47
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	do_msg
.L47:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L48
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	do_read
.L48:
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, #0
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	optarg
	.word	verbose
	.word	stderr
	.word	.LC16
	.word	.LC17
	.word	optind
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
