	.file	"extr_abp060mg.c_abp060mg_read_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	abp060mg_read_raw, @function
abp060mg_read_raw:
.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, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	call	iio_priv@PLT
	lea	r14, 8[rax]
	mov	rbp, rax
	mov	rdi, r14
	call	mutex_lock@PLT
	cmp	rbx, 129
	je	.L2
	cmp	rbx, 130
	je	.L3
	cmp	rbx, 128
	je	.L10
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L6:
	mov	rdi, r14
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	call	abp060mg_get_measurement@PLT
	mov	r12d, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 0[r13], eax
	imul	eax, DWORD PTR ABP060MG_NUM_COUNTS[rip], 1000
	mov	DWORD PTR [r12], eax
	mov	r12d, DWORD PTR IIO_VAL_FRACTIONAL[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[r13], eax
	mov	r12d, DWORD PTR IIO_VAL_INT[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	abp060mg_read_raw, .-abp060mg_read_raw
	.comm	IIO_VAL_INT,4,4
	.comm	IIO_VAL_FRACTIONAL,4,4
	.comm	EINVAL,4,4
	.comm	ABP060MG_NUM_COUNTS,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_abp060mg.c_abp060mg_read_raw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	abp060mg_read_raw, %function
abp060mg_read_raw:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [sp, #24]
	mov	r8, r2
	mov	r6, r3
	bl	iio_priv
	add	r7, r0, #8
	mov	r4, r0
	mov	r0, r7
	bl	mutex_lock
	cmp	r5, #129
	beq	.L2
	cmp	r5, #130
	beq	.L3
	cmp	r5, #128
	beq	.L10
	ldr	r3, .L11
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L6:
	mov	r0, r7
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	mov	r1, r8
	bl	abp060mg_get_measurement
	mov	r4, r0
	b	.L6
.L10:
	ldr	r2, [r4, #4]
	ldr	r3, .L11+4
	str	r2, [r8]
	ldr	r2, [r3]
	ldr	r3, .L11+8
	rsb	r1, r2, r2, lsl #5
	add	r2, r2, r1, lsl #2
	lsl	r2, r2, #3
	str	r2, [r6]
	ldr	r4, [r3]
	b	.L6
.L3:
	ldr	r2, [r4]
	ldr	r3, .L11+12
	str	r2, [r8]
	ldr	r4, [r3]
	b	.L6
.L12:
	.align	2
.L11:
	.word	EINVAL
	.word	ABP060MG_NUM_COUNTS
	.word	IIO_VAL_FRACTIONAL
	.word	IIO_VAL_INT
	.size	abp060mg_read_raw, .-abp060mg_read_raw
	.comm	IIO_VAL_INT,4,4
	.comm	IIO_VAL_FRACTIONAL,4,4
	.comm	EINVAL,4,4
	.comm	ABP060MG_NUM_COUNTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
