	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_dsi_probe
_mtk_dsi_probe:                         ## @mtk_dsi_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	_mtk_dsi_ops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%rbx)
	movq	%r14, 56(%rbx)
	movl	(%r14), %edi
	leaq	52(%rbx), %rcx
	leaq	48(%rbx), %r8
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_drm_of_find_panel_or_bridge
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	40(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_2:
	subl	(%rax), %r15d
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	32(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	24(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_7
LBB0_13:
	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, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	16(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_7
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_phy_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	8(%rbx), %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_8:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_3:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	(%r14), %edi
	movq	_MTK_DSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtk_ddp_comp_get_id
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_18
## %bb.20:
	movl	(%r14), %esi
	movq	%rbx, %rdx
	addq	$4, %rdx
	movq	_mtk_dsi_funcs@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_mtk_ddp_comp_init
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.9(%rip), %rsi
LBB0_19:
	movq	%r14, %rdi
	movl	%r15d, %edx
	jmp	LBB0_8
LBB0_22:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_23
## %bb.25:
	movl	%eax, %r12d
	movq	_IRQ_TYPE_LEVEL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_irq_set_status_flags
	movq	_mtk_dsi_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.12(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.11(%rip), %rsi
LBB0_24:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_27:
	movq	%rbx, %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	_mtk_dsi_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_component_add                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mtk_dsi_ops,4,2                ## @mtk_dsi_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"engine"

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

L_.str.2:                               ## @.str.2
	.asciz	"digital"

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

L_.str.4:                               ## @.str.4
	.asciz	"hs"

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

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.6:                               ## @.str.6
	.asciz	"Failed to ioremap memory: %d\n"

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

L_.str.8:                               ## @.str.8
	.asciz	"Failed to get MIPI-DPHY: %d\n"

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

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

L_.str.11:                              ## @.str.11
	.asciz	"failed to request dsi irq resource\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ## @IRQ_TYPE_LEVEL_LOW
	.comm	_mtk_dsi_irq,4,2                ## @mtk_dsi_irq
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
L_.str.12:                              ## @.str.12
	.asciz	"failed to request mediatek dsi irq\n"

	.comm	_mtk_dsi_component_ops,4,2      ## @mtk_dsi_component_ops
	.no_dead_strip	_mtk_dsi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_dsi_probe
_mtk_dsi_probe:                         ; @mtk_dsi_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _mtk_dsi_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mtk_dsi_ops@GOTPAGEOFF]
	stp	x19, x8, [x0, #56]
	ldr	w0, [x19]
	add	x3, x20, #52
	add	x4, x20, #48
	mov	w1, #0
	mov	w2, #0
	bl	_drm_of_find_panel_or_bridge
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	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_8:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_16
LBB0_10:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_12:
Lloh19:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh21:
	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, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_14:
Lloh24:
	adrp	x1, l_.str.7@PAGE
Lloh25:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_devm_phy_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.15:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_7
LBB0_17:
	ldr	w0, [x19]
Lloh28:
	adrp	x8, _MTK_DSI@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MTK_DSI@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_mtk_ddp_comp_get_id
	mov	x21, x0
	tbnz	w0, #31, LBB0_20
; %bb.18:
	ldr	w1, [x19]
	add	x2, x20, #4
Lloh31:
	adrp	x4, _mtk_dsi_funcs@GOTPAGE
Lloh32:
	ldr	x4, [x4, _mtk_dsi_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x21
	bl	_mtk_ddp_comp_init
	cbz	w0, LBB0_21
; %bb.19:
	mov	x21, x0
	str	x21, [sp]
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_16
LBB0_20:
	mov	x8, x21
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_4
LBB0_21:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_24
; %bb.22:
	mov	x21, x0
Lloh37:
	adrp	x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQ_TYPE_LEVEL_LOW@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_irq_set_status_flags
Lloh40:
	adrp	x8, _mtk_dsi_irq@GOTPAGE
Lloh41:
	ldr	x8, [x8, _mtk_dsi_irq@GOTPAGEOFF]
Lloh42:
	ldr	w22, [x8]
Lloh43:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh45:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_26
; %bb.23:
Lloh46:
	adrp	x1, l_.str.12@PAGE
Lloh47:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh48:
	adrp	x1, l_.str.11@PAGE
Lloh49:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_25:
	mov	x0, x19
	bl	_dev_err
Lloh50:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh51:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_6
LBB0_26:
	mov	x0, x20
	bl	_init_waitqueue_head
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh52:
	adrp	x1, _mtk_dsi_component_ops@GOTPAGE
Lloh53:
	ldr	x1, [x1, _mtk_dsi_component_ops@GOTPAGEOFF]
	mov	x0, x19
	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	_component_add
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mtk_dsi_ops,4,2                ; @mtk_dsi_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"engine"

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

l_.str.2:                               ; @.str.2
	.asciz	"digital"

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

l_.str.4:                               ; @.str.4
	.asciz	"hs"

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

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.6:                               ; @.str.6
	.asciz	"Failed to ioremap memory: %d\n"

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

l_.str.8:                               ; @.str.8
	.asciz	"Failed to get MIPI-DPHY: %d\n"

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

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

l_.str.11:                              ; @.str.11
	.asciz	"failed to request dsi irq resource\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_IRQ_TYPE_LEVEL_LOW,4,2         ; @IRQ_TYPE_LEVEL_LOW
	.comm	_mtk_dsi_irq,4,2                ; @mtk_dsi_irq
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
l_.str.12:                              ; @.str.12
	.asciz	"failed to request mediatek dsi irq\n"

	.comm	_mtk_dsi_component_ops,4,2      ; @mtk_dsi_component_ops
	.no_dead_strip	_mtk_dsi_probe
.subsections_via_symbols
