	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_w
_reg_w:                                 ## @reg_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_gspca_dbg
	movl	12(%r13), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$11, %edx
	movl	$192, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$1
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movsbl	(%r12), %r8d
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %ecx
	callq	_gspca_dbg
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_val_reply
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_gspca_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_gspca_err
LBB0_4:
	movl	%ebx, 8(%r13)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"reg_w bReq=0x0B, bReqT=0xC0, wVal=0x%04X, wInd=0x%04X\n\n"

L_.str.1:                               ## @.str.1
	.asciz	"rc=%d, ret={0x%02x}\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed reg_w(0x0B, 0xC0, 0x%04X, 0x%04X) w/ rc %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Bad reply to reg_w(0x0B, 0xC0, 0x%04X, 0x%04X\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_reg_w
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_w
_reg_w:                                 ; @reg_w
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x24, _D_USBO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _D_USBO@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x21
	mov	x4, x20
	bl	_gspca_dbg
	ldr	w23, [x19, #12]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x23
	mov	w2, #11
	mov	w3, #192
	mov	x4, x21
	mov	x5, x20
	mov	x6, x22
	mov	w7, #1
	bl	_usb_control_msg
	mov	x23, x0
	ldr	w1, [x24]
	ldrsb	w4, [x22]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	bl	_gspca_dbg
	tbnz	w23, #31, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_val_reply
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_gspca_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_4
LBB0_3:
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_gspca_err
LBB0_4:
	str	w23, [x19, #8]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg_w bReq=0x0B, bReqT=0xC0, wVal=0x%04X, wInd=0x%04X\n\n"

l_.str.1:                               ; @.str.1
	.asciz	"rc=%d, ret={0x%02x}\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed reg_w(0x0B, 0xC0, 0x%04X, 0x%04X) w/ rc %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Bad reply to reg_w(0x0B, 0xC0, 0x%04X, 0x%04X\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_reg_w
.subsections_via_symbols
