	.file	"567372.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Page:"
.LC1:
	.string	"  version: %d\n"
.LC2:
	.string	"  continued: %d\n"
.LC3:
	.string	"  bos: %d\n"
.LC4:
	.string	"  eos: %d\n"
.LC5:
	.string	"  granule position: %d\n"
.LC6:
	.string	"  stream serial number: %d\n"
.LC7:
	.string	"  page sequence number: %d\n"
	.text
	.globl	output_page
	.type	output_page, @function
output_page:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ogg_page_version@PLT
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ogg_page_continued@PLT
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ogg_page_bos@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ogg_page_eos@PLT
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ogg_page_granulepos@PLT
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ogg_page_serialno@PLT
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ogg_page_pageno@PLT
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	output_page, .-output_page
	.globl	read_from_stream
	.type	read_from_stream, @function
read_from_stream:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	ogg_sync_buffer@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR stdin[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 4096
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ogg_sync_wrote@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_from_stream, .-read_from_stream
	.section	.rodata
.LC8:
	.string	"    Packet: "
.LC9:
	.string	"bos: %d "
.LC10:
	.string	"eos: %d "
.LC11:
	.string	"granule position: %d\n"
.LC12:
	.string	"      packet number: %d "
.LC13:
	.string	"data length: %d\n"
	.text
	.globl	output_packet
	.type	output_packet, @function
output_packet:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	output_packet, .-output_packet
	.section	.rodata
	.align 8
.LC14:
	.string	"corrupt data; can't get packet"
	.text
	.globl	process_packets
	.type	process_packets, @function
process_packets:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L9:
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ogg_stream_packetout@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], 0
	je	.L12
	cmp	DWORD PTR -68[rbp], -1
	jne	.L7
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L9
.L7:
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	output_packet
	jmp	.L9
.L12:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	process_packets, .-process_packets
	.section	.rodata
.LC15:
	.string	"sync lost; can't get page"
.LC16:
	.string	"can't add page to stream"
	.text
	.globl	process_pages
	.type	process_pages, @function
process_pages:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L19:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ogg_sync_pageout@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L22
	cmp	DWORD PTR -52[rbp], -1
	jne	.L16
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L19
.L16:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	output_page
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ogg_stream_pagein@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L18
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L18:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	process_packets
	jmp	.L19
.L22:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	process_pages, .-process_pages
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 496
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -480[rbp]
	mov	rdi, rax
	call	ogg_sync_init@PLT
	lea	rax, -480[rbp]
	mov	rdi, rax
	call	read_from_stream
	lea	rdx, -448[rbp]
	lea	rax, -480[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ogg_sync_pageout@PLT
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	output_page
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	ogg_page_serialno@PLT
	mov	edx, eax
	lea	rax, -416[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	ogg_stream_init@PLT
	lea	rdx, -448[rbp]
	lea	rax, -416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	ogg_stream_pagein@PLT
	mov	DWORD PTR -484[rbp], eax
	cmp	DWORD PTR -484[rbp], -1
	jne	.L24
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	lea	rax, -416[rbp]
	mov	rdi, rax
	call	process_packets
.L25:
	lea	rdx, -416[rbp]
	lea	rax, -480[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	process_pages
	lea	rax, -480[rbp]
	mov	rdi, rax
	call	read_from_stream
	jmp	.L25
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"567372.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Page:\000"
	.align	2
.LC1:
	.ascii	"  version: %d\012\000"
	.align	2
.LC2:
	.ascii	"  continued: %d\012\000"
	.align	2
.LC3:
	.ascii	"  bos: %d\012\000"
	.align	2
.LC4:
	.ascii	"  eos: %d\012\000"
	.align	2
.LC5:
	.ascii	"  granule position: %d\012\000"
	.align	2
.LC6:
	.ascii	"  stream serial number: %d\012\000"
	.align	2
.LC7:
	.ascii	"  page sequence number: %d\012\000"
	.text
	.align	2
	.global	output_page
	.syntax unified
	.arm
	.fpu softvfp
	.type	output_page, %function
output_page:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L2
	bl	puts
	ldr	r0, [fp, #-8]
	bl	ogg_page_version
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, [fp, #-8]
	bl	ogg_page_continued
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2+8
	bl	printf
	ldr	r0, [fp, #-8]
	bl	ogg_page_bos
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2+12
	bl	printf
	ldr	r0, [fp, #-8]
	bl	ogg_page_eos
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2+16
	bl	printf
	ldr	r0, [fp, #-8]
	bl	ogg_page_granulepos
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L2+20
	bl	printf
	ldr	r0, [fp, #-8]
	bl	ogg_page_serialno
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2+24
	bl	printf
	ldr	r0, [fp, #-8]
	bl	ogg_page_pageno
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L2+28
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	output_page, .-output_page
	.align	2
	.global	read_from_stream
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_from_stream, %function
read_from_stream:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #4096
	ldr	r0, [fp, #-16]
	bl	ogg_sync_buffer
	str	r0, [fp, #-12]
	ldr	r3, .L5
	ldr	r3, [r3]
	mov	r2, #4096
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	ogg_sync_wrote
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	stdin
	.size	read_from_stream, .-read_from_stream
	.section	.rodata
	.align	2
.LC8:
	.ascii	"    Packet: \000"
	.align	2
.LC9:
	.ascii	"bos: %d \000"
	.align	2
.LC10:
	.ascii	"eos: %d \000"
	.align	2
.LC11:
	.ascii	"granule position: %d\012\000"
	.align	2
.LC12:
	.ascii	"      packet number: %d \000"
	.align	2
.LC13:
	.ascii	"data length: %d\012\000"
	.text
	.align	2
	.global	output_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	output_packet, %function
output_packet:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L8+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L8+8
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	ldr	r0, .L8+16
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L8+20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	output_packet, .-output_packet
	.section	.rodata
	.align	2
.LC14:
	.ascii	"corrupt data; can't get packet\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process_packets
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_packets, %function
process_packets:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L15:
	sub	r3, fp, #44
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	ogg_stream_packetout
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L19+4
	bl	puts
	b	.L15
.L13:
	sub	r3, fp, #44
	mov	r0, r3
	bl	output_packet
	b	.L15
.L18:
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC15
	.word	.LC14
	.size	process_packets, .-process_packets
	.section	.rodata
	.align	2
.LC16:
	.ascii	"sync lost; can't get page\000"
	.align	2
.LC17:
	.ascii	"can't add page to stream\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process_pages
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_pages, %function
process_pages:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L27:
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	ogg_sync_pageout
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L31+4
	bl	puts
	b	.L27
.L24:
	sub	r3, fp, #24
	mov	r0, r3
	bl	output_page
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	ogg_stream_pagein
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L26
	ldr	r0, .L31+8
	bl	printf
.L26:
	ldr	r0, [fp, #-36]
	bl	process_packets
	b	.L27
.L30:
	nop
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC18
	.word	.LC16
	.word	.LC17
	.size	process_pages, .-process_pages
	.section	.rodata
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 416
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #416
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #400
	mov	r0, r3
	bl	ogg_sync_init
	sub	r3, fp, #400
	mov	r0, r3
	bl	read_from_stream
	sub	r2, fp, #416
	sub	r3, fp, #400
	mov	r1, r2
	mov	r0, r3
	bl	ogg_sync_pageout
	sub	r3, fp, #416
	mov	r0, r3
	bl	output_page
	sub	r3, fp, #416
	mov	r0, r3
	bl	ogg_page_serialno
	mov	r2, r0
	sub	r3, fp, #372
	mov	r1, r2
	mov	r0, r3
	bl	ogg_stream_init
	sub	r2, fp, #416
	sub	r3, fp, #372
	mov	r1, r2
	mov	r0, r3
	bl	ogg_stream_pagein
	str	r0, [fp, #-420]
	ldr	r3, [fp, #-420]
	cmn	r3, #1
	bne	.L34
	ldr	r0, .L37+4
	bl	printf
.L34:
	sub	r3, fp, #372
	mov	r0, r3
	bl	process_packets
.L35:
	sub	r2, fp, #372
	sub	r3, fp, #400
	mov	r1, r2
	mov	r0, r3
	bl	process_pages
	sub	r3, fp, #400
	mov	r0, r3
	bl	read_from_stream
	b	.L35
.L38:
	.align	2
.L37:
	.word	.LC19
	.word	.LC17
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
