	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdns_pcie_host_probe
_cdns_pcie_host_probe:                  ## @cdns_pcie_host_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	%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
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movl	$80, %esi
	callq	_devm_pci_alloc_host_bridge
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_pci_host_bridge_priv
	movq	%rax, %r12
	movq	%r14, 72(%rax)
	movl	$1, 32(%rax)
	movl	$32, (%rax)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_of_property_read_u32
	leaq	4(%r12), %rdx
	movl	$32, 4(%r12)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	leaq	8(%r12), %rdx
	movl	$65535, 8(%r12)                 ## imm = 0xFFFF
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u16
	leaq	12(%r12), %rdx
	movl	$65535, 12(%r12)                ## imm = 0xFFFF
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_u16
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 64(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	64(%r12), %edi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_21:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r13), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_pci_remap_cfg_resource
	movl	%eax, 24(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	24(%r12), %edi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	%rbx, 16(%r12)
	movl	(%r13), %esi
	leaq	L_.str.8(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%r12, %rbx
	addq	$32, %rbx
	movq	%rax, 56(%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cdns_pcie_init_phy
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r13d
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_21
LBB0_9:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_cdns_pcie_host_init
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_15
LBB0_17:
	movq	%r14, %rdi
	callq	_pm_runtime_put_sync
	jmp	LBB0_18
LBB0_13:
	movl	%eax, %r13d
	leaq	L_.str.11(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_18:
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%rbx, %rdi
	callq	_cdns_pcie_disable_phy
	movslq	36(%r12), %r14
	testq	%r14, %r14
	je	LBB0_21
## %bb.19:
	movq	%r14, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_device_link_del
	decq	%rbx
	decl	%r14d
	jne	LBB0_20
	jmp	LBB0_21
LBB0_15:
	movq	%r15, %rsi
	addq	$32, %rsi
	leaq	-48(%rbp), %rdi
	callq	_list_splice_init
	movq	%r14, 24(%r15)
	movl	48(%r12), %eax
	movl	%eax, 16(%r15)
	movq	_cdns_pcie_host_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_of_irq_parse_and_map_pci@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	_pci_common_swizzle@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_pci_host_probe
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_21
## %bb.16:
	movl	%eax, %r15d
	leaq	-48(%rbp), %rdi
	callq	_pci_free_resource_list
	movl	%r15d, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cdns,max-outbound-regions"

L_.str.1:                               ## @.str.1
	.asciz	"cdns,no-bar-match-nbits"

L_.str.2:                               ## @.str.2
	.asciz	"vendor-id"

L_.str.3:                               ## @.str.3
	.asciz	"device-id"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.4:                               ## @.str.4
	.asciz	"reg"

L_.str.5:                               ## @.str.5
	.asciz	"missing \"reg\"\n"

L_.str.6:                               ## @.str.6
	.asciz	"cfg"

L_.str.7:                               ## @.str.7
	.asciz	"missing \"cfg\"\n"

L_.str.8:                               ## @.str.8
	.asciz	"mem"

L_.str.9:                               ## @.str.9
	.asciz	"missing \"mem\"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.10:                              ## @.str.10
	.asciz	"failed to init phy\n"

L_.str.11:                              ## @.str.11
	.asciz	"pm_runtime_get_sync() failed\n"

	.comm	_cdns_pcie_host_ops,4,2         ## @cdns_pcie_host_ops
	.comm	_of_irq_parse_and_map_pci,4,2   ## @of_irq_parse_and_map_pci
	.comm	_pci_common_swizzle,4,2         ## @pci_common_swizzle
	.no_dead_strip	_cdns_pcie_host_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdns_pcie_host_probe
_cdns_pcie_host_probe:                  ; @cdns_pcie_host_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x23, [x0]
	mov	w1, #80
	bl	_devm_pci_alloc_host_bridge
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	bl	_pci_host_bridge_priv
	mov	x19, x0
	str	x20, [x0, #72]
	mov	w8, #1
	mov	x21, x0
	str	w8, [x21, #32]!
	mov	w24, #32
	str	w24, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x19
	bl	_of_property_read_u32
	mov	x2, x19
	str	w24, [x2, #4]!
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_u32
	mov	w24, #65535
	mov	x2, x19
	str	w24, [x2, #8]!
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_u16
	mov	x2, x19
	str	w24, [x2, #12]!
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_of_property_read_u16
Lloh8:
	adrp	x24, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x24, [x24, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh10:
	adrp	x2, l_.str.4@PAGE
Lloh11:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #64]
	b	LBB0_8
LBB0_3:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w1, [x24]
Lloh16:
	adrp	x2, l_.str.6@PAGE
Lloh17:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	mov	x23, x0
	mov	x0, x20
	mov	x1, x23
	bl	_devm_pci_remap_cfg_resource
	str	w0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
Lloh18:
	adrp	x1, l_.str.7@PAGE
Lloh19:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #24]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_9:
	str	x23, [x19, #16]
	ldr	w1, [x24]
Lloh20:
	adrp	x2, l_.str.8@PAGE
Lloh21:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_12
; %bb.10:
	str	x0, [x19, #56]
	mov	x0, x20
	mov	x1, x21
	bl	_cdns_pcie_init_phy
	cbz	w0, LBB0_13
; %bb.11:
	mov	x23, x0
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_5
LBB0_12:
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_pm_runtime_enable
	mov	x0, x20
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_16
; %bb.14:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_cdns_pcie_host_init
	mov	x23, x0
	cbz	w0, LBB0_20
LBB0_15:
	mov	x0, x20
	bl	_pm_runtime_put_sync
	b	LBB0_17
LBB0_16:
	mov	x23, x0
Lloh28:
	adrp	x1, l_.str.11@PAGE
Lloh29:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_17:
	mov	x0, x20
	bl	_pm_runtime_disable
	mov	x0, x21
	bl	_cdns_pcie_disable_phy
	ldr	w20, [x19, #36]
	cbz	w20, LBB0_5
; %bb.18:
	sxtw	x8, w20
	lsl	x8, x8, #2
	sub	x21, x8, #4
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	ldr	w0, [x8, x21]
	bl	_device_link_del
	sub	x21, x21, #4
	sub	w20, w20, #1
	cbnz	w20, LBB0_19
	b	LBB0_5
LBB0_20:
	add	x1, x22, #32
	add	x0, sp, #8
	bl	_list_splice_init
	str	x20, [x22, #24]
	ldr	w8, [x19, #48]
	str	w8, [x22, #16]
Lloh30:
	adrp	x8, _cdns_pcie_host_ops@GOTPAGE
Lloh31:
	ldr	x8, [x8, _cdns_pcie_host_ops@GOTPAGEOFF]
	str	x8, [x22, #8]
Lloh32:
	adrp	x8, _of_irq_parse_and_map_pci@GOTPAGE
Lloh33:
	ldr	x8, [x8, _of_irq_parse_and_map_pci@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _pci_common_swizzle@GOTPAGE
Lloh36:
	ldr	x9, [x9, _pci_common_swizzle@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	stp	w9, w8, [x22]
	mov	x0, x22
	bl	_pci_host_probe
	tbnz	w0, #31, LBB0_22
; %bb.21:
	mov	w23, #0
	b	LBB0_5
LBB0_22:
	mov	x23, x0
	add	x0, sp, #8
	bl	_pci_free_resource_list
	b	LBB0_15
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cdns,max-outbound-regions"

l_.str.1:                               ; @.str.1
	.asciz	"cdns,no-bar-match-nbits"

l_.str.2:                               ; @.str.2
	.asciz	"vendor-id"

l_.str.3:                               ; @.str.3
	.asciz	"device-id"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.4:                               ; @.str.4
	.asciz	"reg"

l_.str.5:                               ; @.str.5
	.asciz	"missing \"reg\"\n"

l_.str.6:                               ; @.str.6
	.asciz	"cfg"

l_.str.7:                               ; @.str.7
	.asciz	"missing \"cfg\"\n"

l_.str.8:                               ; @.str.8
	.asciz	"mem"

l_.str.9:                               ; @.str.9
	.asciz	"missing \"mem\"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.10:                              ; @.str.10
	.asciz	"failed to init phy\n"

l_.str.11:                              ; @.str.11
	.asciz	"pm_runtime_get_sync() failed\n"

	.comm	_cdns_pcie_host_ops,4,2         ; @cdns_pcie_host_ops
	.comm	_of_irq_parse_and_map_pci,4,2   ; @of_irq_parse_and_map_pci
	.comm	_pci_common_swizzle,4,2         ; @pci_common_swizzle
	.no_dead_strip	_cdns_pcie_host_probe
.subsections_via_symbols
