	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_get_power_flags
_acpi_bus_get_power_flags:              ## @acpi_bus_get_power_flags
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	$0, -56(%rbp)
	movl	32(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, 16(%r12)
LBB0_2:
	movl	32(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, 20(%r12)
LBB0_4:
	movq	_ACPI_STATE_D0@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_ACPI_STATE_D3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	ja	LBB0_15
## %bb.5:
	leaq	(%rbx,%rbx,2), %rax
	leaq	16(,%rax,8), %r13
	leaq	-45(%rbp), %r14
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -8(%r15,%r13)
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	$-1, -16(%r15,%r13)
	incq	%rbx
	movq	_ACPI_STATE_D3@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$24, %r13
	cmpq	%rax, %rbx
	ja	LBB0_14
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r15
	movw	$20575, -45(%rbp)               ## imm = 0x505F
	movb	$82, -43(%rbp)
	leal	48(%rbx), %eax
	movb	%al, -42(%rbp)
	movb	$0, -41(%rbp)
	movl	32(%r12), %edi
	leaq	(%r15,%r13), %rcx
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_acpi_evaluate_reference
	cmpq	$0, (%r15,%r13)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, 24(%r12)
	movl	$1, -8(%r15,%r13)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	$83, -43(%rbp)
	movl	32(%r12), %edi
	movq	%r14, %rsi
	leaq	-56(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -8(%r15,%r13)
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, (%r15,%r13)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$0, -4(%r15,%r13)
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	movq	_ACPI_STATE_D0@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
LBB0_15:
	movq	8(%r12), %rcx
	leaq	(%rbx,%rbx,2), %rdx
	movl	$1, 8(%rcx,%rdx,8)
	movl	$100, (%rcx,%rdx,8)
	leaq	(%rax,%rax,2), %rax
	movl	$1, 8(%rcx,%rax,8)
	movl	$0, (%rcx,%rax,8)
	movq	_ACPI_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	32(%r12), %edi
	movq	%r12, %rsi
	callq	_acpi_bus_get_power
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_PSC"

L_.str.1:                               ## @.str.1
	.asciz	"_IRC"

	.comm	_ACPI_STATE_D0,8,3              ## @ACPI_STATE_D0
	.comm	_ACPI_STATE_D3,8,3              ## @ACPI_STATE_D3
	.comm	_ACPI_STATE_UNKNOWN,4,2         ## @ACPI_STATE_UNKNOWN
	.no_dead_strip	_acpi_bus_get_power_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_get_power_flags
_acpi_bus_get_power_flags:              ; @acpi_bus_get_power_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	w0, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_2:
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #20]
LBB0_4:
Lloh4:
	adrp	x8, _ACPI_STATE_D0@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ACPI_STATE_D0@GOTPAGEOFF]
Lloh6:
	ldr	x20, [x8]
Lloh7:
	adrp	x22, _ACPI_STATE_D3@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ACPI_STATE_D3@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x20, x8
	b.hi	LBB0_15
; %bb.5:
	add	x8, x20, x20, lsl #1
	lsl	x23, x8, #3
	mov	w24, #20575
	mov	w25, #82
	mov	w26, #83
	mov	w27, #1
	movi.2s	v8, #1
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x28, x23
	str	w27, [x8, #8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x28, x23]
	add	x20, x20, #1
	ldr	x8, [x22]
	add	x23, x23, #24
	cmp	x20, x8
	b.hi	LBB0_14
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19, #8]
	sturh	w24, [sp, #3]
	strb	w25, [sp, #5]
	add	w8, w20, #48
	strb	w8, [sp, #6]
	strb	wzr, [sp, #7]
	ldr	w0, [x19, #32]
	add	x21, x28, x23
	add	x3, x21, #16
	add	x1, sp, #3
	mov	x2, #0
	bl	_acpi_evaluate_reference
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	str	w27, [x19, #24]
	str	w27, [x21, #8]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	strb	w26, [sp, #5]
	ldr	w0, [x19, #32]
	add	x1, sp, #3
	add	x2, sp, #8
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x28, x23
	str	d8, [x8, #8]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_6
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x28, x23
	ldr	w8, [x8, #12]
	cbnz	w8, LBB0_6
	b	LBB0_7
LBB0_14:
Lloh9:
	adrp	x9, _ACPI_STATE_D0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ACPI_STATE_D0@GOTPAGEOFF]
Lloh11:
	ldr	x20, [x9]
LBB0_15:
	ldr	x9, [x19, #8]
	mov	w10, #24
	madd	x11, x20, x10, x9
	mov	w12, #1
	str	w12, [x11, #8]
	mov	w13, #100
	str	w13, [x11]
	madd	x8, x8, x10, x9
	str	w12, [x8, #8]
	str	wzr, [x8]
Lloh12:
	adrp	x8, _ACPI_STATE_UNKNOWN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_STATE_UNKNOWN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w0, [x19, #32]
	mov	x1, x19
	bl	_acpi_bus_get_power
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_PSC"

l_.str.1:                               ; @.str.1
	.asciz	"_IRC"

	.comm	_ACPI_STATE_D0,8,3              ; @ACPI_STATE_D0
	.comm	_ACPI_STATE_D3,8,3              ; @ACPI_STATE_D3
	.comm	_ACPI_STATE_UNKNOWN,4,2         ; @ACPI_STATE_UNKNOWN
	.no_dead_strip	_acpi_bus_get_power_flags
.subsections_via_symbols
