	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w9968cf_i2c_r
_w9968cf_i2c_r:                         ## @w9968cf_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$19, %esi
	callq	_w9968cf_write_sb
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_start
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_write_byte
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_read_ack
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_w9968cf_smbus_write_byte
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_read_ack
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_stop
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_start
	movl	(%rbx), %esi
	incl	%esi
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_write_byte
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_read_ack
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_read_byte
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_write_nack
	movq	%rbx, %rdi
	callq	_w9968cf_smbus_stop
	movq	%rbx, %rdi
	movl	$48, %esi
	callq	_w9968cf_write_sb
	cmpq	$0, 8(%rbx)
	js	LBB0_2
## %bb.1:
	movl	-20(%rbp), %ebx
	movq	_D_USBI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_PDEBUG
	jmp	LBB0_3
LBB0_2:
	movq	_D_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_PDEBUG
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_USBI,4,2                     ## @D_USBI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c [0x%02X] -> 0x%02X"

	.comm	_D_ERR,4,2                      ## @D_ERR
L_.str.1:                               ## @.str.1
	.asciz	"i2c read [0x%02x] failed"

	.no_dead_strip	_w9968cf_i2c_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w9968cf_i2c_r
_w9968cf_i2c_r:                         ; @w9968cf_i2c_r
	.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	x19, x1
	mov	x20, x0
	mov	w1, #19
	bl	_w9968cf_write_sb
	mov	x0, x20
	bl	_w9968cf_smbus_start
	ldr	w1, [x20]
	mov	x0, x20
	bl	_w9968cf_smbus_write_byte
	mov	x0, x20
	bl	_w9968cf_smbus_read_ack
	mov	x0, x20
	mov	x1, x19
	bl	_w9968cf_smbus_write_byte
	mov	x0, x20
	bl	_w9968cf_smbus_read_ack
	mov	x0, x20
	bl	_w9968cf_smbus_stop
	mov	x0, x20
	bl	_w9968cf_smbus_start
	ldr	w8, [x20]
	add	w1, w8, #1
	mov	x0, x20
	bl	_w9968cf_smbus_write_byte
	mov	x0, x20
	bl	_w9968cf_smbus_read_ack
	add	x1, sp, #12
	mov	x0, x20
	bl	_w9968cf_smbus_read_byte
	mov	x0, x20
	bl	_w9968cf_smbus_write_nack
	mov	x0, x20
	bl	_w9968cf_smbus_stop
	mov	x0, x20
	mov	w1, #48
	bl	_w9968cf_write_sb
	ldr	x8, [x20, #8]
	tbnz	x8, #63, LBB0_2
; %bb.1:
	ldr	w20, [sp, #12]
Lloh0:
	adrp	x8, _D_USBI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_PDEBUG
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _D_ERR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D_ERR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_PDEBUG
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBI,4,2                     ; @D_USBI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c [0x%02X] -> 0x%02X"

	.comm	_D_ERR,4,2                      ; @D_ERR
l_.str.1:                               ; @.str.1
	.asciz	"i2c read [0x%02x] failed"

	.no_dead_strip	_w9968cf_i2c_r
.subsections_via_symbols
