	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc5_read_voltage_data
_adc5_read_voltage_data:                ## @adc5_read_voltage_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_ADC5_USR_DATA0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	movl	$4, %ecx
	callq	_adc5_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_ADC5_USR_DATA1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$4, %ecx
	callq	_adc5_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	-20(%rbp), %esi
	shll	$8, %esi
	orl	-24(%rbp), %esi
	movl	%esi, (%r14)
	movq	_ADC5_USR_DATA_CHECK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADC5_USR_DATA0,4,2             ## @ADC5_USR_DATA0
	.comm	_ADC5_USR_DATA1,4,2             ## @ADC5_USR_DATA1
	.comm	_ADC5_USR_DATA_CHECK,4,2        ## @ADC5_USR_DATA_CHECK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid data:0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"voltage raw code:0x%x\n"

	.no_dead_strip	_adc5_read_voltage_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc5_read_voltage_data
_adc5_read_voltage_data:                ; @adc5_read_voltage_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _ADC5_USR_DATA0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADC5_USR_DATA0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w3, #4
	bl	_adc5_read
	cbnz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _ADC5_USR_DATA1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADC5_USR_DATA1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #4
	bl	_adc5_read
	cbnz	w0, LBB0_5
; %bb.2:
	ldp	w8, w9, [sp, #8]
	orr	w1, w9, w8, lsl #8
	str	w1, [x19]
Lloh6:
	adrp	x8, _ADC5_USR_DATA_CHECK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADC5_USR_DATA_CHECK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ADC5_USR_DATA0,4,2             ; @ADC5_USR_DATA0
	.comm	_ADC5_USR_DATA1,4,2             ; @ADC5_USR_DATA1
	.comm	_ADC5_USR_DATA_CHECK,4,2        ; @ADC5_USR_DATA_CHECK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid data:0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"voltage raw code:0x%x\n"

	.no_dead_strip	_adc5_read_voltage_data
.subsections_via_symbols
