	.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
	cmpl	$0, 8(%rdi)
	js	LBB0_11
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movl	$150, %edi
	callq	_udelay
	movl	(%r13), %eax
	movl	$2, %r12d
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_8
## %bb.2:
	cmpl	$128, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.5:
	movl	$10, %r12d
	jmp	LBB0_6
LBB0_3:
	xorl	%r12d, %r12d
LBB0_6:
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_gspca_dbg
	movl	24(%r13), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$0
	pushq	$0
	jmp	LBB0_9
LBB0_7:
	movl	$1, %r12d
LBB0_8:
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_gspca_dbg
	movq	16(%r13), %rax
	movl	%r15d, (%rax)
	movl	24(%r13), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %edx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$1
	pushq	16(%r13)
LBB0_9:
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_gspca_err
	movl	%ebx, 8(%r13)
LBB0_11:
	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	"SET %02x %04x %04x\n"

	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"SET %02x 0000 %04x %02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"reg_w %02x failed %d\n"

	.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
	ldr	w8, [x0, #8]
	tbnz	w8, #31, LBB0_12
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w0, #150
	bl	_udelay
	ldr	w8, [x19]
	sub	w9, w8, #130
	cmp	w9, #2
	b.lo	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.4:
	mov	w22, #10
	b	LBB0_7
LBB0_5:
	mov	w22, #2
	b	LBB0_9
LBB0_6:
	mov	w22, #0
LBB0_7:
Lloh0:
	adrp	x8, _D_USBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_USBO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_gspca_dbg
	ldr	w23, [x19, #24]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh5:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x23
	mov	x2, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, #0
	mov	w7, #0
	b	LBB0_10
LBB0_8:
	mov	w22, #1
LBB0_9:
Lloh14:
	adrp	x8, _D_USBO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D_USBO@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	mov	x4, x20
	mov	x5, x21
	bl	_gspca_dbg
	ldr	x8, [x19, #16]
	str	w21, [x8]
	ldr	w21, [x19, #24]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh19:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh25:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x6, [x19, #16]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x21
	mov	x2, x22
	mov	w4, #0
	mov	x5, x20
	mov	w7, #1
LBB0_10:
	bl	_usb_control_msg
	mov	x21, x0
	tbz	w0, #31, LBB0_12
; %bb.11:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_gspca_err
	str	w21, [x19, #8]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET %02x %04x %04x\n"

	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"SET %02x 0000 %04x %02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"reg_w %02x failed %d\n"

	.no_dead_strip	_reg_w
.subsections_via_symbols
