	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc4215_get_voltage
_ltc4215_get_voltage:                   ## @ltc4215_get_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	callq	_ltc4215_update_device
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %rax
	cmpq	$128, %rbx
	je	LBB0_5
## %bb.1:
	cmpq	$130, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_7
## %bb.3:
	imulq	$151, %rax, %rax
	jmp	LBB0_4
LBB0_5:
	imulq	$605, %rax, %rax                ## imm = 0x25D
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rcx
	movq	%rdx, %rax
	shrq	$3, %rax
	jmp	LBB0_8
LBB0_6:
	imulq	$60250, %rax, %rax              ## imm = 0xEB5A
LBB0_4:
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rcx
	movq	%rdx, %rax
	shrq	$4, %rax
	jmp	LBB0_8
LBB0_7:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ltc4215_get_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc4215_get_voltage
_ltc4215_get_voltage:                   ; @ltc4215_get_voltage
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_ltc4215_update_device
	ldr	x8, [x0]
	ldr	x8, [x8, x19, lsl #3]
	cmp	x19, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x19, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	x19, #129
	b.ne	LBB0_6
; %bb.3:
	mov	w9, #151
	mul	x8, x8, x9
	lsr	x8, x8, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x0, x8, #4
	b	LBB0_7
LBB0_4:
	mov	w9, #605
	mul	x8, x8, x9
	mov	x9, #-3689348814741910324
	movk	x9, #52429
	umulh	x8, x8, x9
	lsr	x0, x8, #3
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_7
LBB0_5:
	mov	w9, #60250
	mul	x8, x8, x9
	lsr	x8, x8, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x0, x8, #4
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_7
LBB0_6:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	mov	w0, #0
LBB0_7:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ltc4215_get_voltage
.subsections_via_symbols
