	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm860x_batt_set_prop
_pm860x_batt_set_prop:                  ## @pm860x_batt_set_prop
	.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
	movl	%esi, %r14d
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	cmpl	$128, %r14d
	jne	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_ccnt_data@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	callq	_clear_ccnt
	movl	$100, (%rbx)
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	$100, %edx
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ccnt_data,4,2                  ## @ccnt_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chg done, update soc = %d\n"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_pm860x_batt_set_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm860x_batt_set_prop
_pm860x_batt_set_prop:                  ; @pm860x_batt_set_prop
	.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	x20, x1
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	cmp	w20, #128
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, _ccnt_data@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ccnt_data@GOTPAGEOFF]
	bl	_clear_ccnt
	mov	w8, #100
	str	w8, [x19]
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #100
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _EPERM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ccnt_data,4,2                  ; @ccnt_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chg done, update soc = %d\n"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_pm860x_batt_set_prop
.subsections_via_symbols
