	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thc63_parse_dt
_thc63_parse_dt:                        ## @thc63_parse_dt
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %edi
	movq	_THC63_RGB_OUT0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$-1, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_graph_get_remote_port_parent
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_of_device_is_available
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_of_drm_find_bridge
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	callq	_of_node_put
	cmpl	$0, 16(%r14)
	je	LBB0_10
## %bb.11:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_THC63_LVDS_IN1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_graph_get_remote_port_parent
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r15, %r15
	je	LBB0_16
## %bb.13:
	movq	%r15, %rdi
	callq	_of_device_is_available
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	$1, (%r14)
LBB0_15:
	movq	%r15, %rdi
	callq	_of_node_put
LBB0_16:
	movq	8(%r14), %rdi
	cmpl	$0, (%r14)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_1:
	movq	8(%r14), %rdi
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movq	8(%r14), %rdi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_dev_err
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	8(%r14), %rdi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_of_node_put
	jmp	LBB0_3
LBB0_10:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_THC63_RGB_OUT0,4,2             ## @THC63_RGB_OUT0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing endpoint in port@%u\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Endpoint in port@%u unconnected\n"

L_.str.2:                               ## @.str.2
	.asciz	"port@%u remote endpoint is disabled\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_THC63_LVDS_IN1,4,2             ## @THC63_LVDS_IN1
L_.str.3:                               ## @.str.3
	.asciz	"operating in %s-link mode\n"

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

L_.str.5:                               ## @.str.5
	.asciz	"single"

	.no_dead_strip	_thc63_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thc63_parse_dt
_thc63_parse_dt:                        ; @thc63_parse_dt
	.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
	ldr	x8, [x0, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x22, _THC63_RGB_OUT0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _THC63_RGB_OUT0@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #-1
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
	bl	_of_graph_get_remote_port_parent
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	x20, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_of_device_is_available
	cbz	x0, LBB0_16
; %bb.3:
	mov	x0, x20
	bl	_of_drm_find_bridge
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_of_node_put
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_17
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh2:
	adrp	x8, _THC63_LVDS_IN1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THC63_LVDS_IN1@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_9
; %bb.5:
	mov	x21, x0
	bl	_of_graph_get_remote_port_parent
	mov	x20, x0
	mov	x0, x21
	bl	_of_node_put
	cbz	x20, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_of_device_is_available
	cbz	x0, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x19]
LBB0_8:
	mov	x0, x20
	bl	_of_node_put
LBB0_9:
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, l_.str.4@PAGE
Lloh6:
	add	x9, x9, l_.str.4@PAGEOFF
Lloh7:
	adrp	x10, l_.str.5@PAGE
Lloh8:
	add	x10, x10, l_.str.5@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_15
LBB0_10:
	ldr	x0, [x19, #8]
	ldr	w2, [x22]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
	ldr	x0, [x19, #8]
	ldr	w2, [x22]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_dev_err
LBB0_13:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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_16:
	ldr	x0, [x19, #8]
	ldr	w2, [x22]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_13
LBB0_17:
Lloh19:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_THC63_RGB_OUT0,4,2             ; @THC63_RGB_OUT0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing endpoint in port@%u\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Endpoint in port@%u unconnected\n"

l_.str.2:                               ; @.str.2
	.asciz	"port@%u remote endpoint is disabled\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_THC63_LVDS_IN1,4,2             ; @THC63_LVDS_IN1
l_.str.3:                               ; @.str.3
	.asciz	"operating in %s-link mode\n"

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

l_.str.5:                               ; @.str.5
	.asciz	"single"

	.no_dead_strip	_thc63_parse_dt
.subsections_via_symbols
