	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isTWIReady                     ## -- Begin function isTWIReady
	.p2align	4, 0x90
_isTWIReady:                            ## @isTWIReady
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_TWIInfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_Ready@GOTPCREL(%rip), %rdx
	movl	$1, %ebx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.1:
	movq	_RepeatedStartSent@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.2:
	movq	_Initializing@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.3:
	movl	8(%rax), %esi
	leal	-128(%rsi), %eax
	cmpl	$2, %eax
	jb	LBB0_7
## %bb.4:
	leal	-130(%rsi), %eax
	cmpl	$1, %eax
	ja	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xprintf
	movq	_TWINT@GOTPCREL(%rip), %rax
	movq	_TWSTO@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movb	(%rax), %al
	btsl	%eax, %edx
	movq	_TWCR@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_TWIInit
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_xprintf
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWIInfo,16,3                   ## @TWIInfo
	.comm	_Ready,8,3                      ## @Ready
	.comm	_RepeatedStartSent,8,3          ## @RepeatedStartSent
	.comm	_Initializing,8,3               ## @Initializing
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C init error: %d\n"

	.comm	_TWINT,4,2                      ## @TWINT
	.comm	_TWSTO,4,2                      ## @TWSTO
	.comm	_TWCR,4,2                       ## @TWCR
L_.str.1:                               ## @.str.1
	.asciz	"Other i2c init error: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isTWIReady                     ; -- Begin function isTWIReady
	.p2align	2
_isTWIReady:                            ; @isTWIReady
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TWIInfo@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWIInfo@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	adrp	x10, _Ready@GOTPAGE
Lloh3:
	ldr	x10, [x10, _Ready@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _RepeatedStartSent@GOTPAGE
Lloh6:
	ldr	x11, [x11, _RepeatedStartSent@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh8:
	adrp	x10, _Initializing@GOTPAGE
Lloh9:
	ldr	x10, [x10, _Initializing@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.3:
	ldr	w1, [x8, #8]
	sub	w8, w1, #128
	cmp	w8, #2
	b.lo	LBB0_7
; %bb.4:
	sub	w8, w1, #130
	cmp	w8, #1
	b.hi	LBB0_6
; %bb.5:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_xprintf
Lloh13:
	adrp	x8, _TWINT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TWINT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
Lloh16:
	adrp	x10, _TWSTO@GOTPAGE
Lloh17:
	ldr	x10, [x10, _TWSTO@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _TWCR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TWCR@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
	bl	_TWIInit
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_xprintf
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TWIInfo,16,3                   ; @TWIInfo
	.comm	_Ready,8,3                      ; @Ready
	.comm	_RepeatedStartSent,8,3          ; @RepeatedStartSent
	.comm	_Initializing,8,3               ; @Initializing
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C init error: %d\n"

	.comm	_TWINT,4,2                      ; @TWINT
	.comm	_TWSTO,4,2                      ; @TWSTO
	.comm	_TWCR,4,2                       ; @TWCR
l_.str.1:                               ; @.str.1
	.asciz	"Other i2c init error: %d\n"

.subsections_via_symbols
