	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reg_r
_reg_r:                                 ## @reg_r
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	js	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	(%rdi), %eax
	addl	$-128, %eax
	movl	$1, %r15d
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.reg_r(%rip), %rcx
	movl	(%rcx,%rax,4), %r15d
LBB0_4:
	movl	$150, %edi
	callq	_udelay
	movl	24(%r12), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_USB_DIR_IN@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	%r15d, %edx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$1
	pushq	16(%r12)
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	16(%r12), %rax
	movl	(%rax), %ebx
	movq	_D_USBI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	callq	_gspca_dbg
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_gspca_err
	movl	%ebx, 8(%r12)
	movq	(%r12), %rax
	movq	$0, (%rax)
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ## @USB_RECIP_DEVICE
	.comm	_D_USBI,4,2                     ## @D_USBI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GET %02x 0000 %04x %02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"reg_r %02x failed %d\n"

	.no_dead_strip	_reg_r
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.reg_r
l_switch.table.reg_r:
	.long	11                              ## 0xb
	.long	3                               ## 0x3
	.long	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reg_r
_reg_r:                                 ; @reg_r
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #8]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.reg_r@PAGE
Lloh1:
	add	x9, x9, l_switch.table.reg_r@PAGEOFF
	ldr	w21, [x9, w8, sxtw #2]
	b	LBB0_5
LBB0_3:
	mov	w22, #-1
	b	LBB0_8
LBB0_4:
	mov	w21, #1
LBB0_5:
	mov	w0, #150
	bl	_udelay
	ldr	w22, [x19, #24]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh2:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _USB_RECIP_DEVICE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_RECIP_DEVICE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x6, [x19, #16]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x22
	mov	x2, x21
	mov	w4, #0
	mov	x5, x20
	mov	w7, #1
	bl	_usb_control_msg
	tbnz	w0, #31, LBB0_7
; %bb.6:
	ldr	x8, [x19, #16]
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _D_USBI@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D_USBI@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	mov	x4, x20
	mov	x5, x22
	bl	_gspca_dbg
	b	LBB0_8
LBB0_7:
	mov	x22, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_gspca_err
	str	w22, [x19, #8]
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_DEVICE,4,2           ; @USB_RECIP_DEVICE
	.comm	_D_USBI,4,2                     ; @D_USBI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GET %02x 0000 %04x %02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"reg_r %02x failed %d\n"

	.no_dead_strip	_reg_r
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.reg_r
l_switch.table.reg_r:
	.long	11                              ; 0xb
	.long	3                               ; 0x3
	.long	3                               ; 0x3

.subsections_via_symbols
