	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtk_hdmi_dt_parse_pdata
_mtk_hdmi_dt_parse_pdata:               ## @mtk_hdmi_dt_parse_pdata
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	%r12, %rsi
	callq	_mtk_hdmi_get_all_clk
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_24
LBB0_2:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_get_compatible_child
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_of_node_put
	movq	%rbx, 32(%r15)
	leaq	L_.str.4(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %r13
	leaq	24(%r15), %rcx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_8:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
LBB0_21:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_5:
	movslq	40(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r13, %rdi
LBB0_16:
	callq	_of_node_put
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
LBB0_23:
	subl	(%rax), %ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r13, 16(%r15)
	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, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.25:
	movq	8(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_remote_node
	testq	%rax, %rax
	je	LBB0_22
## %bb.13:
	movq	%rax, %r12
	leaq	L_.str.6(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_device_is_compatible
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	%r12, %rdi
	callq	_of_drm_find_bridge
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_15
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_18
## %bb.19:
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_of_node_put
	movq	%r13, %rdi
	callq	_of_find_i2c_adapter_by_node
	movl	%eax, (%r15)
	movq	%r13, %rdi
	callq	_of_node_put
	cmpl	$0, (%r15)
	jne	LBB0_24
## %bb.20:
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_21
LBB0_18:
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	callq	_of_node_put
	jmp	LBB0_22
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get clocks: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"mediatek,mt8173-cec"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to find CEC node\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Waiting for CEC device %pOF\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.4:                               ## @.str.4
	.asciz	"mediatek,syscon-hdmi"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to get system configuration registers: %d\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.6:                               ## @.str.6
	.asciz	"hdmi-connector"

L_.str.7:                               ## @.str.7
	.asciz	"Waiting for external bridge\n"

L_.str.8:                               ## @.str.8
	.asciz	"ddc-i2c-bus"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to find ddc-i2c-bus node in %pOF\n"

L_.str.10:                              ## @.str.10
	.asciz	"Failed to get ddc i2c adapter by node\n"

	.no_dead_strip	_mtk_hdmi_dt_parse_pdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtk_hdmi_dt_parse_pdata
_mtk_hdmi_dt_parse_pdata:               ; @mtk_hdmi_dt_parse_pdata
	.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, x1
	mov	x20, x0
	ldr	x21, [x1]
	mov	x1, x21
	bl	_mtk_hdmi_get_all_clk
	cbz	w0, LBB0_3
; %bb.1:
	mov	x22, x0
	str	x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_3:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_get_compatible_child
	cbz	x0, LBB0_9
; %bb.4:
	mov	x22, x0
	bl	_of_find_device_by_node
	cbz	x0, LBB0_12
; %bb.5:
	mov	x23, x0
	mov	x0, x22
	bl	_of_node_put
	str	x23, [x20, #32]
Lloh4:
	adrp	x22, l_.str.4@PAGE
Lloh5:
	add	x22, x22, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_syscon_regmap_lookup_by_phandle
	mov	x23, x0
	add	x3, x20, #24
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	bl	_of_property_read_u32_index
	mov	x22, x0
	mov	x0, x23
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x22, x0
LBB0_7:
	cbz	w22, LBB0_16
; %bb.8:
	mov	x8, x22
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.5@PAGE
Lloh7:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_2
LBB0_9:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
LBB0_11:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
	ldrsw	x0, [x20, #40]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x0, x22
LBB0_13:
	bl	_of_node_put
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x22
	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_16:
	str	x23, [x20, #16]
Lloh16:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh18:
	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, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x0, [x20, #8]
	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	_PTR_ERR
LBB0_18:
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	bl	_of_graph_get_remote_node
	cbz	x0, LBB0_11
; %bb.19:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_of_device_is_compatible
	cbnz	w0, LBB0_21
; %bb.20:
	mov	x0, x21
	bl	_of_drm_find_bridge
	str	w0, [x20, #4]
	cbz	w0, LBB0_26
LBB0_21:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_24
; %bb.22:
	mov	x22, x0
	mov	x0, x21
	bl	_of_node_put
	mov	x0, x22
	bl	_of_find_i2c_adapter_by_node
	str	w0, [x20]
	mov	x0, x22
	bl	_of_node_put
	ldr	w8, [x20]
	cbz	w8, LBB0_25
; %bb.23:
	mov	w22, #0
	b	LBB0_15
LBB0_24:
	str	x21, [sp]
Lloh23:
	adrp	x1, l_.str.9@PAGE
Lloh24:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_of_node_put
	b	LBB0_11
LBB0_25:
Lloh25:
	adrp	x1, l_.str.10@PAGE
Lloh26:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_10
LBB0_26:
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get clocks: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"mediatek,mt8173-cec"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to find CEC node\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Waiting for CEC device %pOF\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.4:                               ; @.str.4
	.asciz	"mediatek,syscon-hdmi"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to get system configuration registers: %d\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.6:                               ; @.str.6
	.asciz	"hdmi-connector"

l_.str.7:                               ; @.str.7
	.asciz	"Waiting for external bridge\n"

l_.str.8:                               ; @.str.8
	.asciz	"ddc-i2c-bus"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to find ddc-i2c-bus node in %pOF\n"

l_.str.10:                              ; @.str.10
	.asciz	"Failed to get ddc i2c adapter by node\n"

	.no_dead_strip	_mtk_hdmi_dt_parse_pdata
.subsections_via_symbols
