	.file	"extr_mos7720.c_write_mos_reg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"mos7720: usb_control_msg() failed: %d\n"
	.text
	.p2align 4
	.type	write_mos_reg, @function
write_mos_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR [rdi]
	mov	rdi, r14
	call	usb_sndctrlpipe@PLT
	mov	edi, r12d
	mov	ebp, eax
	call	get_reg_index@PLT
	mov	edi, r12d
	mov	esi, r15d
	mov	r13, rax
	call	get_reg_value@PLT
	mov	edx, DWORD PTR MOS_WDR_TIMEOUT[rip]
	mov	r9, r13
	mov	esi, ebp
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	lea	r8, [rax+rbx]
	mov	ecx, 64
	mov	rdi, r14
	push	rdx
	.cfi_def_cfa_offset 80
	mov	edx, 14
	push	0
	.cfi_def_cfa_offset 88
	push	0
	.cfi_def_cfa_offset 96
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	mov	r12d, eax
	test	eax, eax
	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	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	write_mos_reg, .-write_mos_reg
	.comm	MOS_WDR_TIMEOUT,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_mos7720.c_write_mos_reg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"mos7720: usb_control_msg() failed: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_mos_reg, %function
write_mos_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r0]
	sub	sp, sp, #24
	mov	r8, r1
	mov	r0, r6
	mov	r1, #0
	mov	r4, r2
	mov	r7, r3
	bl	usb_sndctrlpipe
	mov	r5, r0
	mov	r0, r4
	bl	get_reg_index
	mov	r2, r0
	mov	r1, r8
	mov	r0, r4
	mov	r4, r2
	bl	get_reg_value
	mov	r2, #0
	ldr	r1, .L6
	add	r3, r0, r7
	ldr	ip, [r1]
	mov	r0, r6
	stm	sp, {r3, r4}
	str	r2, [sp, #12]
	str	r2, [sp, #8]
	mov	r1, r5
	mov	r3, #64
	mov	r2, #14
	str	ip, [sp, #16]
	bl	usb_control_msg
	subs	r4, r0, #0
	blt	.L5
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L6+4
	bl	dev_err
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	MOS_WDR_TIMEOUT
	.word	.LC0
	.size	write_mos_reg, .-write_mos_reg
	.comm	MOS_WDR_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
