	.file	"extr_ad5933.c_ad5933_store_frequency.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad5933_store_frequency, @function
ad5933_store_frequency:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rcx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_to_iio_dev@PLT
	mov	rdi, rax
	mov	r14, rax
	call	iio_priv@PLT
	mov	rdi, r13
	mov	rbp, rax
	call	to_iio_dev_attr@PLT
	mov	rdi, r12
	mov	rdx, rsp
	mov	esi, 10
	mov	r13, rax
	call	kstrtoul@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR AD5933_MAX_OUTPUT_FREQ_Hz[rip]
	cmp	QWORD PTR [rsp], rax
	jbe	.L3
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, r14
	call	iio_device_claim_direct_mode@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR [rsp]
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	call	ad5933_set_freq@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	iio_device_release_direct_mode@PLT
	test	r12d, r12d
	cmove	r12d, ebx
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ad5933_store_frequency, .-ad5933_store_frequency
	.comm	EINVAL,4,4
	.comm	AD5933_MAX_OUTPUT_FREQ_Hz,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_ad5933.c_ad5933_store_frequency.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad5933_store_frequency, %function
ad5933_store_frequency:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r3
	ldr	r3, .L8
	sub	sp, sp, #8
	mov	r5, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	dev_to_iio_dev
	mov	r6, r0
	bl	iio_priv
	mov	r3, r0
	mov	r0, r5
	mov	r5, r3
	bl	to_iio_dev_attr
	mov	r2, sp
	mov	r8, r0
	mov	r1, #10
	mov	r0, r4
	bl	kstrtoul
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L8+4
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, r3
	bls	.L3
	ldr	r3, .L8+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r6
	bl	iio_device_claim_direct_mode
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	ldr	r1, [r8]
	ldr	r2, [sp]
	bl	ad5933_set_freq
	mov	r4, r0
	mov	r0, r6
	cmp	r4, #0
	moveq	r4, r7
	bl	iio_device_release_direct_mode
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	AD5933_MAX_OUTPUT_FREQ_Hz
	.word	EINVAL
	.size	ad5933_store_frequency, .-ad5933_store_frequency
	.comm	EINVAL,4,4
	.comm	AD5933_MAX_OUTPUT_FREQ_Hz,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
