	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_r
_i2c_r:                                 ## @i2c_r
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %edx
	movq	%rdi, %rbx
	movq	_TP6800_R19_SIF_ADDR_S2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_reg_w
	movq	_TP6800_R11_SIF_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_reg_w
	movl	$5, %edi
	callq	_msleep
	movq	_TP6800_R14_SIF_RX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %r14d
	movq	_BRIDGE_TP6800@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	je	LBB0_5
## %bb.1:
	cmpl	$2, %r15d
	jl	LBB0_3
## %bb.2:
	movq	_TP6800_R1B_SIF_RX_DATA2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	orl	%eax, %r14d
LBB0_3:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	movq	(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP6800_R19_SIF_ADDR_S2,4,2     ## @TP6800_R19_SIF_ADDR_S2
	.comm	_TP6800_R11_SIF_CONTROL,4,2     ## @TP6800_R11_SIF_CONTROL
	.comm	_TP6800_R14_SIF_RX_DATA,4,2     ## @TP6800_R14_SIF_RX_DATA
	.comm	_BRIDGE_TP6800,8,3              ## @BRIDGE_TP6800
	.comm	_TP6800_R1B_SIF_RX_DATA2,4,2    ## @TP6800_R1B_SIF_RX_DATA2
	.no_dead_strip	_i2c_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_r
_i2c_r:                                 ; @i2c_r
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TP6800_R19_SIF_ADDR_S2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP6800_R19_SIF_ADDR_S2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_reg_w
Lloh3:
	adrp	x22, _TP6800_R11_SIF_CONTROL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TP6800_R11_SIF_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #2
	bl	_reg_w
	mov	w0, #5
	bl	_msleep
Lloh5:
	adrp	x8, _TP6800_R14_SIF_RX_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TP6800_R14_SIF_RX_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w20, [x8]
Lloh8:
	adrp	x9, _BRIDGE_TP6800@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BRIDGE_TP6800@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #2
	b.lt	LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _TP6800_R1B_SIF_RX_DATA2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TP6800_R1B_SIF_RX_DATA2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	orr	w20, w20, w8, lsl #8
LBB0_3:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w
	mov	w20, #-1
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TP6800_R19_SIF_ADDR_S2,4,2     ; @TP6800_R19_SIF_ADDR_S2
	.comm	_TP6800_R11_SIF_CONTROL,4,2     ; @TP6800_R11_SIF_CONTROL
	.comm	_TP6800_R14_SIF_RX_DATA,4,2     ; @TP6800_R14_SIF_RX_DATA
	.comm	_BRIDGE_TP6800,8,3              ; @BRIDGE_TP6800
	.comm	_TP6800_R1B_SIF_RX_DATA2,4,2    ; @TP6800_R1B_SIF_RX_DATA2
	.no_dead_strip	_i2c_r
.subsections_via_symbols
