	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_lvds_probe
_rockchip_lvds_probe:                   ## @rockchip_lvds_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
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%r15, 16(%rax)
	movq	_rockchip_lvds_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 24(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	24(%r14), %edi
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movl	(%r14), %edi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	movq	16(%r14), %rdi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	movq	16(%r14), %rdi
	callq	_devm_pinctrl_get
	movq	8(%r14), %rcx
	movl	%eax, 4(%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_16
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_pinctrl_lookup_state
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	L_.str.4(%rip), %rsi
LBB0_16:
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movq	8(%r14), %rsi
	movq	16(%r14), %rdi
	callq	_devm_kfree
	movq	$0, 8(%r14)
LBB0_17:
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movl	4(%r14), %edi
	jmp	LBB0_8
LBB0_19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	movl	(%r14), %edi
	callq	_clk_prepare
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movq	_rockchip_lvds_component_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_component_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_23
## %bb.22:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	movl	(%r14), %edi
	callq	_clk_unprepare
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_DRM_DEV_ERROR
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_rockchip_lvds_dt_ids,4,2       ## @rockchip_lvds_dt_ids
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pclk_lvds"

L_.str.1:                               ## @.str.1
	.asciz	"could not get pclk_lvds\n"

L_.str.2:                               ## @.str.2
	.asciz	"no pinctrl handle\n"

L_.str.3:                               ## @.str.3
	.asciz	"lcdc"

L_.str.4:                               ## @.str.4
	.asciz	"no default pinctrl state\n"

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

L_.str.6:                               ## @.str.6
	.asciz	"missing rockchip,grf property\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to prepare pclk_lvds\n"

	.comm	_rockchip_lvds_component_ops,4,2 ## @rockchip_lvds_component_ops
L_.str.8:                               ## @.str.8
	.asciz	"failed to add component\n"

	.no_dead_strip	_rockchip_lvds_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_lvds_probe
_rockchip_lvds_probe:                   ; @rockchip_lvds_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
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #16]
Lloh2:
	adrp	x8, _rockchip_lvds_dt_ids@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rockchip_lvds_dt_ids@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_of_match_node
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x0]
	str	w8, [x20, #28]
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x20, #24]
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	w0, [x20]
LBB0_8:
	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_9:
	ldr	x0, [x20, #16]
	ldr	w2, [x21]
	mov	w1, #8
	bl	_devm_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x20, #16]
	bl	_devm_pinctrl_get
	ldr	x8, [x20, #8]
	str	w0, [x8, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.11:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_12:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	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_15:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_pinctrl_lookup_state
	ldr	x8, [x20, #8]
	str	w0, [x8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.16:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldp	x1, x0, [x20, #8]
	bl	_devm_kfree
	str	xzr, [x20, #8]
LBB0_18:
	ldr	w0, [x19]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	w0, [x20, #4]
	b	LBB0_8
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	ldr	w0, [x20]
	bl	_clk_prepare
	tbnz	w0, #31, LBB0_23
; %bb.21:
Lloh26:
	adrp	x1, _rockchip_lvds_component_ops@GOTPAGE
Lloh27:
	ldr	x1, [x1, _rockchip_lvds_component_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_component_add
	mov	x21, x0
	tbz	w0, #31, LBB0_14
; %bb.22:
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	ldr	w0, [x20]
	bl	_clk_unprepare
	b	LBB0_14
LBB0_23:
	mov	x21, x0
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_DRM_DEV_ERROR
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_rockchip_lvds_dt_ids,4,2       ; @rockchip_lvds_dt_ids
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pclk_lvds"

l_.str.1:                               ; @.str.1
	.asciz	"could not get pclk_lvds\n"

l_.str.2:                               ; @.str.2
	.asciz	"no pinctrl handle\n"

l_.str.3:                               ; @.str.3
	.asciz	"lcdc"

l_.str.4:                               ; @.str.4
	.asciz	"no default pinctrl state\n"

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

l_.str.6:                               ; @.str.6
	.asciz	"missing rockchip,grf property\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to prepare pclk_lvds\n"

	.comm	_rockchip_lvds_component_ops,4,2 ; @rockchip_lvds_component_ops
l_.str.8:                               ; @.str.8
	.asciz	"failed to add component\n"

	.no_dead_strip	_rockchip_lvds_probe
.subsections_via_symbols
