	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sr_pcie_phy_probe
_sr_pcie_phy_probe:                     ## @sr_pcie_phy_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), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	16(%rbx), %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	40(%rbx), %rdi
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_4:
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	16(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%rbx), %rdi
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	16(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%rbx), %rdi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	movq	%rbx, %rdi
	callq	_pipemux_strap_read
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_pipemux_strap_is_valid
	testl	%eax, %eax
	je	LBB0_20
## %bb.12:
	movq	_SR_NR_PCIE_PHYS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_18
## %bb.13:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_SR_PAXC_PHY_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_sr_pcie_phy_ops@GOTPCREL(%rip), %rdx
	cmpq	%rax, %r12
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_sr_paxc_phy_ops@GOTPCREL(%rip), %rdx
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	(%rbx), %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, 8(%r13,%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%r15,%r13), %rsi
	movq	%rbx, 16(%r13,%r15)
	movl	%r12d, (%r13,%r15)
	movq	8(%r13,%r15), %rdi
	callq	_phy_set_drvdata
	incq	%r12
	movq	_SR_NR_PCIE_PHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %r15
	cmpq	%rax, %r12
	jb	LBB0_14
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	_sr_pcie_phy_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	jmp	LBB0_10
LBB0_20:
	movq	16(%rbx), %rdi
	movl	8(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_21:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r13,%r15), %rdi
	jmp	LBB0_10
LBB0_22:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"brcm,sr-cdru"

L_.str.1:                               ## @.str.1
	.asciz	"unable to find CDRU device\n"

L_.str.2:                               ## @.str.2
	.asciz	"brcm,sr-mhb"

L_.str.3:                               ## @.str.3
	.asciz	"unable to find MHB device\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid PCIe PIPEMUX strap %u\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_SR_NR_PCIE_PHYS,4,2            ## @SR_NR_PCIE_PHYS
	.comm	_SR_PAXC_PHY_IDX,4,2            ## @SR_PAXC_PHY_IDX
	.comm	_sr_paxc_phy_ops,4,2            ## @sr_paxc_phy_ops
	.comm	_sr_pcie_phy_ops,4,2            ## @sr_pcie_phy_ops
L_.str.5:                               ## @.str.5
	.asciz	"failed to create PCIe PHY\n"

	.comm	_sr_pcie_phy_xlate,4,2          ## @sr_pcie_phy_xlate
L_.str.6:                               ## @.str.6
	.asciz	"failed to register PHY provider\n"

L_.str.7:                               ## @.str.7
	.asciz	"Stingray PCIe PHY driver initialized\n"

	.no_dead_strip	_sr_pcie_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sr_pcie_phy_probe
_sr_pcie_phy_probe:                     ; @sr_pcie_phy_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #16]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	ldr	x0, [x20, #16]
	bl	_devm_ioremap_resource
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20, #40]
	b	LBB0_10
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #16]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	x0, [x20, #32]
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x0, [x20, #16]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	x0, [x20, #24]
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_11:
	mov	x0, x20
	bl	_pipemux_strap_read
	str	w0, [x20, #8]
	bl	_pipemux_strap_is_valid
	cbz	w0, LBB0_18
; %bb.12:
Lloh16:
	adrp	x22, _SR_NR_PCIE_PHYS@GOTPAGE
Lloh17:
	ldr	x22, [x22, _SR_NR_PCIE_PHYS@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_16
; %bb.13:
	mov	x23, #0
	mov	x24, #0
Lloh18:
	adrp	x25, _SR_PAXC_PHY_IDX@GOTPAGE
Lloh19:
	ldr	x25, [x25, _SR_PAXC_PHY_IDX@GOTPAGEOFF]
Lloh20:
	adrp	x26, _sr_pcie_phy_ops@GOTPAGE
Lloh21:
	ldr	x26, [x26, _sr_pcie_phy_ops@GOTPAGEOFF]
Lloh22:
	adrp	x27, _sr_paxc_phy_ops@GOTPAGE
Lloh23:
	ldr	x27, [x27, _sr_paxc_phy_ops@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x20]
	ldr	w8, [x25]
	cmp	x24, x8
	csel	x2, x27, x26, eq
	mov	x0, x19
	mov	x1, #0
	bl	_devm_phy_create
	add	x21, x21, x23
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbnz	x0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	str	x20, [x21, #16]
	str	w24, [x21]
	ldr	x0, [x21, #8]
	mov	x1, x21
	bl	_phy_set_drvdata
	add	x24, x24, #1
	ldr	w8, [x22]
	add	x23, x23, #24
	cmp	x24, x8
	b.lo	LBB0_14
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh24:
	adrp	x8, _sr_pcie_phy_xlate@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sr_pcie_phy_xlate@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.17:
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	b	LBB0_10
LBB0_18:
	ldr	x0, [x20, #16]
	ldr	w8, [x20, #8]
	str	x8, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_4
LBB0_19:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #8]
	b	LBB0_10
LBB0_20:
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"brcm,sr-cdru"

l_.str.1:                               ; @.str.1
	.asciz	"unable to find CDRU device\n"

l_.str.2:                               ; @.str.2
	.asciz	"brcm,sr-mhb"

l_.str.3:                               ; @.str.3
	.asciz	"unable to find MHB device\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid PCIe PIPEMUX strap %u\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SR_NR_PCIE_PHYS,4,2            ; @SR_NR_PCIE_PHYS
	.comm	_SR_PAXC_PHY_IDX,4,2            ; @SR_PAXC_PHY_IDX
	.comm	_sr_paxc_phy_ops,4,2            ; @sr_paxc_phy_ops
	.comm	_sr_pcie_phy_ops,4,2            ; @sr_pcie_phy_ops
l_.str.5:                               ; @.str.5
	.asciz	"failed to create PCIe PHY\n"

	.comm	_sr_pcie_phy_xlate,4,2          ; @sr_pcie_phy_xlate
l_.str.6:                               ; @.str.6
	.asciz	"failed to register PHY provider\n"

l_.str.7:                               ; @.str.7
	.asciz	"Stingray PCIe PHY driver initialized\n"

	.no_dead_strip	_sr_pcie_phy_probe
.subsections_via_symbols
