	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_bus_get_power             ## -- Begin function acpi_bus_get_power
	.p2align	4, 0x90
_acpi_bus_get_power:                    ## @acpi_bus_get_power
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	$0, -24(%rbp)
	movq	$0, -32(%rbp)
	leaq	-24(%rbp), %rsi
	callq	_acpi_bus_get_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movq	_ACPI_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	-24(%rbp), %rdi
	cmpl	$0, 40(%rdi)
	je	LBB0_2
## %bb.4:
	cmpq	$0, 16(%rdi)
	je	LBB0_8
## %bb.5:
	movl	28(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	32(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_12
## %bb.3:
	movq	_ACPI_STATE_D0@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	cmpq	$0, 8(%rdi)
	je	LBB0_11
## %bb.9:
	callq	_acpi_power_get_inferred_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	-24(%rbp), %rdi
	jmp	LBB0_11
LBB0_7:
	movl	-32(%rbp), %eax
	movq	-24(%rbp), %rdi
	movl	%eax, (%rdi)
LBB0_11:
	movq	%rdi, %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	(%rdi), %edi
	callq	_ACPI_DEBUG_PRINT
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_STATE_UNKNOWN,4,2         ## @ACPI_STATE_UNKNOWN
	.comm	_ACPI_STATE_D0,4,2              ## @ACPI_STATE_D0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_PSC"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_bus_get_power             ; -- Begin function acpi_bus_get_power
	.p2align	2
_acpi_bus_get_power:                    ; @acpi_bus_get_power
	.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
	mov	x19, x1
	stp	xzr, xzr, [sp]
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	cbnz	w0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x8, _ACPI_STATE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_STATE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x0, [sp, #8]
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w0, [x0, #28]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_9
; %bb.4:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_5:
	ldr	x8, [x0, #32]
Lloh8:
	adrp	x9, _ACPI_STATE_D0@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ACPI_STATE_D0@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	b	LBB0_11
LBB0_6:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_10
; %bb.7:
	bl	_acpi_power_get_inferred_state
	cbnz	w0, LBB0_12
; %bb.8:
	ldr	x0, [sp, #8]
	b	LBB0_10
LBB0_9:
	ldp	x8, x0, [sp]
	str	w8, [x0]
LBB0_10:
	mov	x8, x0
LBB0_11:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w0, [x0]
	bl	_ACPI_DEBUG_PRINT
	mov	w0, #0
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_STATE_UNKNOWN,4,2         ; @ACPI_STATE_UNKNOWN
	.comm	_ACPI_STATE_D0,4,2              ; @ACPI_STATE_D0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_PSC"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
.subsections_via_symbols
