	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_full_charged
_is_full_charged:                       ## @is_full_charged
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	callq	_is_batt_present
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movq	(%rbx), %rax
	movl	24(%rax), %edi
	callq	_power_supply_get_by_name
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r14
	cmpq	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	movq	$0, -40(%rbp)
	movq	_POWER_SUPPLY_PROP_CHARGE_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_power_supply_get_property
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rax
	movl	$1, %r15d
	cmpq	(%r12), %rax
	jg	LBB0_11
LBB0_5:
	cmpl	$0, 8(%r12)
	jle	LBB0_8
## %bb.6:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_batt_uV
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	-44(%rbp), %eax
	movl	$1, %r15d
	cmpl	8(%r12), %eax
	jge	LBB0_11
LBB0_8:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%r12)
	jle	LBB0_11
## %bb.9:
	movq	$0, -40(%rbp)
	movq	_POWER_SUPPLY_PROP_CAPACITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_power_supply_get_property
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	-40(%rbp), %rax
	xorl	%r15d, %r15d
	cmpq	16(%r12), %rax
	setge	%r15b
LBB0_11:
	movq	%r14, %rdi
	callq	_power_supply_put
LBB0_12:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_PROP_CHARGE_FULL,4,2 ## @POWER_SUPPLY_PROP_CHARGE_FULL
	.comm	_POWER_SUPPLY_PROP_CAPACITY,4,2 ## @POWER_SUPPLY_PROP_CAPACITY
	.no_dead_strip	_is_full_charged
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_full_charged
_is_full_charged:                       ; @is_full_charged
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x21, [x0]
	bl	_is_batt_present
	cbz	w0, LBB0_11
; %bb.1:
	ldr	x8, [x20]
	ldr	w0, [x8, #24]
	bl	_power_supply_get_by_name
	cbz	x0, LBB0_11
; %bb.2:
	mov	x19, x0
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.3:
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _POWER_SUPPLY_PROP_CHARGE_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_SUPPLY_PROP_CHARGE_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_power_supply_get_property
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.gt	LBB0_12
LBB0_5:
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	add	x1, sp, #4
	mov	x0, x20
	bl	_get_batt_uV
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w8, [sp, #4]
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.ge	LBB0_12
LBB0_8:
	ldr	x8, [x21, #16]
	cmp	x8, #1
	b.lt	LBB0_10
; %bb.9:
	str	xzr, [sp, #8]
Lloh3:
	adrp	x8, _POWER_SUPPLY_PROP_CAPACITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POWER_SUPPLY_PROP_CAPACITY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_power_supply_get_property
	cbz	w0, LBB0_13
LBB0_10:
	mov	w20, #0
	b	LBB0_14
LBB0_11:
	mov	w20, #0
	b	LBB0_15
LBB0_12:
	mov	w20, #1
	b	LBB0_14
LBB0_13:
	ldr	x8, [sp, #8]
	ldr	x9, [x21, #16]
	cmp	x8, x9
	cset	w20, ge
LBB0_14:
	mov	x0, x19
	bl	_power_supply_put
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_PROP_CHARGE_FULL,4,2 ; @POWER_SUPPLY_PROP_CHARGE_FULL
	.comm	_POWER_SUPPLY_PROP_CAPACITY,4,2 ; @POWER_SUPPLY_PROP_CAPACITY
	.no_dead_strip	_is_full_charged
.subsections_via_symbols
