	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_w
_i2c_w:                                 ## @i2c_w
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_TP6800_R11_SIF_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_reg_w
	movq	_TP6800_R19_SIF_ADDR_S2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_reg_w
	movq	_TP6800_R13_SIF_TX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_reg_w
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_reg_w
	movq	(%rbx), %rax
	movq	_BRIDGE_TP6800@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movl	$5, %edi
	callq	_msleep
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_reg_r
	movq	(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_reg_w
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP6800_R11_SIF_CONTROL,4,2     ## @TP6800_R11_SIF_CONTROL
	.comm	_TP6800_R19_SIF_ADDR_S2,4,2     ## @TP6800_R19_SIF_ADDR_S2
	.comm	_TP6800_R13_SIF_TX_DATA,4,2     ## @TP6800_R13_SIF_TX_DATA
	.comm	_BRIDGE_TP6800,8,3              ## @BRIDGE_TP6800
	.no_dead_strip	_i2c_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_w
_i2c_w:                                 ; @i2c_w
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _TP6800_R11_SIF_CONTROL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TP6800_R11_SIF_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_reg_w
Lloh2:
	adrp	x8, _TP6800_R19_SIF_ADDR_S2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TP6800_R19_SIF_ADDR_S2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_reg_w
Lloh5:
	adrp	x8, _TP6800_R13_SIF_TX_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TP6800_R13_SIF_TX_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_reg_w
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_reg_w
	mov	w0, #0
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _BRIDGE_TP6800@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BRIDGE_TP6800@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	mov	w0, #5
	bl	_msleep
	ldr	w1, [x22]
	mov	x0, x19
	bl	_reg_r
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_reg_w
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TP6800_R11_SIF_CONTROL,4,2     ; @TP6800_R11_SIF_CONTROL
	.comm	_TP6800_R19_SIF_ADDR_S2,4,2     ; @TP6800_R19_SIF_ADDR_S2
	.comm	_TP6800_R13_SIF_TX_DATA,4,2     ; @TP6800_R13_SIF_TX_DATA
	.comm	_BRIDGE_TP6800,8,3              ; @BRIDGE_TP6800
	.no_dead_strip	_i2c_w
.subsections_via_symbols
