	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_fg_battok_calc
_ab8500_fg_battok_calc:                 ## @ab8500_fg_battok_calc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BATT_OK_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BATT_OK_INCREMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_BATT_OK_MAX_NR_INCREMENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	imull	%ecx, %edi
	addl	%edx, %edi
	cmpl	%esi, %edi
	jl	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	cmpl	%esi, %edx
	jg	LBB0_3
## %bb.2:
	subl	%edx, %esi
	movl	%esi, %eax
	cltd
	idivl	%ecx
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BATT_OK_MIN,4,2                ## @BATT_OK_MIN
	.comm	_BATT_OK_INCREMENT,4,2          ## @BATT_OK_INCREMENT
	.comm	_BATT_OK_MAX_NR_INCREMENTS,4,2  ## @BATT_OK_MAX_NR_INCREMENTS
	.no_dead_strip	_ab8500_fg_battok_calc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_fg_battok_calc
_ab8500_fg_battok_calc:                 ; @ab8500_fg_battok_calc
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BATT_OK_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BATT_OK_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _BATT_OK_INCREMENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BATT_OK_INCREMENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _BATT_OK_MAX_NR_INCREMENTS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BATT_OK_MAX_NR_INCREMENTS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x10]
	madd	w10, w0, w9, w8
	cmp	w10, w1
	b.lt	LBB0_4
; %bb.1:
	cmp	w8, w1
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	ret
LBB0_3:
	sub	w8, w1, w8
	sdiv	w0, w8, w9
LBB0_4:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BATT_OK_MIN,4,2                ; @BATT_OK_MIN
	.comm	_BATT_OK_INCREMENT,4,2          ; @BATT_OK_INCREMENT
	.comm	_BATT_OK_MAX_NR_INCREMENTS,4,2  ; @BATT_OK_MAX_NR_INCREMENTS
	.no_dead_strip	_ab8500_fg_battok_calc
.subsections_via_symbols
