	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function battery_interpolate
_battery_interpolate:                   ## @battery_interpolate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	cmpl	$40, %esi
	jb	LBB0_5
## %bb.2:
	movl	16(%rdi), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_3:
	movl	(%rdi), %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_5:
	movzbl	%sil, %eax
	imull	$205, %eax, %ecx
	shrl	$11, %ecx
	leal	(%rcx,%rcx), %edx
	leal	(%rdx,%rdx,4), %edx
	subb	%dl, %al
	movzbl	%al, %eax
	movl	(%rdi,%rcx,4), %edx
	movl	4(%rdi,%rcx,4), %ecx
	subl	%edx, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	addl	%edx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_battery_interpolate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function battery_interpolate
_battery_interpolate:                   ; @battery_interpolate
	.cfi_startproc
; %bb.0:
	cmp	w1, #0
	b.le	LBB0_3
; %bb.1:
	cmp	w1, #40
	b.lo	LBB0_4
; %bb.2:
	ldr	w0, [x0, #16]
	ret
LBB0_3:
	ldr	w0, [x0]
	ret
LBB0_4:
	and	w8, w1, #0xff
	mov	w9, #205
	mul	w8, w8, w9
	lsr	w8, w8, #11
	mov	w9, #10
	msub	w9, w8, w9, w1
	ldr	w10, [x0, w8, uxtw #2]
	and	w9, w9, #0xff
	add	w8, w8, #1
	ldr	w8, [x0, w8, uxtw #2]
	sub	w8, w8, w10
	mul	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	add	w0, w8, w10
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_battery_interpolate
.subsections_via_symbols
