	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7298_get_ref_voltage
_ad7298_get_ref_voltage:                ## @ad7298_get_ref_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_3
## %bb.1:
	movl	(%rdi), %edi
	callq	_regulator_get_voltage
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	%eax, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_3:
	movq	_AD7298_INTREF_mV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7298_INTREF_mV,4,2           ## @AD7298_INTREF_mV
	.no_dead_strip	_ad7298_get_ref_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7298_get_ref_voltage
_ad7298_get_ref_voltage:                ; @ad7298_get_ref_voltage
	.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	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	bl	_regulator_get_voltage
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w0, w8
	lsr	x8, x8, #38
	tst	w0, #0x80000000
	csel	w0, w0, w8, ne
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _AD7298_INTREF_mV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7298_INTREF_mV@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7298_INTREF_mV,4,2           ; @AD7298_INTREF_mV
	.no_dead_strip	_ad7298_get_ref_voltage
.subsections_via_symbols
