// File: /workspace/github_c_makefile_star2_O3/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 $0xb8, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movl $0x40, %esi
callq 0xe8b2b
movq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
movl $0x43, %edx
callq 0xea4d9
testl %eax, %eax
je 0x8910c
movq 0x18(%rbx), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8989f
testq %r14, %r14
jne 0x896a6
jmp 0x8974d
leaq 0xa3da8(%rip), %rsi     # 0x12cebb
movq %rbx, %rdi
callq 0xe9b74
xorl %ecx, %ecx
testq %rax, %rax
setne %cl
movl %ecx, (%r14)
movq %rbx, %rdi
callq 0xeb2a9
movq %rax, 0x18(%r14)
movq 0x18(%rbx), %rsi
leaq 0x28(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0xf90e4
movq 0x8(%r15), %rbp
movq 0x10(%r15), %rax
movq %rax, 0x18(%rsp)
cmpq %rax, %rbp
jge 0x8967f
leaq 0x8(%rsp), %r13
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
callq 0xeed0d
cmpl $0x4f676753, %eax       # imm = 0x4F676753
jne 0x8966b
movq %rbx, %rdi
leaq 0x982ca(%rip), %rsi     # 0x12144e
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq $0x0, 0x10(%rsp)
movl $0x30, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %r15
movq %rbp, 0x20(%rsp)
leaq 0x4(%rbp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movb %al, (%r15)
movzbl %al, %edx
movq %rbx, %rdi
leaq 0xab5eb(%rip), %rsi     # 0x1347c9
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movl %eax, %ebp
movb %al, 0x1(%r15)
testb %al, %al
je 0x89287
movq %rbx, %rdi
callq 0xf6410
movq %rax, %r12
testb $0x1, %bpl
je 0x8921f
movq %r12, %rdi
leaq 0xa3da7(%rip), %rsi     # 0x12cfc1
callq 0xf7105
testb $0x2, %bpl
je 0x89234
movq %r12, %rdi
leaq 0xb87cf(%rip), %rsi     # 0x1419fe
callq 0xf7105
movq %r14, %r13
testb $0x4, %bpl
je 0x8924c
movq %r12, %rdi
leaq 0xa3d8c(%rip), %rsi     # 0x12cfd3
callq 0xf7105
movq %r12, %rdi
callq 0xf705c
movl $0x64, %esi
leaq 0x50(%rsp), %r14
movq %r14, %rdi
leaq 0xa2ba6(%rip), %rdx     # 0x12be0e
movq %rax, %rcx
xorl %eax, %eax
callq 0xe8193
movq %r12, %rdi
movq %r14, %r12
callq 0xf6753
movq %r13, %r14
leaq 0x8(%rsp), %r13
jmp 0x892a0
movl $0x64, %edx
leaq 0x50(%rsp), %r12
movq %r12, %rdi
leaq 0xbbe15(%rip), %rsi     # 0x1450b0
callq 0xe8219
movzbl %bpl, %edx
movq %rbx, %rdi
leaq 0xa3c56(%rip), %rsi     # 0x12cf04
movq %r12, %rcx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0xeef09
movq %rax, 0x8(%r15)
addq $0x8, 0x8(%rsp)
movq %rbx, %rdi
leaq 0xa3c40(%rip), %rsi     # 0x12cf1a
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeed83
movq %rax, 0x10(%r15)
movq %rbx, %rdi
leaq 0xa3c32(%rip), %rsi     # 0x12cf30
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r14), %rsi
movq 0x10(%r15), %rdx
movq %rbx, %rdi
leaq 0x10(%rsp), %rcx
callq 0xeb2f8
testl %eax, %eax
je 0x8936b
movq 0x10(%rsp), %rbp
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
movq 0x8(%rbp), %rax
leaq 0x8915e(%rip), %rcx     # 0x11249c
testq %rax, %rax
je 0x89347
movq 0x18(%rax), %rcx
movq 0x10(%r15), %rdx
movq %rbx, %rdi
leaq 0xa3bf8(%rip), %rsi     # 0x12cf4d
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
jmp 0x89392
movl $0x30, %esi
movq %rbx, %rdi
callq 0xe8b2b
movq %rax, %rbp
movq 0x18(%r14), %rsi
movq 0x10(%r15), %rdx
movq %rbx, %rdi
movq %rax, %rcx
callq 0xeb3ad
incq 0x10(%r14)
movq 0x10(%r15), %rax
movq %rax, 0x10(%rbp)
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeed83
movq %rax, 0x18(%r15)
movq %rbx, %rdi
leaq 0xa3bb0(%rip), %rsi     # 0x12cf64
movq %rax, %rdx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeed83
movq %rbx, %rdi
leaq 0xbae91(%rip), %rsi     # 0x144265
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movzbl %al, %r12d
movq %rbx, %rdi
leaq 0xa3b87(%rip), %rsi     # 0x12cf7e
movl %r12d, %edx
xorl %eax, %eax
callq 0xe8617
movq $0x0, 0x28(%r15)
testb %r12b, %r12b
je 0x8942c
movq 0x18(%rbx), %rdi
movq %r13, %rsi
callq 0xeeb4b
movzbl %al, %edx
addq 0x28(%r15), %rdx
movq %rdx, 0x28(%r15)
decq %r12
jne 0x8940e
jmp 0x8942e
xorl %edx, %edx
movq 0x8(%rsp), %rcx
movq %rcx, 0x20(%r15)
xorl %eax, %eax
cmpq $0x0, 0x18(%rbp)
jne 0x89451
cmpq $0x0, 0x18(%r15)
jne 0x89451
movzbl 0x1(%r15), %eax
shrl %eax
andl $0x1, %eax
movl %eax, 0x4(%r15)
movq %rbx, %rdi
leaq 0xa3b3b(%rip), %rsi     # 0x12cf9a
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe8a15
cmpl $0x0, (%r14)
je 0x894a6
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 0xe8bea
cmpl $0x0, 0x4(%r15)
jne 0x894b2
jmp 0x89509
cmpl $0x0, 0x4(%r15)
je 0x89509
cmpl $0x2, (%rbx)
jge 0x89479
movq 0x20(%r15), %rdx
movq 0x28(%r15), %rcx
cmpq $0x10, %rcx
movl $0x10, %eax
cmovaeq %rax, %rcx
movq 0x18(%rbx), %rdi
leaq 0x40(%rsp), %rsi
callq 0xee8d4
xorl %r12d, %r12d
leaq 0xfae11(%rip), %rax     # 0x1842f0
movq 0x10(%r12,%rax), %rsi
movslq 0x8(%r12,%rax), %rdx
leaq 0x40(%rsp), %rdi
callq 0x18230
testl %eax, %eax
je 0x89524
addq $0x28, %r12
cmpq $0x258, %r12            # imm = 0x258
jne 0x894d8
movl (%rbp), %eax
jmp 0x8953a
cmpb $0x0, 0x20(%r14)
jne 0x895f2
movq %rbx, %rdi
movq %r14, %rsi
callq 0x89a00
jmp 0x895f2
leaq 0xfadc5(%rip), %rcx     # 0x1842f0
leaq (%rcx,%r12), %rax
movq %rax, 0x8(%rbp)
movl (%r12,%rcx), %eax
movl %eax, (%rbp)
cmpl $0x3, %eax
je 0x89557
cmpl $0x2, %eax
je 0x89550
cmpl $0x1, %eax
jne 0x8955e
movb $0x1, 0x23(%r14)
jmp 0x8957a
movb $0x1, 0x24(%r14)
jmp 0x8957a
movb $0x1, 0x21(%r14)
jmp 0x89572
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x89572
testb $0x1, 0x4(%rax)
je 0x89572
movb $0x1, 0x22(%r14)
movl $0x1, 0x34(%r14)
movq 0x8(%rbp), %rax
leaq 0x88f17(%rip), %rdx     # 0x11249c
testq %rax, %rax
je 0x8958e
movq 0x18(%rax), %rdx
movq %rbx, %rdi
leaq 0xa3a45(%rip), %rsi     # 0x12cfdd
xorl %eax, %eax
callq 0xe8617
cmpq $0x0, 0x8(%r14)
je 0x895c4
movl (%rbp), %eax
testl %eax, %eax
je 0x895ba
cmpl $0x0, 0x28(%r14)
je 0x895ba
cmpl 0x2c(%r14), %eax
je 0x895f2
movl $0x1, 0x30(%r14)
jmp 0x895e6
movq 0x8(%rbp), %rcx
movl (%rbp), %eax
testq %rcx, %rcx
je 0x895e6
testl %eax, %eax
je 0x895ea
movl %eax, 0x2c(%r14)
movq %rcx, 0x38(%r14)
movl $0x1, 0x28(%r14)
jmp 0x895f2
testl %eax, %eax
jne 0x895f2
movl $0x1, 0x30(%r14)
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x89612
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x89612
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rbp, %rcx
callq *%rax
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
movq 0x8(%rsp), %r12
addq 0x28(%r15), %r12
movq %r12, 0x8(%rsp)
incq 0x18(%rbp)
movq %r12, %rbp
subq 0x20(%rsp), %rbp
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe8be2
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0xe8a15
cmpq $0x5, %rbp
jl 0x8967f
incq 0x8(%r14)
movq %r12, %rbp
cmpq 0x18(%rsp), %r12
jl 0x89163
jmp 0x8967f
leaq 0xa3855(%rip), %rsi     # 0x12cec7
movq %rbx, %rdi
movq %rbp, %rdx
xorl %eax, %eax
callq 0xe9295
cmpb $0x0, 0x20(%r14)
jne 0x89691
movq %rbx, %rdi
movq %r14, %rsi
callq 0x89a00
movl 0x10(%r14), %edx
leaq 0xa384f(%rip), %rsi     # 0x12ceeb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%r14), %rsi
testq %rsi, %rsi
je 0x8974d
leaq 0x28(%rsp), %rcx
movq $0x0, (%rcx)
leaq 0x50(%rsp), %rdx
movq %rbx, %rdi
callq 0xeb43b
testl %eax, %eax
je 0x89739
leaq 0x50(%rsp), %r15
leaq 0x28(%rsp), %r12
movq 0x28(%rsp), %r13
testq %r13, %r13
je 0x8971a
movl (%r13), %eax
decl %eax
cmpl $0x1, %eax
ja 0x89701
cmpl $0x0, 0x20(%r13)
jne 0x89701
movq %rbx, %rdi
movq %r13, %rsi
callq 0x897c7
movq 0x28(%r13), %rdi
testq %rdi, %rdi
je 0x8970f
callq 0xf052b
movq %rbx, %rdi
movq %r13, %rsi
callq 0xe8be2
movq $0x0, 0x28(%rsp)
movq 0x18(%r14), %rsi
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
callq 0xeb43b
testl %eax, %eax
jne 0x896da
movq 0x18(%r14), %rsi
movq %rbx, %rdi
callq 0xeb2b3
movq $0x0, 0x18(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe8be2
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq