	.file	"extr_ti-dac082s085.c_ti_dac_set_powerdown_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ti_dac_set_powerdown_mode, @function
ti_dac_set_powerdown_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	iio_priv@PLT
	cmp	DWORD PTR [rax], ebp
	je	.L1
	lea	r13, 4[rax]
	mov	rbx, rax
	mov	rdi, r13
	call	mutex_lock@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L3
.L5:
	mov	DWORD PTR [rbx], ebp
	xor	r12d, r12d
.L4:
	mov	rdi, r13
	call	mutex_unlock@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, ebp
	call	POWERDOWN@PLT
	xor	edx, edx
	mov	rdi, rbx
	mov	esi, eax
	call	ti_dac_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ti_dac_set_powerdown_mode, .-ti_dac_set_powerdown_mode
	.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_ti-dac082s085.c_ti_dac_set_powerdown_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ti_dac_set_powerdown_mode, %function
ti_dac_set_powerdown_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	bl	iio_priv
	ldr	r3, [r0]
	cmp	r3, r5
	moveq	r6, #0
	beq	.L1
	mov	r4, r0
	add	r7, r0, #4
	mov	r0, r7
	bl	mutex_lock
	ldr	r3, [r4, #8]
	cmp	r3, #0
	bne	.L3
.L5:
	mov	r6, #0
	str	r5, [r4]
.L4:
	mov	r0, r7
	bl	mutex_unlock
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r5
	bl	POWERDOWN
	mov	r2, #0
	mov	r1, r0
	mov	r0, r4
	bl	ti_dac_cmd
	subs	r6, r0, #0
	beq	.L5
	b	.L4
	.size	ti_dac_set_powerdown_mode, .-ti_dac_set_powerdown_mode
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
