	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_power_get_inferred_state  ## -- Begin function acpi_power_get_inferred_state
	.p2align	4, 0x90
_acpi_power_get_inferred_state:         ## @acpi_power_get_inferred_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
	movl	$0, -44(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movq	_ACPI_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_ACPI_STATE_D0@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_ACPI_STATE_D3@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpl	%eax, %r13d
	jge	LBB0_9
## %bb.3:
	leaq	(,%r13,4), %rbx
	leaq	-44(%rbp), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	cmpl	$0, (%rdi,%rbx)
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_acpi_power_get_list_state
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	movq	_ACPI_POWER_RESOURCE_STATE_ON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %eax
	jmp	LBB0_8
LBB0_9:
	movl	%eax, (%r15)
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	%r13d, (%r15)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_STATE_UNKNOWN,4,2         ## @ACPI_STATE_UNKNOWN
	.comm	_ACPI_STATE_D0,4,2              ## @ACPI_STATE_D0
	.comm	_ACPI_STATE_D3,4,2              ## @ACPI_STATE_D3
	.comm	_ACPI_POWER_RESOURCE_STATE_ON,4,2 ## @ACPI_POWER_RESOURCE_STATE_ON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_power_get_inferred_state  ; -- Begin function acpi_power_get_inferred_state
	.p2align	2
_acpi_power_get_inferred_state:         ; @acpi_power_get_inferred_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	wzr, [sp, #12]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ACPI_STATE_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_STATE_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ACPI_STATE_D0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ACPI_STATE_D0@GOTPAGEOFF]
	str	w8, [x0]
Lloh5:
	ldrsw	x20, [x9]
Lloh6:
	adrp	x21, _ACPI_STATE_D3@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ACPI_STATE_D3@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.ge	LBB0_8
; %bb.2:
	lsl	x22, x20, #2
Lloh8:
	adrp	x23, _ACPI_POWER_RESOURCE_STATE_ON@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ACPI_POWER_RESOURCE_STATE_ON@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	add	x22, x22, #4
	cmp	x20, w8, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x22
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #12
	bl	_acpi_power_get_list_state
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	b	LBB0_3
LBB0_8:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
	str	w20, [x19]
LBB0_11:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_STATE_UNKNOWN,4,2         ; @ACPI_STATE_UNKNOWN
	.comm	_ACPI_STATE_D0,4,2              ; @ACPI_STATE_D0
	.comm	_ACPI_STATE_D3,4,2              ; @ACPI_STATE_D3
	.comm	_ACPI_POWER_RESOURCE_STATE_ON,4,2 ; @ACPI_POWER_RESOURCE_STATE_ON
.subsections_via_symbols
