	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function acpi_capm_get_info
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	65280                           ## 0xff00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_acpi_capm_get_info:                    ## @acpi_capm_get_info
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,1,2,65280]
	movups	%xmm0, (%rdi)
	movq	_apm_active@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_acpi_acad_get_acline
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_APM_UNKNOWN@GOTPCREL(%rip), %rbx
LBB0_2:
	movl	(%rbx), %eax
	movl	%eax, 16(%r14)
	leaq	-32(%rbp), %rsi
	xorl	%edi, %edi
	callq	_acpi_battery_get_battinfo
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_APM_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	%rax, 32(%r14)
	movl	$-1, 20(%r14)
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_4:
	leaq	-32(%rbp), %rdi
	callq	_acpi_capm_convert_battstate
	movq	%rax, 40(%r14)
	movq	-24(%rbp), %rax
	movq	%rax, 32(%r14)
	movl	-32(%rbp), %eax
	imull	$60, %eax, %ecx
	cmpl	$-1, %eax
	cmovel	%eax, %ecx
	movl	%ecx, 20(%r14)
	xorl	%eax, %eax
	callq	_acpi_battery_get_units
LBB0_5:
	movl	%eax, 24(%r14)
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_apm_active,4,2                 ## @apm_active
	.comm	_APM_UNKNOWN,8,3                ## @APM_UNKNOWN
	.no_dead_strip	_acpi_capm_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function acpi_capm_get_info
lCPI0_0:
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	65280                           ; 0xff00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_acpi_capm_get_info:                    ; @acpi_capm_get_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x0]
Lloh2:
	adrp	x8, _apm_active@GOTPAGE
Lloh3:
	ldr	x8, [x8, _apm_active@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	add	x21, sp, #28
	add	x0, sp, #28
	bl	_acpi_acad_get_acline
Lloh5:
	adrp	x20, _APM_UNKNOWN@GOTPAGE
Lloh6:
	ldr	x20, [x20, _APM_UNKNOWN@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x21, x20, eq
	ldr	w8, [x8]
	str	w8, [x19, #16]
	add	x1, sp, #8
	mov	x0, #0
	bl	_acpi_battery_get_battinfo
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	stp	x8, x8, [x19, #32]
	mov	w0, #-1
	str	w0, [x19, #20]
	b	LBB0_3
LBB0_2:
	add	x0, sp, #8
	bl	_acpi_capm_convert_battstate
	ldr	x8, [sp, #16]
	stp	x8, x0, [x19, #32]
	ldr	w8, [sp, #8]
	mov	w9, #60
	mul	w9, w8, w9
	cmn	w8, #1
	csinv	w8, w9, wzr, ne
	str	w8, [x19, #20]
	bl	_acpi_battery_get_units
LBB0_3:
	str	w0, [x19, #24]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_apm_active,4,2                 ; @apm_active
	.comm	_APM_UNKNOWN,8,3                ; @APM_UNKNOWN
	.no_dead_strip	_acpi_capm_get_info
.subsections_via_symbols
