	.file	"extr_ad7124.c_ad7124_init_channel_vref.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error, trying to use external voltage reference without a %s regulator.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Invalid reference %d\n"
	.text
	.p2align 4
	.type	ad7124_init_channel_vref, @function
ad7124_init_channel_vref:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, esi
	mov	rax, QWORD PTR 8[rdi]
	sal	rbx, 3
	add	rax, rbx
	mov	edx, DWORD PTR [rax]
	cmp	edx, 130
	je	.L2
	mov	r12, rdi
	jbe	.L10
	cmp	edx, 131
	jne	.L4
.L5:
	mov	rax, QWORD PTR 16[r12]
	mov	ebp, edx
	mov	edi, DWORD PTR [rax+rbp*4]
	call	IS_ERR@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L11
	mov	rax, QWORD PTR 16[r12]
	mov	r14, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [rax+rbp*4]
	add	r14, rbx
	call	regulator_get_voltage@PLT
	add	rbx, QWORD PTR 8[r12]
	mov	DWORD PTR 4[r14], eax
	movsx	rax, DWORD PTR 4[rbx]
	mov	rdx, rax
	imul	rax, rax, 274877907
	sar	edx, 31
	sar	rax, 38
	sub	eax, edx
	mov	DWORD PTR 4[rbx], eax
	mov	eax, r13d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	eax, -128[rdx]
	cmp	eax, 1
	jbe	.L5
.L4:
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	r13d
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	r13d, r13d
	mov	DWORD PTR 4[rax], 2500
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rax, QWORD PTR ad7124_ref_names[rip]
	mov	rdi, QWORD PTR [r12]
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR [rax+rbp*4]
	call	dev_err@PLT
	mov	rax, QWORD PTR 16[r12]
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edi, DWORD PTR [rax+rbp*4]
	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	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	ad7124_init_channel_vref, .-ad7124_init_channel_vref
	.comm	ad7124_ref_names,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_ad7124.c_ad7124_init_channel_vref.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error, trying to use external voltage reference wit"
	.ascii	"hout a %s regulator.\012\000"
	.align	2
.LC1:
	.ascii	"Invalid reference %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad7124_init_channel_vref, %function
ad7124_init_channel_vref:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [r3, r1, lsl #3]
	lsl	r7, r1, #3
	cmp	r5, #130
	add	r1, r3, r1, lsl #3
	beq	.L2
	mov	r4, r0
	bls	.L10
	cmp	r5, #131
	bne	.L4
.L5:
	ldr	r3, [r4, #8]
	ldr	r0, [r3, r5, lsl #2]
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L11
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #4]
	ldr	r0, [r2, r5, lsl #2]
	add	r5, r3, r7
	bl	regulator_get_voltage
	ldr	r3, [r4, #4]
	str	r0, [r5, #4]
	add	r7, r3, r7
	ldr	r3, [r7, #4]
	ldr	r1, .L12
	asr	r2, r3, #31
	smull	r0, r3, r1, r3
	rsb	r3, r2, r3, asr #6
	mov	r0, r6
	str	r3, [r7, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	sub	r3, r5, #128
	cmp	r3, #1
	bls	.L5
.L4:
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L12+4
	bl	dev_err
	ldr	r3, .L12+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, #0
	ldr	r3, .L12+12
	mov	r0, r6
	str	r3, [r1, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12+16
	ldr	r0, [r4]
	ldr	r3, [r3]
	ldr	r1, .L12+20
	ldr	r2, [r3, r5, lsl #2]
	bl	dev_err
	ldr	r3, [r4, #8]
	ldr	r0, [r3, r5, lsl #2]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L13:
	.align	2
.L12:
	.word	274877907
	.word	.LC1
	.word	EINVAL
	.word	2500
	.word	ad7124_ref_names
	.word	.LC0
	.size	ad7124_init_channel_vref, .-ad7124_init_channel_vref
	.comm	ad7124_ref_names,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
