	.file	"extr_ad7280a.c_ad7280_channel_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad7280_channel_init, @function
ad7280_channel_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edx, 4
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	mov	rdi, QWORD PTR 16[rdi]
	mov	DWORD PTR 4[rsp], 0
	lea	eax, 3[rax+rax*2]
	lea	esi, 2[0+rax*4]
	call	devm_kcalloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR [rbx]
	xor	r12d, r12d
	lea	rbp, 4[rsp]
	test	edx, edx
	js	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, r12d
	mov	rdx, rbp
	mov	rdi, rbx
	add	r12d, 1
	call	ad7280_init_dev_channels@PLT
	cmp	DWORD PTR [rbx], r12d
	jge	.L3
	mov	rax, QWORD PTR 8[rbx]
.L4:
	movsx	rdx, DWORD PTR 4[rsp]
	mov	rsi, rdx
	lea	rdi, [rax+rdx*4]
	mov	edx, r12d
	call	ad7280_total_voltage_channel_init@PLT
	mov	eax, DWORD PTR 4[rsp]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR 8[rbx]
	movsx	rdx, esi
	mov	DWORD PTR 4[rsp], esi
	lea	rdi, [rax+rdx*4]
	call	ad7280_timestamp_channel_init@PLT
	mov	eax, DWORD PTR 4[rsp]
	add	eax, 1
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ad7280_channel_init, .-ad7280_channel_init
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_ad7280a.c_ad7280_channel_init.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad7280_channel_init, %function
ad7280_channel_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, #0
	ldr	r1, [r0]
	ldr	r3, .L12
	add	r1, r1, #1
	add	r1, r1, r1, lsl #1
	ldr	ip, .L12+4
	lsl	r1, r1, #2
	sub	sp, sp, #12
	mov	r5, r0
	mov	r2, #4
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	add	r1, r1, #2
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	str	r4, [sp]
	bl	devm_kcalloc
	cmp	r0, r4
	str	r0, [r5, #4]
	beq	.L2
	ldr	r3, [r5]
	cmp	r3, r4
	blt	.L4
.L3:
	mov	r1, r4
	mov	r2, sp
	mov	r0, r5
	bl	ad7280_init_dev_channels
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L3
	ldr	r0, [r5, #4]
.L4:
	ldr	r1, [sp]
	mov	r2, r4
	add	r0, r0, r1, lsl #2
	bl	ad7280_total_voltage_channel_init
	ldr	r1, [sp]
	ldr	r0, [r5, #4]
	add	r1, r1, #1
	add	r0, r0, r1, lsl #2
	str	r1, [sp]
	bl	ad7280_timestamp_channel_init
	ldr	r0, [sp]
	add	r0, r0, #1
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.size	ad7280_channel_init, .-ad7280_channel_init
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
