	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_power_get_list_state
_acpi_power_get_list_state:             ## @acpi_power_get_list_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.2:
	movq	%rdi, %r12
	cmpq	$0, (%rdi)
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r15
	movq	_ACPI_POWER_RESOURCE_STATE_ON@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r15, %rsi
	callq	_acpi_power_get_state
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	cmpl	(%r13), %eax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_7
	jmp	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movl	(%r14), %eax
LBB0_9:
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmovel	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_POWER_RESOURCE_STATE_ON,4,2 ## @ACPI_POWER_RESOURCE_STATE_ON
	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"on"

L_.str.2:                               ## @.str.2
	.asciz	"off"

	.no_dead_strip	_acpi_power_get_list_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_power_get_list_state
_acpi_power_get_list_state:             ; @acpi_power_get_list_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_7
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x21, #0
Lloh0:
	adrp	x22, _ACPI_POWER_RESOURCE_STATE_ON@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ACPI_POWER_RESOURCE_STATE_ON@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21, lsl #2]
	add	x1, sp, #12
	bl	_acpi_power_get_state
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	str	w8, [x19]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	ldr	x9, [x20]
	cmp	x21, x9
	b.lo	LBB0_4
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	ldr	w8, [x19]
LBB0_9:
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh7:
	adrp	x10, l_.str.2@PAGE
Lloh8:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	w0, w10, w9, eq
	bl	_ACPI_DEBUG_PRINT
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_POWER_RESOURCE_STATE_ON,4,2 ; @ACPI_POWER_RESOURCE_STATE_ON
	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"on"

l_.str.2:                               ; @.str.2
	.asciz	"off"

	.no_dead_strip	_acpi_power_get_list_state
.subsections_via_symbols
