	.file	"extr_adt7316.c_adt7316_set_int_mask.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	adt7316_set_int_mask, @function
adt7316_set_int_mask:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	dev_to_iio_dev@PLT
	mov	rdi, rax
	call	iio_priv@PLT
	lea	rdx, 4[rsp]
	mov	esi, 16
	mov	rdi, r12
	mov	r13, rax
	call	kstrtou16@PLT
	test	eax, eax
	jne	.L2
	mov	ebx, eax
	mov	edx, DWORD PTR ADT7316_VDD_INT_MASK[rip]
	mov	eax, DWORD PTR 4[rsp]
	cmp	edx, eax
	jl	.L2
	test	edx, eax
	cmove	ebx, DWORD PTR ADT7316_INT_MASK2_VDD[rip]
	mov	edi, DWORD PTR 16[r13]
	mov	esi, DWORD PTR ADT7316_INT_MASK2[rip]
	mov	edx, ebx
	call	[QWORD PTR 8[r13]]
	test	eax, eax
	je	.L6
	mov	eax, DWORD PTR 4[rsp]
.L7:
	mov	edx, DWORD PTR ADT7316_TEMP_AIN_INT_MASK[rip]
	test	eax, edx
	je	.L8
	not	eax
	mov	ebx, edx
	mov	ecx, DWORD PTR 4[r13]
	and	ecx, DWORD PTR ID_FAMILY_MASK[rip]
	and	ebx, eax
	cmp	ecx, DWORD PTR ID_ADT73XX[rip]
	je	.L16
.L8:
	mov	edi, DWORD PTR 16[r13]
	mov	esi, DWORD PTR ADT7316_INT_MASK1[rip]
	mov	edx, ebx
	call	[QWORD PTR 8[r13]]
	mov	DWORD PTR 0[r13], ebx
	mov	rax, rbp
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR EINVAL[rip]
	neg	rax
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L17
	add	rsp, 24
	.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
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR 0[r13]
	mov	eax, DWORD PTR 4[rsp]
	mov	edx, ecx
	xor	edx, eax
	and	edx, DWORD PTR ADT7316_VDD_INT_MASK[rip]
	xor	edx, ecx
	mov	DWORD PTR 0[r13], edx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	and	eax, DWORD PTR ADT7316_TEMP_INT_MASK[rip]
	mov	ebx, eax
	jmp	.L8
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	adt7316_set_int_mask, .-adt7316_set_int_mask
	.comm	ID_FAMILY_MASK,4,4
	.comm	ID_ADT73XX,4,4
	.comm	EINVAL,8,8
	.comm	ADT7316_VDD_INT_MASK,4,4
	.comm	ADT7316_TEMP_INT_MASK,4,4
	.comm	ADT7316_TEMP_AIN_INT_MASK,4,4
	.comm	ADT7316_INT_MASK2_VDD,4,4
	.comm	ADT7316_INT_MASK2,4,4
	.comm	ADT7316_INT_MASK1,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_adt7316.c_adt7316_set_int_mask.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	adt7316_set_int_mask, %function
adt7316_set_int_mask:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r3
	ldr	r3, .L17
	sub	sp, sp, #12
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	dev_to_iio_dev
	bl	iio_priv
	mov	r2, sp
	mov	r5, r0
	mov	r1, #16
	mov	r0, r4
	bl	kstrtou16
	subs	r4, r0, #0
	bne	.L2
	ldr	r7, .L17+4
	ldr	r3, [sp]
	ldr	r2, [r7]
	cmp	r2, r3
	blt	.L2
	tst	r2, r3
	ldreq	r3, .L17+8
	ldr	r2, .L17+12
	ldreq	r4, [r3]
	ldr	r1, [r2]
	ldr	r3, [r5, #8]
	mov	r2, r4
	ldr	r0, [r5, #12]
	blx	r3
	cmp	r0, #0
	ldreq	r2, [r5]
	ldreq	r0, [sp]
	ldreq	r1, [r7]
	eoreq	r3, r2, r0
	andeq	r3, r3, r1
	eoreq	r3, r3, r2
	streq	r3, [r5]
	ldr	r3, .L17+16
	ldrne	r0, [sp]
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L8
	mvn	r0, r0
	ldr	r2, .L17+20
	ldr	r1, .L17+24
	ldr	ip, [r2]
	ldr	r2, [r5, #4]
	ldr	r1, [r1]
	and	r2, r2, ip
	cmp	r2, r1
	ldreq	r3, .L17+28
	andne	r4, r0, r3
	ldreq	r4, [r3]
	andeq	r4, r4, r0
.L8:
	ldr	r2, .L17+32
	ldr	r3, [r5, #8]
	ldr	r1, [r2]
	ldr	r0, [r5, #12]
	mov	r2, r4
	blx	r3
	mov	r0, r6
	str	r4, [r5]
	b	.L1
.L2:
	ldr	r3, .L17+36
	ldr	r0, [r3]
	rsb	r0, r0, #0
.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, r6, r7, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	ADT7316_VDD_INT_MASK
	.word	ADT7316_INT_MASK2_VDD
	.word	ADT7316_INT_MASK2
	.word	ADT7316_TEMP_AIN_INT_MASK
	.word	ID_FAMILY_MASK
	.word	ID_ADT73XX
	.word	ADT7316_TEMP_INT_MASK
	.word	ADT7316_INT_MASK1
	.word	EINVAL
	.size	adt7316_set_int_mask, .-adt7316_set_int_mask
	.comm	ID_FAMILY_MASK,4,4
	.comm	ID_ADT73XX,4,4
	.comm	EINVAL,4,4
	.comm	ADT7316_VDD_INT_MASK,4,4
	.comm	ADT7316_TEMP_INT_MASK,4,4
	.comm	ADT7316_TEMP_AIN_INT_MASK,4,4
	.comm	ADT7316_INT_MASK2_VDD,4,4
	.comm	ADT7316_INT_MASK2,4,4
	.comm	ADT7316_INT_MASK1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
