	.file	"extr_lxfdec.c_lxf_sync.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	lxf_sync, @function
lxf_sync:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rsi
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 24
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR LXF_IDENT_LENGTH[rip]
	mov	rcx, rsp
	mov	r8, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L17
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L18
.L4:
	mov	r12, rsp
	mov	edi, DWORD PTR 0[r13]
	mov	edx, r8d
	mov	rsi, r12
	lea	r14, 4[r12]
	call	avio_read@PLT
	cmp	DWORD PTR LXF_IDENT_LENGTH[rip], eax
	mov	edx, eax
	je	.L5
	test	eax, eax
	cmovns	edx, DWORD PTR AVERROR_EOF[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 0[r13]
	call	avio_feof@PLT
	test	rax, rax
	jne	.L19
	mov	eax, DWORD PTR LXF_IDENT_LENGTH[rip]
	mov	rsi, r14
	mov	rdi, r12
	lea	edx, -1[rax]
	call	memmove@PLT
	mov	eax, DWORD PTR LXF_IDENT_LENGTH[rip]
	mov	edi, DWORD PTR 0[r13]
	lea	ebx, -1[rax]
	call	avio_r8@PLT
	movsx	rbx, ebx
	mov	edx, DWORD PTR LXF_IDENT_LENGTH[rip]
	mov	DWORD PTR [r12+rbx*4], eax
.L5:
	mov	esi, DWORD PTR LXF_IDENT[rip]
	mov	rdi, r12
	call	memcmp@PLT
	test	rax, rax
	jne	.L8
	mov	edx, DWORD PTR LXF_IDENT_LENGTH[rip]
	mov	esi, DWORD PTR LXF_IDENT[rip]
	mov	rdi, r15
	call	memcpy@PLT
	xor	edx, edx
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	lea	rsp, -40[rbp]
	mov	eax, edx
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edx, DWORD PTR AVERROR_EOF[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	lxf_sync, .-lxf_sync
	.comm	LXF_IDENT_LENGTH,4,4
	.comm	LXF_IDENT,4,4
	.comm	AVERROR_EOF,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_lxfdec.c_lxf_sync.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lxf_sync, %function
lxf_sync:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r7, .L13
	mov	r10, r1
	ldr	r2, [r7]
	str	r10, [fp, #-48]
	lsl	r3, r2, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r5, sp
	ldr	r3, .L13+4
	mov	r6, r0
	mov	r1, r5
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	avio_read
	ldr	r3, [r7]
	mov	r4, r0
	cmp	r3, r0
	bne	.L8
	ldr	r8, .L13+8
	add	r9, r5, #4
	b	.L2
.L5:
	ldr	r0, [r6]
	bl	avio_feof
	cmp	r0, #0
	bne	.L10
	ldr	r2, [r7]
	mov	r1, r9
	sub	r10, r2, #1
	mov	r2, r10
	mov	r0, r5
	bl	memmove
	ldr	r0, [r6]
	bl	avio_r8
	ldr	r4, [r7]
	str	r0, [r5, r10, lsl #2]
.L2:
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r8]
	bl	memcmp
	subs	r4, r0, #0
	bne	.L5
	ldr	r2, [r7]
	ldr	r1, [r8]
	ldr	r0, [fp, #-48]
	bl	memcpy
	b	.L1
.L8:
	cmp	r0, #0
	blt	.L1
.L10:
	ldr	r3, .L13+12
	ldr	r4, [r3]
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	LXF_IDENT_LENGTH
	.word	.LC0
	.word	LXF_IDENT
	.word	AVERROR_EOF
	.size	lxf_sync, .-lxf_sync
	.comm	LXF_IDENT_LENGTH,4,4
	.comm	LXF_IDENT,4,4
	.comm	AVERROR_EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
