	.file	"extr_stb_vorbis.c_stb_vorbis_decode_filename.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	stb_vorbis_decode_filename
	.type	stb_vorbis_decode_filename, @function
stb_vorbis_decode_filename:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	xor	edx, edx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 8[rsp], rcx
	lea	rsi, 20[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	stb_vorbis_open_filename@PLT
	test	rax, rax
	je	.L10
	mov	r14, rax
	mov	eax, DWORD PTR [rax]
	mov	r13d, eax
	mov	DWORD PTR 0[rbp], eax
	sal	r13d, 12
	test	rbx, rbx
	je	.L3
	mov	eax, DWORD PTR 4[r14]
	mov	DWORD PTR [rbx], eax
.L3:
	lea	edi, [r13+r13]
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L15
	mov	esi, DWORD PTR [r14]
	mov	ebx, r13d
	xor	r15d, r15d
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	ecx, ebx
	movsx	rax, r15d
	mov	rdi, r14
	sub	ecx, r15d
	lea	rdx, 0[rbp+rax*2]
	call	stb_vorbis_get_frame_short_interleaved@PLT
	test	eax, eax
	je	.L6
	mov	esi, DWORD PTR [r14]
	add	r12d, eax
	imul	eax, esi
	add	r15d, eax
	lea	eax, 0[r13+r15]
	cmp	eax, ebx
	jle	.L5
	add	ebx, ebx
	mov	rdi, rbp
	lea	esi, [rbx+rbx]
	call	realloc@PLT
	test	rax, rax
	je	.L8
	mov	esi, DWORD PTR [r14]
	mov	rbp, rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, r14
	mov	QWORD PTR [rax], rbp
	call	stb_vorbis_close@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	call	free@PLT
.L15:
	mov	rdi, r14
	mov	r12d, -2
	call	stb_vorbis_close@PLT
	jmp	.L1
.L10:
	mov	r12d, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	stb_vorbis_decode_filename, .-stb_vorbis_decode_filename
	.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_stb_vorbis_decode_filename.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	stb_vorbis_decode_filename
	.syntax unified
	.arm
	.fpu softvfp
	.type	stb_vorbis_decode_filename, %function
stb_vorbis_decode_filename:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r3
	sub	sp, sp, #8
	ldr	r3, .L18
	mov	r5, r1
	mov	r4, r2
	mov	r1, sp
	mov	r2, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	stb_vorbis_open_filename
	subs	r6, r0, #0
	beq	.L10
	ldr	r9, [r6]
	cmp	r4, #0
	str	r9, [r5]
	ldrne	r3, [r6, #4]
	lsl	r9, r9, #12
	strne	r3, [r4]
	lsl	r0, r9, #1
	bl	malloc
	subs	r8, r0, #0
	beq	.L15
	mov	r4, #0
	mov	r5, r9
	mov	r7, r4
	ldr	r1, [r6]
.L5:
	mov	r0, r6
	sub	r3, r5, r4
	add	r2, r8, r4, lsl #1
	bl	stb_vorbis_get_frame_short_interleaved
	cmp	r0, #0
	beq	.L6
	ldr	r1, [r6]
	add	r7, r7, r0
	mla	r4, r0, r1, r4
	add	r3, r9, r4
	cmp	r3, r5
	ble	.L5
	lsl	r5, r5, #1
	mov	r0, r8
	lsl	r1, r5, #1
	bl	realloc
	cmp	r0, #0
	beq	.L8
	mov	r8, r0
	ldr	r1, [r6]
	b	.L5
.L6:
	mov	r0, r6
	str	r8, [r10]
	bl	stb_vorbis_close
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r7
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mvn	r7, #0
	b	.L1
.L8:
	mov	r0, r8
	bl	free
.L15:
	mov	r0, r6
	bl	stb_vorbis_close
	mvn	r7, #1
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.size	stb_vorbis_decode_filename, .-stb_vorbis_decode_filename
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
