	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_battery
_is_battery:                            ## @is_battery
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	-16(%rbp), %rsi
	callq	_acpi_get_object_info
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-16(%rbp), %rdi
	movq	_ACPI_VALID_HID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.4:
	movl	4(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_strcmp
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	movq	-16(%rbp), %rdi
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	callq	_kfree
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_VALID_HID,4,2             ## @ACPI_VALID_HID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PNP0C0A"

	.no_dead_strip	_is_battery
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_battery
_is_battery:                            ; @is_battery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x1, sp, #8
	bl	_acpi_get_object_info
	bl	_ACPI_SUCCESS
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ACPI_VALID_HID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_VALID_HID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w1, [x0, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_strcmp
	cmp	w0, #0
	cset	w19, eq
	ldr	x0, [sp, #8]
	b	LBB0_5
LBB0_3:
	mov	w19, #0
	b	LBB0_6
LBB0_4:
	mov	w19, #0
LBB0_5:
	bl	_kfree
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_VALID_HID,4,2             ; @ACPI_VALID_HID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PNP0C0A"

	.no_dead_strip	_is_battery
.subsections_via_symbols
