// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x38
popq %rsi
callq 0xdecaf
movq %rax, %r14
movq 0x18(%rbx), %rdi
pushq $0x4
popq %rsi
callq 0xe3eb4
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 0xd4d06(%rip), %rsi     # 0x10b7eb
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movzbl 0x11(%r14), %edx
leaq 0xd4d01(%rip), %rsi     # 0x10b7fc
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movl 0x18(%r14), %edx
leaq 0xcdc84(%rip), %rsi     # 0x104794
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq 0x18(%rbx), %rdi
pushq $0x5
popq %rsi
callq 0xe3eb4
leaq 0x10(%rsp), %r15
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 0xd4ca6(%rip), %rsi     # 0x10b80b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movzbl 0x21(%r14), %edx
leaq 0xd4ca0(%rip), %rsi     # 0x10b81b
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movzbl 0x22(%r14), %edx
leaq 0xd4ca5(%rip), %rsi     # 0x10b836
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movzbl 0x23(%r14), %edx
leaq 0xd4c9f(%rip), %rsi     # 0x10b846
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movq %r15, %rsi
callq 0x36dee
movq %rax, (%r14)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x36dee
movq %rax, 0x8(%r14)
movq (%r14), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdf038
movq %rbx, %rdi
movq %r15, %rsi
callq 0x36dee
movq %rax, 0x28(%r14)
testq %rax, %rax
leaq 0xd4c7f(%rip), %rdx     # 0x10b874
leaq 0x101064(%rip), %rcx    # 0x137c60
cmoveq %rdx, %rcx
leaq 0xd4c56(%rip), %rsi     # 0x10b85d
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0x21(%r14)
je 0x36d9c
leaq 0x10(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x36dee
movq %rax, 0x30(%r14)
leaq 0xd4c47(%rip), %rsi     # 0x10b880
movq %rbx, %rdi
movl %eax, %edx
xorl %eax, %eax
callq 0xde896
cmpb $0x0, 0x21(%r14)
movq (%r15), %rdx
je 0x36da1
leaq 0x8(%rsp), %rax
movq %rdx, (%rax)
movq %r14, 0x20(%rsp)
movq 0x30(%r14), %r12
addq %rdx, %r12
movq %rdx, 0x18(%rsp)
movq %rdx, %r14
cmpq %r12, %r14
jge 0x36d8c
movq %rbx, %rdi
leaq 0x8(%rsp), %r14
movq %r14, %rsi
callq 0x36dee
movq %rax, %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x36dee
movq 0x8(%rsp), %r13
leaq (%rax,%r13), %r14
cmpq %r12, %r14
jg 0x36d8c
movq %rax, %rbp
leaq -0x1(%r15), %rax
cmpq $0x3, %rax
ja 0x36d6e
leaq 0xd4afc(%rip), %rcx     # 0x10b7bc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq $0x8, %rbp
jl 0x36d82
movq 0x18(%rbx), %rdi
leaq 0x5(%rsp), %rsi
movq %r13, %rdx
pushq $0x3
popq %rcx
callq 0xe3cb7
cmpb $0x0, 0x5(%rsp)
jne 0x36d19
movb 0x6(%rsp), %al
movl %eax, %ecx
andb $-0x5, %cl
cmpb $0x49, %cl
jne 0x36d19
cmpb %al, 0x7(%rsp)
jne 0x36d19
movq %rbx, %rdi
leaq 0xd4bd7(%rip), %rsi     # 0x10b8e3
xorl %eax, %eax
callq 0xdf05a
incq %r13
decq %rbp
movq %rbx, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0xec1b2
jmp 0x36d82
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0xf3ac4(%rip), %rcx     # 0x12a7fe
jmp 0x36d60
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0xd4b6c(%rip), %rcx     # 0x10b8b9
jmp 0x36d60
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
leaq 0xd1dad(%rip), %rcx     # 0x108b0d
xorl %r8d, %r8d
pushq $0x1
popq %r9
callq 0xe4e0b
jmp 0x36d82
movq %rbx, %rdi
leaq 0xd4b4b(%rip), %rsi     # 0x10b8c3
movl %r15d, %edx
xorl %eax, %eax
callq 0xde896
movq %r14, 0x8(%rsp)
jmp 0x36c6f
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %rdx
addq 0x30(%r14), %rdx
jmp 0x36da1
movq 0x10(%rsp), %rdx
leaq 0xd4aef(%rip), %rsi     # 0x10b897
movq %rbx, %rdi
xorl %eax, %eax
callq 0xde896
movq %rbx, %rdi
movq %r14, %rsi
callq 0xded32
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq