	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcom_pcie2_phy_probe
_qcom_pcie2_phy_probe:                  ## @qcom_pcie2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 40(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	32(%r15), %rdi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	movq	%r15, %rdi
	callq	_phy_pipe_clksrc_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	24(%r15), %rdi
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rdi)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_ARRAY_SIZE
	movq	24(%r15), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	16(%r15), %rdi
	jmp	LBB0_4
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get_exclusive
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	8(%r15), %rdi
	jmp	LBB0_4
LBB0_14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get_exclusive
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%r15), %rdi
	jmp	LBB0_4
LBB0_16:
	movl	(%r14), %esi
	movq	_qcom_pcie2_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	callq	_devm_phy_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_18:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_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_20
## %bb.19:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_20:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.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	"failed to register pipe_clk\n"

L_.str.1:                               ## @.str.1
	.asciz	"vdda-vp"

L_.str.2:                               ## @.str.2
	.asciz	"vdda-vph"

L_.str.3:                               ## @.str.3
	.asciz	"failed to acquire pipe clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"phy"

L_.str.5:                               ## @.str.5
	.asciz	"failed to acquire phy reset\n"

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

L_.str.7:                               ## @.str.7
	.asciz	"failed to acquire pipe reset\n"

	.comm	_qcom_pcie2_ops,4,2             ## @qcom_pcie2_ops
L_.str.8:                               ## @.str.8
	.asciz	"failed to create phy\n"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
L_.str.9:                               ## @.str.9
	.asciz	"failed to register phy provider\n"

	.no_dead_strip	_qcom_pcie2_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcom_pcie2_phy_probe
_qcom_pcie2_phy_probe:                  ; @qcom_pcie2_phy_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
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_4
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #40]
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
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #32]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_phy_pipe_clksrc_register
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x0, [x20, #24]
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x0]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x20, #24]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	tbnz	w0, #31, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #16]
	b	LBB0_3
LBB0_11:
	mov	x21, x0
	b	LBB0_7
LBB0_12:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get_exclusive
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	b	LBB0_3
LBB0_14:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get_exclusive
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20]
	b	LBB0_3
LBB0_16:
	ldr	w1, [x19]
Lloh25:
	adrp	x2, _qcom_pcie2_ops@GOTPAGE
Lloh26:
	ldr	x2, [x2, _qcom_pcie2_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	b	LBB0_3
LBB0_18:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh29:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh30:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR_OR_ZERO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.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	"failed to register pipe_clk\n"

l_.str.1:                               ; @.str.1
	.asciz	"vdda-vp"

l_.str.2:                               ; @.str.2
	.asciz	"vdda-vph"

l_.str.3:                               ; @.str.3
	.asciz	"failed to acquire pipe clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"phy"

l_.str.5:                               ; @.str.5
	.asciz	"failed to acquire phy reset\n"

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

l_.str.7:                               ; @.str.7
	.asciz	"failed to acquire pipe reset\n"

	.comm	_qcom_pcie2_ops,4,2             ; @qcom_pcie2_ops
l_.str.8:                               ; @.str.8
	.asciz	"failed to create phy\n"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
l_.str.9:                               ; @.str.9
	.asciz	"failed to register phy provider\n"

	.no_dead_strip	_qcom_pcie2_phy_probe
.subsections_via_symbols
