	.file	"extr_format.c_U8toS16.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	U8toS16, @function
U8toS16:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	eax, DWORD PTR [rsi]
	mov	rbp, rdi
	lea	edi, [rax+rax]
	call	block_Alloc@PLT
	xor	edi, edi
	test	rax, rax
	mov	r12, rax
	sete	dil
	call	unlikely@PLT
	test	rax, rax
	je	.L10
.L2:
	mov	rdi, r13
	call	block_Release@PLT
	mov	rdi, rbp
	call	VLC_UNUSED@PLT
	mov	rax, r12
	pop	rbp
	.cfi_remember_state
	.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
.L10:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, r12
	call	block_CopyProperties@PLT
	movsx	rax, DWORD PTR 0[r13]
	mov	rdx, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR 8[r12]
	lea	rcx, -1[rax]
	test	rax, rax
	je	.L2
	sub	rsi, rdx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, rdx
	lea	rdi, [rdx+rsi]
	sub	rcx, 1
	add	rdx, 4
	mov	eax, DWORD PTR [rax]
	sal	eax, 8
	sub	eax, 32768
	mov	DWORD PTR [rdi], eax
	cmp	rcx, -1
	jne	.L3
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	U8toS16, .-U8toS16
	.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_format.c_U8toS16.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	U8toS16, %function
U8toS16:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1]
	push	{r4, r5, r6, lr}
	mov	r5, r0
	lsl	r0, r3, #1
	mov	r6, r1
	bl	block_Alloc
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	unlikely
	cmp	r0, #0
	beq	.L10
.L2:
	mov	r0, r6
	bl	block_Release
	mov	r0, r5
	bl	VLC_UNUSED
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, r6
	mov	r0, r4
	bl	block_CopyProperties
	ldr	ip, [r6]
	ldr	r2, [r6, #4]
	cmp	ip, #0
	ldr	r1, [r4, #4]
	sub	ip, ip, #1
	beq	.L2
	sub	r1, r1, r2
.L3:
	ldr	r3, [r2]
	sub	ip, ip, #1
	lsl	r3, r3, #8
	add	r0, r2, r1
	sub	r3, r3, #32768
	cmn	ip, #1
	str	r3, [r0]
	add	r2, r2, #4
	bne	.L3
	b	.L2
	.size	U8toS16, .-U8toS16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
