	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$8, %ecx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$4, %cl
	jne	LBB0_1
## %bb.2:
	movl	$1, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$4, %cl
	jne	LBB0_1
## %bb.3:
	movl	$1, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$4, %cl
	jne	LBB0_1
## %bb.4:
	movl	$1, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$4, %cl
	jne	LBB0_1
## %bb.5:
	movl	$1, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	movq	(%rbx), %rax
	movl	(%rax), %ecx
	testb	$4, %cl
	jne	LBB0_1
## %bb.6:
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	testb	$8, %cl
	je	LBB0_8
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x2, x1
	mov	x19, x0
	mov	w1, #4288
	mov	w3, #8
	bl	_reg_w
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_6
; %bb.1:
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_6
; %bb.2:
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_6
; %bb.3:
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_6
; %bb.4:
	mov	w0, #1
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_6
; %bb.5:
	mov	w0, #1
	bl	_msleep
	b	LBB0_8
LBB0_6:
	tbnz	w8, #3, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_i2c_w
.subsections_via_symbols
