	.file	"extr_movsub_bsf.c_text2movsub.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	text2movsub, @function
text2movsub:
.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
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	r13, rsp
	mov	rsi, r13
	call	ff_bsf_get_packet@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR [rsp]
	mov	r12d, DWORD PTR AVERROR_INVALIDDATA[rip]
	mov	esi, DWORD PTR [rax]
	cmp	esi, 65535
	jle	.L12
.L4:
	test	r12d, r12d
	js	.L6
.L7:
	mov	rdi, r13
	call	av_packet_free@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	add	esi, 2
	mov	rdi, rbp
	call	av_new_packet@PLT
	test	eax, eax
	js	.L14
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	call	av_packet_copy_props@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L6
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR [rax]
	call	AV_WB16@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rdi, QWORD PTR 8[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	add	rdi, 2
	call	memcpy@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, rbp
	call	av_packet_unref@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	text2movsub, .-text2movsub
	.comm	ENOMEM,4,4
	.comm	AVERROR_INVALIDDATA,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_movsub_bsf.c_text2movsub.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	text2movsub, %function
text2movsub:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L13
	sub	sp, sp, #12
	mov	r5, r1
	mov	r1, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ff_bsf_get_packet
	subs	r4, r0, #0
	blt	.L1
	ldr	r3, [sp]
	ldr	r1, [r3]
	cmp	r1, #65536
	blt	.L3
	ldr	r3, .L13+4
	ldr	r4, [r3]
.L4:
	cmp	r4, #0
	blt	.L6
.L7:
	mov	r0, sp
	bl	av_packet_free
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L3:
	mov	r0, r5
	add	r1, r1, #2
	bl	av_new_packet
	cmp	r0, #0
	blt	.L12
	mov	r0, r5
	ldr	r1, [sp]
	bl	av_packet_copy_props
	subs	r4, r0, #0
	blt	.L6
	ldr	r3, [sp]
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	bl	AV_WB16
	ldr	r3, [sp]
	ldr	r0, [r5, #4]
	ldr	r2, [r3]
	ldr	r1, [r3, #4]
	add	r0, r0, #2
	bl	memcpy
	b	.L7
.L6:
	mov	r0, r5
	bl	av_packet_unref
	b	.L7
.L12:
	ldr	r3, .L13+8
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L4
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	AVERROR_INVALIDDATA
	.word	ENOMEM
	.size	text2movsub, .-text2movsub
	.comm	ENOMEM,4,4
	.comm	AVERROR_INVALIDDATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
