	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function force_capacity
_force_capacity:                        ## @force_capacity
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_ab8500_fg_clear_cap_samples
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_1
## %bb.2:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	(%rbx), %edx
	movl	4(%rbx), %r14d
	jmp	LBB0_3
LBB0_1:
	movl	%edx, %r14d
LBB0_3:
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_ab8500_fg_fill_cap_sample
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ab8500_fg_convert_mah_to_permille
	movl	%eax, 12(%rbx)
	movl	%r14d, 8(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ab8500_fg_check_capacity_limits ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Remaining cap %d can't be bigger than total %d\n"

	.no_dead_strip	_force_capacity
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function force_capacity
_force_capacity:                        ; @force_capacity
	.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, x0
	bl	_ab8500_fg_clear_cap_samples
	ldp	w2, w3, [x19]
	cmp	w2, w3
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldp	w2, w20, [x19]
	b	LBB0_3
LBB0_2:
	mov	x20, x2
LBB0_3:
	mov	x0, x19
	mov	x1, x2
	bl	_ab8500_fg_fill_cap_sample
	mov	x0, x19
	mov	x1, x20
	bl	_ab8500_fg_convert_mah_to_permille
	stp	w20, w0, [x19, #8]
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ab8500_fg_check_capacity_limits
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Remaining cap %d can't be bigger than total %d\n"

	.no_dead_strip	_force_capacity
.subsections_via_symbols
