	.file	"extr_itg3200_core.c_itg3200_read_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	itg3200_read_raw, @function
itg3200_read_raw:
.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, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	r8, 130
	je	.L2
	jg	.L3
	cmp	r8, 128
	je	.L4
	cmp	r8, 129
	jne	.L6
	lea	r13, 20[rsp]
	mov	esi, DWORD PTR ITG3200_REG_DLPF[rip]
	mov	QWORD PTR 8[rsp], rdi
	mov	rdx, r13
	call	itg3200_read_reg_8@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 20[rsp]
	and	eax, DWORD PTR ITG3200_DLPF_CFG_MASK[rip]
	mov	rdx, r13
	cmp	eax, 1
	mov	rdi, QWORD PTR 8[rsp]
	sbb	eax, eax
	and	eax, 7000
	add	eax, 1000
	mov	DWORD PTR [r12], eax
	mov	esi, DWORD PTR ITG3200_REG_SAMPLE_RATE_DIV[rip]
	call	itg3200_read_reg_8@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR 20[rsp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR [r12]
	cdq
	idiv	ecx
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR IIO_VAL_INT[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.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
	cmp	r8, 131
	jne	.L6
	mov	DWORD PTR [rdx], 23000
	mov	eax, DWORD PTR IIO_VAL_INT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 4[rsi]
	call	itg3200_read_reg_s16@PLT
	mov	eax, DWORD PTR IIO_VAL_INT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR [rdx], 0
	mov	edx, 1214142
	mov	eax, DWORD PTR IIO_TEMP[rip]
	cmp	DWORD PTR [rsi], eax
	mov	eax, 3571428
	cmovne	eax, edx
	mov	DWORD PTR [rcx], eax
	mov	eax, DWORD PTR IIO_VAL_INT_PLUS_NANO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	itg3200_read_raw, .-itg3200_read_raw
	.comm	ITG3200_REG_SAMPLE_RATE_DIV,4,4
	.comm	ITG3200_REG_DLPF,4,4
	.comm	ITG3200_DLPF_CFG_MASK,4,4
	.comm	IIO_VAL_INT_PLUS_NANO,4,4
	.comm	IIO_VAL_INT,4,4
	.comm	IIO_TEMP,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_itg3200_core.c_itg3200_read_raw.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	itg3200_read_raw, %function
itg3200_read_raw:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #12
	ldr	ip, [sp, #24]
	mov	r5, r2
	ldr	r2, .L17
	sub	ip, ip, #128
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	cmp	ip, #3
	ldrls	pc, [pc, ip, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r2, .L17+4
	ldr	r3, .L17+8
	str	r2, [r5]
	ldr	r0, [r3]
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L7:
	mov	r0, #0
	ldr	r2, .L17+12
	str	r0, [r5]
	ldr	lr, [r1]
	ldr	ip, [r2]
	ldr	r0, .L17+16
	cmp	lr, ip
	ldr	r2, .L17+20
	movne	r2, r0
	ldr	r1, .L17+24
	str	r2, [r3]
	ldr	r0, [r1]
	b	.L1
.L6:
	ldr	r3, .L17+28
	mov	r2, sp
	ldr	r1, [r3]
	bl	itg3200_read_reg_8
	cmp	r0, #0
	bne	.L1
	ldr	r3, .L17+32
	ldr	r1, [sp]
	ldr	r3, [r3]
	mov	r2, sp
	tst	r1, r3
	movne	r1, #1000
	moveq	r1, #8000
	ldr	r3, .L17+36
	str	r1, [r5]
	mov	r0, r4
	ldr	r1, [r3]
	bl	itg3200_read_reg_8
	cmp	r0, #0
	bne	.L1
	ldr	r1, [sp]
	ldr	r0, [r5]
	add	r1, r1, #1
	bl	__aeabi_idiv
	ldr	r3, .L17+8
	str	r0, [r5]
	ldr	r0, [r3]
	b	.L1
.L5:
	mov	r2, r5
	ldr	r1, [r1, #4]
	bl	itg3200_read_reg_s16
	ldr	r3, .L17+8
	ldr	r0, [r3]
	b	.L1
.L16:
	bl	__stack_chk_fail
.L2:
	ldr	r3, .L17+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	23000
	.word	IIO_VAL_INT
	.word	IIO_TEMP
	.word	1214142
	.word	3571428
	.word	IIO_VAL_INT_PLUS_NANO
	.word	ITG3200_REG_DLPF
	.word	ITG3200_DLPF_CFG_MASK
	.word	ITG3200_REG_SAMPLE_RATE_DIV
	.word	EINVAL
	.size	itg3200_read_raw, .-itg3200_read_raw
	.comm	ITG3200_REG_SAMPLE_RATE_DIV,4,4
	.comm	ITG3200_REG_DLPF,4,4
	.comm	ITG3200_DLPF_CFG_MASK,4,4
	.comm	IIO_VAL_INT_PLUS_NANO,4,4
	.comm	IIO_VAL_INT,4,4
	.comm	IIO_TEMP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
