	.file	"extr_vorbisenc.c_vorbis_encode_psyset_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vorbis_encode_psyset_setup, @function
vorbis_encode_psyset_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	r15, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r15
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR [rdi]
	movsd	QWORD PTR 8[rsp], xmm0
	mov	rax, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR [rax+r15*8]
	cmp	DWORD PTR 0[rbp], r15d
	jg	.L2
	lea	eax, 1[r15]
	mov	DWORD PTR 0[rbp], eax
.L2:
	test	rcx, rcx
	je	.L7
.L3:
	mov	rdi, rcx
	mov	edx, 24
	mov	QWORD PTR [rsp], rcx
	sar	ebx
	lea	rsi, _psy_info_template[rip]
	call	memcpy@PLT
	mov	rcx, QWORD PTR [rsp]
	cmp	QWORD PTR 16[rbp], 0
	mov	DWORD PTR [rcx], ebx
	je	.L1
	cvttsd2si	eax, QWORD PTR 8[rsp]
	mov	DWORD PTR 4[rcx], 1
	cdqe
	mov	edx, DWORD PTR [r14+rax*4]
	movsd	xmm0, QWORD PTR [r12+rax*8]
	mov	DWORD PTR 8[rcx], edx
	mov	edx, DWORD PTR 0[r13+rax*4]
	movsd	QWORD PTR 16[rcx], xmm0
	mov	DWORD PTR 12[rcx], edx
.L1:
	add	rsp, 24
	.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
.L7:
	.cfi_restore_state
	mov	esi, 24
	mov	edi, 1
	call	_ogg_calloc@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax+r15*8], rcx
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	vorbis_encode_psyset_setup, .-vorbis_encode_psyset_setup
	.comm	_psy_info_template,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_vorbisenc.c_vorbis_encode_psyset_setup.c"
	.text
	.global	__aeabi_d2iz
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vorbis_encode_psyset_setup, %function
vorbis_encode_psyset_setup:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, [sp, #36]
	ldr	r8, [r0]
	mov	r7, r3
	ldm	r8, {r0, r1}
	cmp	r0, r5
	ldr	r4, [r1, r5, lsl #2]
	addle	r3, r5, #1
	strle	r3, [r8]
	cmp	r4, #0
	mov	r6, r2
	beq	.L10
.L3:
	mov	r2, #20
	ldr	r1, .L11
	add	r0, r4, #4
	bl	memcpy
	ldr	r3, [r8, #8]
	asr	r5, r5, #1
	cmp	r3, #0
	str	r5, [r4]
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r3, #1
	mov	r1, r7
	str	r3, [r4, #4]
	mov	r0, r6
	bl	__aeabi_d2iz
	ldr	r3, [sp, #24]
	ldr	r2, [r3, r0, lsl #2]
	ldr	r3, [sp, #32]
	str	r2, [r4, #8]
	ldr	r2, [sp, #28]
	add	r3, r3, r0, lsl #3
	ldr	r2, [r2, r0, lsl #2]
	ldmia	r3, {r0-r1}
	str	r2, [r4, #12]
	str	r0, [r4, #16]
	str	r1, [r4, #20]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r1, #24
	mov	r0, #1
	bl	_ogg_calloc
	ldr	r3, [r8, #4]
	mov	r4, r0
	str	r0, [r3, r5, lsl #2]
	b	.L3
.L12:
	.align	2
.L11:
	.word	_psy_info_template+4
	.size	vorbis_encode_psyset_setup, .-vorbis_encode_psyset_setup
	.comm	_psy_info_template,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
