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

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

	do_hevc_file(c, d);

	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movl $0x38, %esi
callq 0xe8b2b
movq %rax, %r12
movq 0x18(%rbx), %rdi
movl $0x4, %esi
callq 0xeead3
movl %eax, %ecx
shrb $0x5, %cl
movb %cl, 0x10(%r12)
movl %eax, %edx
shrb $0x4, %dl
andb $0x1, %dl
movb %dl, 0x11(%r12)
andb $0xf, %al
addb $0x8, %al
movzbl %al, %eax
movq %rax, 0x18(%r12)
movzbl %cl, %edx
leaq 0xe07f7(%rip), %rsi     # 0x1188db
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movzbl 0x11(%r12), %edx
leaq 0xe07f1(%rip), %rsi     # 0x1188ec
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movl 0x18(%r12), %edx
leaq 0xd96a6(%rip), %rsi     # 0x1117b7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq 0x18(%rbx), %rdi
movl $0x5, %esi
callq 0xeead3
leaq 0x10(%rsp), %r15
movq $0x6, (%r15)
movl %eax, %ecx
shrb $0x4, %cl
movb %cl, 0x20(%r12)
movl %eax, %edx
shrb $0x3, %dl
andb $0x1, %dl
movb %dl, 0x21(%r12)
movl %eax, %edx
shrb $0x2, %dl
andb $0x1, %dl
movb %dl, 0x22(%r12)
shrb %al
andb $0x1, %al
movb %al, 0x23(%r12)
movzbl %cl, %edx
leaq 0xe078f(%rip), %rsi     # 0x1188fb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movzbl 0x21(%r12), %edx
leaq 0xe0788(%rip), %rsi     # 0x11890b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movzbl 0x22(%r12), %edx
leaq 0xe078c(%rip), %rsi     # 0x118926
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movzbl 0x23(%r12), %edx
leaq 0xe0785(%rip), %rsi     # 0x118936
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3840d
movq %rax, (%r12)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3840d
movq %rax, 0x8(%r12)
movq (%r12), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0xe8f88
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3840d
movq %rax, 0x28(%r12)
testq %rax, %rax
leaq 0xe0761(%rip), %rdx     # 0x118964
leaq 0x10cea6(%rip), %rcx    # 0x1450b0
cmoveq %rdx, %rcx
leaq 0xe0738(%rip), %rsi     # 0x11894d
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpb $0x0, 0x21(%r12)
je 0x383b2
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3840d
movq %rax, 0x30(%r12)
leaq 0xe0727(%rip), %rsi     # 0x118970
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe8617
cmpb $0x0, 0x21(%r12)
movq (%r15), %rdx
je 0x383bc
movq 0x30(%r12), %rax
movq %rdx, 0x8(%rsp)
leaq (%rax,%rdx), %r14
testq %rax, %rax
jle 0x383b9
movq %r12, 0x18(%rsp)
movq %rdx, 0x20(%rsp)
movq %rbx, %rdi
leaq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x3840d
movq %rax, %r15
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3840d
movq 0x8(%rsp), %rbp
leaq (%rax,%rbp), %r12
cmpq %r14, %r12
jg 0x383a1
movq %rax, %r13
leaq -0x1(%r15), %rax
cmpq $0x3, %rax
ja 0x3837f
leaq 0xe05df(%rip), %rcx     # 0x1188ac
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq $0x8, %r13
jl 0x38393
movq 0x18(%rbx), %rdi
movl $0x3, %ecx
leaq 0x5(%rsp), %rsi
movq %rbp, %rdx
callq 0xee8d4
cmpb $0x0, 0x5(%rsp)
jne 0x38328
movb 0x6(%rsp), %al
movl %eax, %ecx
andb $-0x5, %cl
cmpb $0x49, %cl
jne 0x38328
cmpb %al, 0x7(%rsp)
jne 0x38328
movq %rbx, %rdi
leaq 0xe06b8(%rip), %rsi     # 0x1189d3
xorl %eax, %eax
callq 0xe8faa
incq %rbp
decq %r13
movq %rbx, %rdi
movq %rbp, %rsi
movq %r13, %rdx
callq 0xf7a67
jmp 0x38393
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
movq %r13, %rdx
leaq 0xff795(%rip), %rcx     # 0x137ade
jmp 0x3836f
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
movq %r13, %rdx
leaq 0xe064d(%rip), %rcx     # 0x1189a9
jmp 0x3836f
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
movq %r13, %rdx
leaq 0xdd82e(%rip), %rcx     # 0x115b9d
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xefd48
jmp 0x38393
movq %rbx, %rdi
leaq 0xe062a(%rip), %rsi     # 0x1189b3
movl %r15d, %edx
xorl %eax, %eax
callq 0xe8617
movq %r12, 0x8(%rsp)
cmpq %r14, %r12
jl 0x38285
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %r12
addq 0x30(%r12), %rdx
jmp 0x383bc
movq 0x10(%rsp), %rdx
jmp 0x383bc
movq %r14, %rdx
leaq 0xe05c4(%rip), %rsi     # 0x118987
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe8617
movq %rbx, %rdi
movq %r12, %rsi
callq 0xe8be2
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq