	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdn_dp_parse_dt
_cdn_dp_parse_dt:                       ## @cdn_dp_parse_dt
	.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	%rdi, %r15
	movq	80(%rdi), %r14
	movq	(%r14), %rbx
	movq	%r14, %rdi
	callq	_to_platform_device
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 72(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$72, %r15
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_20
LBB0_2:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 64(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	$64, %r15
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_20
LBB0_4:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 56(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	addq	$56, %r15
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_20
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 48(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	addq	$48, %r15
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_20
LBB0_8:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	addq	$40, %r15
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_20
LBB0_10:
	leaq	L_.str.9(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	addq	$32, %r15
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_20
LBB0_12:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 24(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	addq	$24, %r15
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_20
LBB0_14:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	addq	$16, %r15
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_20
LBB0_16:
	leaq	L_.str.14(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	addq	$8, %r15
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_20
LBB0_18:
	leaq	L_.str.16(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.19:
	leaq	L_.str.17(%rip), %rsi
LBB0_20:
	movq	%r14, %rdi
	callq	_DRM_DEV_ERROR
	movq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_21:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rockchip,grf"

L_.str.1:                               ## @.str.1
	.asciz	"cdn-dp needs rockchip,grf property\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"ioremap reg failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"core-clk"

L_.str.4:                               ## @.str.4
	.asciz	"cannot get core_clk_dp\n"

L_.str.5:                               ## @.str.5
	.asciz	"pclk"

L_.str.6:                               ## @.str.6
	.asciz	"cannot get pclk\n"

L_.str.7:                               ## @.str.7
	.asciz	"spdif"

L_.str.8:                               ## @.str.8
	.asciz	"cannot get spdif_clk\n"

L_.str.9:                               ## @.str.9
	.asciz	"grf"

L_.str.10:                              ## @.str.10
	.asciz	"cannot get grf clk\n"

L_.str.11:                              ## @.str.11
	.asciz	"no spdif reset control found\n"

L_.str.12:                              ## @.str.12
	.asciz	"dptx"

L_.str.13:                              ## @.str.13
	.asciz	"no uphy reset control found\n"

L_.str.14:                              ## @.str.14
	.asciz	"core"

L_.str.15:                              ## @.str.15
	.asciz	"no core reset control found\n"

L_.str.16:                              ## @.str.16
	.asciz	"apb"

L_.str.17:                              ## @.str.17
	.asciz	"no apb reset control found\n"

	.no_dead_strip	_cdn_dp_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdn_dp_parse_dt
_cdn_dp_parse_dt:                       ; @cdn_dp_parse_dt
	.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	x20, x0
	ldr	x19, [x0, #80]
	ldr	x22, [x19]
	mov	x0, x19
	bl	_to_platform_device
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_syscon_regmap_lookup_by_phandle
	mov	x22, x20
	str	x0, [x22, #72]!
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_2:
Lloh4:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	mov	x22, x20
	str	x0, [x22, #64]!
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_4:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x20
	str	x0, [x22, #56]!
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_6:
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x20
	str	x0, [x22, #48]!
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_8:
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x20
	str	x0, [x22, #40]!
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_20
LBB0_10:
Lloh21:
	adrp	x1, l_.str.9@PAGE
Lloh22:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x22, x20
	str	x0, [x22, #32]!
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
Lloh23:
	adrp	x1, l_.str.10@PAGE
Lloh24:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_20
LBB0_12:
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	mov	x22, x20
	str	x0, [x22, #24]!
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
Lloh27:
	adrp	x1, l_.str.11@PAGE
Lloh28:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_20
LBB0_14:
Lloh29:
	adrp	x1, l_.str.12@PAGE
Lloh30:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	mov	x22, x20
	str	x0, [x22, #16]!
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh31:
	adrp	x1, l_.str.13@PAGE
Lloh32:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_20
LBB0_16:
Lloh33:
	adrp	x1, l_.str.14@PAGE
Lloh34:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	mov	x22, x20
	str	x0, [x22, #8]!
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
Lloh35:
	adrp	x1, l_.str.15@PAGE
Lloh36:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_20
LBB0_18:
Lloh37:
	adrp	x1, l_.str.16@PAGE
Lloh38:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_21
; %bb.19:
Lloh39:
	adrp	x1, l_.str.17@PAGE
Lloh40:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x22, x20
LBB0_20:
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	x0, [x22]
	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_21:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rockchip,grf"

l_.str.1:                               ; @.str.1
	.asciz	"cdn-dp needs rockchip,grf property\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"ioremap reg failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"core-clk"

l_.str.4:                               ; @.str.4
	.asciz	"cannot get core_clk_dp\n"

l_.str.5:                               ; @.str.5
	.asciz	"pclk"

l_.str.6:                               ; @.str.6
	.asciz	"cannot get pclk\n"

l_.str.7:                               ; @.str.7
	.asciz	"spdif"

l_.str.8:                               ; @.str.8
	.asciz	"cannot get spdif_clk\n"

l_.str.9:                               ; @.str.9
	.asciz	"grf"

l_.str.10:                              ; @.str.10
	.asciz	"cannot get grf clk\n"

l_.str.11:                              ; @.str.11
	.asciz	"no spdif reset control found\n"

l_.str.12:                              ; @.str.12
	.asciz	"dptx"

l_.str.13:                              ; @.str.13
	.asciz	"no uphy reset control found\n"

l_.str.14:                              ; @.str.14
	.asciz	"core"

l_.str.15:                              ; @.str.15
	.asciz	"no core reset control found\n"

l_.str.16:                              ; @.str.16
	.asciz	"apb"

l_.str.17:                              ; @.str.17
	.asciz	"no apb reset control found\n"

	.no_dead_strip	_cdn_dp_parse_dt
.subsections_via_symbols
