	.file	"extr_ad5820.c_ad5820_update_hw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad5820_update_hw, @function
ad5820_update_hw:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, DWORD PTR 24[rdi]
	call	RAMP_US_TO_CODE@PLT
	cmp	QWORD PTR 16[rbp], 0
	mov	edx, DWORD PTR AD5820_RAMP_MODE_LINEAR[rip]
	je	.L3
	mov	edx, DWORD PTR AD5820_RAMP_MODE_64_16[rip]
.L3:
	mov	ecx, DWORD PTR AD5820_DAC_SHIFT[rip]
	mov	esi, DWORD PTR 0[rbp]
	sal	esi, cl
	or	esi, eax
	or	esi, edx
	cmp	QWORD PTR 8[rbp], 0
	je	.L4
	or	esi, DWORD PTR AD5820_POWER_DOWN[rip]
.L4:
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	ad5820_write@PLT
	.cfi_endproc
.LFE0:
	.size	ad5820_update_hw, .-ad5820_update_hw
	.comm	AD5820_RAMP_MODE_LINEAR,4,4
	.comm	AD5820_RAMP_MODE_64_16,4,4
	.comm	AD5820_POWER_DOWN,4,4
	.comm	AD5820_DAC_SHIFT,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_ad5820.c_ad5820_update_hw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad5820_update_hw, %function
ad5820_update_hw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #12]
	bl	RAMP_US_TO_CODE
	ldr	r3, [r4, #8]
	ldr	ip, [r4]
	cmp	r3, #0
	ldrne	r3, .L10
	ldreq	r3, .L10+4
	ldr	r1, [r3]
	ldr	r3, .L10+8
	ldr	r2, [r3]
	ldr	r3, [r4, #4]
	orr	r0, r0, ip, lsl r2
	cmp	r3, #0
	ldrne	r3, .L10+12
	orr	r1, r1, r0
	ldrne	r3, [r3]
	mov	r0, r4
	pop	{r4, lr}
	orrne	r1, r1, r3
	b	ad5820_write
.L11:
	.align	2
.L10:
	.word	AD5820_RAMP_MODE_64_16
	.word	AD5820_RAMP_MODE_LINEAR
	.word	AD5820_DAC_SHIFT
	.word	AD5820_POWER_DOWN
	.size	ad5820_update_hw, .-ad5820_update_hw
	.comm	AD5820_RAMP_MODE_LINEAR,4,4
	.comm	AD5820_RAMP_MODE_64_16,4,4
	.comm	AD5820_POWER_DOWN,4,4
	.comm	AD5820_DAC_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
