	.file	"extr_inv_mpu_ring.c_inv_reset_fifo.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"int_enable failed %d\n"
.LC1:
	.string	"reset fifo failed %d\n"
	.text
	.p2align 4
	.globl	inv_reset_fifo
	.type	inv_reset_fifo, @function
inv_reset_fifo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	iio_priv@PLT
	xor	edx, edx
	mov	rbx, rax
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR [rax]
	call	regmap_write@PLT
	test	eax, eax
	jne	.L16
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbx]
	xor	edx, edx
	mov	esi, DWORD PTR 4[rax]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L17
.L4:
	mov	edi, DWORD PTR 8[rbx]
	call	regmap_get_device@PLT
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	edi, eax
	call	dev_err@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR INV_MPU6050_BIT_DATA_RDY_EN[rip]
	mov	esi, DWORD PTR [rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	regmap_write@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 8[rax]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 16[rbx]
	or	edx, DWORD PTR INV_MPU6050_BIT_FIFO_RST[rip]
	mov	esi, DWORD PTR 8[rax]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	cmp	QWORD PTR 24[rbx], 0
	jne	.L5
	cmp	QWORD PTR 32[rbx], 0
	jne	.L5
.L7:
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 16[rbx]
	or	edx, DWORD PTR INV_MPU6050_BIT_FIFO_EN[rip]
	mov	esi, DWORD PTR 8[rax]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	cmp	QWORD PTR 32[rbx], 0
	je	.L8
	mov	r12d, DWORD PTR INV_MPU6050_BITS_GYRO_OUT[rip]
.L8:
	cmp	QWORD PTR 24[rbx], 0
	je	.L9
	or	r12d, DWORD PTR INV_MPU6050_BIT_ACCEL_OUT[rip]
.L9:
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r12d
	mov	esi, DWORD PTR 4[rax]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR 8[rbx]
	mov	r12d, eax
	call	regmap_get_device@PLT
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	edi, eax
	call	dev_err@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR INV_MPU6050_BIT_DATA_RDY_EN[rip]
	mov	esi, DWORD PTR [rax]
	call	regmap_write@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	inv_reset_fifo, .-inv_reset_fifo
	.comm	INV_MPU6050_BIT_FIFO_RST,4,4
	.comm	INV_MPU6050_BIT_FIFO_EN,4,4
	.comm	INV_MPU6050_BIT_DATA_RDY_EN,4,4
	.comm	INV_MPU6050_BIT_ACCEL_OUT,4,4
	.comm	INV_MPU6050_BITS_GYRO_OUT,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_inv_mpu_ring.c_inv_reset_fifo.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"int_enable failed %d\012\000"
	.align	2
.LC1:
	.ascii	"reset fifo failed %d\012\000"
	.text
	.align	2
	.global	inv_reset_fifo
	.syntax unified
	.arm
	.fpu softvfp
	.type	inv_reset_fifo, %function
inv_reset_fifo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	iio_priv
	mov	r2, #0
	ldr	r3, [r0]
	str	r2, [r0, #20]
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r0, [r0, #4]
	bl	regmap_write
	subs	r5, r0, #0
	bne	.L22
	ldr	r3, [r4]
	mov	r2, r5
	ldr	r1, [r3, #4]
	ldr	r0, [r4, #4]
	bl	regmap_write
	subs	r5, r0, #0
	beq	.L23
.L4:
	ldr	r0, [r4, #4]
	bl	regmap_get_device
	mov	r2, r5
	ldr	r1, .L24
	bl	dev_err
	ldr	r3, [r4]
	ldr	r2, .L24+4
	ldr	r0, [r4, #4]
	ldr	r2, [r2]
	ldr	r1, [r3]
	pop	{r4, r5, r6, lr}
	b	regmap_write
.L23:
	ldr	r3, [r4]
	ldr	r2, [r4, #8]
	ldr	r1, [r3, #8]
	ldr	r0, [r4, #4]
	bl	regmap_write
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L24+8
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	ldr	r3, [r4]
	orr	r2, r1, r2
	ldr	r0, [r4, #4]
	ldr	r1, [r3, #8]
	bl	regmap_write
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, [r4, #12]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L5
.L7:
	ldr	r3, .L24+12
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	ldr	r3, [r4]
	orr	r2, r1, r2
	ldr	r0, [r4, #4]
	ldr	r1, [r3, #8]
	bl	regmap_write
	subs	r5, r0, #0
	bne	.L4
	ldr	r2, [r4, #16]
	ldr	r0, [r4, #4]
	cmp	r2, #0
	ldrne	r3, .L24+16
	ldrne	r2, [r3]
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ldrne	r3, .L24+20
	ldrne	r3, [r3]
	orrne	r2, r2, r3
	ldr	r3, [r4]
	ldr	r1, [r3, #4]
	bl	regmap_write
	subs	r5, r0, #0
	beq	.L1
	b	.L4
.L22:
	ldr	r0, [r4, #4]
	bl	regmap_get_device
	mov	r2, r5
	ldr	r1, .L24+24
	bl	dev_err
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, [r4]
	ldr	r2, .L24+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #4]
	bl	regmap_write
	subs	r5, r0, #0
	beq	.L7
	b	.L1
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	INV_MPU6050_BIT_DATA_RDY_EN
	.word	INV_MPU6050_BIT_FIFO_RST
	.word	INV_MPU6050_BIT_FIFO_EN
	.word	INV_MPU6050_BITS_GYRO_OUT
	.word	INV_MPU6050_BIT_ACCEL_OUT
	.word	.LC0
	.size	inv_reset_fifo, .-inv_reset_fifo
	.comm	INV_MPU6050_BIT_FIFO_RST,4,4
	.comm	INV_MPU6050_BIT_FIFO_EN,4,4
	.comm	INV_MPU6050_BIT_DATA_RDY_EN,4,4
	.comm	INV_MPU6050_BIT_ACCEL_OUT,4,4
	.comm	INV_MPU6050_BITS_GYRO_OUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
