	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __pci_enable_wake
___pci_enable_wake:                     ## @__pci_enable_wake
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_pci_power_manageable
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.1:
	testl	%ebx, %ebx
	setne	%cl
	cmpl	$0, (%r15)
	sete	%dl
	xorb	%cl, %dl
	jne	LBB0_8
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_pci_pme_capable
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %esi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	callq	_pci_pme_active
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_platform_pci_set_wakeup
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_pci_set_wakeup
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_pme_active
	jmp	LBB0_7
LBB0_5:
	callq	_platform_pci_set_wakeup
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movl	%ebx, (%r15)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___pci_enable_wake
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __pci_enable_wake
___pci_enable_wake:                     ; @__pci_enable_wake
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_pci_power_manageable
	cbz	w0, LBB0_9
; %bb.1:
	cmp	w21, #0
	cset	w8, ne
	ldr	w9, [x19]
	cmp	w9, #0
	cset	w9, eq
	eor	w8, w8, w9
	tbz	w8, #0, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	cbz	w21, LBB0_6
; %bb.4:
	mov	x1, x20
	bl	_pci_pme_capable
	mov	w20, #1
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_pci_pme_active
	mov	x0, x19
	mov	w1, #1
	bl	_platform_pci_set_wakeup
	b	LBB0_8
LBB0_6:
	mov	w1, #0
	bl	_platform_pci_set_wakeup
	mov	x0, x19
	mov	w1, #0
	bl	_pci_pme_active
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	w1, #1
	bl	_platform_pci_set_wakeup
	cbnz	w0, LBB0_9
LBB0_8:
	mov	w0, #0
	str	w20, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___pci_enable_wake
.subsections_via_symbols
