	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_dp_phy_probe
_rockchip_dp_phy_probe:                 ## @rockchip_dp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%r12, (%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r14), %rdi
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	16(%r14), %rdi
	movl	$24000000, %esi                 ## imm = 0x16E3600
	callq	_clk_set_rate
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_syscon_node_to_regmap
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rdi
	jmp	LBB0_19
LBB0_10:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_15:
	movq	8(%r14), %rdi
	movq	_GRF_SOC_CON12@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GRF_EDP_REF_CLK_SEL_INTER@GOTPCREL(%rip), %rax
	movq	_GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
LBB0_11:
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_17:
	movq	_rockchip_dp_phy_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_devm_phy_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	jmp	LBB0_19
LBB0_20:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"24m"

L_.str.1:                               ## @.str.1
	.asciz	"cannot get clock 24m\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot set clock phy_24m %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"rk3288-dp needs the General Register Files syscon\n"

	.comm	_GRF_SOC_CON12,4,2              ## @GRF_SOC_CON12
	.comm	_GRF_EDP_REF_CLK_SEL_INTER,4,2  ## @GRF_EDP_REF_CLK_SEL_INTER
	.comm	_GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK,4,2 ## @GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK
L_.str.4:                               ## @.str.4
	.asciz	"Could not config GRF edp ref clk: %d\n"

	.comm	_rockchip_dp_phy_ops,4,2        ## @rockchip_dp_phy_ops
L_.str.5:                               ## @.str.5
	.asciz	"failed to create phy\n"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
	.no_dead_strip	_rockchip_dp_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_dp_phy_probe
_rockchip_dp_phy_probe:                 ; @rockchip_dp_phy_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
	ldr	x21, [x0, #8]
	cbz	x21, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_10
; %bb.4:
	mov	x20, x0
	str	x19, [x0]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #16]
LBB0_6:
	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
	b	_PTR_ERR
LBB0_7:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	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_10:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_11:
	ldr	x0, [x20, #16]
	mov	w1, #13824
	movk	w1, #366, lsl #16
	bl	_clk_set_rate
	tbnz	w0, #31, LBB0_14
; %bb.12:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_syscon_node_to_regmap
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.13:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	b	LBB0_6
LBB0_14:
	mov	x22, x0
	ldr	x0, [x20]
	str	x22, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_15:
	ldr	x0, [x20, #8]
Lloh15:
	adrp	x8, _GRF_SOC_CON12@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GRF_SOC_CON12@GOTPAGEOFF]
Lloh17:
	adrp	x9, _GRF_EDP_REF_CLK_SEL_INTER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GRF_EDP_REF_CLK_SEL_INTER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	ldr	w8, [x9]
Lloh21:
	adrp	x9, _GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_regmap_write
	cbz	w0, LBB0_17
; %bb.16:
	mov	x22, x0
	ldr	x0, [x20]
	str	x22, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_9
LBB0_17:
Lloh26:
	adrp	x2, _rockchip_dp_phy_ops@GOTPAGE
Lloh27:
	ldr	x2, [x2, _rockchip_dp_phy_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.18:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	b	LBB0_6
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh30:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh31:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	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
	b	_PTR_ERR_OR_ZERO
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"24m"

l_.str.1:                               ; @.str.1
	.asciz	"cannot get clock 24m\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot set clock phy_24m %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"rk3288-dp needs the General Register Files syscon\n"

	.comm	_GRF_SOC_CON12,4,2              ; @GRF_SOC_CON12
	.comm	_GRF_EDP_REF_CLK_SEL_INTER,4,2  ; @GRF_EDP_REF_CLK_SEL_INTER
	.comm	_GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK,4,2 ; @GRF_EDP_REF_CLK_SEL_INTER_HIWORD_MASK
l_.str.4:                               ; @.str.4
	.asciz	"Could not config GRF edp ref clk: %d\n"

	.comm	_rockchip_dp_phy_ops,4,2        ; @rockchip_dp_phy_ops
l_.str.5:                               ; @.str.5
	.asciz	"failed to create phy\n"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
	.no_dead_strip	_rockchip_dp_phy_probe
.subsections_via_symbols
