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

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

	if(!dbuf_memcmp(c->infile, 0, "AWBM", 4)) {
		do_v2(c, d);
	}
	else {
		do_v1(c, d);
	}

	de_free(c, d);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl $0x418, %esi            # imm = 0x418
callq 0xdecaf
movq %rax, %r15
movq %rax, %r14
movq 0x18(%rbx), %rdi
leaq 0xe32f6(%rip), %rdx     # 0x106c75
pushq $0x4
popq %rcx
xorl %esi, %esi
callq 0xe4d48
testl %eax, %eax
je 0x23a22
leaq 0xe333c(%rip), %rsi     # 0x106cd4
movq %rbx, %rdi
callq 0xe07f7
movq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0xe3eb4
movzbl %al, %r15d
movq 0x18(%rbx), %rdi
pushq $0x1
popq %rsi
callq 0xe3eb4
movzbl %al, %r12d
andl $0x0, (%rsp)
pushq $0x2
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
movq %r12, %r8
xorl %r9d, %r9d
callq 0x23ce3
testl %eax, %eax
je 0x23bd2
imulq %r12, %r15
imulq $0xf, %r15, %rdx
movq 0x18(%rbx), %rax
leaq 0x48(%rdx), %rcx
cmpq %rcx, 0x18(%rax)
jl 0x23bd2
addq $0x2, %rdx
movl $0x1, (%rsp)
pushq $0x3
popq %rcx
pushq $0x2
popq %r8
pushq $0x1
popq %r9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23ce3
jmp 0x23bd2
movq 0x18(%rbx), %rdi
pushq $0x4
popq %rsi
callq 0xe3fa3
movq %rax, (%r14)
movq 0x18(%rbx), %rdi
pushq $0x6
popq %rsi
callq 0xe3fa3
movq %rax, 0x8(%r14)
movq (%r14), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0xdf038
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0xe6be1
testl %eax, %eax
je 0x23ab2
movq (%r14), %r12
leaq 0x7(%r12), %rax
pushq $0x8
popq %rcx
cqto
idivq %rcx
movq %rax, %rbp
movq 0x8(%r14), %r13
imulq %r12, %r13
leaq 0x8(%r13), %rsi
movl $0x100, %edx            # imm = 0x100
movq %rbx, %rdi
callq 0x23cad
movl %eax, 0x2c(%rsp)
testl %eax, %eax
movq %rbp, 0x30(%rsp)
je 0x23aba
movq %r12, 0x20(%rsp)
pushq $0x1
popq %r12
leaq 0xe31cf(%rip), %rsi     # 0x106c7a
movl $0x100, %ebp            # imm = 0x100
jmp 0x23af3
xorl %r13d, %r13d
jmp 0x23bca
leaq (,%rbp,4), %r12
movq 0x8(%r14), %r13
imulq %r12, %r13
leaq 0x8(%r13), %rsi
pushq $0x10
popq %rbp
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x23cad
testl %eax, %eax
je 0x23beb
movq %r12, 0x20(%rsp)
xorl %r12d, %r12d
leaq 0xe31a0(%rip), %rsi     # 0x106c93
movq %rbx, %rdi
callq 0xe07f7
movl %r12d, 0x10(%r14)
leaq 0xe31c0(%rip), %rsi     # 0x106cc6
movq %rbx, %rdi
callq 0xdfa87
testq %rax, %rax
je 0x23b21
movq %rax, %rdi
callq 0xdfb36
movl %eax, 0x10(%r14)
jmp 0x23b25
movl 0x10(%r14), %eax
movq 0x20(%rsp), %r12
addq $0xc, %r13
movq 0x18(%rbx), %rsi
addq $0x14, %r15
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, 0x10(%rsp)
movq %rbp, (%rsp)
movl $0x2, 0x8(%rsp)
pushq $0x3
popq %r8
movq %rbx, %rdi
movq %r13, %rdx
movq %rbp, %rcx
movq %r15, %r9
callq 0xe79ca
movq (%r14), %rsi
movq 0x8(%r14), %rdx
pushq $0x3
popq %rcx
movq %rbx, %rdi
callq 0xe7437
movq %rax, %r13
movq 0x18(%rbx), %rdi
cmpl $0x0, 0x2c(%rsp)
je 0x23b9c
andl $0x0, (%rsp)
pushq $0x8
popq %rdx
movq %rdx, %rsi
movq %r12, %rcx
movq %r15, %r8
movq %r13, %r9
callq 0xe7cbc
jmp 0x23bbe
movq %r13, (%rsp)
movl $0x2, 0x8(%rsp)
pushq $0x8
popq %rsi
pushq $0x4
popq %rdx
movq %r12, %rcx
movq 0x30(%rsp), %r8
movq %r15, %r9
callq 0xe7de1
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xe70b7
movq %r13, %rdi
callq 0xe7084
movq %rbx, %rdi
movq %r14, %rsi
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xded32
leaq 0xe30ba(%rip), %rsi     # 0x106cac
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0xdf2a5
jmp 0x23bca