	.file	"extr_TWIlib.c_isTWIReady.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"I2C init error: %d\n"
.LC1:
	.string	"Other i2c init error: %d\n"
	.text
	.p2align 4
	.globl	isTWIReady
	.type	isTWIReady, @function
isTWIReady:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR TWIInfo[rip]
	cmp	QWORD PTR Ready[rip], rax
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	je	.L5
	cmp	QWORD PTR RepeatedStartSent[rip], rax
	je	.L5
	xor	r12d, r12d
	cmp	rax, QWORD PTR Initializing[rip]
	je	.L10
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r12d, 1
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR TWIInfo[rip+8]
	cmp	esi, 129
	jg	.L3
	cmp	esi, 127
	jg	.L1
.L4:
	lea	rdi, .LC1[rip]
	xor	r12d, r12d
	call	xprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	lea	eax, -130[rsi]
	cmp	eax, 1
	ja	.L4
	lea	rdi, .LC0[rip]
	call	xprintf@PLT
	mov	ecx, DWORD PTR TWSTO[rip]
	mov	edx, DWORD PTR TWINT[rip]
	mov	eax, 1
	sal	eax, cl
	bts	eax, edx
	mov	DWORD PTR TWCR[rip], eax
	xor	eax, eax
	call	TWIInit@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	isTWIReady, .-isTWIReady
	.comm	TWSTO,4,4
	.comm	TWINT,4,4
	.comm	TWIInfo,16,16
	.comm	TWCR,4,4
	.comm	RepeatedStartSent,8,8
	.comm	Ready,8,8
	.comm	Initializing,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_TWIlib.c_isTWIReady.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"I2C init error: %d\012\000"
	.align	2
.LC1:
	.ascii	"Other i2c init error: %d\012\000"
	.text
	.align	2
	.global	isTWIReady
	.syntax unified
	.arm
	.fpu softvfp
	.type	isTWIReady, %function
isTWIReady:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r1, .L12
	ldr	r2, .L12+4
	ldr	r0, .L12+8
	ldr	r3, [r1]
	ldr	r2, [r2]
	ldr	r0, [r0]
	push	{r4, lr}
	cmp	r0, r3
	cmpne	r2, r3
	moveq	r4, #1
	movne	r4, #0
	beq	.L5
	ldr	r2, .L12+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L11
.L9:
	mov	r0, #0
	pop	{r4, pc}
.L5:
	mov	r0, #1
	pop	{r4, pc}
.L11:
	ldr	r1, [r1, #4]
	cmp	r1, #129
	bgt	.L3
	cmp	r1, #127
	bgt	.L9
.L4:
	ldr	r0, .L12+16
	bl	xprintf
	b	.L9
.L3:
	sub	r3, r1, #130
	cmp	r3, #1
	bhi	.L4
	ldr	r0, .L12+20
	bl	xprintf
	mov	r2, #1
	ldr	r3, .L12+24
	ldr	r1, .L12+28
	ldr	r3, [r3]
	ldr	r0, [r1]
	lsl	r3, r2, r3
	ldr	r1, .L12+32
	orr	r3, r3, r2, lsl r0
	str	r3, [r1]
	bl	TWIInit
	mov	r0, r4
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	TWIInfo
	.word	Ready
	.word	RepeatedStartSent
	.word	Initializing
	.word	.LC1
	.word	.LC0
	.word	TWSTO
	.word	TWINT
	.word	TWCR
	.size	isTWIReady, .-isTWIReady
	.comm	TWSTO,4,4
	.comm	TWINT,4,4
	.comm	TWIInfo,8,4
	.comm	TWCR,4,4
	.comm	RepeatedStartSent,4,4
	.comm	Ready,4,4
	.comm	Initializing,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
