	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venc_probe_of
_venc_probe_of:                         ## @venc_probe_of
	.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, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_property_read_bool
	movl	%eax, 12(%r15)
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_3:
	movl	-28(%rbp), %edx
	cmpl	$1, %edx
	je	LBB0_4
## %bb.5:
	cmpl	$2, %edx
	jne	LBB0_10
## %bb.6:
	movq	_OMAP_DSS_VENC_TYPE_SVIDEO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_OMAP_DSS_VENC_TYPE_COMPOSITE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_10:
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,invert-polarity"

L_.str.1:                               ## @.str.1
	.asciz	"ti,channels"

L_.str.2:                               ## @.str.2
	.asciz	"failed to read property 'ti,channels': %d\n"

	.comm	_OMAP_DSS_VENC_TYPE_COMPOSITE,4,2 ## @OMAP_DSS_VENC_TYPE_COMPOSITE
	.comm	_OMAP_DSS_VENC_TYPE_SVIDEO,4,2  ## @OMAP_DSS_VENC_TYPE_SVIDEO
L_.str.3:                               ## @.str.3
	.asciz	"bad channel propert '%d'\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_venc_probe_of
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venc_probe_of
_venc_probe_of:                         ; @venc_probe_of
	.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	x20, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	str	w0, [x20, #12]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_of_property_read_u32
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	x0, [x20]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_10
LBB0_3:
	mov	w21, #0
	b	LBB0_11
LBB0_4:
	ldr	w2, [sp, #12]
	cmp	w2, #1
	b.eq	LBB0_7
; %bb.5:
	cmp	w2, #2
	b.ne	LBB0_9
; %bb.6:
Lloh6:
	adrp	x8, _OMAP_DSS_VENC_TYPE_SVIDEO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMAP_DSS_VENC_TYPE_SVIDEO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _OMAP_DSS_VENC_TYPE_COMPOSITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OMAP_DSS_VENC_TYPE_COMPOSITE@GOTPAGEOFF]
LBB0_8:
	mov	w21, #0
	ldr	w8, [x8]
	str	w8, [x20, #8]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x20]
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x19
	bl	_of_node_put
LBB0_11:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,invert-polarity"

l_.str.1:                               ; @.str.1
	.asciz	"ti,channels"

l_.str.2:                               ; @.str.2
	.asciz	"failed to read property 'ti,channels': %d\n"

	.comm	_OMAP_DSS_VENC_TYPE_COMPOSITE,4,2 ; @OMAP_DSS_VENC_TYPE_COMPOSITE
	.comm	_OMAP_DSS_VENC_TYPE_SVIDEO,4,2  ; @OMAP_DSS_VENC_TYPE_SVIDEO
l_.str.3:                               ; @.str.3
	.asciz	"bad channel propert '%d'\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_venc_probe_of
.subsections_via_symbols
