	.file	"extr_ti-ads1015.c_ads1015_get_channels_config.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ads1015_get_channels_config, @function
ads1015_get_channels_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	i2c_get_clientdata@PLT
	mov	rdi, rax
	call	iio_priv@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	dev_get_platdata@PLT
	test	rax, rax
	jne	.L2
	mov	edx, DWORD PTR ADS1015_CHANNELS[rip]
	test	edx, edx
	je	.L1
	mov	rax, QWORD PTR [rbx]
	sub	edx, 1
	mov	esi, DWORD PTR ADS1015_DEFAULT_PGA[rip]
	mov	ecx, DWORD PTR ADS1015_DEFAULT_DATA_RATE[rip]
	lea	rdx, 8[rax+rdx*8]
	.p2align 4,,10
	.p2align 3
.L5:
	mov	DWORD PTR 4[rax], esi
	add	rax, 8
	mov	DWORD PTR -8[rax], ecx
	cmp	rax, rdx
	jne	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rbx]
	mov	esi, DWORD PTR [rax]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	edx, 8
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	memcpy@PLT
	.cfi_endproc
.LFE0:
	.size	ads1015_get_channels_config, .-ads1015_get_channels_config
	.comm	ADS1015_DEFAULT_PGA,4,4
	.comm	ADS1015_DEFAULT_DATA_RATE,4,4
	.comm	ADS1015_CHANNELS,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_ti-ads1015.c_ads1015_get_channels_config.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ads1015_get_channels_config, %function
ads1015_get_channels_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	i2c_get_clientdata
	bl	iio_priv
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	dev_get_platdata
	subs	r3, r0, #0
	bne	.L2
	ldr	r3, .L10
	ldr	r2, [r3]
	cmp	r2, #0
	popeq	{r4, pc}
	ldr	r0, .L10+4
	ldr	r1, .L10+8
	ldr	r3, [r4]
	ldr	r0, [r0]
	ldr	r1, [r1]
	add	r2, r3, r2, lsl #3
.L5:
	str	r0, [r3, #4]
	str	r1, [r3], #8
	cmp	r3, r2
	bne	.L5
	pop	{r4, pc}
.L2:
	ldr	r0, [r4]
	mov	r2, #4
	pop	{r4, lr}
	ldr	r1, [r3]
	b	memcpy
.L11:
	.align	2
.L10:
	.word	ADS1015_CHANNELS
	.word	ADS1015_DEFAULT_PGA
	.word	ADS1015_DEFAULT_DATA_RATE
	.size	ads1015_get_channels_config, .-ads1015_get_channels_config
	.comm	ADS1015_DEFAULT_PGA,4,4
	.comm	ADS1015_DEFAULT_DATA_RATE,4,4
	.comm	ADS1015_CHANNELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
