// File: /workspace/github_c_makefile_star2_O2/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 $0xc8, %rsp
movq %rsi, %r15
movq %rdi, %rbx
pushq $0x40
popq %rsi
callq 0xdecaf
movq %rax, %r14
pushq $0x43
popq %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0xdfcf4
testl %eax, %eax
je 0x840b7
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x84809
testq %r14, %r14
jne 0x84642
jmp 0x846c4
leaq 0x9bb8d(%rip), %rsi     # 0x11fc4b
movq %rbx, %rdi
callq 0xdfa87
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, (%r14)
movq %rbx, %rdi
callq 0xe0955
movq %rax, 0x18(%r14)
movq 0x18(%rbx), %rsi
leaq 0x38(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xed79a
movq 0x8(%r15), %r12
movq 0x10(%r15), %rax
movq %rax, 0x28(%rsp)
leaq 0x10(%rsp), %r13
movq %r14, 0x20(%rsp)
cmpq 0x28(%rsp), %r12
jge 0x8461b
movq 0x18(%rbx), %rdi
movq %r12, %rsi
callq 0xe404f
cmpl $0x4f676753, %eax       # imm = 0x4F676753
jne 0x84607
movq %rbx, %rdi
leaq 0x90228(%rip), %rsi     # 0x11435e
movq %r12, %rdx
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
andq $0x0, 0x18(%rsp)
movq %rbx, %rdi
pushq $0x30
popq %rsi
callq 0xdecaf
movq %rax, %r15
movq %r12, 0x30(%rsp)
leaq 0x4(%r12), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movb %al, (%r15)
movzbl %al, %edx
movq %rbx, %rdi
leaq 0xa3367(%rip), %rsi     # 0x1274f1
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movl %eax, %ebp
movb %al, 0x1(%r15)
testb %al, %al
je 0x8422b
movq %rbx, %rdi
callq 0xeac74
movq %rax, %r12
testb $0x1, %bpl
je 0x841cb
movq %r12, %rdi
leaq 0x9bb8b(%rip), %rsi     # 0x11fd51
callq 0xeb884
testb $0x2, %bpl
je 0x841e0
movq %r12, %rdi
leaq 0xb03d3(%rip), %rsi     # 0x1345ae
callq 0xeb884
testb $0x4, %bpl
je 0x841f5
movq %r12, %rdi
leaq 0x9bb73(%rip), %rsi     # 0x11fd63
callq 0xeb884
movq %r12, %rdi
callq 0xeb7e4
leaq 0x60(%rsp), %r14
movq %r14, %rdi
pushq $0x64
popq %rsi
leaq 0x9a98f(%rip), %rdx     # 0x11eb9e
movq %rax, %rcx
xorl %eax, %eax
callq 0xde40c
movq %r12, %rdi
movq %r14, %r12
callq 0xeaf3c
movq 0x20(%rsp), %r14
jmp 0x84242
leaq 0x60(%rsp), %r12
movq %r12, %rdi
leaq 0xb3a26(%rip), %rsi     # 0x137c60
pushq $0x64
popq %rdx
callq 0xde492
movzbl %bpl, %edx
movq %rbx, %rdi
leaq 0x9ba44(%rip), %rsi     # 0x11fc94
movq %r12, %rcx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq 0x10(%rsp), %rsi
callq 0xe418b
movq %rax, 0x8(%r15)
addq $0x8, 0x10(%rsp)
movq %rbx, %rdi
leaq 0x9ba2e(%rip), %rsi     # 0x11fcaa
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe40bf
movq %rax, 0x10(%r15)
movq %rbx, %rdi
leaq 0x9ba20(%rip), %rsi     # 0x11fcc0
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%r14), %rsi
movq 0x10(%r15), %rdx
movq %rbx, %rdi
leaq 0x18(%rsp), %rcx
callq 0xe09a8
testl %eax, %eax
je 0x84309
movq 0x18(%rsp), %rbp
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
movq 0x8(%rbp), %rax
leaq 0x8119e(%rip), %rcx     # 0x10547c
testq %rax, %rax
je 0x842e7
movq 0x18(%rax), %rcx
movq 0x10(%r15), %rdx
movq %rbx, %rdi
leaq 0x9b9e8(%rip), %rsi     # 0x11fcdd
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0xdeba7
jmp 0x8432e
movq %rbx, %rdi
pushq $0x30
popq %rsi
callq 0xdecaf
movq %rax, %rbp
movq 0x18(%r14), %rsi
movq 0x10(%r15), %rdx
movq %rbx, %rdi
movq %rax, %rcx
callq 0xe0a0b
incq 0x10(%r14)
movq 0x10(%r15), %rax
movq %rax, 0x10(%rbp)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe40bf
movq %rax, 0x18(%r15)
movq %rbx, %rdi
leaq 0x9b9a4(%rip), %rsi     # 0x11fcf4
movq %rax, %rdx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe40bf
movq %rbx, %rdi
leaq 0xb2aa5(%rip), %rsi     # 0x136e15
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movzbl %al, %r12d
movq %rbx, %rdi
leaq 0x9b97b(%rip), %rsi     # 0x11fd0e
movl %r12d, %edx
xorl %eax, %eax
callq 0xde896
andq $0x0, 0x28(%r15)
xorl %edx, %edx
subq $0x1, %r12
jb 0x843c3
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3f2a
movzbl %al, %edx
addq 0x28(%r15), %rdx
movq %rdx, 0x28(%r15)
jmp 0x843a4
movq 0x10(%rsp), %rcx
movq %rcx, 0x20(%r15)
xorl %eax, %eax
cmpq $0x0, 0x18(%rbp)
je 0x843dc
leaq 0x50(%rsp), %r13
jmp 0x843f2
cmpq $0x0, 0x18(%r15)
leaq 0x50(%rsp), %r13
jne 0x843f2
movzbl 0x1(%r15), %eax
shrl %eax
andl $0x1, %eax
movl %eax, 0x4(%r15)
movq %rbx, %rdi
leaq 0x9b92a(%rip), %rsi     # 0x11fd2a
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
pushq $0x1
popq %rsi
callq 0xdeba7
cmpl $0x0, (%r14)
je 0x84445
movq 0x18(%rbx), %rsi
movq 0x20(%r15), %rdx
movq 0x28(%r15), %rcx
movl $0x1, (%rsp)
movl $0x100, %r8d            # imm = 0x100
movq %rbx, %rdi
xorl %r9d, %r9d
callq 0xded3a
cmpl $0x0, 0x4(%r15)
jne 0x84451
jmp 0x844b8
cmpl $0x0, 0x4(%r15)
je 0x844b8
cmpl $0x2, (%rbx)
jge 0x84418
movq 0x20(%r15), %rdx
movq 0x28(%r15), %rcx
cmpq $0x10, %rcx
pushq $0x10
popq %rax
cmovaeq %rax, %rcx
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xe3cb7
pushq $-0x28
popq %rcx
leaq 0x28(%rcx), %r12
cmpq $0x258, %r12            # imm = 0x258
je 0x844d3
leaq 0x102e79(%rip), %rax    # 0x187300
movq 0x38(%rcx,%rax), %rsi
movslq 0x30(%rcx,%rax), %rdx
movq %r13, %rdi
callq 0x18230
movq %r12, %rcx
testl %eax, %eax
jne 0x84473
leaq 0x102e59(%rip), %rcx    # 0x187300
leaq (%rcx,%r12), %rax
movq %rax, 0x8(%rbp)
movl (%r12,%rcx), %eax
movl %eax, (%rbp)
jmp 0x844d6
cmpb $0x0, 0x20(%r14)
jne 0x8458e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x84986
jmp 0x8458e
movl (%rbp), %eax
cmpl $0x3, %eax
je 0x844f3
cmpl $0x2, %eax
je 0x844ec
cmpl $0x1, %eax
jne 0x844fa
movb $0x1, 0x23(%r14)
jmp 0x84516
movb $0x1, 0x24(%r14)
jmp 0x84516
movb $0x1, 0x21(%r14)
jmp 0x8450e
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x8450e
testb $0x1, 0x4(%rax)
je 0x8450e
movb $0x1, 0x22(%r14)
movl $0x1, 0x34(%r14)
movq 0x8(%rbp), %rax
leaq 0x80f5b(%rip), %rdx     # 0x10547c
testq %rax, %rax
je 0x8452a
movq 0x18(%rax), %rdx
movq %rbx, %rdi
leaq 0x9b839(%rip), %rsi     # 0x11fd6d
xorl %eax, %eax
callq 0xde896
cmpq $0x0, 0x8(%r14)
je 0x84560
movl (%rbp), %eax
testl %eax, %eax
je 0x84556
cmpl $0x0, 0x28(%r14)
je 0x84556
cmpl 0x2c(%r14), %eax
je 0x8458e
movl $0x1, 0x30(%r14)
jmp 0x84582
movq 0x8(%rbp), %rcx
movl (%rbp), %eax
testq %rcx, %rcx
je 0x84582
testl %eax, %eax
je 0x84586
movl %eax, 0x2c(%r14)
movq %rcx, 0x38(%r14)
movl $0x1, 0x28(%r14)
jmp 0x8458e
testl %eax, %eax
jne 0x8458e
movl $0x1, 0x30(%r14)
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x845ae
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x845ae
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq *%rax
movq %rbx, %rdi
movq %r14, %r13
pushq $-0x1
popq %r14
movl %r14d, %esi
callq 0xdeba7
movq 0x10(%rsp), %r12
addq 0x28(%r15), %r12
movq %r12, 0x10(%rsp)
incq 0x18(%rbp)
movq %r12, %rbp
subq 0x30(%rsp), %rbp
movq %rbx, %rdi
movq %r15, %rsi
callq 0xded32
movq %rbx, %rdi
movl %r14d, %esi
movq %r13, %r14
callq 0xdeba7
cmpq $0x5, %rbp
leaq 0x10(%rsp), %r13
jl 0x8461b
incq 0x8(%r14)
jmp 0x8410a
leaq 0x9b649(%rip), %rsi     # 0x11fc57
movq %rbx, %rdi
movq %r12, %rdx
xorl %eax, %eax
callq 0xdf2a5
cmpb $0x0, 0x20(%r14)
jne 0x8462d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x84986
movl 0x10(%r14), %edx
leaq 0x9b643(%rip), %rsi     # 0x11fc7b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x846c4
leaq 0x60(%rsp), %r15
leaq 0x38(%rsp), %r12
andq $0x0, 0x38(%rsp)
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
callq 0xe0a91
testl %eax, %eax
je 0x846b3
movq 0x38(%rsp), %r13
testq %r13, %r13
je 0x846ad
movl (%r13), %eax
decl %eax
cmpl $0x1, %eax
ja 0x84694
cmpl $0x0, 0x20(%r13)
jne 0x84694
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8473a
movq 0x28(%r13), %rdi
testq %rdi, %rdi
je 0x846a2
callq 0xe5591
movq %rbx, %rdi
movq %r13, %rsi
callq 0xded32
movq 0x18(%r14), %rsi
jmp 0x84655
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0xe095f
andq $0x0, 0x18(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq