	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcie_portdrv_probe
_pcie_portdrv_probe:                    ## @pcie_portdrv_probe
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_pci_is_pcie
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_ROOT_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_UPSTREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_pci_pcie_type
	movq	_PCI_EXP_TYPE_DOWNSTREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_pcie_port_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_pci_save_state
	movq	_DPM_FLAG_NEVER_SKIP@GOTPCREL(%rip), %rax
	movq	_DPM_FLAG_SMART_SUSPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dev_pm_set_driver_flags
	movq	%r14, %rdi
	callq	_pci_bridge_d3_possible
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	movl	$100, %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_allow
	jmp	LBB0_8
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXP_TYPE_ROOT_PORT,8,3     ## @PCI_EXP_TYPE_ROOT_PORT
	.comm	_PCI_EXP_TYPE_UPSTREAM,8,3      ## @PCI_EXP_TYPE_UPSTREAM
	.comm	_PCI_EXP_TYPE_DOWNSTREAM,8,3    ## @PCI_EXP_TYPE_DOWNSTREAM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DPM_FLAG_NEVER_SKIP,4,2        ## @DPM_FLAG_NEVER_SKIP
	.comm	_DPM_FLAG_SMART_SUSPEND,4,2     ## @DPM_FLAG_SMART_SUSPEND
	.no_dead_strip	_pcie_portdrv_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcie_portdrv_probe
_pcie_portdrv_probe:                    ; @pcie_portdrv_probe
	.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
	mov	x19, x0
	bl	_pci_is_pcie
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_pci_pcie_type
Lloh0:
	adrp	x8, _PCI_EXP_TYPE_ROOT_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXP_TYPE_ROOT_PORT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_pci_pcie_type
Lloh3:
	adrp	x8, _PCI_EXP_TYPE_UPSTREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_EXP_TYPE_UPSTREAM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_pci_pcie_type
Lloh6:
	adrp	x8, _PCI_EXP_TYPE_DOWNSTREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_EXP_TYPE_DOWNSTREAM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_pcie_port_device_register
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_pci_save_state
Lloh9:
	adrp	x8, _DPM_FLAG_NEVER_SKIP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPM_FLAG_NEVER_SKIP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _DPM_FLAG_SMART_SUSPEND@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DPM_FLAG_SMART_SUSPEND@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_dev_pm_set_driver_flags
	mov	x0, x19
	bl	_pci_bridge_d3_possible
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	w1, #100
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
	mov	x0, x19
	bl	_pm_runtime_allow
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXP_TYPE_ROOT_PORT,8,3     ; @PCI_EXP_TYPE_ROOT_PORT
	.comm	_PCI_EXP_TYPE_UPSTREAM,8,3      ; @PCI_EXP_TYPE_UPSTREAM
	.comm	_PCI_EXP_TYPE_DOWNSTREAM,8,3    ; @PCI_EXP_TYPE_DOWNSTREAM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DPM_FLAG_NEVER_SKIP,4,2        ; @DPM_FLAG_NEVER_SKIP
	.comm	_DPM_FLAG_SMART_SUSPEND,4,2     ; @DPM_FLAG_SMART_SUSPEND
	.no_dead_strip	_pcie_portdrv_probe
.subsections_via_symbols
