	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure
_configure:                             ## @configure
	.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
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_D_STREAM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	callq	_gspca_dbg
	movl	12(%r14), %ebx
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$22, %edx
	movl	$192, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$2
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_val_reply
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_gspca_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_2:
	movl	12(%r14), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$64, %ecx
	movl	$1, %r8d
	movl	$15, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	12(%r14), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$64, %ecx
	xorl	%r8d, %r8d
	movl	$15, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	12(%r14), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$64, %ecx
	movl	$1, %r8d
	movl	$15, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_configure_encrypted
	movl	8(%r14), %r15d
	testl	%r15d, %r15d
	jne	LBB0_13
## %bb.10:
	movl	12(%r14), %ebx
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	movl	$64, %ecx
	movl	$3, %r8d
	movl	$15, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movl	(%r13), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	callq	_gspca_dbg
	jmp	LBB0_13
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_4
LBB0_8:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_gspca_err
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_gspca_err
	movl	%ebx, %r15d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"configure()\n\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed key req\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"failed to replay packet 176 w/ rc %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to replay packet 178 w/ rc %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to replay packet 180 w/ rc %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to replay final packet w/ rc %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"Configure complete\n\n"

	.no_dead_strip	_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure
_configure:                             ; @configure
	.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	x19, x0
	ldr	x20, [x0]
Lloh0:
	adrp	x22, _D_STREAM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _D_STREAM@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
	ldr	w21, [x19, #12]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	mov	w23, #500
	str	w23, [sp]
	mov	x0, x21
	mov	w2, #22
	mov	w3, #192
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	w7, #2
	bl	_usb_control_msg
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_val_reply
	cbz	x0, LBB0_3
; %bb.1:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_2:
	mov	x0, x20
	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
LBB0_3:
	ldr	w20, [x19, #12]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	str	w23, [sp]
	mov	x0, x20
	mov	w2, #1
	mov	w3, #64
	mov	w4, #1
	mov	w5, #15
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_9
; %bb.4:
	ldr	w20, [x19, #12]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	mov	w21, #500
	str	w21, [sp]
	mov	x0, x20
	mov	w2, #1
	mov	w3, #64
	mov	w4, #0
	mov	w5, #15
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w20, [x19, #12]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	str	w21, [sp]
	mov	x0, x20
	mov	w2, #1
	mov	w3, #64
	mov	w4, #1
	mov	w5, #15
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_11
; %bb.6:
	str	wzr, [x19, #8]
	mov	x0, x19
	bl	_configure_encrypted
	ldr	w20, [x19, #8]
	cbnz	w20, LBB0_2
; %bb.7:
	ldr	w20, [x19, #12]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x20
	mov	w2, #1
	mov	w3, #64
	mov	w4, #3
	mov	w5, #15
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_12
; %bb.8:
	ldr	w1, [x22]
Lloh9:
	adrp	x2, l_.str.6@PAGE
Lloh10:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_gspca_dbg
	mov	w20, #0
	b	LBB0_2
LBB0_9:
	mov	x20, x0
	str	x20, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_gspca_err
	b	LBB0_2
LBB0_10:
	mov	x20, x0
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x20, x0
	str	x20, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x20, x0
	str	x20, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_gspca_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"configure()\n\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed key req\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"failed to replay packet 176 w/ rc %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to replay packet 178 w/ rc %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to replay packet 180 w/ rc %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to replay final packet w/ rc %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"Configure complete\n\n"

	.no_dead_strip	_configure
.subsections_via_symbols
