	.file	"extr_block.c_vorbis_block_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vorbis_block_init
	.type	vorbis_block_init, @function
vorbis_block_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 40
	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
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	memset@PLT
	cmp	QWORD PTR [rbx], 0
	mov	QWORD PTR 32[rbp], rbx
	mov	QWORD PTR 24[rbp], 0
	mov	QWORD PTR 16[rbp], 0
	jne	.L11
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L11:
	.cfi_restore_state
	mov	esi, 16
	mov	edi, 1
	call	_ogg_calloc@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	r12, rax
	mov	DWORD PTR [rax], -9999
	mov	eax, DWORD PTR PACKETBLOBS[rip]
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR 0[r13], rbp
	mov	rdi, rbp
.L5:
	call	oggpack_writeinit@PLT
	mov	eax, DWORD PTR PACKETBLOBS[rip]
	add	rbx, 1
	cmp	eax, ebx
	jle	.L7
.L6:
	mov	rdx, QWORD PTR 8[r12]
	sar	eax
	lea	r13, [rdx+rbx*8]
	cmp	eax, ebx
	je	.L12
	mov	edi, 1
	mov	esi, 4
	call	_ogg_calloc@PLT
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, QWORD PTR [rax+rbx*8]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	vorbis_block_init, .-vorbis_block_init
	.comm	PACKETBLOBS,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_block.c_vorbis_block_init.c"
	.text
	.align	2
	.global	vorbis_block_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	vorbis_block_init, %function
vorbis_block_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	mov	r0, r1
	mov	r2, #20
	mov	r1, #0
	bl	memset
	ldr	r3, [r4]
	str	r4, [r5, #16]
	cmp	r3, #0
	bne	.L11
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r4, #0
	mov	r1, #8
	mov	r0, #1
	bl	_ogg_calloc
	ldr	r8, .L12
	ldr	r2, .L12+4
	ldr	r3, [r8]
	str	r0, [r5, #4]
	cmp	r3, r4
	mov	r6, r0
	str	r2, [r0]
	ble	.L7
.L6:
	ldr	r7, [r6, #4]
	cmp	r4, r3, asr #1
	moveq	r0, r5
	streq	r5, [r7, r4, lsl #2]
	beq	.L5
	mov	r1, #4
	mov	r0, #1
	bl	_ogg_calloc
	ldr	r3, [r6, #4]
	str	r0, [r7, r4, lsl #2]
	ldr	r0, [r3, r4, lsl #2]
.L5:
	bl	oggpack_writeinit
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	PACKETBLOBS
	.word	-9999
	.size	vorbis_block_init, .-vorbis_block_init
	.comm	PACKETBLOBS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
