	.file	"extr_tda1997x.c_tda1997x_parse_dt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"nxp,vidout-portcfg"
.LC1:
	.string	"nxp,audout-format"
.LC2:
	.string	"nxp,vidout-portcfg missing\n"
.LC3:
	.string	"i2s"
.LC4:
	.string	"spdif"
.LC5:
	.string	"nxp,audout-format invalid\n"
.LC6:
	.string	"nxp,audout-layout"
.LC7:
	.string	"nxp,audout-layout invalid\n"
.LC8:
	.string	"nxp,audout-width"
.LC9:
	.string	"nxp,audout-width invalid\n"
.LC10:
	.string	"nxp,audout-mclk-fs"
.LC11:
	.string	"nxp,audout-mclk-fs invalid\n"
	.text
	.p2align 4
	.type	tda1997x_parse_dt, @function
tda1997x_parse_dt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR HS_HREF_SEL_HREF_VHREF[rip]
	mov	DWORD PTR 52[rsp], 0
	mov	QWORD PTR 44[rsp], 0
	mov	DWORD PTR 68[rdi], eax
	mov	eax, DWORD PTR VS_VREF_SEL_VREF_HDMI[rip]
	mov	DWORD PTR 64[rdi], eax
	mov	eax, DWORD PTR DE_FREF_SEL_DE_VHREF[rip]
	mov	DWORD PTR 60[rdi], eax
	mov	rax, QWORD PTR [rdi]
	mov	rbp, QWORD PTR [rax]
	mov	rdi, rbp
	call	of_graph_get_next_endpoint@PLT
	test	rax, rax
	je	.L50
	mov	rdi, rax
	mov	r12, rax
	call	of_fwnode_handle@PLT
	lea	rsi, 44[rsp]
	mov	edi, eax
	call	v4l2_fwnode_endpoint_parse@PLT
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	test	eax, eax
	jne	.L52
	call	of_node_put@PLT
	mov	eax, DWORD PTR 52[rsp]
	mov	DWORD PTR 56[rbx], eax
	mov	eax, DWORD PTR 44[rsp]
	test	DWORD PTR V4L2_MBUS_HSYNC_ACTIVE_LOW[rip], eax
	je	.L5
	mov	DWORD PTR 8[rbx], 1
.L5:
	test	DWORD PTR V4L2_MBUS_VSYNC_ACTIVE_LOW[rip], eax
	je	.L6
	mov	DWORD PTR 12[rbx], 1
.L6:
	test	DWORD PTR V4L2_MBUS_DATA_ACTIVE_LOW[rip], eax
	je	.L7
	mov	DWORD PTR 16[rbx], 1
.L7:
	mov	eax, DWORD PTR 48[rsp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	DWORD PTR 52[rbx], eax
	call	of_property_count_u32_elems@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L8
	sar	r12d
	lea	r15, 32[rsp]
	mov	DWORD PTR 8[rsp], r12d
	je	.L9
	xor	r13d, r13d
	lea	r12, 28[rsp]
	lea	r15, 32[rsp]
	lea	r14, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L11:
	lea	edx, [r13+r13]
	mov	rcx, r12
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], edx
	call	of_property_read_u32_index@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rcx, r15
	mov	rsi, r14
	mov	rdi, rbp
	add	edx, 1
	call	of_property_read_u32_index@PLT
	movsx	rax, DWORD PTR 28[rsp]
	cmp	eax, 8
	jg	.L10
	mov	rdx, QWORD PTR 24[rbx]
	mov	ecx, DWORD PTR 32[rsp]
	mov	DWORD PTR [rdx+rax*4], ecx
.L10:
	add	r13d, 1
	cmp	r13d, DWORD PTR 8[rsp]
	jge	.L9
	cmp	r13d, 9
	jne	.L11
.L9:
	mov	eax, DWORD PTR AUDFMT_TYPE_DISABLED[rip]
	mov	rdx, r15
	mov	rdi, rbp
	mov	DWORD PTR 32[rbx], 1
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 48[rbx], eax
	call	of_property_read_string@PLT
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR 32[rsp]
	lea	rsi, .LC3[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L14
	mov	eax, DWORD PTR AUDFMT_TYPE_I2S[rip]
	mov	DWORD PTR 48[rbx], eax
.L15:
	lea	r12, 28[rsp]
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	mov	rdx, r12
	call	of_property_read_u32@PLT
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR 28[rsp]
	lea	rsi, .LC7[rip]
	cmp	eax, 1
	ja	.L49
	mov	DWORD PTR 36[rbx], eax
.L17:
	mov	rdx, r12
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	call	of_property_read_u32@PLT
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR 28[rsp]
	lea	rsi, .LC9[rip]
	lea	edx, -16[rax]
	and	edx, -17
	je	.L53
.L49:
	mov	rdi, QWORD PTR [rbx]
	call	v4l_err@PLT
.L50:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L52:
	call	of_node_put@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L54
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L53:
	.cfi_restore_state
	mov	DWORD PTR 40[rbx], eax
.L19:
	mov	rdx, r12
	lea	rsi, .LC10[rip]
	mov	rdi, rbp
	call	of_property_read_u32@PLT
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR 28[rsp]
	cmp	ecx, 128
	je	.L22
	jg	.L23
	lea	edx, -16[rcx]
	cmp	edx, 48
	ja	.L24
	movabs	rax, 281474976776193
	bt	rax, rdx
	jc	.L22
.L24:
	lea	rsi, .LC11[rip]
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, .LC2[rip]
	jmp	.L49
.L23:
	lea	eax, -256[rcx]
	test	eax, -257
	jne	.L24
.L22:
	mov	DWORD PTR 44[rbx], ecx
	mov	DWORD PTR 12[rsp], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 32[rsp]
	lea	rsi, .LC4[rip]
	call	strcmp@PLT
	test	rax, rax
	jne	.L16
	mov	eax, DWORD PTR AUDFMT_TYPE_SPDIF[rip]
	mov	DWORD PTR 48[rbx], eax
	jmp	.L15
.L16:
	lea	rsi, .LC5[rip]
	jmp	.L49
.L54:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tda1997x_parse_dt, .-tda1997x_parse_dt
	.comm	VS_VREF_SEL_VREF_HDMI,4,4
	.comm	V4L2_MBUS_VSYNC_ACTIVE_LOW,4,4
	.comm	V4L2_MBUS_HSYNC_ACTIVE_LOW,4,4
	.comm	V4L2_MBUS_DATA_ACTIVE_LOW,4,4
	.comm	HS_HREF_SEL_HREF_VHREF,4,4
	.comm	EINVAL,4,4
	.comm	DE_FREF_SEL_DE_VHREF,4,4
	.comm	AUDFMT_TYPE_SPDIF,4,4
	.comm	AUDFMT_TYPE_I2S,4,4
	.comm	AUDFMT_TYPE_DISABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tda1997x.c_tda1997x_parse_dt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"nxp,vidout-portcfg\000"
	.align	2
.LC1:
	.ascii	"nxp,audout-format\000"
	.align	2
.LC2:
	.ascii	"nxp,vidout-portcfg missing\012\000"
	.align	2
.LC3:
	.ascii	"i2s\000"
	.align	2
.LC4:
	.ascii	"spdif\000"
	.align	2
.LC5:
	.ascii	"nxp,audout-format invalid\012\000"
	.align	2
.LC6:
	.ascii	"nxp,audout-layout\000"
	.align	2
.LC7:
	.ascii	"nxp,audout-layout invalid\012\000"
	.align	2
.LC8:
	.ascii	"nxp,audout-width\000"
	.align	2
.LC9:
	.ascii	"nxp,audout-width invalid\012\000"
	.align	2
.LC10:
	.ascii	"nxp,audout-mclk-fs\000"
	.align	2
.LC11:
	.ascii	"nxp,audout-mclk-fs invalid\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tda1997x_parse_dt, %function
tda1997x_parse_dt:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	mov	r1, #0
	ldr	r3, .L57
	ldr	ip, [r5]
	ldr	r0, .L57+4
	ldr	r2, .L57+8
	ldr	r3, [r3]
	ldr	r6, [ip]
	ldr	r0, [r0]
	ldr	r2, [r2]
	str	r3, [r5, #48]
	ldr	r3, .L57+12
	sub	sp, sp, #36
	str	r0, [r5, #56]
	str	r2, [r5, #52]
	mov	r0, r6
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	str	r1, [sp, #16]
	str	r1, [sp, #20]
	str	r1, [sp, #24]
	bl	of_graph_get_next_endpoint
	subs	r4, r0, #0
	beq	.L51
	bl	of_fwnode_handle
	add	r1, sp, #16
	bl	v4l2_fwnode_endpoint_parse
	subs	r9, r0, #0
	mov	r0, r4
	bne	.L53
	bl	of_node_put
	ldr	r2, .L57+16
	ldr	r3, [sp, #16]
	ldr	r1, [r2]
	ldr	r2, [sp, #24]
	tst	r3, r1
	str	r2, [r5, #44]
	movne	r2, #1
	strne	r2, [r5, #4]
	ldr	r2, .L57+20
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, .L57+24
	tst	r3, r2
	movne	r2, #1
	strne	r2, [r5, #8]
	ldr	r2, .L57+28
	ldr	r2, [r2]
	tst	r3, r2
	movne	r3, #1
	strne	r3, [r5, #12]
	ldr	r3, [sp, #20]
	str	r3, [r5, #40]
	bl	of_property_count_u32_elems
	cmp	r0, #0
	ble	.L8
	asrs	r3, r0, #1
	addeq	fp, sp, #8
	beq	.L9
	mov	r4, #0
	mov	r7, r3
	ldr	r8, .L57+24
	add	fp, sp, #8
	add	r10, sp, #12
	str	r9, [sp, #4]
.L11:
	lsl	r9, r4, #1
	mov	r2, r9
	mov	r3, fp
	mov	r1, r8
	mov	r0, r6
	bl	of_property_read_u32_index
	mov	r1, r8
	add	r2, r9, #1
	mov	r3, r10
	mov	r0, r6
	bl	of_property_read_u32_index
	ldr	r3, [sp, #8]
	add	r4, r4, #1
	cmp	r3, #8
	ldrle	r1, [sp, #12]
	ldrle	r2, [r5, #16]
	strle	r1, [r2, r3, lsl #2]
	cmp	r4, #9
	cmpne	r4, r7
	blt	.L11
	ldr	r9, [sp, #4]
.L9:
	mov	r1, #1
	ldr	r3, .L57+32
	str	r1, [r5, #20]
	ldr	r3, [r3]
	mov	r2, fp
	mov	r0, r6
	ldr	r1, .L57+36
	str	r3, [r5, #36]
	bl	of_property_read_string
	cmp	r0, #0
	bne	.L1
	ldr	r4, [sp, #8]
	ldr	r1, .L57+40
	mov	r0, r4
	bl	strcmp
	cmp	r0, #0
	bne	.L13
	ldr	r3, .L57+44
	ldr	r3, [r3]
	str	r3, [r5, #36]
.L14:
	add	r10, sp, #12
	mov	r2, r10
	mov	r0, r6
	ldr	r1, .L57+48
	bl	of_property_read_u32
	cmp	r0, #0
	bne	.L16
	ldr	r3, [sp, #12]
	cmp	r3, #1
	strls	r3, [r5, #24]
	bhi	.L54
.L16:
	mov	r2, r10
	mov	r0, r6
	ldr	r1, .L57+52
	bl	of_property_read_u32
	cmp	r0, #0
	bne	.L18
	ldr	r3, [sp, #12]
	sub	r2, r3, #16
	bics	r2, r2, #16
	beq	.L19
	ldr	r0, [r5]
	ldr	r1, .L57+56
	bl	v4l_err
.L51:
	ldr	r3, .L57+60
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L53:
	bl	of_node_put
.L1:
	ldr	r3, .L57+12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L55
	mov	r0, r9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	str	r3, [r5, #28]
.L18:
	mov	r2, r10
	mov	r0, r6
	ldr	r1, .L57+64
	bl	of_property_read_u32
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #12]
	cmp	r3, #128
	beq	.L21
	bgt	.L22
	cmp	r3, #64
	bne	.L56
.L21:
	mov	r9, #0
	str	r3, [r5, #32]
	b	.L1
.L56:
	sub	r2, r3, #16
	bics	r2, r2, #16
	beq	.L21
.L23:
	ldr	r0, [r5]
	ldr	r1, .L57+68
	bl	v4l_err
	ldr	r3, .L57+60
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L22:
	sub	r2, r3, #256
	bics	r2, r2, #256
	bne	.L23
	b	.L21
.L13:
	mov	r0, r4
	ldr	r1, .L57+72
	bl	strcmp
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L57+76
	ldr	r3, [r3]
	str	r3, [r5, #36]
	b	.L14
.L8:
	ldr	r0, [r5]
	ldr	r1, .L57+80
	bl	v4l_err
	ldr	r3, .L57+60
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L54:
	ldr	r0, [r5]
	ldr	r1, .L57+84
	bl	v4l_err
	ldr	r3, .L57+60
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L15:
	ldr	r0, [r5]
	ldr	r1, .L57+88
	bl	v4l_err
	ldr	r3, .L57+60
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L55:
	bl	__stack_chk_fail
.L58:
	.align	2
.L57:
	.word	DE_FREF_SEL_DE_VHREF
	.word	HS_HREF_SEL_HREF_VHREF
	.word	VS_VREF_SEL_VREF_HDMI
	.word	.LC12
	.word	V4L2_MBUS_HSYNC_ACTIVE_LOW
	.word	V4L2_MBUS_VSYNC_ACTIVE_LOW
	.word	.LC0
	.word	V4L2_MBUS_DATA_ACTIVE_LOW
	.word	AUDFMT_TYPE_DISABLED
	.word	.LC1
	.word	.LC3
	.word	AUDFMT_TYPE_I2S
	.word	.LC6
	.word	.LC8
	.word	.LC9
	.word	EINVAL
	.word	.LC10
	.word	.LC11
	.word	.LC4
	.word	AUDFMT_TYPE_SPDIF
	.word	.LC2
	.word	.LC7
	.word	.LC5
	.size	tda1997x_parse_dt, .-tda1997x_parse_dt
	.comm	VS_VREF_SEL_VREF_HDMI,4,4
	.comm	V4L2_MBUS_VSYNC_ACTIVE_LOW,4,4
	.comm	V4L2_MBUS_HSYNC_ACTIVE_LOW,4,4
	.comm	V4L2_MBUS_DATA_ACTIVE_LOW,4,4
	.comm	HS_HREF_SEL_HREF_VHREF,4,4
	.comm	EINVAL,4,4
	.comm	DE_FREF_SEL_DE_VHREF,4,4
	.comm	AUDFMT_TYPE_SPDIF,4,4
	.comm	AUDFMT_TYPE_I2S,4,4
	.comm	AUDFMT_TYPE_DISABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
