	.file	"extr_ad5592r-base.c_ad5592r_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"reset"
	.text
	.p2align 4
	.type	ad5592r_reset, @function
ad5592r_reset:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	iio_priv_to_dev@PLT
	mov	edi, DWORD PTR 8[r12]
	mov	edx, DWORD PTR GPIOD_OUT_LOW[rip]
	lea	rsi, .LC0[rip]
	mov	r13, rax
	call	devm_gpiod_get_optional@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L7
	test	rbp, rbp
	je	.L3
	mov	edi, 1
	call	udelay@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	gpiod_set_value@PLT
.L4:
	mov	edi, 250
	call	udelay@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	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	rdi, r13
	call	mutex_lock@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdi, r12
	mov	esi, DWORD PTR AD5592R_REG_RESET[rip]
	mov	edx, 3500
	call	[QWORD PTR [rax]]
	mov	rdi, r13
	call	mutex_unlock@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	ad5592r_reset, .-ad5592r_reset
	.comm	GPIOD_OUT_LOW,4,4
	.comm	AD5592R_REG_RESET,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_ad5592r-base.c_ad5592r_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"reset\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad5592r_reset, %function
ad5592r_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	iio_priv_to_dev
	ldr	r2, .L8
	ldr	r1, .L8+4
	ldr	r2, [r2]
	mov	r6, r0
	ldr	r0, [r5, #4]
	bl	devm_gpiod_get_optional
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L7
	cmp	r4, #0
	beq	.L3
	mov	r0, #1
	bl	udelay
	mov	r0, r4
	mov	r1, #1
	bl	gpiod_set_value
.L4:
	mov	r0, #250
	bl	udelay
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r6
	bl	mutex_lock
	ldr	r3, [r5]
	ldr	r2, .L8+8
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, .L8+12
	blx	r3
	mov	r0, r6
	bl	mutex_unlock
	b	.L4
.L7:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L9:
	.align	2
.L8:
	.word	GPIOD_OUT_LOW
	.word	.LC0
	.word	AD5592R_REG_RESET
	.word	3500
	.size	ad5592r_reset, .-ad5592r_reset
	.comm	GPIOD_OUT_LOW,4,4
	.comm	AD5592R_REG_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
