	.file	"extr_ad7303.c_ad7303_get_vref.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ad7303_get_vref, @function
ad7303_get_vref:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR AD7303_CFG_EXTERNAL_VREF[rip], eax
	jne	.L7
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR 4[rdi]
	call	regulator_get_voltage@PLT
	mov	edx, eax
	sar	edx
	test	eax, eax
	cmovns	eax, edx
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 8[rdi]
	jmp	regulator_get_voltage@PLT
	.cfi_endproc
.LFE0:
	.size	ad7303_get_vref, .-ad7303_get_vref
	.comm	AD7303_CFG_EXTERNAL_VREF,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_ad7303.c_ad7303_get_vref.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ad7303_get_vref, %function
ad7303_get_vref:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	ldr	r2, [r0]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L7
	push	{r4, lr}
	ldr	r0, [r0, #4]
	bl	regulator_get_voltage
	cmp	r0, #0
	poplt	{r4, pc}
	asr	r0, r0, #1
	pop	{r4, pc}
.L7:
	ldr	r0, [r0, #8]
	b	regulator_get_voltage
.L9:
	.align	2
.L8:
	.word	AD7303_CFG_EXTERNAL_VREF
	.size	ad7303_get_vref, .-ad7303_get_vref
	.comm	AD7303_CFG_EXTERNAL_VREF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
