	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_ddp_comp_init              ## -- Begin function mtk_ddp_comp_init
	.p2align	4, 0x90
_mtk_ddp_comp_init:                     ## @mtk_ddp_comp_init
	.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	_DDP_COMPONENT_ID_MAX@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jbe	LBB0_6
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_mtk_ddp_matches@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, %edx
	movl	(%rax,%rdx,8), %r13d
	movl	%ecx, (%r12)
	testq	%r8, %r8
	jne	LBB0_3
## %bb.2:
	movslq	4(%rax,%rdx,8), %r8
LBB0_3:
	movl	%r8d, 40(%r12)
	movq	_DDP_COMPONENT_BLS@GOTPCREL(%rip), %rax
	movq	_DDP_COMPONENT_DPI0@GOTPCREL(%rip), %rdx
	movq	_DDP_COMPONENT_DPI1@GOTPCREL(%rip), %rsi
	movq	_DDP_COMPONENT_DSI0@GOTPCREL(%rip), %rdi
	movq	_DDP_COMPONENT_DSI1@GOTPCREL(%rip), %rbx
	movq	_DDP_COMPONENT_DSI2@GOTPCREL(%rip), %r8
	movq	_DDP_COMPONENT_DSI3@GOTPCREL(%rip), %r9
	movd	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm0
	pinsrd	$2, (%rsi), %xmm0
	pinsrd	$3, (%rdi), %xmm0
	movq	_DDP_COMPONENT_PWM0@GOTPCREL(%rip), %rax
	movd	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	pinsrd	$1, (%r8), %xmm1
	pinsrd	$2, (%r9), %xmm1
	pinsrd	$3, (%rax), %xmm1
	movd	%ecx, %xmm2
	pshufd	$0, %xmm2, %xmm2                ## xmm2 = xmm2[0,0,0,0]
	pcmpeqd	%xmm2, %xmm1
	pcmpeqd	%xmm2, %xmm0
	packssdw	%xmm1, %xmm0
	psllw	$15, %xmm0
	pmovmskb	%xmm0, %eax
	testl	$43690, %eax                    ## imm = 0xAAAA
	je	LBB0_10
## %bb.4:
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 16(%r12)
	movq	$0, 32(%r12)
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movq	%rax, 32(%r12)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_of_irq_get
	movq	%rax, 24(%r12)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_of_clk_get
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	16(%r12), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	$0, 8(%r12)
	movq	_MTK_DISP_OVL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_15
## %bb.13:
	movq	_MTK_DISP_RDMA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_15
## %bb.14:
	movq	_MTK_DISP_WDMA@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_9
LBB0_15:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_of_node_put
	movq	%rbx, 8(%r12)
	jmp	LBB0_5
LBB0_18:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_19:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_dev_warn
	movq	%r13, %rdi
	callq	_of_node_put
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DDP_COMPONENT_ID_MAX,4,2       ## @DDP_COMPONENT_ID_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_mtk_ddp_matches,8,3            ## @mtk_ddp_matches
	.comm	_DDP_COMPONENT_BLS,4,2          ## @DDP_COMPONENT_BLS
	.comm	_DDP_COMPONENT_DPI0,4,2         ## @DDP_COMPONENT_DPI0
	.comm	_DDP_COMPONENT_DPI1,4,2         ## @DDP_COMPONENT_DPI1
	.comm	_DDP_COMPONENT_DSI0,4,2         ## @DDP_COMPONENT_DSI0
	.comm	_DDP_COMPONENT_DSI1,4,2         ## @DDP_COMPONENT_DSI1
	.comm	_DDP_COMPONENT_DSI2,4,2         ## @DDP_COMPONENT_DSI2
	.comm	_DDP_COMPONENT_DSI3,4,2         ## @DDP_COMPONENT_DSI3
	.comm	_DDP_COMPONENT_PWM0,4,2         ## @DDP_COMPONENT_PWM0
	.comm	_MTK_DISP_OVL,4,2               ## @MTK_DISP_OVL
	.comm	_MTK_DISP_RDMA,4,2              ## @MTK_DISP_RDMA
	.comm	_MTK_DISP_WDMA,4,2              ## @MTK_DISP_WDMA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mediatek,larb"

L_.str.1:                               ## @.str.1
	.asciz	"Missing mediadek,larb phandle in %pOF node\n"

L_.str.2:                               ## @.str.2
	.asciz	"Waiting for larb device %pOF\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtk_ddp_comp_init              ; -- Begin function mtk_ddp_comp_init
	.p2align	2
_mtk_ddp_comp_init:                     ; @mtk_ddp_comp_init
	.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
Lloh0:
	adrp	x8, _DDP_COMPONENT_ID_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DDP_COMPONENT_ID_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ls	LBB0_22
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _mtk_ddp_matches@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mtk_ddp_matches@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, w3
	lsl	x10, x9, #3
	ldr	w22, [x8, x10]
	str	w3, [x2]
	cbnz	x4, LBB0_3
; %bb.2:
	add	x8, x8, x9, lsl #3
	ldrsw	x4, [x8, #4]
LBB0_3:
	str	w4, [x19, #40]
Lloh6:
	adrp	x8, _DDP_COMPONENT_BLS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDP_COMPONENT_BLS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.4:
Lloh9:
	adrp	x8, _DDP_COMPONENT_DPI0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DDP_COMPONENT_DPI0@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.5:
Lloh12:
	adrp	x8, _DDP_COMPONENT_DPI1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DDP_COMPONENT_DPI1@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.6:
Lloh15:
	adrp	x8, _DDP_COMPONENT_DSI0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DDP_COMPONENT_DSI0@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.7:
Lloh18:
	adrp	x8, _DDP_COMPONENT_DSI1@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DDP_COMPONENT_DSI1@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.8:
Lloh21:
	adrp	x8, _DDP_COMPONENT_DSI2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DDP_COMPONENT_DSI2@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.9:
Lloh24:
	adrp	x8, _DDP_COMPONENT_DSI3@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DDP_COMPONENT_DSI3@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.10:
Lloh27:
	adrp	x8, _DDP_COMPONENT_PWM0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DDP_COMPONENT_PWM0@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w8, w3
	b.eq	LBB0_13
; %bb.11:
	mov	x0, x21
	mov	w1, #0
	bl	_of_iomap
	str	x0, [x19, #32]
	mov	x0, x21
	mov	w1, #0
	bl	_of_irq_get
	str	x0, [x19, #24]
	mov	x0, x21
	mov	w1, #0
	bl	_of_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_14
; %bb.12:
	ldr	x0, [x19, #16]
	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_13:
	mov	w0, #0
	stp	xzr, xzr, [x19, #16]
	str	xzr, [x19, #32]
	b	LBB0_24
LBB0_14:
	str	xzr, [x19, #8]
Lloh30:
	adrp	x8, _MTK_DISP_OVL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MTK_DISP_OVL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_18
; %bb.15:
Lloh33:
	adrp	x8, _MTK_DISP_RDMA@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MTK_DISP_RDMA@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_18
; %bb.16:
Lloh36:
	adrp	x8, _MTK_DISP_WDMA@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MTK_DISP_WDMA@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmp	w22, w8
	b.eq	LBB0_18
; %bb.17:
	mov	w0, #0
	b	LBB0_24
LBB0_18:
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_21
; %bb.19:
	mov	x22, x0
	bl	_of_find_device_by_node
	cbz	x0, LBB0_25
; %bb.20:
	mov	x21, x0
	mov	x0, x22
	bl	_of_node_put
	mov	w0, #0
	str	x21, [x19, #8]
	b	LBB0_24
LBB0_21:
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
LBB0_22:
Lloh43:
	adrp	x8, _EINVAL@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_24:
	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_25:
Lloh45:
	adrp	x1, l_.str.2@PAGE
Lloh46:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_warn
	mov	x0, x22
	bl	_of_node_put
Lloh47:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_23
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_DDP_COMPONENT_ID_MAX,4,2       ; @DDP_COMPONENT_ID_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_mtk_ddp_matches,8,3            ; @mtk_ddp_matches
	.comm	_DDP_COMPONENT_BLS,4,2          ; @DDP_COMPONENT_BLS
	.comm	_DDP_COMPONENT_DPI0,4,2         ; @DDP_COMPONENT_DPI0
	.comm	_DDP_COMPONENT_DPI1,4,2         ; @DDP_COMPONENT_DPI1
	.comm	_DDP_COMPONENT_DSI0,4,2         ; @DDP_COMPONENT_DSI0
	.comm	_DDP_COMPONENT_DSI1,4,2         ; @DDP_COMPONENT_DSI1
	.comm	_DDP_COMPONENT_DSI2,4,2         ; @DDP_COMPONENT_DSI2
	.comm	_DDP_COMPONENT_DSI3,4,2         ; @DDP_COMPONENT_DSI3
	.comm	_DDP_COMPONENT_PWM0,4,2         ; @DDP_COMPONENT_PWM0
	.comm	_MTK_DISP_OVL,4,2               ; @MTK_DISP_OVL
	.comm	_MTK_DISP_RDMA,4,2              ; @MTK_DISP_RDMA
	.comm	_MTK_DISP_WDMA,4,2              ; @MTK_DISP_WDMA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mediatek,larb"

l_.str.1:                               ; @.str.1
	.asciz	"Missing mediadek,larb phandle in %pOF node\n"

l_.str.2:                               ; @.str.2
	.asciz	"Waiting for larb device %pOF\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
.subsections_via_symbols
