	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -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	-28(%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	-28(%rbp), %r15d
	movq	_D_USBI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_gspca_dbg
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_gspca_err
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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\n"

L_.str.1:                               ## @.str.1
	.asciz	"i2c read [0x%02x] failed\n"

	.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	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	w21, [sp, #12]
Lloh0:
	adrp	x8, _D_USBI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x4, x21
	bl	_gspca_dbg
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_gspca_err
	mov	w21, #0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.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\n"

l_.str.1:                               ; @.str.1
	.asciz	"i2c read [0x%02x] failed\n"

	.no_dead_strip	_w9968cf_i2c_r
.subsections_via_symbols
