	.file	"extr_inv_mpu_core.c_inv_mpu6050_read_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	inv_mpu6050_read_raw, @function
inv_mpu6050_read_raw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	iio_priv@PLT
	mov	r15, rax
	cmp	rbx, 131
	je	.L2
	jg	.L3
	cmp	rbx, 129
	je	.L4
	cmp	rbx, 130
	jne	.L6
	mov	rdi, rbp
	call	iio_device_claim_direct_mode@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L21
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	rbx, 132
	jne	.L6
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, 133
	je	.L16
	cmp	eax, 134
	jne	.L6
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 8[r15]
	mov	edx, DWORD PTR [r12]
	mov	rcx, r13
	mov	esi, DWORD PTR [rax]
.L19:
	mov	rdi, r15
	call	inv_mpu6050_sensor_show@PLT
	mov	rdi, r15
	call	mutex_unlock@PLT
	mov	r14d, DWORD PTR IIO_VAL_INT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, 133
	je	.L9
	cmp	eax, 134
	je	.L10
	cmp	eax, 128
	je	.L22
	.p2align 4,,10
	.p2align 3
.L6:
	mov	r14d, DWORD PTR EINVAL[rip]
	neg	r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR 4[r12], 128
	jne	.L6
	mov	eax, DWORD PTR INV_MPU6050_TEMP_OFFSET[rip]
	mov	ecx, DWORD PTR INV_ICM20602[rip]
	cmp	DWORD PTR 16[r15], ecx
	je	.L23
.L15:
	mov	DWORD PTR 0[r13], eax
	mov	r14d, DWORD PTR IIO_VAL_INT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	inv_mpu6050_read_channel_data@PLT
	mov	rdi, r15
	mov	r14d, eax
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	iio_device_release_direct_mode@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 8[r15]
	mov	edx, DWORD PTR [r12]
	mov	rcx, r13
	mov	esi, DWORD PTR 4[rax]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rdx, QWORD PTR 32[r15]
	mov	rax, QWORD PTR accel_scale[rip]
	mov	rdi, r15
	mov	DWORD PTR 0[r13], 0
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR [r14], eax
	call	mutex_unlock@PLT
	mov	r14d, DWORD PTR IIO_VAL_INT_PLUS_MICRO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	DWORD PTR 0[r13], 0
	mov	eax, DWORD PTR INV_MPU6050_TEMP_SCALE[rip]
	mov	ecx, DWORD PTR INV_ICM20602[rip]
	cmp	DWORD PTR 16[r15], ecx
	je	.L24
.L13:
	mov	DWORD PTR [r14], eax
	mov	r14d, DWORD PTR IIO_VAL_INT_PLUS_MICRO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r15
	call	mutex_lock@PLT
	mov	rdx, QWORD PTR 24[r15]
	mov	rax, QWORD PTR gyro_scale_6050[rip]
	mov	rdi, r15
	mov	DWORD PTR 0[r13], 0
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	DWORD PTR [r14], eax
	call	mutex_unlock@PLT
	mov	r14d, DWORD PTR IIO_VAL_INT_PLUS_NANO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR INV_ICM20602_TEMP_OFFSET[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L24:
	mov	eax, DWORD PTR INV_ICM20602_TEMP_SCALE[rip]
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	inv_mpu6050_read_raw, .-inv_mpu6050_read_raw
	.comm	gyro_scale_6050,8,8
	.comm	accel_scale,8,8
	.comm	INV_MPU6050_TEMP_SCALE,4,4
	.comm	INV_MPU6050_TEMP_OFFSET,4,4
	.comm	INV_ICM20602_TEMP_SCALE,4,4
	.comm	INV_ICM20602_TEMP_OFFSET,4,4
	.comm	INV_ICM20602,4,4
	.comm	IIO_VAL_INT_PLUS_NANO,4,4
	.comm	IIO_VAL_INT_PLUS_MICRO,4,4
	.comm	IIO_VAL_INT,4,4
	.comm	EINVAL,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_core.c_inv_mpu6050_read_raw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	inv_mpu6050_read_raw, %function
inv_mpu6050_read_raw:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, [sp, #24]
	mov	r5, r1
	mov	r8, r2
	mov	r6, r3
	mov	r7, r0
	bl	iio_priv
	sub	ip, r4, #129
	mov	r4, r0
	cmp	ip, #3
	ldrls	pc, [pc, ip, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, [r5, #4]
	cmp	r3, #133
	beq	.L16
	cmp	r3, #134
	beq	.L17
.L2:
	ldr	r3, .L21
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, [r5, #4]
	cmp	r3, #128
	bne	.L2
	ldr	r3, .L21+4
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	ldreq	r3, .L21+8
	ldrne	r3, .L21+12
	ldr	r2, [r3]
	ldr	r3, .L21+16
	str	r2, [r8]
	ldr	r6, [r3]
	b	.L1
.L7:
	ldr	r3, [r5, #4]
	cmp	r3, #133
	beq	.L9
	cmp	r3, #134
	beq	.L10
	cmp	r3, #128
	bne	.L2
	mov	r2, #0
	ldr	r3, .L21+4
	str	r2, [r8]
	ldr	r3, [r3]
	ldr	r2, [r0, #8]
	cmp	r2, r3
	ldreq	r3, .L21+20
	ldrne	r3, .L21+24
	ldr	r2, [r3]
	ldr	r3, .L21+28
	str	r2, [r6]
	ldr	r6, [r3]
	b	.L1
.L6:
	mov	r0, r7
	bl	iio_device_claim_direct_mode
	subs	r6, r0, #0
	bne	.L1
	mov	r0, r4
	bl	mutex_lock
	mov	r2, r8
	mov	r1, r5
	mov	r0, r7
	bl	inv_mpu6050_read_channel_data
	mov	r6, r0
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, r7
	bl	iio_device_release_direct_mode
	b	.L1
.L17:
	bl	mutex_lock
	mov	r3, r8
	ldr	r1, [r4, #4]
	ldr	r2, [r5]
	ldr	r1, [r1]
.L19:
	mov	r0, r4
	bl	inv_mpu6050_sensor_show
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, .L21+16
	ldr	r6, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	bl	mutex_lock
	ldr	r1, [r4, #4]
	mov	r3, r8
	ldr	r2, [r5]
	ldr	r1, [r1, #4]
	b	.L19
.L10:
	bl	mutex_lock
	mov	r1, #0
	ldr	r3, .L21+32
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	str	r1, [r8]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r4
	str	r3, [r6]
	bl	mutex_unlock
	ldr	r3, .L21+28
	ldr	r6, [r3]
	b	.L1
.L9:
	bl	mutex_lock
	mov	r1, #0
	ldr	r3, .L21+36
	ldr	r2, [r4, #12]
	ldr	r3, [r3]
	str	r1, [r8]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r4
	str	r3, [r6]
	bl	mutex_unlock
	ldr	r3, .L21+40
	ldr	r6, [r3]
	b	.L1
.L22:
	.align	2
.L21:
	.word	EINVAL
	.word	INV_ICM20602
	.word	INV_ICM20602_TEMP_OFFSET
	.word	INV_MPU6050_TEMP_OFFSET
	.word	IIO_VAL_INT
	.word	INV_ICM20602_TEMP_SCALE
	.word	INV_MPU6050_TEMP_SCALE
	.word	IIO_VAL_INT_PLUS_MICRO
	.word	accel_scale
	.word	gyro_scale_6050
	.word	IIO_VAL_INT_PLUS_NANO
	.size	inv_mpu6050_read_raw, .-inv_mpu6050_read_raw
	.comm	gyro_scale_6050,4,4
	.comm	accel_scale,4,4
	.comm	INV_MPU6050_TEMP_SCALE,4,4
	.comm	INV_MPU6050_TEMP_OFFSET,4,4
	.comm	INV_ICM20602_TEMP_SCALE,4,4
	.comm	INV_ICM20602_TEMP_OFFSET,4,4
	.comm	INV_ICM20602,4,4
	.comm	IIO_VAL_INT_PLUS_NANO,4,4
	.comm	IIO_VAL_INT_PLUS_MICRO,4,4
	.comm	IIO_VAL_INT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
