	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssi_w
_ssi_w:                                 ## @ssi_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edx
	sarl	$8, %edx
	movl	$34818, %esi                    ## imm = 0x8802
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_27
## %bb.1:
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	$34817, %esi                    ## imm = 0x8801
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_27
## %bb.2:
	andl	$65280, %ebx                    ## imm = 0xFF00
	cmpl	$4096, %ebx                     ## imm = 0x1000
	jne	LBB0_5
## %bb.3:
	movzbl	%r15b, %edx
	movq	%r14, %rdi
	movl	$34821, %esi                    ## imm = 0x8805
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_27
## %bb.4:
	sarl	$8, %r15d
LBB0_5:
	movq	%r14, %rdi
	movl	$34816, %esi                    ## imm = 0x8800
	movl	%r15d, %edx
	callq	_reg_write
	testl	%eax, %eax
	js	LBB0_27
## %bb.6:
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.7:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.8:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.9:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.10:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.11:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.12:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.13:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.14:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.15:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.16:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.17:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.18:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.19:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.20:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.21:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.22:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.23:
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_27
## %bb.24:
	movl	$8, %edi
	callq	_msleep
	movq	%r14, %rdi
	movl	$34819, %esi                    ## imm = 0x8803
	callq	_reg_read
	testl	%eax, %eax
	js	LBB0_27
## %bb.25:
	movq	(%r14), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_27
## %bb.26:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_gspca_err
	movl	$-1, %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssi_w busy %02x\n"

	.no_dead_strip	_ssi_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssi_w
_ssi_w:                                 ; @ssi_w
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	asr	w2, w1, #8
	mov	w1, #34818
	bl	_reg_write
	tbnz	w0, #31, LBB0_27
; %bb.1:
	and	w2, w21, #0xff
	mov	x0, x19
	mov	w1, #34817
	bl	_reg_write
	tbnz	w0, #31, LBB0_27
; %bb.2:
	and	w8, w21, #0xff00
	cmp	w8, #1, lsl #12                 ; =4096
	b.ne	LBB0_5
; %bb.3:
	and	w2, w20, #0xff
	mov	x0, x19
	mov	w1, #34821
	bl	_reg_write
	tbnz	w0, #31, LBB0_27
; %bb.4:
	asr	w20, w20, #8
LBB0_5:
	mov	x0, x19
	mov	w1, #34816
	mov	x2, x20
	bl	_reg_write
	tbnz	w0, #31, LBB0_27
; %bb.6:
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.7:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.8:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.10:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.11:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.12:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.13:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.14:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.15:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.16:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.17:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.18:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.19:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.20:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.21:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.22:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.23:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_27
; %bb.24:
	mov	w0, #8
	bl	_msleep
	mov	x0, x19
	mov	w1, #34819
	bl	_reg_read
	tbnz	w0, #31, LBB0_27
; %bb.25:
	ldr	x8, [x19]
	ldr	x2, [x8]
	cbz	x2, LBB0_27
; %bb.26:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
	mov	w0, #-1
LBB0_27:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssi_w busy %02x\n"

	.no_dead_strip	_ssi_w
.subsections_via_symbols
