	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7303_get_vref
_ad7303_get_vref:                       ## @ad7303_get_vref
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AD7303_CFG_EXTERNAL_VREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	8(%rdi), %edi
	popq	%rbp
	jmp	_regulator_get_voltage          ## TAILCALL
LBB0_1:
	movl	4(%rdi), %edi
	callq	_regulator_get_voltage
	movl	%eax, %ecx
	notl	%ecx
	shrl	$31, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7303_CFG_EXTERNAL_VREF,4,2   ## @AD7303_CFG_EXTERNAL_VREF
	.no_dead_strip	_ad7303_get_vref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7303_get_vref
_ad7303_get_vref:                       ; @ad7303_get_vref
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AD7303_CFG_EXTERNAL_VREF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD7303_CFG_EXTERNAL_VREF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x0, #8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_regulator_get_voltage
LBB0_2:
	ldr	w0, [x0, #4]
	bl	_regulator_get_voltage
	mvn	w8, w0
	lsr	w8, w8, #31
	lsr	w0, w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7303_CFG_EXTERNAL_VREF,4,2   ; @AD7303_CFG_EXTERNAL_VREF
	.no_dead_strip	_ad7303_get_vref
.subsections_via_symbols
