	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_pcie_pltfm_probe
_iproc_pcie_pltfm_probe:                ## @iproc_pcie_pltfm_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movl	$0, -48(%rbp)
	movq	_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	%r12, %rdi
	movl	$48, %esi
	callq	_devm_pci_alloc_host_bridge
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_pci_host_bridge_priv
	movq	%rax, %r14
	movq	%r12, 40(%rax)
	movq	%r12, %rdi
	callq	_of_device_get_match_data
	movl	%eax, (%r14)
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_of_address_to_resource
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	-40(%rbp), %ebx
	leaq	-40(%rbp), %rdi
	callq	_resource_size
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_devm_pci_remap_cfgspace
	movl	%eax, 32(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	-40(%rbp), %eax
	movl	%eax, 28(%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_9
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_19
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	-44(%rbp), %eax
	movl	%eax, 24(%r14)
	movl	$1, 4(%r14)
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movq	%rax, 16(%r14)
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_phy_optional_get
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	12(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_19
LBB0_12:
	movq	_resources@GOTPCREL(%rip), %rcx
	leaq	-48(%rbp), %r8
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_devm_of_pci_get_host_bridge_resources
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_4
LBB0_14:
	movl	(%r14), %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_16
## %bb.15:
	movq	_of_irq_parse_and_map_pci@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_16:
	movq	_resources@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_iproc_pcie_setup
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_resources@GOTPCREL(%rip), %rdi
	callq	_pci_free_resource_list
	jmp	LBB0_19
LBB0_18:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_resources,4,2                  ## @resources
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to obtain controller resources\n"

L_.str.1:                               ## @.str.1
	.asciz	"unable to map controller registers\n"

L_.str.2:                               ## @.str.2
	.asciz	"brcm,pcie-ob"

L_.str.3:                               ## @.str.3
	.asciz	"brcm,pcie-ob-axi-offset"

L_.str.4:                               ## @.str.4
	.asciz	"missing brcm,pcie-ob-axi-offset property\n"

L_.str.5:                               ## @.str.5
	.asciz	"dma-ranges"

L_.str.6:                               ## @.str.6
	.asciz	"pcie-phy"

L_.str.7:                               ## @.str.7
	.asciz	"unable to get PCI host bridge resources\n"

	.comm	_of_irq_parse_and_map_pci,4,2   ## @of_irq_parse_and_map_pci
L_.str.8:                               ## @.str.8
	.asciz	"PCIe controller setup failed\n"

	.no_dead_strip	_iproc_pcie_pltfm_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_pcie_pltfm_probe
_iproc_pcie_pltfm_probe:                ; @iproc_pcie_pltfm_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0]
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _resources@GOTPAGE
Lloh1:
	ldr	x8, [x8, _resources@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	mov	x0, x19
	mov	w1, #48
	bl	_devm_pci_alloc_host_bridge
	cbz	x0, LBB0_9
; %bb.1:
	bl	_pci_host_bridge_priv
	mov	x20, x0
	str	x19, [x0, #40]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_of_address_to_resource
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w22, [sp, #8]
	add	x0, sp, #8
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_devm_pci_remap_cfgspace
	str	w0, [x20, #32]
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w8, [sp, #8]
	str	w8, [x20, #28]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	cbz	x0, LBB0_12
; %bb.4:
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, sp
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	w0, LBB0_11
; %bb.5:
	mov	x22, x0
Lloh7:
	adrp	x1, l_.str.4@PAGE
Lloh8:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [sp]
	str	w8, [x20, #24]
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_12:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	x0, [x20, #16]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_phy_optional_get
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	w0, [x20, #12]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_10
LBB0_14:
Lloh20:
	adrp	x3, _resources@GOTPAGE
Lloh21:
	ldr	x3, [x3, _resources@GOTPAGEOFF]
	add	x4, sp, #4
	mov	x0, x19
	mov	w1, #0
	mov	w2, #255
	bl	_devm_of_pci_get_host_bridge_resources
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_7
LBB0_16:
	ldr	w8, [x20]
	and	w8, w8, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_18
; %bb.17:
Lloh24:
	adrp	x8, _of_irq_parse_and_map_pci@GOTPAGE
Lloh25:
	ldr	x8, [x8, _of_irq_parse_and_map_pci@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_18:
Lloh27:
	adrp	x1, _resources@GOTPAGE
Lloh28:
	ldr	x1, [x1, _resources@GOTPAGEOFF]
	mov	x0, x20
	bl	_iproc_pcie_setup
	mov	x22, x0
	cbz	w0, LBB0_20
; %bb.19:
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh31:
	adrp	x0, _resources@GOTPAGE
Lloh32:
	ldr	x0, [x0, _resources@GOTPAGEOFF]
	bl	_pci_free_resource_list
	b	LBB0_10
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_resources,4,2                  ; @resources
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to obtain controller resources\n"

l_.str.1:                               ; @.str.1
	.asciz	"unable to map controller registers\n"

l_.str.2:                               ; @.str.2
	.asciz	"brcm,pcie-ob"

l_.str.3:                               ; @.str.3
	.asciz	"brcm,pcie-ob-axi-offset"

l_.str.4:                               ; @.str.4
	.asciz	"missing brcm,pcie-ob-axi-offset property\n"

l_.str.5:                               ; @.str.5
	.asciz	"dma-ranges"

l_.str.6:                               ; @.str.6
	.asciz	"pcie-phy"

l_.str.7:                               ; @.str.7
	.asciz	"unable to get PCI host bridge resources\n"

	.comm	_of_irq_parse_and_map_pci,4,2   ; @of_irq_parse_and_map_pci
l_.str.8:                               ; @.str.8
	.asciz	"PCIe controller setup failed\n"

	.no_dead_strip	_iproc_pcie_pltfm_probe
.subsections_via_symbols
