	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmu_get_ac_prop
_pmu_get_ac_prop:                       ## @pmu_get_ac_prop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %esi
	jne	LBB0_2
## %bb.1:
	movq	_pmu_power_flags@GOTPCREL(%rip), %rax
	movq	_PMU_PWR_AC_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	setne	%al
	movq	_pmu_battery_count@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_power_flags,4,2            ## @pmu_power_flags
	.comm	_PMU_PWR_AC_PRESENT,4,2         ## @PMU_PWR_AC_PRESENT
	.comm	_pmu_battery_count,4,2          ## @pmu_battery_count
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pmu_get_ac_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmu_get_ac_prop
_pmu_get_ac_prop:                       ; @pmu_get_ac_prop
	.cfi_startproc
; %bb.0:
	cmp	w1, #128
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh0:
	adrp	x8, _pmu_power_flags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmu_power_flags@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PMU_PWR_AC_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PMU_PWR_AC_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
Lloh6:
	adrp	x8, _pmu_battery_count@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pmu_battery_count@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w8, #0, #4, eq
	cset	w8, eq
	str	w8, [x2]
	ret
LBB0_2:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_power_flags,4,2            ; @pmu_power_flags
	.comm	_PMU_PWR_AC_PRESENT,4,2         ; @PMU_PWR_AC_PRESENT
	.comm	_pmu_battery_count,4,2          ; @pmu_battery_count
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pmu_get_ac_prop
.subsections_via_symbols
