	.file	"extr_industrialio-core.c_iio_check_unique_scan_index.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Duplicate scan index %d\n"
	.text
	.p2align 4
	.type	iio_check_unique_scan_index, @function
iio_check_unique_scan_index:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	and	eax, DWORD PTR INDIO_ALL_BUFFER_MODES[rip]
	je	.L14
	mov	r9d, DWORD PTR 4[rdi]
	cmp	r9d, 1
	jle	.L7
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	lea	r10d, -2[r9]
	mov	ecx, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	add	r10, 2
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r8, QWORD PTR 16[rdi]
	lea	ebx, -1[r9]
	lea	rbp, -8[r8]
	lea	r11, 8[r8]
.L6:
	mov	rdx, QWORD PTR -8[r8+rcx*8]
	test	rdx, rdx
	js	.L3
	cmp	r9d, ecx
	jle	.L3
	mov	r14d, ebx
	lea	rax, 0[rbp+rcx*8]
	sub	r14d, ecx
	lea	rsi, -1[rcx+r14]
	lea	rsi, [r11+rsi*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rax, 8
	cmp	rax, rsi
	je	.L3
.L5:
	cmp	rdx, QWORD PTR 8[rax]
	jne	.L4
	add	rdi, 8
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rcx, 1
	cmp	rcx, r10
	jne	.L6
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 14
	ret
.L7:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	iio_check_unique_scan_index, .-iio_check_unique_scan_index
	.comm	INDIO_ALL_BUFFER_MODES,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_industrialio-core.c_iio_check_unique_scan_index.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Duplicate scan index %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iio_check_unique_scan_index, %function
iio_check_unique_scan_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L15
	push	{r4, r5, r6, lr}
	ldr	r3, [r0]
	mov	r6, r0
	ldr	r0, [r2]
	ands	r0, r3, r0
	popeq	{r4, r5, r6, pc}
	ldr	lr, [r6, #4]
	cmp	lr, #1
	ble	.L7
	mov	r4, #0
	ldr	r5, [r6, #12]
	sub	r0, lr, #1
.L6:
	ldr	r2, [r5], #4
	add	r4, r4, #1
	cmp	r2, #0
	blt	.L3
	cmp	lr, r4
	ble	.L3
	mov	r1, r5
	mov	r3, r4
	b	.L5
.L4:
	cmp	r3, lr
	beq	.L3
.L5:
	ldr	ip, [r1], #4
	add	r3, r3, #1
	cmp	r2, ip
	bne	.L4
	ldr	r1, .L15+4
	add	r0, r6, #8
	bl	dev_err
	ldr	r3, .L15+8
	ldr	r3, [r3]
	rsb	r0, r3, #0
	pop	{r4, r5, r6, pc}
.L3:
	cmp	r0, r4
	bne	.L6
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	INDIO_ALL_BUFFER_MODES
	.word	.LC0
	.word	EINVAL
	.size	iio_check_unique_scan_index, .-iio_check_unique_scan_index
	.comm	INDIO_ALL_BUFFER_MODES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
