	.file	"extr_dmard10.c_dmard10_read_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dmard10_read_raw, @function
dmard10_read_raw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, r8
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	iio_priv@PLT
	cmp	rbx, 128
	je	.L2
	cmp	rbx, 129
	jne	.L3
	mov	esi, DWORD PTR DMARD10_REG_STADR[rip]
	mov	edi, DWORD PTR [rax]
	mov	rcx, rsp
	mov	edx, 16
	call	i2c_smbus_read_i2c_block_data@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR [rsp+rax*4]
	call	le16_to_cpu@PLT
	mov	esi, 12
	mov	edi, eax
	call	sign_extend32@PLT
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR IIO_VAL_INT[rip]
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L8
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L2:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 0
	mov	eax, DWORD PTR dmard10_nscale[rip]
	mov	DWORD PTR 0[r13], eax
	mov	eax, DWORD PTR IIO_VAL_INT_PLUS_NANO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dmard10_read_raw, .-dmard10_read_raw
	.comm	dmard10_nscale,4,4
	.comm	IIO_VAL_INT_PLUS_NANO,4,4
	.comm	IIO_VAL_INT,4,4
	.comm	EINVAL,4,4
	.comm	DMARD10_REG_STADR,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_dmard10.c_dmard10_read_raw.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dmard10_read_raw, %function
dmard10_read_raw:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #28
	ldr	r5, [sp, #48]
	mov	r7, r3
	ldr	r3, .L9
	mov	r6, r1
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	iio_priv
	cmp	r5, #128
	beq	.L2
	cmp	r5, #129
	bne	.L3
	ldr	r3, .L9+4
	mov	r2, #16
	ldr	r1, [r3]
	ldr	r0, [r0]
	add	r3, sp, #4
	bl	i2c_smbus_read_i2c_block_data
	cmp	r0, #0
	blt	.L1
	ldr	r3, [r6]
	add	r2, sp, #24
	add	r3, r2, r3, lsl #2
	ldr	r0, [r3, #-20]
	bl	le16_to_cpu
	mov	r1, #12
	bl	sign_extend32
	ldr	r3, .L9+8
	str	r0, [r4]
	ldr	r0, [r3]
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r2, #0
	ldr	r3, .L9+12
	str	r2, [r4]
	ldr	r2, [r3]
	ldr	r3, .L9+16
	str	r2, [r7]
	ldr	r0, [r3]
	b	.L1
.L3:
	ldr	r3, .L9+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	DMARD10_REG_STADR
	.word	IIO_VAL_INT
	.word	dmard10_nscale
	.word	IIO_VAL_INT_PLUS_NANO
	.word	EINVAL
	.size	dmard10_read_raw, .-dmard10_read_raw
	.comm	dmard10_nscale,4,4
	.comm	IIO_VAL_INT_PLUS_NANO,4,4
	.comm	IIO_VAL_INT,4,4
	.comm	EINVAL,4,4
	.comm	DMARD10_REG_STADR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
