	.file	"extr_spca505.c_reg_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"reg write: 0x%02x,0x%02x:0x%02x, %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"reg write: error %d\n"
	.text
	.p2align 4
	.type	reg_write, @function
reg_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r15, QWORD PTR [rdi]
	mov	r12d, DWORD PTR USB_TYPE_VENDOR[rip]
	or	r12d, DWORD PTR USB_RECIP_DEVICE[rip]
	mov	rdi, r15
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, r12d
	mov	r9d, ebx
	push	500
	.cfi_def_cfa_offset 80
	mov	esi, eax
	mov	r8d, r14d
	mov	edx, r13d
	push	0
	.cfi_def_cfa_offset 88
	mov	rdi, r15
	push	0
	.cfi_def_cfa_offset 96
	call	usb_control_msg@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 72
	mov	r9d, r14d
	mov	r8d, ebx
	push	rax
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR D_USBO[rip]
	mov	r12d, eax
	mov	ecx, r13d
	lea	rdx, .LC0[rip]
	mov	rdi, rbp
	call	gspca_dbg@PLT
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
	test	r12d, r12d
	js	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	reg_write, .-reg_write
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	D_USBO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_spca505.c_reg_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reg write: 0x%02x,0x%02x:0x%02x, %d\012\000"
	.align	2
.LC1:
	.ascii	"reg write: error %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reg_write, %function
reg_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, [r0]
	sub	sp, sp, #28
	mov	r6, r1
	mov	r5, r0
	mov	r1, #0
	mov	r0, r4
	mov	r7, r2
	mov	r8, r3
	bl	usb_sndctrlpipe
	mov	ip, #0
	mov	lr, #500
	ldr	r2, .L6
	ldr	r3, .L6+4
	ldr	r9, [r2]
	ldr	r3, [r3]
	mov	r1, r0
	mov	r2, r6
	mov	r0, r4
	orr	r3, r9, r3
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	ip, [sp, #8]
	str	r7, [sp, #4]
	str	r8, [sp]
	bl	usb_control_msg
	mov	r4, r0
	stm	sp, {r7, r8}
	ldr	r2, .L6+8
	str	r4, [sp, #8]
	ldr	r1, [r2]
	mov	r3, r6
	mov	r0, r5
	ldr	r2, .L6+12
	bl	gspca_dbg
	cmp	r4, #0
	blt	.L5
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r1, r4
	ldr	r0, .L6+16
	bl	pr_err
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	.align	2
.L6:
	.word	USB_TYPE_VENDOR
	.word	USB_RECIP_DEVICE
	.word	D_USBO
	.word	.LC0
	.word	.LC1
	.size	reg_write, .-reg_write
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	D_USBO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
