	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_dev_run_wake               ## -- Begin function pci_dev_run_wake
	.p2align	4, 0x90
_pci_dev_run_wake:                      ## @pci_dev_run_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
	xorl	%r14d, %r14d
	cmpl	$0, 4(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movl	$1, %esi
	callq	_pci_target_state
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_pme_capable
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_device_can_wakeup
	testl	%eax, %eax
	je	LBB0_5
LBB0_3:
	movl	$1, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_9
## %bb.6:
	leaq	8(%rbx), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rdi
	callq	_device_can_wakeup
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r15), %rbx
	leaq	8(%rbx), %r15
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
LBB0_9:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_can_wakeup              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_dev_run_wake               ; -- Begin function pci_dev_run_wake
	.p2align	2
_pci_dev_run_wake:                      ; @pci_dev_run_wake
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	w1, #1
	bl	_pci_target_state
	mov	x1, x0
	mov	x0, x19
	bl	_pci_pme_capable
	cbz	w0, LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_device_can_wakeup
	cbz	w0, LBB0_6
LBB0_3:
	mov	w0, #1
	b	LBB0_10
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x20, #16]
	bl	_device_can_wakeup
	cbnz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x19]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x19, x20
	ldr	x8, [x19, #8]!
	cbnz	x8, LBB0_4
; %bb.7:
	ldr	x0, [x20]
	cbz	x0, LBB0_10
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_device_can_wakeup
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
