	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_write
_i2c_write:                             ## @i2c_write
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	js	LBB0_10
## %bb.1:
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdx), %r8d
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_gspca_dbg
	jmp	LBB0_4
LBB0_3:
	movl	4(%r14), %r9d
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_gspca_dbg
LBB0_4:
	movq	%rbx, %rdi
	movl	$161, %esi
	movl	$45887, %edx                    ## imm = 0xB33F
	movl	$1, %ecx
	callq	_reg_r_i
	movq	%rbx, %rdi
	movl	$160, %esi
	movl	%r15d, %edx
	movl	$45876, %ecx                    ## imm = 0xB334
	callq	_reg_w_i
	movq	%rbx, %rdi
	movl	$160, %esi
	movl	%r12d, %edx
	movl	$45882, %ecx                    ## imm = 0xB33A
	callq	_reg_w_i
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	$160, %esi
	movl	$45878, %ecx                    ## imm = 0xB336
	callq	_reg_w_i
	cmpl	$2, %r15d
	jl	LBB0_6
## %bb.5:
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	movl	$160, %esi
	movl	$45879, %ecx                    ## imm = 0xB337
	callq	_reg_w_i
LBB0_6:
	movq	%rbx, %rdi
	movl	$160, %esi
	movl	$1, %edx
	movl	$45881, %ecx                    ## imm = 0xB339
	callq	_reg_w_i
	movq	%rbx, %rdi
	movl	$161, %esi
	movl	$45883, %edx                    ## imm = 0xB33B
	movl	$1, %ecx
	callq	_reg_r_i
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:
	movl	$20, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$161, %esi
	movl	$45883, %edx                    ## imm = 0xB33B
	movl	$1, %ecx
	callq	_reg_r_i
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.8:
	movl	$20, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$161, %esi
	movl	$45883, %edx                    ## imm = 0xB33B
	movl	$1, %ecx
	callq	_reg_r_i
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movl	$20, %edi
	callq	_msleep
	movq	%rbx, %rdi
	movl	$161, %esi
	movl	$45883, %edx                    ## imm = 0xB33B
	movl	$1, %ecx
	callq	_reg_r_i
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.11:
	movl	$20, %edi
	callq	_msleep
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_USBO,4,2                     ## @D_USBO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_w %02x %02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"i2c_w %02x %02x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c_write timeout\n"

	.no_dead_strip	_i2c_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_write
_i2c_write:                             ; @i2c_write
	.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
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_11
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _D_USBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_USBO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x2]
	cmp	w3, #1
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x8, [sp]
LBB0_4:
	mov	x0, x19
	mov	x3, x22
	bl	_gspca_dbg
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45887
	mov	w3, #1
	bl	_reg_r_i
	mov	x0, x19
	mov	w1, #160
	mov	x2, x21
	mov	w3, #45876
	bl	_reg_w_i
	mov	x0, x19
	mov	w1, #160
	mov	x2, x22
	mov	w3, #45882
	bl	_reg_w_i
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #160
	mov	w3, #45878
	bl	_reg_w_i
	cmp	w21, #2
	b.lt	LBB0_6
; %bb.5:
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	w1, #160
	mov	w3, #45879
	bl	_reg_w_i
LBB0_6:
	mov	x0, x19
	mov	w1, #160
	mov	w2, #1
	mov	w3, #45881
	bl	_reg_w_i
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45883
	mov	w3, #1
	bl	_reg_r_i
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.7:
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45883
	mov	w3, #1
	bl	_reg_r_i
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.8:
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45883
	mov	w3, #1
	bl	_reg_r_i
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.9:
	mov	w0, #20
	bl	_msleep
	mov	x0, x19
	mov	w1, #161
	mov	w2, #45883
	mov	w3, #1
	bl	_reg_r_i
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w0, #20
	bl	_msleep
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	b	_pr_err
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_w %02x %02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"i2c_w %02x %02x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c_write timeout\n"

	.no_dead_strip	_i2c_write
.subsections_via_symbols
