// File: /workspace/github_c_makefile_star2_O1/jsummers[P]deark/modules/ogg.c
// Function: de_run_ogg
static void de_run_ogg(deark *c, de_module_params *mparams)
{
	lctx *d = NULL;

	d = de_malloc(c, sizeof(lctx));

	if(de_havemodcode(c, mparams, 'C')) {
		do_vorbis_comment_block(c, d, c->infile, 0);
		goto done;
	}

	run_ogg_internal(c, d);

done:
	if(d && d->streamtable) {
		destroy_streamtable(c, d);
	}
	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movl $0x40, %esi
callq 0xe969b
movq %rax, %r13
movq %rbx, %rdi
movq %r14, %rsi
movl $0x43, %edx
callq 0xea97e
testl %eax, %eax
je 0x897fc
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8a042
jmp 0x89e3f
leaq 0xa33d0(%rip), %rsi     # 0x12cbd3
movq %rbx, %rdi
callq 0xea6cb
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, (%r13)
movq %rbx, %rdi
callq 0xeb85a
movq %rax, 0x18(%r13)
movq 0x18(%rbx), %rsi
leaq 0x48(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xf95fe
movq 0x8(%r14), %r12
movq 0x10(%r14), %r14
leaq 0x28(%r13), %rax
movq %rax, 0x28(%rsp)
movq %r13, 0x10(%rsp)
leaq 0x30(%r13), %rax
movq %rax, 0x20(%rsp)
leaq 0x18(%rsp), %r13
leaq 0x60(%rsp), %r15
movq %r14, 0x30(%rsp)
cmpq %r14, %r12
jge 0x89998
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xef32a
cmpl $0x4f676753, %eax       # imm = 0x4F676753
jne 0x8999f
movq %rbx, %rdi
leaq 0x97aad(%rip), %rsi     # 0x12133e
movq %r12, %rdx
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq %r12, 0x38(%rsp)
movq %r12, 0x18(%rsp)
movq $0x0, 0x40(%rsp)
movl $0x30, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %r12
addq $0x4, 0x18(%rsp)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xef14d
movb %al, (%r12)
movzbl %al, %edx
movq %rbx, %rdi
leaq 0xaaae3(%rip), %rsi     # 0x1343d1
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xef14d
movl %eax, %ebp
movb %al, 0x1(%r12)
testb %al, %al
je 0x899ba
movq %rbx, %rdi
callq 0xf6870
movq %rax, %r14
testb $0x1, %bpl
je 0x89930
movq %r14, %rdi
leaq 0xa33ae(%rip), %rsi     # 0x12ccd9
callq 0xf7566
testb $0x2, %bpl
je 0x89945
movq %r14, %rdi
leaq 0xb7bde(%rip), %rsi     # 0x14151e
callq 0xf7566
movq %r15, %r13
testb $0x4, %bpl
je 0x8995d
movq %r14, %rdi
leaq 0xa3393(%rip), %rsi     # 0x12cceb
callq 0xf7566
movq %r14, %rdi
callq 0xf74bd
movl $0x64, %esi
leaq 0x70(%rsp), %r15
movq %r15, %rdi
leaq 0xa21ad(%rip), %rdx     # 0x12bb26
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8d67
movq %r14, %rdi
movq %r15, %r14
callq 0xf6bb0
movq %r13, %r15
leaq 0x18(%rsp), %r13
jmp 0x899d3
xorl %ebp, %ebp
jmp 0x89e0a
xorl %ebp, %ebp
movq %rbx, %rdi
leaq 0xa3234(%rip), %rsi     # 0x12cbdf
movq %r12, %rdx
xorl %eax, %eax
callq 0xe9df7
jmp 0x89e0a
movl $0x64, %edx
leaq 0x70(%rsp), %r14
movq %r14, %rdi
leaq 0xbb202(%rip), %rsi     # 0x144bd0
callq 0xe8ded
movzbl %bpl, %edx
movq %rbx, %rdi
leaq 0xa323b(%rip), %rsi     # 0x12cc1c
movq %r14, %rcx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq 0x18(%rsp), %rsi
callq 0xef536
movq %rax, 0x8(%r12)
addq $0x8, 0x18(%rsp)
movq %rbx, %rdi
leaq 0xa3224(%rip), %rsi     # 0x12cc32
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xef3a0
movq %rax, 0x10(%r12)
movq %rbx, %rdi
leaq 0xa3215(%rip), %rsi     # 0x12cc48
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x10(%rsp), %r14
movq 0x18(%r14), %rsi
movq 0x10(%r12), %rdx
movq %rbx, %rdi
leaq 0x40(%rsp), %rcx
callq 0xeb8a9
testl %eax, %eax
je 0x89aa7
movq 0x40(%rsp), %rbp
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x8(%rbp), %rax
leaq 0x88a13(%rip), %rcx     # 0x11248c
testq %rax, %rax
je 0x89a82
movq 0x18(%rax), %rcx
movq 0x10(%r12), %rdx
movq %rbx, %rdi
leaq 0xa31d4(%rip), %rsi     # 0x12cc65
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
jmp 0x89acf
movl $0x30, %esi
movq %rbx, %rdi
callq 0xe969b
movq %rax, %rbp
movq 0x18(%r14), %rsi
movq 0x10(%r12), %rdx
movq %rbx, %rdi
movq %rax, %rcx
callq 0xeb96a
incq 0x10(%r14)
movq 0x10(%r12), %rax
movq %rax, 0x10(%rbp)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xef3a0
movq %rax, 0x18(%r12)
movq %rbx, %rdi
leaq 0xa3189(%rip), %rsi     # 0x12cc7c
movq %rax, %rdx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xef3a0
movq %rbx, %rdi
leaq 0xba272(%rip), %rsi     # 0x143d85
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xef14d
movzbl %al, %r14d
movq %rbx, %rdi
leaq 0xa3160(%rip), %rsi     # 0x12cc96
movl %r14d, %edx
xorl %eax, %eax
callq 0xe9226
movq $0x0, 0x28(%r12)
testb %r14b, %r14b
je 0x89b67
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xef14d
movzbl %al, %eax
addq %rax, 0x28(%r12)
decq %r14
jne 0x89b4e
movq 0x18(%rsp), %rcx
movq %rcx, 0x20(%r12)
xorl %eax, %eax
cmpq $0x0, 0x18(%rbp)
jne 0x89b8d
cmpq $0x0, 0x18(%r12)
jne 0x89b8d
movzbl 0x1(%r12), %eax
shrl %eax
andl $0x1, %eax
movl %eax, 0x4(%r12)
movq 0x28(%r12), %rdx
movq %rbx, %rdi
leaq 0xa3111(%rip), %rsi     # 0x12ccb2
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe9585
movq 0x10(%rsp), %rax
cmpl $0x0, (%rax)
je 0x89c43
movq 0x18(%rbx), %rsi
movq 0x20(%r12), %rdx
movq 0x28(%r12), %rcx
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0xe975a
cmpl $0x0, 0x4(%r12)
je 0x89c56
movq 0x20(%r12), %rdx
movq 0x28(%r12), %rcx
cmpq $0x10, %rcx
movl $0x10, %eax
cmovaeq %rax, %rcx
movq 0x18(%rbx), %rdi
movq %r15, %rsi
callq 0xeeee8
xorl %r14d, %r14d
leaq 0xfa632(%rip), %rax     # 0x184250
movq 0x10(%r14,%rax), %rsi
movslq 0x8(%r14,%rax), %rdx
movq %r15, %rdi
callq 0x18230
testl %eax, %eax
je 0x89c77
addq $0x28, %r14
cmpq $0x258, %r14            # imm = 0x258
jne 0x89c17
jmp 0x89c8d
cmpl $0x0, 0x4(%r12)
je 0x89be9
cmpl $0x2, (%rbx)
jge 0x89bc3
jmp 0x89be9
movq 0x10(%rsp), %rax
cmpb $0x0, 0x20(%rax)
jne 0x89d80
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x8a19b
jmp 0x89d80
leaq 0xfa5d2(%rip), %rcx     # 0x184250
leaq (%rcx,%r14), %rax
movq %rax, 0x8(%rbp)
movl (%r14,%rcx), %eax
movl %eax, (%rbp)
movl (%rbp), %eax
cmpl $0x3, %eax
je 0x89cb5
cmpl $0x2, %eax
je 0x89caa
cmpl $0x1, %eax
jne 0x89cc0
movq 0x10(%rsp), %rcx
movb $0x1, 0x23(%rcx)
jmp 0x89cd8
movq 0x10(%rsp), %rcx
movb $0x1, 0x24(%rcx)
jmp 0x89cd8
movq 0x10(%rsp), %rcx
movb $0x1, 0x21(%rcx)
jmp 0x89cd8
movq 0x8(%rbp), %rcx
testq %rcx, %rcx
je 0x89cd8
testb $0x1, 0x4(%rcx)
je 0x89cd8
movq 0x10(%rsp), %rcx
movb $0x1, 0x22(%rcx)
decl %eax
cmpl $0x2, %eax
jb 0x89ceb
movq 0x10(%rsp), %rax
movl $0x1, 0x34(%rax)
movq 0x8(%rbp), %rax
leaq 0x88796(%rip), %rdx     # 0x11248c
testq %rax, %rax
je 0x89cff
movq 0x18(%rax), %rdx
movq %rbx, %rdi
leaq 0xa2fec(%rip), %rsi     # 0x12ccf5
xorl %eax, %eax
callq 0xe9226
movq 0x10(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x89d48
movl (%rbp), %ecx
movq 0x20(%rsp), %rax
testl %ecx, %ecx
je 0x89d69
movq 0x28(%rsp), %rax
cmpl $0x0, (%rax)
movq 0x20(%rsp), %rax
je 0x89d69
movq 0x20(%rsp), %rax
movq 0x10(%rsp), %rdx
cmpl 0x2c(%rdx), %ecx
jne 0x89d69
jmp 0x89d6f
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x89d6f
movl (%rbp), %ecx
testl %ecx, %ecx
je 0x89d6f
movq 0x10(%rsp), %rdx
movl %ecx, 0x2c(%rdx)
movq %rax, 0x38(%rdx)
movq 0x28(%rsp), %rax
movl $0x1, (%rax)
cmpl $0x0, (%rbp)
jne 0x89d80
movq 0x20(%rsp), %rax
movl $0x1, (%rax)
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x89da2
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x89da2
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq %r12, %rdx
movq %rbp, %rcx
callq *%rax
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
movq 0x18(%rsp), %r14
addq 0x28(%r12), %r14
movq %r14, 0x18(%rsp)
incq 0x18(%rbp)
movq %r14, %rbp
subq 0x38(%rsp), %rbp
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe9752
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe9585
cmpq $0x5, %rbp
jge 0x89df6
xorl %ebp, %ebp
movq 0x30(%rsp), %r14
movq 0x38(%rsp), %r12
jmp 0x89e0a
movq 0x10(%rsp), %rax
incq 0x8(%rax)
movb $0x1, %bpl
movq %r14, %r12
movq 0x30(%rsp), %r14
testb %bpl, %bpl
jne 0x89867
movq 0x10(%rsp), %r13
cmpb $0x0, 0x20(%r13)
jne 0x89e2a
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8a19b
movl 0x10(%r13), %edx
leaq 0xa2dce(%rip), %rsi     # 0x12cc03
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
testq %r13, %r13
je 0x89ef0
cmpq $0x0, 0x18(%r13)
je 0x89ef0
leaq 0x48(%rsp), %rcx
movq $0x0, (%rcx)
movq 0x18(%r13), %rsi
leaq 0x70(%rsp), %rdx
movq %rbx, %rdi
callq 0xeb9f8
testl %eax, %eax
je 0x89edc
leaq 0x70(%rsp), %r15
leaq 0x48(%rsp), %r12
movq 0x48(%rsp), %r14
testq %r14, %r14
je 0x89ebd
movl (%r14), %eax
decl %eax
cmpl $0x1, %eax
ja 0x89ea4
cmpl $0x0, 0x20(%r14)
jne 0x89ea4
movq %rbx, %rdi
movq %r14, %rsi
callq 0x89f6a
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x89eb2
callq 0xf0b13
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe9752
movq $0x0, 0x48(%rsp)
movq 0x18(%r13), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
callq 0xeb9f8
testl %eax, %eax
jne 0x89e7e
movq 0x18(%r13), %rsi
movq %rbx, %rdi
callq 0xeb864
movq $0x0, 0x18(%r13)
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe9752
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq