	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spca500_synch310
_spca500_synch310:                      ## @spca500_synch310
	.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
	movq	%rdi, %rbx
	movl	4(%rdi), %esi
	movl	8(%rdi), %edi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_usb_set_interface
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spca500_ping310
	movq	%rbx, %rdi
	movl	$3328, %esi                     ## imm = 0xD00
	movl	$1, %edx
	callq	_reg_r
	movq	_D_PACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gspca_dbg
	movl	8(%rbx), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	callq	_usb_set_interface
	testq	%rax, %rax
	jns	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gspca_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set packet size: set interface error\n"

	.comm	_D_PACK,4,2                     ## @D_PACK
L_.str.1:                               ## @.str.1
	.asciz	"ClickSmart310 sync alt: %d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_spca500_synch310
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spca500_synch310
_spca500_synch310:                      ; @spca500_synch310
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	ldr	w1, [x19, #4]
	mov	w2, #0
	bl	_usb_set_interface
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_spca500_ping310
	mov	x0, x19
	mov	w1, #3328
	mov	w2, #1
	bl	_reg_r
Lloh0:
	adrp	x8, _D_PACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_PACK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	ldp	w1, w0, [x19, #4]
	ldr	w2, [x19]
	bl	_usb_set_interface
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set packet size: set interface error\n"

	.comm	_D_PACK,4,2                     ; @D_PACK
l_.str.1:                               ; @.str.1
	.asciz	"ClickSmart310 sync alt: %d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_spca500_synch310
.subsections_via_symbols
