	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function komeda_parse_pipe_dt
_komeda_parse_pipe_dt:                  ## @komeda_parse_pipe_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	-40(%rbp), %rax
	cmpq	(%rbx), %rax
	jae	LBB0_2
## %bb.3:
	movq	8(%rbx), %rcx
	movq	(%rcx,%rax,8), %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_clk_get_by_name
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-40(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_DRM_ERROR
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, 24(%r15)
	movq	_KOMEDA_OF_PORT_OUTPUT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_graph_get_remote_node
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_of_graph_get_remote_node
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_of_graph_get_port_by_id
	movl	%eax, 16(%r15)
	movq	8(%r15), %rcx
	cmpq	$0, (%rcx)
	movl	$0, %eax
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx)
	setne	%al
LBB0_7:
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_of_node_get
	movl	%eax, 4(%r15)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"pxclk"

L_.str.2:                               ## @.str.2
	.asciz	"get pxclk for pipeline %d failed!\n"

	.comm	_KOMEDA_OF_PORT_OUTPUT,4,2      ## @KOMEDA_OF_PORT_OUTPUT
	.no_dead_strip	_komeda_parse_pipe_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function komeda_parse_pipe_dt
_komeda_parse_pipe_dt:                  ; @komeda_parse_pipe_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.2:
	ldr	x9, [x20, #8]
	ldr	x21, [x9, x8, lsl #3]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_of_clk_get_by_name
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x1, [sp, #8]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x20
	bl	_PTR_ERR
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	str	x20, [x21, #24]
Lloh9:
	adrp	x20, _KOMEDA_OF_PORT_OUTPUT@GOTPAGE
Lloh10:
	ldr	x20, [x20, _KOMEDA_OF_PORT_OUTPUT@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_of_graph_get_remote_node
	ldr	x8, [x21, #8]
	str	x0, [x8]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_of_graph_get_remote_node
	ldr	x8, [x21, #8]
	str	x0, [x8, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_of_graph_get_port_by_id
	str	w0, [x21, #16]
	ldr	x8, [x21, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.7:
	ldr	x8, [x8, #8]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_9
LBB0_8:
	mov	w8, #0
LBB0_9:
	str	w8, [x21]
	mov	x0, x19
	bl	_of_node_get
	mov	x8, x0
	mov	w0, #0
	str	w8, [x21, #4]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"pxclk"

l_.str.2:                               ; @.str.2
	.asciz	"get pxclk for pipeline %d failed!\n"

	.comm	_KOMEDA_OF_PORT_OUTPUT,4,2      ; @KOMEDA_OF_PORT_OUTPUT
	.no_dead_strip	_komeda_parse_pipe_dt
.subsections_via_symbols
