	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_bus_extract_wakeup_device_power_package
_acpi_bus_extract_wakeup_device_power_package: ## @acpi_bus_extract_wakeup_device_power_package
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.2:
	cmpl	$2, (%rsi)
	jl	LBB0_19
## %bb.3:
	movq	8(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.4:
	movq	(%rcx), %rdx
	movq	_ACPI_TYPE_PACKAGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_12
## %bb.5:
	movq	_AE_BAD_DATA@GOTPCREL(%rip), %rax
	cmpl	$2, %edx
	jl	LBB0_19
## %bb.6:
	movq	8(%rcx), %r8
	movq	(%r8), %r9
	movq	_ACPI_TYPE_LOCAL_REFERENCE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r9
	jne	LBB0_19
## %bb.7:
	movq	16(%r8), %r8
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r8
	jne	LBB0_19
## %bb.8:
	movl	%r9d, 32(%rdi)
	movq	8(%rcx), %rax
	movq	16(%rax), %rdx
	jmp	LBB0_9
LBB0_12:
	movq	_ACPI_TYPE_INTEGER@GOTPCREL(%rip), %rax
	movq	%rdx, %r8
	cmpq	(%rax), %rdx
	jne	LBB0_13
LBB0_9:
	movq	%rdx, 24(%rdi)
	movq	8(%rsi), %rcx
	movq	_AE_BAD_DATA@GOTPCREL(%rip), %rax
	cmpq	%r8, 16(%rcx)
	jne	LBB0_19
## %bb.10:
	movq	%r8, 16(%rdi)
	movl	(%rsi), %r9d
	leal	-2(%r9), %edx
	movq	_ACPI_MAX_HANDLES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jle	LBB0_14
## %bb.11:
	movq	_AE_NO_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_13:
	movq	_AE_BAD_DATA@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_14:
	movl	%edx, (%rdi)
	movq	_AE_OK@GOTPCREL(%rip), %r8
	cmpl	$3, %r9d
	jl	LBB0_18
## %bb.15:
	movq	_ACPI_TYPE_LOCAL_REFERENCE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movl	$32, %r10d
	xorl	%r11d, %r11d
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rcx
	movq	(%rcx,%r10), %rcx
	cmpq	%r9, %rcx
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rdi), %rdx
	movl	%ecx, (%rdx,%r11,4)
	incq	%r11
	movslq	(%rdi), %rcx
	addq	$16, %r10
	cmpq	%rcx, %r11
	jl	LBB0_16
LBB0_18:
	movq	%r8, %rax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_ACPI_TYPE_PACKAGE,8,3          ## @ACPI_TYPE_PACKAGE
	.comm	_ACPI_TYPE_LOCAL_REFERENCE,8,3  ## @ACPI_TYPE_LOCAL_REFERENCE
	.comm	_ACPI_TYPE_INTEGER,8,3          ## @ACPI_TYPE_INTEGER
	.comm	_AE_BAD_DATA,4,2                ## @AE_BAD_DATA
	.comm	_ACPI_MAX_HANDLES,4,2           ## @ACPI_MAX_HANDLES
	.comm	_AE_NO_MEMORY,4,2               ## @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ## @AE_OK
	.no_dead_strip	_acpi_bus_extract_wakeup_device_power_package
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_bus_extract_wakeup_device_power_package
_acpi_bus_extract_wakeup_device_power_package: ; @acpi_bus_extract_wakeup_device_power_package
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
	cbz	x0, LBB0_19
; %bb.1:
	cbz	x1, LBB0_19
; %bb.2:
	ldr	w8, [x1]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.3:
	ldr	x8, [x1, #8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x10, [x8]
Lloh2:
	adrp	x9, _ACPI_TYPE_PACKAGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ACPI_TYPE_PACKAGE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_10
; %bb.5:
	cmp	w10, #2
	b.lt	LBB0_14
; %bb.6:
	ldr	x9, [x8, #8]
	ldr	x10, [x9]
Lloh5:
	adrp	x11, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGE
Lloh6:
	ldr	x11, [x11, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_14
; %bb.7:
	ldr	x9, [x9, #16]
Lloh8:
	adrp	x11, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x9, x11
	b.ne	LBB0_14
; %bb.8:
	str	w10, [x0, #32]
	ldr	x8, [x8, #8]
	ldr	x10, [x8, #16]
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ret
LBB0_10:
Lloh14:
	adrp	x8, _ACPI_TYPE_INTEGER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACPI_TYPE_INTEGER@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	mov	x9, x10
	cmp	x10, x8
	b.ne	LBB0_14
LBB0_11:
	str	x10, [x0, #24]
	ldr	x8, [x1, #8]
	ldr	x8, [x8, #16]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	str	x9, [x0, #16]
	ldr	w8, [x1]
	sub	w9, w8, #2
Lloh17:
	adrp	x10, _ACPI_MAX_HANDLES@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ACPI_MAX_HANDLES@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w9, w10
	b.le	LBB0_15
; %bb.13:
Lloh20:
	adrp	x8, _AE_NO_MEMORY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AE_NO_MEMORY@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ret
LBB0_14:
Lloh23:
	adrp	x8, _AE_BAD_DATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AE_BAD_DATA@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ret
LBB0_15:
	str	w9, [x0]
	cmp	w8, #3
	b.lt	LBB0_20
; %bb.16:
	mov	x9, #0
Lloh26:
	adrp	x8, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ACPI_TYPE_LOCAL_REFERENCE@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x8]
	mov	w12, #32
Lloh29:
	adrp	x11, _AE_BAD_DATA@GOTPAGE
Lloh30:
	ldr	x11, [x11, _AE_BAD_DATA@GOTPAGEOFF]
Lloh31:
	adrp	x8, _AE_OK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x1, #8]
	ldr	x13, [x13, x12]
	cmp	x13, x10
	b.ne	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x14, [x0, #8]
	str	w13, [x14, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x13, [x0]
	add	x12, x12, #16
	cmp	x9, x13
	b.lt	LBB0_17
LBB0_19:
	ldr	w0, [x8]
	ret
LBB0_20:
Lloh33:
	adrp	x8, _AE_OK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ret
LBB0_21:
	ldr	w0, [x11]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_ACPI_TYPE_PACKAGE,8,3          ; @ACPI_TYPE_PACKAGE
	.comm	_ACPI_TYPE_LOCAL_REFERENCE,8,3  ; @ACPI_TYPE_LOCAL_REFERENCE
	.comm	_ACPI_TYPE_INTEGER,8,3          ; @ACPI_TYPE_INTEGER
	.comm	_AE_BAD_DATA,4,2                ; @AE_BAD_DATA
	.comm	_ACPI_MAX_HANDLES,4,2           ; @ACPI_MAX_HANDLES
	.comm	_AE_NO_MEMORY,4,2               ; @AE_NO_MEMORY
	.comm	_AE_OK,4,2                      ; @AE_OK
	.no_dead_strip	_acpi_bus_extract_wakeup_device_power_package
.subsections_via_symbols
