	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_disp_color_probe
_mtk_disp_color_probe:                  ## @mtk_disp_color_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
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	(%r14), %edi
	movq	_MTK_DISP_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtk_ddp_comp_get_id
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r14), %esi
	leaq	4(%r15), %rdx
	movq	_mtk_disp_color_funcs@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_mtk_ddp_comp_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, (%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	_mtk_disp_color_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MTK_DISP_COLOR,4,2             ## @MTK_DISP_COLOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to identify by alias: %d\n"

	.comm	_mtk_disp_color_funcs,4,2       ## @mtk_disp_color_funcs
L_.str.1:                               ## @.str.1
	.asciz	"Failed to initialize component: %d\n"

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

	.no_dead_strip	_mtk_disp_color_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_disp_color_probe
_mtk_disp_color_probe:                  ; @mtk_disp_color_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, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _MTK_DISP_COLOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTK_DISP_COLOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mtk_ddp_comp_get_id
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w1, [x19]
	add	x2, x21, #4
Lloh6:
	adrp	x4, _mtk_disp_color_funcs@GOTPAGE
Lloh7:
	ldr	x4, [x4, _mtk_disp_color_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x20
	bl	_mtk_ddp_comp_init
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
Lloh15:
	adrp	x1, _mtk_disp_color_component_ops@GOTPAGE
Lloh16:
	ldr	x1, [x1, _mtk_disp_color_component_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_component_add
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MTK_DISP_COLOR,4,2             ; @MTK_DISP_COLOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to identify by alias: %d\n"

	.comm	_mtk_disp_color_funcs,4,2       ; @mtk_disp_color_funcs
l_.str.1:                               ; @.str.1
	.asciz	"Failed to initialize component: %d\n"

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

	.no_dead_strip	_mtk_disp_color_probe
.subsections_via_symbols
