	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_read
_i2c_read:                              ## @i2c_read
	.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
	cmpq	$0, (%rdi)
	js	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	$146, %edx
	callq	_reg_w
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$144, %edx
	callq	_reg_w
	movl	$20, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$145, %esi
	callq	_reg_r
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_4:
	movq	%rbx, %rdi
	movl	$149, %esi
	callq	_reg_r
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$150, %esi
	callq	_reg_r
	shll	$8, %eax
	orl	%r14d, %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_r status error %02x\n"

	.no_dead_strip	_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_read
_i2c_read:                              ; @i2c_read
	.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
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w2, #146
	bl	_reg_w
	mov	x0, x19
	mov	w1, #2
	mov	w2, #144
	bl	_reg_w
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	mov	w1, #145
	bl	_reg_r
	cbz	w0, LBB0_3
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
	mov	x0, x19
	mov	w1, #149
	bl	_reg_r
	mov	x20, x0
	mov	x0, x19
	mov	w1, #150
	bl	_reg_r
	orr	w0, w20, w0, lsl #8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_r status error %02x\n"

	.no_dead_strip	_i2c_read
.subsections_via_symbols
