	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wf_ad7417_adc_convert
_wf_ad7417_adc_convert:                 ## @wf_ad7417_adc_convert
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	decl	%esi
	cmpl	$3, %esi
	ja	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rsi
	addq	%rax, %rsi
	jmpq	*%rsi
LBB0_2:
	movq	(%rdi), %rax
	imull	4(%rax), %edx
	movl	(%rax), %eax
	shll	$12, %eax
	addl	%edx, %eax
	sarl	$2, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_ADC_12V_CURRENT_SCALE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ADC_CPU_VOLTAGE_SCALE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_ADC_CPU_CURRENT_SCALE@GOTPCREL(%rip), %rax
LBB0_6:
	imull	(%rax), %edx
	movl	%edx, %eax
LBB0_7:
	movl	%eax, (%rcx)
	popq	%rbp
LBB0_8:
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_ADC_12V_CURRENT_SCALE,4,2      ## @ADC_12V_CURRENT_SCALE
	.comm	_ADC_CPU_VOLTAGE_SCALE,4,2      ## @ADC_CPU_VOLTAGE_SCALE
	.comm	_ADC_CPU_CURRENT_SCALE,4,2      ## @ADC_CPU_CURRENT_SCALE
	.no_dead_strip	_wf_ad7417_adc_convert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wf_ad7417_adc_convert
_wf_ad7417_adc_convert:                 ; @wf_ad7417_adc_convert
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #1
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x0]
	ldp	w8, w9, [x8]
	mul	w9, w9, w2
	add	w8, w9, w8, lsl #12
	asr	w8, w8, #2
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ADC_12V_CURRENT_SCALE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ADC_12V_CURRENT_SCALE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x8, _ADC_CPU_VOLTAGE_SCALE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADC_CPU_VOLTAGE_SCALE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ADC_CPU_CURRENT_SCALE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADC_CPU_CURRENT_SCALE@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	mul	w8, w8, w2
LBB0_7:
	str	w8, [x3]
LBB0_8:
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_ADC_12V_CURRENT_SCALE,4,2      ; @ADC_12V_CURRENT_SCALE
	.comm	_ADC_CPU_VOLTAGE_SCALE,4,2      ; @ADC_CPU_VOLTAGE_SCALE
	.comm	_ADC_CPU_CURRENT_SCALE,4,2      ; @ADC_CPU_CURRENT_SCALE
	.no_dead_strip	_wf_ad7417_adc_convert
.subsections_via_symbols
