	.file	"321911.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/i2c-1"
.LC1:
	.string	"Failed to open the i2c bus"
	.align 8
.LC2:
	.string	"Failed to acquire bus access and/or talk to slave."
	.align 8
.LC3:
	.string	"Failed to write to the i2c bus."
	.align 8
.LC4:
	.string	"Failed to read from the i2c bus."
.LC5:
	.string	"Data read: %d %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	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	DWORD PTR -24[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L9
.L2:
	mov	DWORD PTR -96[rbp], 35
	mov	edx, DWORD PTR -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L9
.L4:
	mov	BYTE PTR -80[rbp], 16
	mov	BYTE PTR -79[rbp], 2
	mov	DWORD PTR -92[rbp], 1
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L8
	lea	rdi, .LC3[rip]
	call	puts@PLT
.L8:
	mov	edi, 1
	call	sleep@PLT
	mov	DWORD PTR -92[rbp], 2
	mov	eax, DWORD PTR -92[rbp]
	movsx	rdx, eax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -92[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L6
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L8
.L6:
	movzx	eax, BYTE PTR -79[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -80[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L8
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"321911.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/i2c-1\000"
	.align	2
.LC1:
	.ascii	"Failed to open the i2c bus\000"
	.align	2
.LC2:
	.ascii	"Failed to acquire bus access and/or talk to slave.\000"
	.align	2
.LC3:
	.ascii	"Failed to write to the i2c bus.\000"
	.align	2
.LC4:
	.ascii	"Failed to read from the i2c bus.\000"
	.align	2
.LC5:
	.ascii	"Data read: %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 = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-68]
	sub	r3, fp, #64
	mov	r2, #56
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L11+4
	str	r3, [fp, #-84]
	mov	r1, #2
	ldr	r0, [fp, #-84]
	bl	open
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L11+8
	bl	printf
	mov	r3, #0
	b	.L9
.L2:
	mov	r3, #35
	str	r3, [fp, #-76]
	ldr	r2, [fp, #-76]
	ldr	r1, .L11+12
	ldr	r0, [fp, #-80]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L11+16
	bl	puts
	mov	r3, #0
	b	.L9
.L4:
	mov	r3, #16
	strb	r3, [fp, #-68]
	mov	r3, #2
	strb	r3, [fp, #-67]
	mov	r3, #1
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-72]
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-72]
	cmp	r3, r2
	beq	.L8
	ldr	r0, .L11+20
	bl	puts
.L8:
	mov	r0, #1
	bl	sleep
	mov	r3, #2
	str	r3, [fp, #-72]
	ldr	r2, [fp, #-72]
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-72]
	cmp	r3, r2
	beq	.L6
	ldr	r0, .L11+24
	bl	puts
	b	.L8
.L6:
	ldrb	r3, [fp, #-68]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-67]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L11+28
	bl	printf
	b	.L8
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	1795
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
