	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_disp_ovl_probe
_mtk_disp_ovl_probe:                    ## @mtk_disp_ovl_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	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_MTK_DISP_OVL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtk_ddp_comp_get_id
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	(%r14), %esi
	leaq	4(%r12), %rdx
	movq	_mtk_disp_ovl_funcs@GOTPCREL(%rip), %r8
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_mtk_ddp_comp_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movl	%r15d, %ebx
	jmp	LBB0_14
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_8:
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movl	%eax, (%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	_mtk_disp_ovl_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IRQF_TRIGGER_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	_mtk_disp_ovl_component_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_component_add
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MTK_DISP_OVL,4,2               ## @MTK_DISP_OVL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to identify by alias: %d\n"

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

	.comm	_mtk_disp_ovl_irq_handler,4,2   ## @mtk_disp_ovl_irq_handler
	.comm	_IRQF_TRIGGER_NONE,4,2          ## @IRQF_TRIGGER_NONE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to request irq %d: %d\n"

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

	.no_dead_strip	_mtk_disp_ovl_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_ovl_probe
_mtk_disp_ovl_probe:                    ; @mtk_disp_ovl_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, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x20, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _MTK_DISP_OVL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTK_DISP_OVL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_mtk_ddp_comp_get_id
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	w1, [x19]
	add	x2, x22, #4
Lloh6:
	adrp	x4, _mtk_disp_ovl_funcs@GOTPAGE
Lloh7:
	ldr	x4, [x4, _mtk_disp_ovl_funcs@GOTPAGEOFF]
	mov	x0, x19
	mov	x3, x21
	bl	_mtk_ddp_comp_init
	cbz	w0, LBB0_8
; %bb.4:
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_6:
	mov	x21, x20
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
Lloh15:
	adrp	x8, _mtk_disp_ovl_irq_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mtk_disp_ovl_irq_handler@GOTPAGEOFF]
Lloh17:
	ldr	w21, [x8]
Lloh18:
	adrp	x8, _IRQF_TRIGGER_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IRQF_TRIGGER_NONE@GOTPAGEOFF]
Lloh20:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	mov	x5, x22
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_14
; %bb.9:
Lloh21:
	adrp	x1, _mtk_disp_ovl_component_ops@GOTPAGE
Lloh22:
	ldr	x1, [x1, _mtk_disp_ovl_component_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_component_add
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.10:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	mov	x2, x21
LBB0_12:
	bl	_dev_err
LBB0_13:
	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_14:
	mov	x21, x0
	str	x21, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	b	LBB0_12
	.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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MTK_DISP_OVL,4,2               ; @MTK_DISP_OVL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to identify by alias: %d\n"

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

	.comm	_mtk_disp_ovl_irq_handler,4,2   ; @mtk_disp_ovl_irq_handler
	.comm	_IRQF_TRIGGER_NONE,4,2          ; @IRQF_TRIGGER_NONE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to request irq %d: %d\n"

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

	.no_dead_strip	_mtk_disp_ovl_probe
.subsections_via_symbols
