	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sc27xx_adc_convert_volt
_sc27xx_adc_convert_volt:               ## @sc27xx_adc_convert_volt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$1, %esi
	je	LBB0_4
## %bb.1:
	movl	%esi, %ebx
	cmpl	$5, %esi
	jne	LBB0_5
## %bb.2:
	movq	_big_scale_graph@GOTPCREL(%rip), %rdi
	jmp	LBB0_3
LBB0_4:
	movq	_small_scale_graph@GOTPCREL(%rip), %rdi
LBB0_3:
	movl	%ecx, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sc27xx_adc_to_volt             ## TAILCALL
LBB0_5:
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_small_scale_graph@GOTPCREL(%rip), %rdi
	movl	%ecx, %esi
	callq	_sc27xx_adc_to_volt
	movl	%eax, %r12d
	leaq	-40(%rbp), %rcx
	leaq	-36(%rbp), %r8
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_sc27xx_adc_volt_ratio
	imull	-36(%rbp), %r12d
	movl	-40(%rbp), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	%r12d, %eax
	cltd
	idivl	%ecx
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_big_scale_graph,4,2            ## @big_scale_graph
	.comm	_small_scale_graph,4,2          ## @small_scale_graph
	.no_dead_strip	_sc27xx_adc_convert_volt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sc27xx_adc_convert_volt
_sc27xx_adc_convert_volt:               ; @sc27xx_adc_convert_volt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cmp	w1, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	cmp	w1, #5
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x0, _big_scale_graph@GOTPAGE
Lloh1:
	ldr	x0, [x0, _big_scale_graph@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, _small_scale_graph@GOTPAGE
Lloh3:
	ldr	x0, [x0, _small_scale_graph@GOTPAGEOFF]
LBB0_4:
	mov	x1, x3
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_sc27xx_adc_to_volt
LBB0_5:
	mov	x19, x2
	mov	x21, x0
Lloh4:
	adrp	x0, _small_scale_graph@GOTPAGE
Lloh5:
	ldr	x0, [x0, _small_scale_graph@GOTPAGEOFF]
	mov	x1, x3
	bl	_sc27xx_adc_to_volt
	mov	x22, x0
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sc27xx_adc_volt_ratio
	ldp	w8, w9, [sp, #8]
	mul	w8, w8, w22
	cmp	w9, #0
	cinc	w10, w9, lt
	add	w8, w8, w10, asr #1
	sdiv	w0, w8, w9
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_big_scale_graph,4,2            ; @big_scale_graph
	.comm	_small_scale_graph,4,2          ; @small_scale_graph
	.no_dead_strip	_sc27xx_adc_convert_volt
.subsections_via_symbols
