	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c2028_command
_sn9c2028_command:                      ## @sn9c2028_command
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_D_USBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	movl	12(%rbx), %r10d
	movl	16(%rbx), %r11d
	movl	20(%rbx), %eax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_gspca_dbg
	addq	$32, %rsp
	movq	(%r15), %rdi
	movq	%rbx, %rsi
	movl	$6, %edx
	callq	_memcpy
	movl	8(%r15), %ebx
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_REQ_GET_CONFIGURATION@GOTPCREL(%rip), %rdx
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rsi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movl	(%rdx), %edx
	movq	_USB_RECIP_INTERFACE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$2, %r8d
	xorl	%r9d, %r9d
	pushq	$500                            ## imm = 0x1F4
	pushq	$6
	pushq	(%r15)
	callq	_usb_control_msg
	addq	$32, %rsp
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %edx
	callq	_pr_err
	movl	%ebx, %r14d
LBB0_2:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"sending command %02x%02x%02x%02x%02x%02x\n"

	.comm	_USB_REQ_GET_CONFIGURATION,4,2  ## @USB_REQ_GET_CONFIGURATION
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ## @USB_RECIP_INTERFACE
L_.str.1:                               ## @.str.1
	.asciz	"command write [%02x] error %d\n"

	.no_dead_strip	_sn9c2028_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c2028_command
_sn9c2028_command:                      ; @sn9c2028_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _D_USBO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_USBO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldp	w3, w4, [x20]
	ldp	w5, w6, [x20, #8]
	ldp	w7, w8, [x20, #16]
	str	w8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_gspca_dbg
	ldr	x0, [x19]
	mov	x1, x20
	mov	w2, #6
	bl	_memcpy
	ldr	w20, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh5:
	adrp	x8, _USB_REQ_GET_CONFIGURATION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_REQ_GET_CONFIGURATION@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _USB_RECIP_INTERFACE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _USB_RECIP_INTERFACE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w8, w9
	ldr	x6, [x19]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x20
	mov	w4, #2
	mov	w5, #0
	mov	w7, #6
	bl	_usb_control_msg
	mov	x20, x0
	mov	w0, #0
	tbz	w20, #31, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w1, [x8]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_pr_err
	mov	x0, x20
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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 AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_D_USBO,4,2                     ; @D_USBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sending command %02x%02x%02x%02x%02x%02x\n"

	.comm	_USB_REQ_GET_CONFIGURATION,4,2  ; @USB_REQ_GET_CONFIGURATION
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_INTERFACE,4,2        ; @USB_RECIP_INTERFACE
l_.str.1:                               ; @.str.1
	.asciz	"command write [%02x] error %d\n"

	.no_dead_strip	_sn9c2028_command
.subsections_via_symbols
