	.file	"extr_cb_pcidas.c_trimpot_8402_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	trimpot_8402_write, @function
trimpot_8402_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	sal	esi, 8
	movzx	edx, dl
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	and	r12d, 768
	mov	rbp, rdi
	or	r12d, edx
	call	cal_enable_bits@PLT
	mov	edi, 1
	or	eax, DWORD PTR SELECT_TRIMPOT_BIT[rip]
	mov	r13d, eax
	call	udelay@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	edi, r13d
	mov	rsi, QWORD PTR CALIBRATION_REG[rip]
	add	rsi, QWORD PTR [rax]
	call	outw@PLT
	mov	edx, r12d
	mov	esi, r13d
	mov	ecx, 10
	mov	rdi, rbp
	call	write_calibration_bitstream@PLT
	mov	edi, 1
	call	udelay@PLT
	mov	rax, QWORD PTR devpriv[rip]
	mov	rdi, rbp
	mov	r12, QWORD PTR CALIBRATION_REG[rip]
	add	r12, QWORD PTR [rax]
	call	cal_enable_bits@PLT
	mov	rsi, r12
	mov	edi, eax
	call	outw@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	trimpot_8402_write, .-trimpot_8402_write
	.comm	devpriv,8,8
	.comm	SELECT_TRIMPOT_BIT,4,4
	.comm	CALIBRATION_REG,8,8
	.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_cb_pcidas.c_trimpot_8402_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	trimpot_8402_write, %function
trimpot_8402_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	lsl	r4, r1, #8
	and	r2, r2, #255
	and	r4, r4, #768
	orr	r4, r4, r2
	mov	r5, r0
	bl	cal_enable_bits
	mov	r6, r0
	ldr	r3, .L4
	ldr	r8, .L4+4
	ldr	r3, [r3]
	mov	r0, #1
	orr	r6, r6, r3
	ldr	r7, .L4+8
	bl	udelay
	ldr	r2, [r8]
	ldr	r3, [r7]
	ldr	r1, [r2]
	mov	r0, r6
	add	r1, r1, r3
	bl	outw
	mov	r2, r4
	mov	r1, r6
	mov	r3, #10
	mov	r0, r5
	bl	write_calibration_bitstream
	mov	r0, #1
	bl	udelay
	mov	r0, r5
	bl	cal_enable_bits
	ldr	r2, [r8]
	ldr	r3, [r7]
	ldr	r1, [r2]
	add	r1, r1, r3
	bl	outw
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	SELECT_TRIMPOT_BIT
	.word	devpriv
	.word	CALIBRATION_REG
	.size	trimpot_8402_write, .-trimpot_8402_write
	.comm	devpriv,4,4
	.comm	SELECT_TRIMPOT_BIT,4,4
	.comm	CALIBRATION_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
