	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TWIReadData                    ## -- Begin function TWIReadData
	.p2align	4, 0x90
_TWIReadData:                           ## @TWIReadData
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_RXMAXBUFLEN@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	_RXBuffIndex@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_RXBuffLen@GOTPCREL(%rip), %rax
	movq	%rsi, (%rax)
	leaq	(%rdi,%rdi), %rax
	incq	%rax
	movq	%rax, -16(%rbp)
	leaq	-16(%rbp), %rdi
	movl	$1, %esi
	xorl	%ecx, %ecx
	callq	_TWITransmitData
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RXMAXBUFLEN,8,3                ## @RXMAXBUFLEN
	.comm	_RXBuffIndex,8,3                ## @RXBuffIndex
	.comm	_RXBuffLen,8,3                  ## @RXBuffLen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TWIReadData                    ; -- Begin function TWIReadData
	.p2align	2
_TWIReadData:                           ; @TWIReadData
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x8, _RXMAXBUFLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXMAXBUFLEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _RXBuffIndex@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RXBuffIndex@GOTPAGEOFF]
Lloh8:
	adrp	x9, _RXBuffLen@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RXBuffLen@GOTPAGEOFF]
Lloh10:
	str	xzr, [x8]
Lloh11:
	str	x1, [x9]
	mov	w19, #1
	mov	w8, #1
	bfi	x8, x0, #1, #63
	str	x8, [sp]
	mov	x0, sp
	mov	w1, #1
	mov	w3, #0
	bl	_TWITransmitData
	b	LBB0_3
LBB0_2:
	mov	x19, #0
LBB0_3:
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RXMAXBUFLEN,8,3                ; @RXMAXBUFLEN
	.comm	_RXBuffIndex,8,3                ; @RXBuffIndex
	.comm	_RXBuffLen,8,3                  ; @RXBuffLen
.subsections_via_symbols
