// File: /workspace/github_c_makefile_star2_O1/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 0xe969b
movq %rax, %r14
leaq 0x8(%rsp), %r15
movq $0x4, (%r15)
movq 0x18(%rbx), %rdi
movl $0x4, %esi
callq 0xef0d5
movq $0x5, (%r15)
movl %eax, %ecx
shrb $0x5, %cl
movb %cl, 0x10(%r14)
movl %eax, %edx
shrb $0x4, %dl
andb $0x1, %dl
movb %dl, 0x11(%r14)
andb $0xf, %al
addb $0x8, %al
movzbl %al, %eax
movq %rax, 0x18(%r14)
movzbl %cl, %edx
leaq 0xe05ab(%rip), %rsi     # 0x1187b7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movzbl 0x11(%r14), %edx
leaq 0xe05a6(%rip), %rsi     # 0x1187c8
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movl 0x18(%r14), %edx
leaq 0xd9571(%rip), %rsi     # 0x1117a8
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq 0x18(%rbx), %rdi
movl $0x5, %esi
callq 0xef0d5
movq $0x6, (%r15)
movl %eax, %ecx
shrb $0x4, %cl
movb %cl, 0x20(%r14)
movl %eax, %edx
shrb $0x3, %dl
andb $0x1, %dl
movb %dl, 0x21(%r14)
movl %eax, %edx
shrb $0x2, %dl
andb $0x1, %dl
movb %dl, 0x22(%r14)
shrb %al
andb $0x1, %al
movb %al, 0x23(%r14)
movzbl %cl, %edx
leaq 0xe054e(%rip), %rsi     # 0x1187d7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movzbl 0x21(%r14), %edx
leaq 0xe0548(%rip), %rsi     # 0x1187e7
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movzbl 0x22(%r14), %edx
leaq 0xe054d(%rip), %rsi     # 0x118802
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movzbl 0x23(%r14), %edx
leaq 0xe0547(%rip), %rsi     # 0x118812
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movq %r15, %rsi
callq 0x38518
movq %rax, (%r14)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x38518
movq %rax, 0x8(%r14)
movq (%r14), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0xe9b05
movq %rbx, %rdi
movq %r15, %rsi
callq 0x38518
movq %rax, 0x28(%r14)
testq %rax, %rax
leaq 0xe0527(%rip), %rdx     # 0x118840
leaq 0x10c8b0(%rip), %rcx    # 0x144bd0
cmoveq %rdx, %rcx
leaq 0xe04fe(%rip), %rsi     # 0x118829
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
cmpb $0x0, 0x21(%r14)
je 0x38362
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x38518
movq %rax, 0x30(%r14)
leaq 0xe04f6(%rip), %rsi     # 0x11884c
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xe9226
cmpb $0x0, 0x21(%r14)
je 0x384c3
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq %rax, 0x10(%rsp)
movq %r14, 0x20(%rsp)
movq 0x30(%r14), %r15
testq %r15, %r15
jle 0x384b0
addq 0x18(%rsp), %r15
movq %rbx, %rdi
leaq 0x10(%rsp), %r14
movq %r14, %rsi
callq 0x38518
movq %rax, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x38518
movq 0x10(%rsp), %r13
leaq (%rax,%r13), %r14
cmpq %r15, %r14
jg 0x384b0
movq %rax, %rbp
leaq -0x1(%r12), %rax
cmpq $0x3, %rax
ja 0x3848e
leaq 0xe03ac(%rip), %rcx     # 0x118788
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq $0x8, %rbp
jl 0x384a2
movq 0x18(%rbx), %rdi
movl $0x3, %ecx
leaq 0x5(%rsp), %rsi
movq %r13, %rdx
callq 0xeeee8
cmpb $0x0, 0x5(%rsp)
jne 0x38437
movb 0x6(%rsp), %al
movl %eax, %ecx
andb $-0x5, %cl
cmpb $0x49, %cl
jne 0x38437
cmpb %al, 0x7(%rsp)
jne 0x38437
movq %rbx, %rdi
leaq 0xe0485(%rip), %rsi     # 0x1188af
xorl %eax, %eax
callq 0xe9b27
incq %r13
decq %rbp
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0xf7eab
jmp 0x384a2
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0xff2fe(%rip), %rcx     # 0x137756
jmp 0x3847e
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0xe041a(%rip), %rcx     # 0x118885
jmp 0x3847e
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0xdd66f(%rip), %rcx     # 0x115aed
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0xf0321
jmp 0x384a2
movq %rbx, %rdi
leaq 0xe03f7(%rip), %rsi     # 0x11888f
movl %r12d, %edx
xorl %eax, %eax
callq 0xe9226
movq %r14, 0x10(%rsp)
cmpq %r15, %r14
jl 0x38393
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %rax
addq 0x30(%r14), %rax
movq %rax, 0x8(%rsp)
movl 0x8(%rsp), %edx
leaq 0xe0395(%rip), %rsi     # 0x118863
movq %rbx, %rdi
xorl %eax, %eax
callq 0xe9226
movq %rbx, %rdi
movq %r14, %rsi
callq 0xe9752
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq