	.file	"extr_stb_vorbis.c_compute_stereo_samples.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	compute_stereo_samples, @function
compute_stereo_samples:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, r8d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ecx
	sub	rsp, 216
	.cfi_def_cfa_offset 272
	mov	QWORD PTR 40[rsp], rdi
	mov	DWORD PTR 32[rsp], esi
	mov	QWORD PTR 8[rsp], rdx
	mov	DWORD PTR 36[rsp], r8d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 200[rsp], rax
	xor	eax, eax
	call	check_endianness@PLT
	test	r14d, r14d
	jle	.L1
	movsx	rax, r15d
	mov	DWORD PTR 20[rsp], ebx
	mov	ebp, 16
	xor	r12d, r12d
	mov	rsi, rax
	sal	rax, 3
	lea	rbx, 64[rsp]
	mov	QWORD PTR 48[rsp], rax
	lea	eax, -1[r14]
	and	eax, -16
	add	eax, 16
	mov	DWORD PTR 56[rsp], eax
	lea	eax, -1[rsi]
	mov	DWORD PTR 60[rsp], eax
	.p2align 4,,10
	.p2align 3
.L16:
	xor	esi, esi
	mov	edx, 128
	lea	r13d, [r12+r12]
	mov	rdi, rbx
	call	memset@PLT
	mov	esi, DWORD PTR 36[rsp]
	lea	edx, [r12+rbp]
	mov	eax, esi
	sub	eax, r12d
	cmp	edx, esi
	cmovg	ebp, eax
	mov	eax, DWORD PTR 32[rsp]
	test	eax, eax
	jle	.L10
	mov	rax, QWORD PTR channel_position[rip]
	mov	rdi, QWORD PTR 48[rsp]
	xor	edx, edx
	mov	r9d, DWORD PTR PLAYBACK_LEFT[rip]
	mov	r11d, DWORD PTR PLAYBACK_RIGHT[rip]
	mov	r8, QWORD PTR [rax+rdi]
	movsx	r14, DWORD PTR 20[rsp]
	lea	eax, -1[rbp]
	sal	rax, 3
	mov	esi, r9d
	mov	edi, DWORD PTR 60[rsp]
	or	esi, r11d
	sal	r14, 2
	lea	r10, 76[rsp+rax]
	lea	rcx, 72[rsp+rax]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	r9d, eax
	je	.L31
	cmp	r11d, eax
	je	.L32
.L12:
	lea	rax, 1[rdx]
	cmp	rdx, rdi
	je	.L10
.L22:
	mov	rdx, rax
.L9:
	mov	eax, DWORD PTR [r8+rdx*4]
	and	eax, esi
	cmp	esi, eax
	jne	.L7
	test	ebp, ebp
	jle	.L12
	mov	rax, QWORD PTR 8[rsp]
	mov	r15, QWORD PTR [rax+rdx*8]
	mov	rax, rbx
	add	r15, r14
	.p2align 4,,10
	.p2align 3
.L11:
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, DWORD PTR [r15]
	add	rax, 8
	add	r15, 4
	movss	DWORD PTR -8[rax], xmm0
	movss	xmm0, DWORD PTR -4[rax]
	addss	xmm0, DWORD PTR -4[r15]
	movss	DWORD PTR -4[rax], xmm0
	cmp	rax, rcx
	jne	.L11
	lea	rax, 1[rdx]
	cmp	rdx, rdi
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L10:
	lea	eax, [rbp+rbp]
	test	eax, eax
	jle	.L6
	mov	rdi, QWORD PTR 40[rsp]
	lea	r15d, -1[rax]
	movsx	rax, r13d
	xor	r13d, r13d
	lea	r14, [rdi+rax*2]
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r13, rax
.L20:
	mov	edi, DWORD PTR temp[rip]
	call	FASTDEF@PLT
	movss	xmm0, DWORD PTR [rbx+r13*4]
	mov	edi, DWORD PTR temp[rip]
	mov	esi, 15
	call	FAST_SCALED_FLOAT_TO_INT@PLT
	lea	edx, 32768[rax]
	mov	ecx, eax
	shr	eax, 31
	add	ax, 32767
	cmp	edx, 65535
	cmovbe	eax, ecx
	mov	WORD PTR [r14+r13*2], ax
	lea	rax, 1[r13]
	cmp	r15, r13
	jne	.L24
.L6:
	add	DWORD PTR 20[rsp], 16
	add	r12d, 16
	cmp	r12d, DWORD PTR 56[rsp]
	jne	.L16
.L1:
	mov	rax, QWORD PTR 200[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L33
	add	rsp, 216
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	test	ebp, ebp
	jle	.L12
	mov	rax, QWORD PTR 8[rsp]
	mov	r15, QWORD PTR [rax+rdx*8]
	mov	rax, rbx
	add	r15, r14
	.p2align 4,,10
	.p2align 3
.L14:
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, DWORD PTR [r15]
	add	rax, 8
	add	r15, 4
	movss	DWORD PTR -8[rax], xmm0
	cmp	rax, rcx
	jne	.L14
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L32:
	test	ebp, ebp
	jle	.L12
	lea	rax, 68[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR 8[rsp]
	mov	r15, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR 24[rsp]
	add	r15, r14
	.p2align 4,,10
	.p2align 3
.L15:
	movss	xmm0, DWORD PTR [rax]
	addss	xmm0, DWORD PTR [r15]
	add	rax, 8
	add	r15, 4
	movss	DWORD PTR -8[rax], xmm0
	cmp	r10, rax
	jne	.L15
	jmp	.L12
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	compute_stereo_samples, .-compute_stereo_samples
	.comm	temp,4,4
	.comm	channel_position,8,8
	.comm	PLAYBACK_RIGHT,4,4
	.comm	PLAYBACK_LEFT,4,4
	.comm	BUFFER_SIZE,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_stb_vorbis.c_compute_stereo_samples.c"
	.text
	.global	__aeabi_fadd
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	compute_stereo_samples, %function
compute_stereo_samples:
	@ args = 4, pretend = 0, frame = 200
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	sub	sp, sp, #204
	ldr	r3, .L34
	str	r0, [sp, #52]
	str	r1, [sp, #44]
	str	r2, [sp, #56]
	ldr	r3, [r3]
	str	r3, [sp, #196]
	mov	r3,#0
	mov	r5, r1
	bl	check_endianness
	ldr	r3, [sp, #240]
	cmp	r3, #0
	ble	.L1
	mov	r3, #0
	mov	r10, #16
	str	r3, [sp, #16]
	ldr	r3, [sp, #240]
	ldr	fp, .L34+4
	sub	r3, r3, #1
	bic	r3, r3, #15
	add	r3, r3, r10
	str	r3, [sp, #48]
	lsl	r3, r5, #2
	str	r4, [sp, #20]
	str	r3, [sp, #60]
.L16:
	mov	r2, #128
	mov	r1, #0
	add	r0, sp, #68
	bl	memset
	ldr	r2, [sp, #16]
	ldr	r1, [sp, #240]
	add	r3, r2, r10
	cmp	r3, r1
	mov	r3, r2
	lsl	r2, r2, #1
	str	r2, [sp, #36]
	movgt	r2, r1
	subgt	r10, r2, r3
	ldr	r3, [sp, #44]
	cmp	r3, #0
	ble	.L10
	ldr	r3, .L34+8
	ldr	r0, [sp, #60]
	ldr	r3, [r3]
	ldr	r2, .L34+12
	sub	r8, r0, #4
	ldr	r1, [r2]
	ldr	r2, [r3, r0]
	ldr	r3, .L34+16
	sub	r5, r2, #4
	ldr	ip, [r3]
	ldr	r3, [sp, #20]
	add	r2, r2, r8
	lsl	r0, r3, #2
	add	r3, r10, r3
	str	r2, [sp, #4]
	lsl	r3, r3, #2
	sub	r2, r0, #4
	ldr	r6, [sp, #56]
	str	r1, [sp, #8]
	str	ip, [sp, #12]
	str	r0, [sp, #28]
	orr	r7, r1, ip
	str	r2, [sp, #40]
	str	r3, [sp, #24]
	b	.L9
.L7:
	ldr	r2, [sp, #8]
	cmp	r2, r3
	beq	.L31
	ldr	r2, [sp, #12]
	cmp	r2, r3
	beq	.L32
.L12:
	ldr	r3, [sp, #4]
	add	r6, r6, #4
	cmp	r5, r3
	beq	.L10
.L9:
	ldr	r3, [r5, #4]!
	bics	r2, r7, r3
	and	r3, r3, r7
	bne	.L7
	cmp	r10, #0
	ble	.L12
	ldr	r4, [r6]
	ldr	r3, [sp, #28]
	add	r9, sp, #68
	add	r8, r4, r3
	ldr	r3, [sp, #24]
	str	r5, [sp, #32]
	add	r4, r4, r3
.L11:
	ldr	r5, [r8], #4	@ float
	ldr	r0, [r9]	@ float
	mov	r1, r5
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r1, r5
	ldr	r0, [r9, #4]	@ float
	str	r3, [r9]	@ float
	bl	__aeabi_fadd
	cmp	r4, r8
	str	r0, [r9, #4]	@ float
	add	r9, r9, #8
	bne	.L11
	ldr	r5, [sp, #32]
	ldr	r3, [sp, #4]
	add	r6, r6, #4
	cmp	r5, r3
	bne	.L9
.L10:
	lsl	r5, r10, #1
	cmp	r5, #0
	ble	.L6
	ldr	r3, [sp, #36]
	ldr	r2, [sp, #16]
	add	r5, r5, r3
	ldr	r3, [sp, #52]
	ldr	r6, .L34+20
	add	r5, r3, r5, lsl #1
	add	r4, sp, #64
	add	r7, r3, r2, lsl #2
.L20:
	ldr	r0, [fp]
	bl	FASTDEF
	mov	r2, #15
	ldr	r1, [r4, #4]!	@ float
	ldr	r0, [fp]
	bl	FAST_SCALED_FLOAT_TO_INT
	add	r3, r0, #32768
	cmp	r3, #65536
	lslcc	r0, r0, #16
	asrcc	r0, r0, #16
	bcc	.L19
	cmp	r0, #0
	ldr	r3, .L34+24
	movlt	r3, r6
	mov	r0, r3
.L19:
	strh	r0, [r7], #2	@ movhi
	cmp	r7, r5
	bne	.L20
.L6:
	ldr	r3, [sp, #16]
	ldr	r2, [sp, #48]
	add	r3, r3, #16
	str	r3, [sp, #16]
	cmp	r3, r2
	ldr	r3, [sp, #20]
	add	r3, r3, #16
	str	r3, [sp, #20]
	bne	.L16
.L1:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #196]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	add	sp, sp, #204
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L31:
	cmp	r10, #0
	ble	.L12
	mov	r4, #1
	ldr	r2, [r6]
	ldr	r3, [sp, #40]
	add	r8, r2, r3
.L14:
	add	r3, sp, #68
	add	r9, r3, r4, lsl #3
	ldr	r0, [r9, #-8]	@ float
	ldr	r1, [r8, #4]!	@ float
	bl	__aeabi_fadd
	cmp	r4, r10
	str	r0, [r9, #-8]	@ float
	add	r4, r4, #1
	bne	.L14
	b	.L12
.L32:
	cmp	r10, #0
	ble	.L12
	ldr	r4, [r6]
	ldr	r3, [sp, #28]
	add	r8, sp, #68
	add	r9, r4, r3
	ldr	r3, [sp, #24]
	add	r4, r4, r3
.L15:
	ldr	r0, [r8, #4]	@ float
	ldr	r1, [r9], #4	@ float
	bl	__aeabi_fadd
	cmp	r4, r9
	str	r0, [r8, #4]	@ float
	add	r8, r8, #8
	bne	.L15
	b	.L12
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	temp
	.word	channel_position
	.word	PLAYBACK_LEFT
	.word	PLAYBACK_RIGHT
	.word	-32768
	.word	32767
	.size	compute_stereo_samples, .-compute_stereo_samples
	.comm	temp,4,4
	.comm	channel_position,4,4
	.comm	PLAYBACK_RIGHT,4,4
	.comm	PLAYBACK_LEFT,4,4
	.comm	BUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
