	.file	"extr_tmp006.c_tmp006_write_raw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tmp006_write_raw, @function
tmp006_write_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	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r8
	call	iio_priv@PLT
	cmp	QWORD PTR IIO_CHAN_INFO_SAMP_FREQ[rip], rbx
	jne	.L8
	mov	rdi, QWORD PTR tmp006_freqs[rip]
	mov	r14, rax
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbx, 1
.L3:
	mov	r12d, ebx
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L8
	mov	rdi, QWORD PTR tmp006_freqs[rip]
	mov	rax, QWORD PTR [rdi+rbx*8]
	cmp	DWORD PTR [rax], ebp
	jne	.L5
	cmp	DWORD PTR 4[rax], r13d
	jne	.L5
	mov	edx, DWORD PTR TMP006_CONFIG_CR_MASK[rip]
	mov	ecx, DWORD PTR TMP006_CONFIG_CR_SHIFT[rip]
	mov	edi, DWORD PTR 4[r14]
	mov	esi, DWORD PTR TMP006_CONFIG[rip]
	sal	r12d, cl
	not	edx
	and	edx, DWORD PTR [r14]
	or	edx, r12d
	mov	DWORD PTR [r14], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	jmp	i2c_smbus_write_word_swapped@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	tmp006_write_raw, .-tmp006_write_raw
	.comm	tmp006_freqs,8,8
	.comm	TMP006_CONFIG_CR_SHIFT,4,4
	.comm	TMP006_CONFIG_CR_MASK,4,4
	.comm	TMP006_CONFIG,4,4
	.comm	IIO_CHAN_INFO_SAMP_FREQ,8,8
	.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_tmp006.c_tmp006_write_raw.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tmp006_write_raw, %function
tmp006_write_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	r7, r3
	mov	r5, r2
	bl	iio_priv
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L8
	ldr	r6, .L10+4
	mov	r8, r0
	mov	r4, #0
	ldr	r0, [r6]
	b	.L3
.L5:
	add	r4, r4, #1
.L3:
	bl	ARRAY_SIZE
	cmp	r0, r4
	ble	.L8
	ldr	r0, [r6]
	ldr	r1, [r0, r4, lsl #2]
	ldr	r3, [r1]
	cmp	r3, r5
	bne	.L5
	ldr	r3, [r1, #4]
	cmp	r3, r7
	bne	.L5
	ldr	r3, .L10+8
	ldr	r1, .L10+12
	ldr	r3, [r3]
	ldr	r2, [r8]
	ldr	r1, [r1]
	bic	r2, r2, r3
	ldr	r3, .L10+16
	orr	r2, r2, r4, lsl r1
	ldr	r0, [r8, #4]
	str	r2, [r8]
	ldr	r1, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	i2c_smbus_write_word_swapped
.L8:
	ldr	r3, .L10+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	IIO_CHAN_INFO_SAMP_FREQ
	.word	tmp006_freqs
	.word	TMP006_CONFIG_CR_MASK
	.word	TMP006_CONFIG_CR_SHIFT
	.word	TMP006_CONFIG
	.word	EINVAL
	.size	tmp006_write_raw, .-tmp006_write_raw
	.comm	tmp006_freqs,4,4
	.comm	TMP006_CONFIG_CR_SHIFT,4,4
	.comm	TMP006_CONFIG_CR_MASK,4,4
	.comm	TMP006_CONFIG,4,4
	.comm	IIO_CHAN_INFO_SAMP_FREQ,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
