	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_create_device_link
_pci_create_device_link:                ## @pci_create_device_link
	.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	%r8d, %r12d
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r13
	movl	8(%rdi), %edi
	callq	_PCI_FUNC
	cmpl	%ebx, %eax
	jne	LBB0_8
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	16(%r13), %rdi
	callq	_pci_domain_nr
	movl	%eax, %ebx
	movq	16(%r13), %rax
	movl	(%rax), %r15d
	movl	8(%r13), %edi
	callq	_PCI_SLOT
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_PCI_DEVFN
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_pci_get_domain_bus_and_slot
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	(%r14), %eax
	movl	%r12d, %ecx
	shrl	%cl, %eax
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.3:
	leaq	4(%r13), %r15
	movq	%r14, %rsi
	addq	$4, %rsi
	movq	_DL_FLAG_STATELESS@GOTPCREL(%rip), %rax
	movq	_DL_FLAG_PM_RUNTIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_device_link_add
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_pci_name
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_pci_info
	jmp	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_pci_err
LBB0_6:
	movq	%r15, %rdi
	callq	_pm_runtime_allow
LBB0_7:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pci_dev_put                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DL_FLAG_STATELESS,4,2          ## @DL_FLAG_STATELESS
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ## @DL_FLAG_PM_RUNTIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"D0 power state depends on %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot enforce power dependency on %s\n"

	.no_dead_strip	_pci_create_device_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_create_device_link
_pci_create_device_link:                ; @pci_create_device_link
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_PCI_FUNC
	cmp	w0, w23
	b.ne	LBB0_5
; %bb.1:
	ldr	x0, [x19, #16]
	bl	_pci_domain_nr
	mov	x23, x0
	ldr	x8, [x19, #16]
	ldr	w24, [x8]
	ldr	w0, [x19, #8]
	bl	_PCI_SLOT
	mov	x1, x20
	bl	_PCI_DEVFN
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_pci_get_domain_bus_and_slot
	mov	x20, x0
	cbz	x0, LBB0_8
; %bb.2:
	ldr	w8, [x20]
	lsr	w8, w8, w22
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.3:
	add	x21, x19, #4
Lloh0:
	adrp	x8, _DL_FLAG_STATELESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DL_FLAG_STATELESS@GOTPAGEOFF]
	add	x1, x20, #4
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DL_FLAG_PM_RUNTIME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DL_FLAG_PM_RUNTIME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_device_link_add
	mov	x22, x0
	mov	x0, x20
	bl	_pci_name
	mov	x2, x0
	cbz	x22, LBB0_6
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_pci_info
	b	LBB0_7
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pci_err
LBB0_7:
	mov	x0, x21
	bl	_pm_runtime_allow
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pci_dev_put
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DL_FLAG_STATELESS,4,2          ; @DL_FLAG_STATELESS
	.comm	_DL_FLAG_PM_RUNTIME,4,2         ; @DL_FLAG_PM_RUNTIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"D0 power state depends on %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot enforce power dependency on %s\n"

	.no_dead_strip	_pci_create_device_link
.subsections_via_symbols
