	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dpi_probe
_mtk_dpi_probe:                         ## @mtk_dpi_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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 56(%rax)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 48(%rbx)
	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, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	40(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_23
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	32(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_22:
	callq	_dev_err
LBB0_23:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jle	LBB0_12
## %bb.13:
	movl	(%r14), %edi
	leaq	8(%rbx), %r12
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_drm_of_find_panel_or_bridge
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_23
## %bb.14:
	movq	(%r12), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	(%r14), %edi
	movq	_MTK_DPI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtk_ddp_comp_get_id
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	(%r14), %esi
	movq	%rbx, %rdx
	addq	$4, %rdx
	movq	_mtk_dpi_funcs@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_mtk_ddp_comp_init
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_21
LBB0_12:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_23
LBB0_15:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_21
LBB0_18:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	_mtk_dpi_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_add
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	movl	%eax, %r15d
	leaq	L_.str.11(%rip), %rsi
LBB0_21:
	movq	%r14, %rdi
	movl	%r15d, %edx
	jmp	LBB0_22
LBB0_19:
	xorl	%r15d, %r15d
	jmp	LBB0_23
	.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 ioremap mem resource: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"engine"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get engine clock: %d\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get pixel clock: %d\n"

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

L_.str.6:                               ## @.str.6
	.asciz	"Failed to get tvdpll clock: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to get irq: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.8:                               ## @.str.8
	.asciz	"Found bridge node: %pOF\n"

	.comm	_MTK_DPI,4,2                    ## @MTK_DPI
L_.str.9:                               ## @.str.9
	.asciz	"Failed to identify by alias: %d\n"

	.comm	_mtk_dpi_funcs,4,2              ## @mtk_dpi_funcs
L_.str.10:                              ## @.str.10
	.asciz	"Failed to initialize component: %d\n"

	.comm	_mtk_dpi_component_ops,4,2      ## @mtk_dpi_component_ops
L_.str.11:                              ## @.str.11
	.asciz	"Failed to add component: %d\n"

	.no_dead_strip	_mtk_dpi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dpi_probe
_mtk_dpi_probe:                         ; @mtk_dpi_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, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #56]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x20, #48]
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, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.10:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x21, x0
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_12:
	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_13:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	w0, [x20]
	cmp	w0, #0
	b.le	LBB0_18
; %bb.14:
	ldr	w0, [x19]
	add	x22, x20, #8
	mov	w1, #0
	mov	w2, #0
	mov	x3, #0
	mov	x4, x22
	bl	_drm_of_find_panel_or_bridge
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.15:
	ldr	x8, [x22]
	ldr	w2, [x8]
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w0, [x19]
Lloh24:
	adrp	x8, _MTK_DPI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MTK_DPI@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_mtk_ddp_comp_get_id
	mov	x21, x0
	tbnz	w0, #31, LBB0_19
; %bb.16:
	ldr	w1, [x19]
	add	x2, x20, #4
Lloh27:
	adrp	x4, _mtk_dpi_funcs@GOTPAGE
Lloh28:
	ldr	x4, [x4, _mtk_dpi_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x21
	bl	_mtk_ddp_comp_init
	cbz	w0, LBB0_20
; %bb.17:
	mov	x21, x0
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_11
LBB0_18:
	mov	x2, x0
Lloh31:
	adrp	x1, l_.str.7@PAGE
Lloh32:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_19:
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_11
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh37:
	adrp	x1, _mtk_dpi_component_ops@GOTPAGE
Lloh38:
	ldr	x1, [x1, _mtk_dpi_component_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_component_add
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.21:
Lloh39:
	adrp	x1, l_.str.11@PAGE
Lloh40:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_11
	.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 AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.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 ioremap mem resource: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"engine"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get engine clock: %d\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get pixel clock: %d\n"

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

l_.str.6:                               ; @.str.6
	.asciz	"Failed to get tvdpll clock: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to get irq: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.8:                               ; @.str.8
	.asciz	"Found bridge node: %pOF\n"

	.comm	_MTK_DPI,4,2                    ; @MTK_DPI
l_.str.9:                               ; @.str.9
	.asciz	"Failed to identify by alias: %d\n"

	.comm	_mtk_dpi_funcs,4,2              ; @mtk_dpi_funcs
l_.str.10:                              ; @.str.10
	.asciz	"Failed to initialize component: %d\n"

	.comm	_mtk_dpi_component_ops,4,2      ; @mtk_dpi_component_ops
l_.str.11:                              ; @.str.11
	.asciz	"Failed to add component: %d\n"

	.no_dead_strip	_mtk_dpi_probe
.subsections_via_symbols
