	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc2990_get_value
_ltc2990_get_value:                     ## @ltc2990_get_value
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	addl	$-128, %ebx
	cmpl	$10, %ebx
	jae	LBB0_9
## %bb.1:
	movq	%rdx, %r14
	movslq	%ebx, %rax
	leaq	l_switch.table.ltc2990_get_value(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_word_swapped
	movl	%eax, %r15d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.2:
	cmpl	$9, %ebx
	ja	LBB0_9
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movl	%r15d, %edi
	movl	$14, %esi
	callq	_sign_extend32
	imull	$30518, %eax, %eax              ## imm = 0x7736
	cltq
	imulq	$351843721, %rax, %rax          ## imm = 0x14F8B589
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$45, %rax
	jmp	LBB0_6
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r15d, %edi
	movl	$12, %esi
	callq	_sign_extend32
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	leal	15(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$4, %ecx
	movl	%ecx, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_5:
	movl	%r15d, %edi
	movl	$14, %esi
	callq	_sign_extend32
	imull	$1942, %eax, %eax               ## imm = 0x796
	cltq
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
LBB0_6:
	addl	%ecx, %eax
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_7:
	movl	%r15d, %edi
	movl	$14, %esi
	callq	_sign_extend32
	imull	$30518, %eax, %eax              ## imm = 0x7736
	cltq
	imulq	$351843721, %rax, %rax          ## imm = 0x14F8B589
	movq	%rax, %rcx
	sarq	$45, %rcx
	shrq	$63, %rax
	addl	%ecx, %eax
	addl	$2500, %eax                     ## imm = 0x9C4
	movl	%eax, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_LTC2990_VCC_MSB,4,2            ## @LTC2990_VCC_MSB
	.comm	_LTC2990_V1_MSB,4,2             ## @LTC2990_V1_MSB
	.comm	_LTC2990_V2_MSB,4,2             ## @LTC2990_V2_MSB
	.comm	_LTC2990_V3_MSB,4,2             ## @LTC2990_V3_MSB
	.comm	_LTC2990_V4_MSB,4,2             ## @LTC2990_V4_MSB
	.comm	_LTC2990_TINT_MSB,4,2           ## @LTC2990_TINT_MSB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ltc2990_get_value
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ltc2990_get_value
l_switch.table.ltc2990_get_value:
	.quad	_LTC2990_V3_MSB
	.quad	_LTC2990_V1_MSB
	.quad	_LTC2990_TINT_MSB
	.quad	_LTC2990_V4_MSB
	.quad	_LTC2990_V3_MSB
	.quad	_LTC2990_V2_MSB
	.quad	_LTC2990_V1_MSB
	.quad	_LTC2990_VCC_MSB
	.quad	_LTC2990_V3_MSB
	.quad	_LTC2990_V1_MSB

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc2990_get_value
_ltc2990_get_value:                     ; @ltc2990_get_value
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	w21, w1, #128
	cmp	w21, #10
	b.hs	LBB0_5
; %bb.1:
	mov	x19, x2
Lloh0:
	adrp	x8, l_switch.table.ltc2990_get_value@PAGE
Lloh1:
	add	x8, x8, l_switch.table.ltc2990_get_value@PAGEOFF
	ldr	x8, [x8, w21, sxtw #3]
	ldr	w1, [x8]
	bl	_i2c_smbus_read_word_swapped
	mov	x20, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.2:
	cmp	w21, #9
	b.hi	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, lJTI0_0@PAGE
Lloh3:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_4
	ldrb	w10, [x8, x21]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:
	mov	x0, x20
	mov	w1, #14
	bl	_sign_extend32
	mov	w20, #0
	mov	w8, #30518
	mul	w8, w0, w8
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #45
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x20
	mov	w1, #12
	bl	_sign_extend32
	mov	w20, #0
	mov	w8, #1000
	mul	w8, w0, w8
	add	w9, w8, #15
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #4
	str	w8, [x19]
	b	LBB0_6
LBB0_8:
	mov	x0, x20
	mov	w1, #14
	bl	_sign_extend32
	mov	w20, #0
	mov	w8, #1942
	mul	w8, w0, w8
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
LBB0_9:
	add	w8, w8, w9
	str	w8, [x19]
	b	LBB0_6
LBB0_10:
	mov	x0, x20
	mov	w1, #14
	bl	_sign_extend32
	mov	w20, #0
	mov	w8, #30518
	mul	w8, w0, w8
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #45
	add	w8, w8, w9
	add	w8, w8, #2500
	str	w8, [x19]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_LTC2990_VCC_MSB,4,2            ; @LTC2990_VCC_MSB
	.comm	_LTC2990_V1_MSB,4,2             ; @LTC2990_V1_MSB
	.comm	_LTC2990_V2_MSB,4,2             ; @LTC2990_V2_MSB
	.comm	_LTC2990_V3_MSB,4,2             ; @LTC2990_V3_MSB
	.comm	_LTC2990_V4_MSB,4,2             ; @LTC2990_V4_MSB
	.comm	_LTC2990_TINT_MSB,4,2           ; @LTC2990_TINT_MSB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ltc2990_get_value
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ltc2990_get_value
l_switch.table.ltc2990_get_value:
	.quad	_LTC2990_V3_MSB
	.quad	_LTC2990_V1_MSB
	.quad	_LTC2990_TINT_MSB
	.quad	_LTC2990_V4_MSB
	.quad	_LTC2990_V3_MSB
	.quad	_LTC2990_V2_MSB
	.quad	_LTC2990_V1_MSB
	.quad	_LTC2990_VCC_MSB
	.quad	_LTC2990_V3_MSB
	.quad	_LTC2990_V1_MSB

.subsections_via_symbols
