	.file	"extr_soc-topology.c_soc_valid_header.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ASoC: invalid header size for type %d at offset 0x%lx size 0x%zx.\n"
	.align 8
.LC1:
	.string	"ASoC: pass %d big endian not supported header got %x at offset 0x%lx size 0x%zx.\n"
	.align 8
.LC2:
	.string	"ASoC: pass %d does not have a valid header got %x at offset 0x%lx size 0x%zx.\n"
	.align 8
.LC3:
	.string	"ASoC: pass %d invalid ABI version got 0x%x need 0x%x at offset 0x%lx size 0x%zx.\n"
	.align 8
.LC4:
	.string	"ASoC: header has 0 size at offset 0x%lx.\n"
	.align 8
.LC5:
	.string	"ASoC: Got 0x%x bytes of type %d version %d vendor %d at pass %d\n"
	.text
	.p2align 4
	.type	soc_valid_header, @function
soc_valid_header:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	soc_tplg_get_hdr_offset@PLT
	mov	rdx, QWORD PTR 8[rbx]
	cmp	eax, DWORD PTR [rdx]
	jl	.L13
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rdi, QWORD PTR 0[rbp]
	call	le32_to_cpu@PLT
	cmp	eax, 48
	jne	.L14
	mov	rdi, QWORD PTR 16[rbp]
	cmp	rdi, QWORD PTR SOC_TPLG_MAGIC_BIG_ENDIAN[rip]
	je	.L15
	call	le32_to_cpu@PLT
	cmp	eax, DWORD PTR SND_SOC_TPLG_MAGIC[rip]
	jne	.L16
	mov	rdi, QWORD PTR 24[rbp]
	call	le32_to_cpu@PLT
	cmp	eax, DWORD PTR SND_SOC_TPLG_ABI_VERSION[rip]
	jg	.L7
	mov	rdi, QWORD PTR 24[rbp]
	call	le32_to_cpu@PLT
	cmp	eax, DWORD PTR SND_SOC_TPLG_ABI_VERSION_MIN[rip]
	jl	.L7
	cmp	QWORD PTR 32[rbp], 0
	je	.L17
	mov	rdi, QWORD PTR 8[rbp]
	mov	r13d, DWORD PTR [rbx]
	mov	r12d, 1
	call	le32_to_cpu@PLT
	cmp	r13d, eax
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC5[rip]
	mov	rdx, QWORD PTR 32[rbp]
	mov	rcx, QWORD PTR 8[rbp]
	mov	r9d, DWORD PTR 40[rbp]
	mov	r8d, DWORD PTR 44[rbp]
	push	rax
	.cfi_def_cfa_offset 64
	call	dev_dbg@PLT
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	mov	r12d, DWORD PTR [rax]
	call	soc_tplg_get_hdr_offset@PLT
	mov	rcx, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC2[rip]
	mov	edx, DWORD PTR [rbx]
	mov	r8d, eax
	mov	r9d, r12d
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	mov	r13d, DWORD PTR [rax]
	call	soc_tplg_get_hdr_offset@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	r12d, eax
	call	le32_to_cpu@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	r8d, r13d
	mov	ecx, r12d
	mov	edx, eax
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	mov	r12d, DWORD PTR [rax]
	call	soc_tplg_get_hdr_offset@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rcx, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR 4[rbx]
	push	r12
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR [rbx]
	mov	r9d, eax
	lea	rsi, .LC3[rip]
	mov	r8d, DWORD PTR SND_SOC_TPLG_ABI_VERSION[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rcx
	.cfi_def_cfa_offset 56
	pop	rsi
	.cfi_def_cfa_offset 48
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	mov	r12d, DWORD PTR [rax]
	call	soc_tplg_get_hdr_offset@PLT
	mov	rcx, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC1[rip]
	mov	edx, DWORD PTR [rbx]
	mov	r8d, eax
	mov	r9d, r12d
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbx
	call	soc_tplg_get_hdr_offset@PLT
	mov	edi, DWORD PTR 4[rbx]
	lea	rsi, .LC4[rip]
	mov	edx, eax
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	soc_valid_header, .-soc_valid_header
	.comm	SOC_TPLG_MAGIC_BIG_ENDIAN,8,8
	.comm	SND_SOC_TPLG_MAGIC,4,4
	.comm	SND_SOC_TPLG_ABI_VERSION_MIN,4,4
	.comm	SND_SOC_TPLG_ABI_VERSION,4,4
	.comm	EINVAL,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_soc-topology.c_soc_valid_header.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ASoC: invalid header size for type %d at offset 0x%"
	.ascii	"lx size 0x%zx.\012\000"
	.align	2
.LC1:
	.ascii	"ASoC: pass %d big endian not supported header got %"
	.ascii	"x at offset 0x%lx size 0x%zx.\012\000"
	.align	2
.LC2:
	.ascii	"ASoC: pass %d does not have a valid header got %x a"
	.ascii	"t offset 0x%lx size 0x%zx.\012\000"
	.align	2
.LC3:
	.ascii	"ASoC: pass %d invalid ABI version got 0x%x need 0x%"
	.ascii	"x at offset 0x%lx size 0x%zx.\012\000"
	.align	2
.LC4:
	.ascii	"ASoC: header has 0 size at offset 0x%lx.\012\000"
	.align	2
.LC5:
	.ascii	"ASoC: Got 0x%x bytes of type %d version %d vendor %"
	.ascii	"d at pass %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	soc_valid_header, %function
soc_valid_header:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	sub	sp, sp, #16
	mov	r5, r1
	bl	soc_tplg_get_hdr_offset
	ldr	r3, [r4, #8]
	ldr	r3, [r3]
	cmp	r0, r3
	movge	r0, #0
	blt	.L13
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r0, [r5]
	bl	le32_to_cpu
	cmp	r0, #28
	bne	.L14
	ldr	r3, .L19
	ldr	r6, [r5, #8]
	ldr	r3, [r3]
	cmp	r6, r3
	beq	.L15
	mov	r0, r6
	bl	le32_to_cpu
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L16
	ldr	r0, [r5, #12]
	bl	le32_to_cpu
	ldr	r7, .L19+8
	ldr	r6, [r7]
	cmp	r0, r6
	bgt	.L6
	ldr	r0, [r5, #12]
	bl	le32_to_cpu
	ldr	r3, .L19+12
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L17
	ldr	r3, [r5, #16]
	cmp	r3, #0
	beq	.L18
	ldr	r0, [r5, #4]
	ldr	r6, [r4]
	bl	le32_to_cpu
	cmp	r6, r0
	movne	r0, #1
	bne	.L1
	ldr	r1, [r4]
	ldr	r2, [r5, #20]
	ldr	r3, [r5, #24]
	str	r1, [sp, #8]
	ldr	r0, [r4, #4]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r5, #4]
	ldr	r2, [r5, #16]
	ldr	r1, .L19+16
	bl	dev_dbg
	mov	r0, #1
	b	.L1
.L16:
	mov	r0, r4
	ldr	r7, [r5, #8]
	ldr	r6, [r4]
	ldr	r5, [r4, #4]
	bl	soc_tplg_get_hdr_offset
	ldr	r2, [r4, #8]
	mov	r3, r7
	ldr	r1, [r2]
	mov	r2, r6
	stm	sp, {r0, r1}
	mov	r0, r5
	ldr	r1, .L19+20
	bl	dev_err
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, [r5, #4]
	ldr	r6, [r4, #4]
	bl	le32_to_cpu
	mov	r5, r0
	mov	r0, r4
	bl	soc_tplg_get_hdr_offset
	ldr	r1, [r4, #8]
	mov	r3, r0
	ldr	r1, [r1]
	mov	r2, r5
	str	r1, [sp]
	mov	r0, r6
	ldr	r1, .L19+28
	bl	dev_err
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r6, [r7]
.L6:
	mov	r0, r4
	ldr	r8, [r5, #12]
	ldr	r7, [r4]
	ldr	r5, [r4, #4]
	bl	soc_tplg_get_hdr_offset
	ldr	r2, [r4, #8]
	mov	r3, r8
	ldr	r1, [r2]
	mov	r2, r7
	stmib	sp, {r0, r1}
	str	r6, [sp]
	mov	r0, r5
	ldr	r1, .L19+32
	bl	dev_err
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L15:
	mov	r0, r4
	ldr	r5, [r4, #4]
	ldr	r7, [r4]
	bl	soc_tplg_get_hdr_offset
	mov	r3, r0
	ldr	r1, [r4, #8]
	mov	r2, r7
	ldr	r1, [r1]
	mov	r0, r5
	str	r1, [sp, #4]
	str	r3, [sp]
	ldr	r1, .L19+36
	mov	r3, r6
	bl	dev_err
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L18:
	mov	r0, r4
	ldr	r5, [r4, #4]
	bl	soc_tplg_get_hdr_offset
	ldr	r1, .L19+40
	mov	r2, r0
	mov	r0, r5
	bl	dev_err
	ldr	r3, .L19+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L20:
	.align	2
.L19:
	.word	SOC_TPLG_MAGIC_BIG_ENDIAN
	.word	SND_SOC_TPLG_MAGIC
	.word	SND_SOC_TPLG_ABI_VERSION
	.word	SND_SOC_TPLG_ABI_VERSION_MIN
	.word	.LC5
	.word	.LC2
	.word	EINVAL
	.word	.LC0
	.word	.LC3
	.word	.LC1
	.word	.LC4
	.size	soc_valid_header, .-soc_valid_header
	.comm	SOC_TPLG_MAGIC_BIG_ENDIAN,4,4
	.comm	SND_SOC_TPLG_MAGIC,4,4
	.comm	SND_SOC_TPLG_ABI_VERSION_MIN,4,4
	.comm	SND_SOC_TPLG_ABI_VERSION,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
