	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_mipi_dsi_rockchip_probe
_dw_mipi_dsi_rockchip_probe:            ## @dw_mipi_dsi_rockchip_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, %r12
	movq	(%rdi), %r15
	callq	_of_device_get_match_data
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 64(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	64(%r14), %rdi
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_30
LBB0_4:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.5:
	movq	(%r13), %rax
	cmpq	%rax, %rcx
	je	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$16, %rbx
	cmpq	%rax, %rcx
	jne	LBB0_7
LBB0_9:
	movq	%rbx, 56(%r14)
LBB0_10:
	cmpq	$0, 56(%r14)
	je	LBB0_11
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_16:
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_30:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_17:
	movq	56(%r14), %rax
	movl	8(%rax), %eax
	movq	_DW_MIPI_NEEDS_PHY_CFG_CLK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.18:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 96(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.31:
	movq	96(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_16
LBB0_19:
	movq	56(%r14), %rax
	movl	8(%rax), %eax
LBB0_20:
	movq	_DW_MIPI_NEEDS_GRF_CLK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.21:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, 88(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movq	88(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_16
LBB0_23:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 80(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	movq	72(%r14), %rdi
	leaq	L_.str.9(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	80(%r14), %rdi
	jmp	LBB0_13
LBB0_25:
	movq	%r12, 72(%r14)
	movq	56(%r14), %rax
	movq	64(%r14), %rcx
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rcx, 48(%r14)
	movl	12(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_dw_mipi_dsi_rockchip_phy_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	_dw_mipi_dsi_rockchip_host_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	%r14, 16(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_dw_mipi_dsi_probe
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	je	LBB0_29
## %bb.28:
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_29:
	movq	(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_30
LBB0_26:
	xorl	%ebx, %ebx
	jmp	LBB0_30
	.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	"Unable to get dsi registers\n"

L_.str.1:                               ## @.str.1
	.asciz	"no dsi-config for %s node\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"ref"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to get pll reference clock: %d\n"

	.comm	_DW_MIPI_NEEDS_PHY_CFG_CLK,4,2  ## @DW_MIPI_NEEDS_PHY_CFG_CLK
L_.str.4:                               ## @.str.4
	.asciz	"phy_cfg"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to get phy_cfg_clk: %d\n"

	.comm	_DW_MIPI_NEEDS_GRF_CLK,4,2      ## @DW_MIPI_NEEDS_GRF_CLK
L_.str.6:                               ## @.str.6
	.asciz	"grf"

L_.str.7:                               ## @.str.7
	.asciz	"Unable to get grf_clk: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"rockchip,grf"

L_.str.9:                               ## @.str.9
	.asciz	"Unable to get rockchip,grf\n"

	.comm	_dw_mipi_dsi_rockchip_phy_ops,4,2 ## @dw_mipi_dsi_rockchip_phy_ops
	.comm	_dw_mipi_dsi_rockchip_host_ops,4,2 ## @dw_mipi_dsi_rockchip_host_ops
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.10:                              ## @.str.10
	.asciz	"Failed to probe dw_mipi_dsi: %d\n"

	.no_dead_strip	_dw_mipi_dsi_rockchip_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_mipi_dsi_rockchip_probe
_dw_mipi_dsi_rockchip_probe:            ; @dw_mipi_dsi_rockchip_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0]
	bl	_of_device_get_match_data
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
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	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_devm_ioremap_resource
	str	x0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	x0, [x20, #64]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	ldr	x9, [x22]
	cbz	x9, LBB0_12
; %bb.8:
	ldr	x8, [x23]
	cmp	x9, x8
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #16]
	cbz	x9, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #16
	cmp	x9, x8
	b.ne	LBB0_9
LBB0_11:
	str	x22, [x20, #56]
LBB0_12:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_15
; %bb.13:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
	ldr	x0, [x20]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	b	LBB0_6
LBB0_15:
	ldr	w2, [x21]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_16:
	ldr	x8, [x20, #56]
	ldr	w8, [x8, #8]
Lloh18:
	adrp	x9, _DW_MIPI_NEEDS_PHY_CFG_CLK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DW_MIPI_NEEDS_PHY_CFG_CLK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.17:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x0, [x20, #96]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_23
LBB0_19:
	ldr	x8, [x20, #56]
	ldr	w8, [x8, #8]
LBB0_20:
Lloh25:
	adrp	x9, _DW_MIPI_NEEDS_GRF_CLK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DW_MIPI_NEEDS_GRF_CLK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.21:
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_24
; %bb.22:
	ldr	x0, [x20, #88]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_23:
	mov	x0, x19
	bl	_DRM_DEV_ERROR
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_6
LBB0_24:
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_26
; %bb.25:
	ldr	x0, [x20, #72]
Lloh34:
	adrp	x1, l_.str.9@PAGE
Lloh35:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_DRM_DEV_ERROR
	ldr	x0, [x20, #80]
	b	LBB0_3
LBB0_26:
	str	x19, [x20, #72]
	add	x21, x20, #16
	ldp	x9, x8, [x20, #56]
	str	x8, [x20, #48]
	ldr	w8, [x9, #12]
Lloh36:
	adrp	x9, _dw_mipi_dsi_rockchip_phy_ops@GOTPAGE
Lloh37:
	ldr	x9, [x9, _dw_mipi_dsi_rockchip_phy_ops@GOTPAGEOFF]
	str	w8, [x20, #40]
	str	x9, [x20, #32]
Lloh38:
	adrp	x8, _dw_mipi_dsi_rockchip_host_ops@GOTPAGE
Lloh39:
	ldr	x8, [x8, _dw_mipi_dsi_rockchip_host_ops@GOTPAGEOFF]
	stp	x20, x8, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x21
	bl	_dw_mipi_dsi_probe
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_30
; %bb.27:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x21, x0
Lloh40:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_29
; %bb.28:
	mov	x8, x21
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str.10@PAGE
Lloh44:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
LBB0_29:
	ldr	x0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_6
LBB0_30:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.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	"Unable to get dsi registers\n"

l_.str.1:                               ; @.str.1
	.asciz	"no dsi-config for %s node\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"ref"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to get pll reference clock: %d\n"

	.comm	_DW_MIPI_NEEDS_PHY_CFG_CLK,4,2  ; @DW_MIPI_NEEDS_PHY_CFG_CLK
l_.str.4:                               ; @.str.4
	.asciz	"phy_cfg"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to get phy_cfg_clk: %d\n"

	.comm	_DW_MIPI_NEEDS_GRF_CLK,4,2      ; @DW_MIPI_NEEDS_GRF_CLK
l_.str.6:                               ; @.str.6
	.asciz	"grf"

l_.str.7:                               ; @.str.7
	.asciz	"Unable to get grf_clk: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"rockchip,grf"

l_.str.9:                               ; @.str.9
	.asciz	"Unable to get rockchip,grf\n"

	.comm	_dw_mipi_dsi_rockchip_phy_ops,4,2 ; @dw_mipi_dsi_rockchip_phy_ops
	.comm	_dw_mipi_dsi_rockchip_host_ops,4,2 ; @dw_mipi_dsi_rockchip_host_ops
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.10:                              ; @.str.10
	.asciz	"Failed to probe dw_mipi_dsi: %d\n"

	.no_dead_strip	_dw_mipi_dsi_rockchip_probe
.subsections_via_symbols
