	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$4288, %esi                     ## imm = 0x10C0
	movq	%r14, %rdx
	movl	$8, %ecx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	cmpl	$0, 8(%rbx)
	js	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	testb	$4, %al
	jne	LBB0_2
## %bb.5:
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	cmpl	$0, 8(%rbx)
	js	LBB0_4
## %bb.6:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	testb	$4, %al
	jne	LBB0_2
## %bb.7:
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	cmpl	$0, 8(%rbx)
	js	LBB0_4
## %bb.8:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	testb	$4, %al
	jne	LBB0_2
## %bb.9:
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	cmpl	$0, 8(%rbx)
	js	LBB0_4
## %bb.10:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	testb	$4, %al
	jne	LBB0_2
## %bb.11:
	movl	$10, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$4288, %esi                     ## imm = 0x10C0
	movl	$1, %edx
	callq	_reg_r
	cmpl	$0, 8(%rbx)
	js	LBB0_4
## %bb.12:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	testb	$4, %al
	jne	LBB0_2
## %bb.13:
	movl	$10, %edi
	callq	_msleep
	movl	8(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_2:
	testb	$8, %al
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, 8(%rbx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_w error\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"i2c_w reg %02x no response\n"

	.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:
	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
	mov	x20, x1
	mov	x19, x0
	mov	w1, #4288
	mov	x2, x20
	mov	w3, #8
	bl	_reg_w
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_13
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_11
; %bb.2:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_13
; %bb.3:
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_11
; %bb.4:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_13
; %bb.5:
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_11
; %bb.6:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_13
; %bb.7:
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_11
; %bb.8:
	mov	w0, #10
	bl	_msleep
	mov	x0, x19
	mov	w1, #4288
	mov	w2, #1
	bl	_reg_r
	ldr	w8, [x19, #8]
	tbnz	w8, #31, LBB0_13
; %bb.9:
	ldr	x8, [x19]
	ldr	w8, [x8]
	tbnz	w8, #2, LBB0_11
; %bb.10:
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_13
LBB0_11:
	tbz	w8, #3, LBB0_13
; %bb.12:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #8]
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_w error\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"i2c_w reg %02x no response\n"

	.no_dead_strip	_i2c_w
.subsections_via_symbols
