	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_get_wakeup_device_flags
_acpi_bus_get_wakeup_device_flags:      ## @acpi_bus_get_wakeup_device_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	%r14
	pushq	%rbx
	subq	$112, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_ACPI_ALLOCATE_BUFFER@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -120(%rbp)
	movq	$0, -112(%rbp)
	movl	$0, -104(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -48(%rbp)
	leaq	L_.str(%rip), %rax
	movq	%rax, -96(%rbp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -80(%rbp)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, -64(%rbp)
	leaq	L_.str.3(%rip), %rax
	movq	%rax, -48(%rbp)
	movl	24(%rdi), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-120(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_object
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movq	-120(%rbp), %rsi
	movq	%r14, %rdi
	callq	_acpi_bus_extract_wakeup_device_power_package
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.6(%rip), %rdi
LBB0_2:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_EXCEPTION
LBB0_9:
	movl	%ebx, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	$0, (%r14)
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	addq	$112, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	-120(%rbp), %rdi
	callq	_kfree
	movl	$1, 8(%r14)
	movq	$0, 16(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_acpi_device_sleep_wake
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.7(%rip), %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_ACPI_DEBUG_PRINT
LBB0_7:
	leaq	-96(%rbp), %rsi
	movq	%r14, %rdi
	callq	_acpi_match_device_ids
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	$1, 12(%r14)
	jmp	LBB0_9
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ## @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PNP0C0D"

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

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

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	"_PRW"

	.comm	_AE_INFO,4,2                    ## @AE_INFO
L_.str.5:                               ## @.str.5
	.asciz	"Evaluating _PRW"

L_.str.6:                               ## @.str.6
	.asciz	"Extracting _PRW package"

	.comm	_ACPI_DB_INFO,4,2               ## @ACPI_DB_INFO
L_.str.7:                               ## @.str.7
	.asciz	"error in _DSW or _PSW evaluation\n"

	.no_dead_strip	_acpi_bus_get_wakeup_device_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_wakeup_device_flags
_acpi_bus_get_wakeup_device_flags:      ; @acpi_bus_get_wakeup_device_flags
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _ACPI_ALLOCATE_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACPI_ALLOCATE_BUFFER@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	stp	x8, xzr, [sp]
	str	wzr, [sp, #16]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stur	q0, [sp, #64]
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #24]
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp, #40]
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [sp, #56]
Lloh12:
	adrp	x8, l_.str.3@PAGE
Lloh13:
	add	x8, x8, l_.str.3@PAGEOFF
	stp	x8, xzr, [sp, #72]
	ldr	w0, [x0, #24]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, sp
	mov	x2, #0
	bl	_acpi_evaluate_object
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_acpi_bus_extract_wakeup_device_power_package
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_9
; %bb.3:
Lloh18:
	adrp	x0, l_.str.6@PAGE
Lloh19:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_4:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_EXCEPTION
LBB0_5:
	mov	x0, x20
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_7
; %bb.6:
	str	xzr, [x19]
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_9:
	ldr	x0, [sp]
	bl	_kfree
	mov	w8, #1
	str	w8, [x19, #8]
	str	xzr, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_acpi_device_sleep_wake
	cbz	w0, LBB0_11
; %bb.10:
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_ACPI_DEBUG_PRINT
LBB0_11:
	add	x1, sp, #24
	mov	x0, x19
	bl	_acpi_match_device_ids
	cbnz	w0, LBB0_5
; %bb.12:
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_5
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_ALLOCATE_BUFFER,4,2       ; @ACPI_ALLOCATE_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PNP0C0D"

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

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

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	"_PRW"

	.comm	_AE_INFO,4,2                    ; @AE_INFO
l_.str.5:                               ; @.str.5
	.asciz	"Evaluating _PRW"

l_.str.6:                               ; @.str.6
	.asciz	"Extracting _PRW package"

	.comm	_ACPI_DB_INFO,4,2               ; @ACPI_DB_INFO
l_.str.7:                               ; @.str.7
	.asciz	"error in _DSW or _PSW evaluation\n"

	.no_dead_strip	_acpi_bus_get_wakeup_device_flags
.subsections_via_symbols
