	.file	"extr_copy.c_ParseWMV3.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ParseWMV3, @function
ParseWMV3:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR 4[rdi]
	mov	edx, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbp, 4[rsp]
	mov	rdi, rbp
	call	bs_init@PLT
	mov	esi, 2
	mov	rdi, rbp
	call	bs_read@PLT
	cmp	eax, 3
	je	.L1
	mov	esi, 22
	mov	rdi, rbp
	call	bs_skip@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	bs_read@PLT
	mov	esi, 3
	mov	rdi, rbp
	mov	r12d, eax
	call	bs_read@PLT
	mov	esi, 2
	mov	rdi, rbp
	mov	r13d, eax
	call	bs_skip@PLT
	mov	rdi, rbp
	mov	esi, 1
	call	bs_read@PLT
	mov	rdi, rbp
	mov	r14d, eax
	call	bs_eof@PLT
	test	rax, rax
	je	.L13
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbp
	call	bs_init@PLT
	lea	esi, 2[r12+r14]
	mov	rdi, rbp
	call	bs_skip@PLT
	mov	eax, DWORD PTR BLOCK_FLAG_TYPE_MASK[rip]
	mov	esi, 1
	mov	rdi, rbp
	not	eax
	and	DWORD PTR [rbx], eax
	call	bs_read@PLT
	test	eax, eax
	jne	.L15
	test	r13d, r13d
	jg	.L5
.L6:
	mov	eax, DWORD PTR BLOCK_FLAG_TYPE_I[rip]
	or	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR BLOCK_FLAG_TYPE_P[rip]
	or	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, 1
	mov	rdi, rbp
	call	bs_read@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR BLOCK_FLAG_TYPE_B[rip]
	or	DWORD PTR [rbx], eax
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ParseWMV3, .-ParseWMV3
	.comm	BLOCK_FLAG_TYPE_P,4,4
	.comm	BLOCK_FLAG_TYPE_MASK,4,4
	.comm	BLOCK_FLAG_TYPE_I,4,4
	.comm	BLOCK_FLAG_TYPE_B,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_copy.c_ParseWMV3.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ParseWMV3, %function
ParseWMV3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L16
	sub	sp, sp, #12
	ldr	r2, [r0]
	mov	r4, r1
	ldr	r1, [r0, #4]
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	bs_init
	mov	r0, sp
	mov	r1, #2
	bl	bs_read
	cmp	r0, #3
	beq	.L1
	mov	r1, #22
	mov	r0, sp
	bl	bs_skip
	mov	r1, #1
	mov	r0, sp
	bl	bs_read
	mov	r1, #3
	mov	r6, r0
	mov	r0, sp
	bl	bs_read
	mov	r1, #2
	mov	r7, r0
	mov	r0, sp
	bl	bs_skip
	mov	r1, #1
	mov	r0, sp
	bl	bs_read
	mov	r5, r0
	mov	r0, sp
	bl	bs_eof
	cmp	r0, #0
	beq	.L13
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L13:
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	mov	r0, sp
	bl	bs_init
	add	r1, r5, #2
	add	r1, r1, r6
	mov	r0, sp
	bl	bs_skip
	ldr	r2, .L16+4
	ldr	r3, [r4]
	ldr	r2, [r2]
	mov	r1, #1
	bic	r3, r3, r2
	mov	r0, sp
	str	r3, [r4]
	bl	bs_read
	cmp	r0, #0
	bne	.L15
	cmp	r7, #0
	bgt	.L5
.L6:
	ldr	r2, .L16+8
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L15:
	ldr	r2, .L16+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L5:
	mov	r0, sp
	mov	r1, #1
	bl	bs_read
	cmp	r0, #0
	bne	.L6
	ldr	r2, .L16+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4]
	b	.L1
.L14:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	BLOCK_FLAG_TYPE_MASK
	.word	BLOCK_FLAG_TYPE_I
	.word	BLOCK_FLAG_TYPE_P
	.word	BLOCK_FLAG_TYPE_B
	.size	ParseWMV3, .-ParseWMV3
	.comm	BLOCK_FLAG_TYPE_P,4,4
	.comm	BLOCK_FLAG_TYPE_MASK,4,4
	.comm	BLOCK_FLAG_TYPE_I,4,4
	.comm	BLOCK_FLAG_TYPE_B,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
