// File: /workspace/github_c_makefile_star2_O0/hcmiya[P]opuscomment/src/read.c
// Function: parse_info
bool parse_info(ogg_page *og) {
	static int osidx = 0;
	if (!ogg_page_bos(og) || ogg_page_eos(og)) {
		if (ogg_page_pageno(og) == 0) {
			opuserror(err_opus_bad_stream);
		}
		opuserror(err_opus_no_target_codec);
	}
	if (ogg_page_pageno(og) != 0) {
		// BOSがあるのにページが0でない
		opuserror(err_opus_bad_stream);
	}
	if (ogg_page_granulepos(og) != 0) {
		// ヘッダのgranuleposは必ず0
		opuserror(err_opus_bad_stream);
	}
	check_header_is_single_page(og);
	
	if (og->body_len < codec->headmagic_len || memcmp(og->body, codec->headmagic, codec->headmagic_len) != 0) {
// 		have_multi_streams = true;
		return false;
	}
	osidx++;
	if (O.target_idx && O.target_idx != osidx) {
// 		have_multi_streams = true;
		return false;
	}
	opus_sno = ogg_page_serialno(og);
	header_packet_len = og->header_len + og->body_len;
	header_packet_pos = seeked_len - header_packet_len;
	built_header_pos = ftell(built_stream);
	codec->parse(og);
	if (O.edit != EDIT_LIST && codec->type != CODEC_FLAC) {
		write_page(og, built_stream);
	}
	opus_idx++;
	opst = PAGE_INFO_BORDER;
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2040
cmpl $0x0, %eax
je 0x5338
movq -0x10(%rbp), %rdi
callq 0x24e0
cmpl $0x0, %eax
je 0x535f
movq -0x10(%rbp), %rdi
callq 0x2080
cmpq $0x0, %rax
jne 0x5353
movl $0x5, %edi
movb $0x0, %al
callq 0x8690
movl $0x4, %edi
movb $0x0, %al
callq 0x8690
movq -0x10(%rbp), %rdi
callq 0x2080
cmpq $0x0, %rax
je 0x537a
movl $0x5, %edi
movb $0x0, %al
callq 0x8690
movq -0x10(%rbp), %rdi
callq 0x22e0
cmpq $0x0, %rax
je 0x5395
movl $0x5, %edi
movb $0x0, %al
callq 0x8690
movq -0x10(%rbp), %rdi
callq 0x54f0
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
leaq 0x18303(%rip), %rcx     # 0x1d6b0
movq (%rcx), %rcx
cmpq 0x18(%rcx), %rax
jb 0x53e4
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdi
leaq 0x182eb(%rip), %rax     # 0x1d6b0
movq (%rax), %rax
movq 0x20(%rax), %rsi
leaq 0x182dd(%rip), %rax     # 0x1d6b0
movq (%rax), %rax
movq 0x18(%rax), %rdx
callq 0x2230
cmpl $0x0, %eax
je 0x53ed
movb $0x0, -0x1(%rbp)
jmp 0x54e2
movl 0x8235(%rip), %eax      # 0xd628
addl $0x1, %eax
movl %eax, 0x822c(%rip)      # 0xd628
leaq 0x182c5(%rip), %rax     # 0x1d6c8
cmpl $0x0, 0x24(%rax)
je 0x5424
leaq 0x182b8(%rip), %rax     # 0x1d6c8
movl 0x24(%rax), %eax
cmpl 0x820f(%rip), %eax      # 0xd628
je 0x5424
movb $0x0, -0x1(%rbp)
jmp 0x54e2
movq -0x10(%rbp), %rdi
callq 0x2440
movl %eax, %ecx
leaq 0x182de(%rip), %rax     # 0x1d714
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movq -0x10(%rbp), %rcx
addq 0x18(%rcx), %rax
movq %rax, 0x81e1(%rip)      # 0xd630
movq 0x81e2(%rip), %rax      # 0xd638
subq 0x81d3(%rip), %rax      # 0xd630
movq %rax, 0x81dc(%rip)      # 0xd640
leaq 0x182b5(%rip), %rax     # 0x1d720
movq (%rax), %rdi
callq 0x22b0
movq %rax, 0x81ce(%rip)      # 0xd648
leaq 0x1822f(%rip), %rax     # 0x1d6b0
movq (%rax), %rax
movq 0x28(%rax), %rax
movq -0x10(%rbp), %rdi
callq *%rax
leaq 0x18233(%rip), %rax     # 0x1d6c8
cmpl $0x1, (%rax)
je 0x54bc
leaq 0x1820f(%rip), %rax     # 0x1d6b0
movq (%rax), %rax
cmpl $0x2, (%rax)
je 0x54bc
movq -0x10(%rbp), %rdi
leaq 0x1826c(%rip), %rax     # 0x1d720
movq (%rax), %rsi
callq 0x6c10
leaq 0x1824d(%rip), %rax     # 0x1d710
movl (%rax), %ecx
addl $0x1, %ecx
leaq 0x18241(%rip), %rax     # 0x1d710
movl %ecx, (%rax)
leaq 0x18234(%rip), %rax     # 0x1d70c
movl $0x1, (%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)