// File: /workspace/github_c_makefile_star2_O1/intel[P]pf-bb-config/acc100/acc100_cfg_app.c
// Function: acc100_configure
int
acc100_configure(void *dev, void *bar0addr, const char *cfg_filename, const bool first_cfg)
{
	struct acc100_conf acc100_conf;
	int ret;

	ret = acc100_read_config_file(cfg_filename, &acc100_conf);
	if (ret != 0) {
		LOG(ERR, "Error reading config file");
		return -1;
	}

	ret = acc100_write_config(dev, bar0addr, &acc100_conf);
	if (ret != 0) {
		LOG(ERR, "Error writing configuration for ACC100");
		return -1;
	}
	hw_device *accel_dev = (hw_device *)dev;
	accel_dev->numvfs = acc100_conf.num_vf_bundles;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x388, %rsp            # imm = 0x388
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %rbx
movq %rdx, %rdi
callq 0x13c09
testb %al, %al
je 0xe581
callq 0xf85e
leaq 0x2596c(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
leaq 0xd2a9(%rip), %rdx      # 0x1b817
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
movq %r15, %r9
xorl %eax, %eax
callq 0x19ca8
jmp 0xe592
leaq 0x68(%rsp), %rsi
movq %r15, %rdi
callq 0xf9bc
testl %eax, %eax
je 0xe5cf
callq 0xf85e
leaq 0x25932(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
leaq 0xd123(%rip), %rdx      # 0x1b6cb
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x388, %rsp            # imm = 0x388
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xd90808(%r13), %eax
cmpl $-0x1, %eax
je 0xe93f
movl %eax, 0x34(%rsp)
movq %rbx, 0x50(%rsp)
movl $0x40006033, 0xd90808(%r13) # imm = 0x40006033
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
xorl %ebx, %ebx
movl $0x0, 0xd90bbc(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq $0x10, %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0xe5ff
movl $0xc003, 0xd90840(%r13) # imm = 0xC003
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xffffffff, 0xc84004(%r13) # imm = 0xFFFFFFFF
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x1, %ebx
movl %ebx, 0xc40098(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xb8002c(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x30000, 0xc8410c(%r13) # imm = 0x30000
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x0, 0xb80868(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x3d7, 0xb80870(%r13) # imm = 0x3D7
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x11, 0xb80010(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
leaq 0xd80108(%r13), %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movl $0x8400, (%rbx,%r15)    # imm = 0x8400
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq $0x200, %r15            # imm = 0x200
cmpq $0x800, %r15            # imm = 0x800
jne 0xe6d4
incq %r14
addq $0x2000, %rbx           # imm = 0x2000
cmpq $0x4, %r14
jne 0xe6d1
xorl %ebx, %ebx
movl $0x6007, 0xd81098(%r13,%rbx) # imm = 0x6007
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq $0x2000, %rbx           # imm = 0x2000
cmpq $0x8000, %rbx           # imm = 0x8000
jne 0xe708
xorl %ebx, %ebx
movl %ebx, 0xb80000(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xb80040(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x80001747, 0xb80004(%r13) # imm = 0x80001747
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x7fe00, 0xb80008(%r13) # imm = 0x7FE00
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xb, 0xbb1000(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movzwl 0x6e(%rsp), %r14d
movzwl 0x7a(%rsp), %eax
movq %rax, 0x48(%rsp)
movl %eax, %ebp
addl %r14d, %ebp
movzwl 0x74(%rsp), %ecx
movq %rcx, 0x40(%rsp)
addl %ecx, %ebp
movzwl 0x80(%rsp), %eax
movq %rax, 0x38(%rsp)
addl %eax, %ebp
je 0xe835
movq 0x48(%rsp), %rax
movq 0x40(%rsp), %rcx
addq %rcx, %rax
movq 0x38(%rsp), %rcx
leaq (%rcx,%r14), %rbx
addq %rax, %rbx
xorl %r15d, %r15d
leaq 0x68(%rsp), %r12
movl %r15d, %edi
movq %r12, %rsi
callq 0xe4af
movl %eax, 0xa00200(%r13,%r15,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %r15d, %edi
movq %r12, %rsi
callq 0xe4af
leal -0x1(%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
addl $0x10000, %eax          # imm = 0x10000
movl %eax, 0xa00300(%r13,%r15,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %r15
cmpq %r15, %rbx
jne 0xe7e4
callq 0xf85e
leaq 0x2568f(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
movzwl 0x7a(%rsp), %r9d
movzwl 0x80(%rsp), %ecx
movzwl 0x6e(%rsp), %edx
movzwl 0x74(%rsp), %esi
movl %esi, 0x10(%rsp)
movl %edx, 0x8(%rsp)
movl %ecx, (%rsp)
leaq 0xd00a(%rip), %rdx      # 0x1b879
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movq $-0x80, %rbx
movl $0x3020100, 0xa00680(%r13,%rbx) # imm = 0x3020100
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x7060504, 0xa00700(%r13,%rbx) # imm = 0x7060504
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xb0a0908, 0xa00780(%r13,%rbx) # imm = 0xB0A0908
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xf0e0d0c, 0xa00800(%r13,%rbx) # imm = 0xF0E0D0C
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq $0x4, %rbx
jne 0xe887
movl $0xf0f, 0xa02f48(%r13) # imm = 0xF0F
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
xorl %ebx, %ebx
movl $0x0, 0xa00800(%r13,%rbx,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %rbx
cmpq $0x20, %rbx
jne 0xe8fc
movzwl 0x6e(%rsp), %r12d
testl %r12d, %r12d
movl %ebp, 0x24(%rsp)
movq %r14, 0x58(%rsp)
je 0xe94b
xorl %ebx, %ebx
xorl %eax, %eax
btsl %eax, %ebx
incl %eax
cmpl %eax, %r12d
jne 0xe933
jmp 0xe94d
leaq 0xcefa(%rip), %rbx      # 0x1b840
jmp 0xf5dc
xorl %ebx, %ebx
xorl %r14d, %r14d
movl %ebx, 0xa00840(%r13,%r14,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %r14
cmpq $0x6, %r14
jne 0xe950
movzwl 0x7a(%rsp), %eax
leal (%rax,%r12), %r15d
xorl %ebx, %ebx
movl $0x0, %ebp
testl %eax, %eax
je 0xe98d
xorl %ebp, %ebp
btsl %r12d, %ebp
incl %r12d
cmpl %r15d, %r12d
jb 0xe981
movq %r13, 0x28(%rsp)
leaq 0xa00800(%r13), %r12
movl $0xf0, %r14d
xorl %r13d, %r13d
movq 0x28(%rsp), %rax
movl 0xbc0200(%rax,%r13,4), %eax
andl %r14d, %eax
cmpl $0x10, %eax
jne 0xe9c9
movl %ebp, (%r12)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incl %ebx
jmp 0xe9db
movl $0x0, (%r12)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq $0x400, %r13            # imm = 0x400
addq $0x4, %r12
cmpq $0x2000, %r13           # imm = 0x2000
jne 0xe9a2
callq 0xf85e
leaq 0x254d5(%rip), %rcx     # 0x33ed0
movq 0x18(%rcx), %r8
movl %ebx, (%rsp)
leaq 0xcea8(%rip), %rdx      # 0x1b8b1
leaq 0xcec8(%rip), %r9       # 0x1b8d8
xorl %ebp, %ebp
movl $0x3, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movzwl 0x74(%rsp), %eax
leal (%r15,%rax), %ebx
testl %eax, %eax
je 0xea3e
xorl %ebp, %ebp
btsl %r15d, %ebp
incl %r15d
cmpl %ebx, %r15d
jb 0xea32
xorl %r14d, %r14d
movq 0x28(%rsp), %r13
movl %ebp, 0xa0086c(%r13,%r14,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %r14
cmpq $0x5, %r14
jne 0xea46
movzwl 0x80(%rsp), %eax
testl %eax, %eax
je 0xea7c
addl %ebx, %eax
xorl %ebp, %ebp
btsl %ebx, %ebp
incl %ebx
cmpl %eax, %ebx
jb 0xea71
jmp 0xea7e
xorl %ebp, %ebp
xorl %ebx, %ebx
movl %ebp, 0xa00834(%r13,%rbx,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %rbx
cmpq $0x3, %rbx
jne 0xea80
xorl %ebp, %ebp
leaq 0x68(%rsp), %r15
leaq 0xd057(%rip), %rbx      # 0x1bb00
xorl %r14d, %r14d
xorl %r12d, %r12d
movl %r12d, %edi
movq %r15, %rsi
callq 0xe3e0
cltq
movl (%rbx,%rax,4), %eax
movl %ebp, %ecx
shll %cl, %eax
orl %eax, %r14d
incl %r12d
addl $0x4, %ebp
cmpl $0x8, %r12d
jne 0xeaaf
movl %r14d, 0xa02f40(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl 0x24(%rsp), %eax
testl %eax, %eax
je 0xebb7
movl %eax, %eax
movq %rax, 0x60(%rsp)
movq 0x48(%rsp), %rax
movq 0x40(%rsp), %rcx
addq %rcx, %rax
movq 0x38(%rsp), %rcx
addq %rcx, %rax
movq 0x58(%rsp), %rcx
leaq (%rcx,%rax), %rbx
xorl %r14d, %r14d
movl $0x0, 0xa02f00(%r13,%r14,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %r14
cmpq %r14, %rbx
jne 0xeb17
leaq 0xa01000(%r13), %rbx
xorl %r15d, %r15d
leaq 0x68(%rsp), %r12
xorl %r13d, %r13d
cmpw $0x0, 0x6c(%rsp)
je 0xeb8c
xorl %r14d, %r14d
movl %r13d, (%rbx,%r14,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %r15d, %edi
movq %r12, %rsi
callq 0xe4f7
movl %eax, %ebp
movl %r15d, %edi
movq %r12, %rsi
callq 0xe4af
movl %eax, %ecx
shll %cl, %ebp
addl %ebp, %r13d
incq %r14
movzwl 0x6c(%rsp), %eax
cmpq %rax, %r14
jb 0xeb52
incq %r15
addq $0x100, %rbx            # imm = 0x100
cmpq 0x60(%rsp), %r15
jne 0xeb47
cmpl $0x8000, %r13d          # imm = 0x8000
movq 0x28(%rsp), %r13
jbe 0xebb7
leaq 0xcd3a(%rip), %rbx      # 0x1b8ec
jmp 0xf5dc
xorl %ebx, %ebx
movl %ebx, 0xc84020(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xc84024(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, 0xc84040(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xc84044(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xc84038(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xc84114(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movzbl 0x68(%rsp), %eax
addl %eax, %eax
movl %eax, 0xc84108(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
leaq 0xccda(%rip), %rax      # 0x1b91d
leaq 0xcd20(%rip), %r15      # 0x1b96a
cmpb $0x0, 0x68(%rsp)
cmovneq %rax, %r15
callq 0xf85e
leaq 0x25271(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
movl $0x2, %ebx
movl $0x2, %edi
xorl %esi, %esi
movq %r15, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movl $0x1, %ebp
movl %ebp, 0xb90008(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xba0008(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xb80084(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xb80088(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
cmpw $0x0, 0x6c(%rsp)
je 0xed27
leaq 0xba8000(%r13), %r15
xorl %r12d, %r12d
movl %ebp, -0x10000(%r15)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, -0x10000(%r15)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, (%r15)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, (%r15)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %r12
movzwl 0x6c(%rsp), %eax
addq $0x100, %r15            # imm = 0x100
cmpq %rax, %r12
jb 0xecd7
movl %ebp, 0xb9c0f0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xb9c0f0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xbac0f0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xbac0f0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
xorl %ebx, %ebx
movl $0x10000, %r14d         # imm = 0x10000
movl $0x101, 0xb90000(%r13,%rbx) # imm = 0x101
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq %r14, %rbx
cmpq %r14, %rbx
je 0xed73
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x1, 0xb80088(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
xorl %ebx, %ebx
movl $0x10000, %r14d         # imm = 0x10000
movl $0x216, 0xb90000(%r13,%rbx) # imm = 0x216
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq %r14, %rbx
cmpq %r14, %rbx
je 0xedb8
xorl %ebx, %ebx
movl $0x4, %ebp
movl $0x10000, %r14d         # imm = 0x10000
movl %ebp, 0xb90010(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x4f, 0xb90014(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xb90018(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x63, 0xb9001c(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq %r14, %rbx
cmpq %r14, %rbx
je 0xede3
movzwl 0x6c(%rsp), %eax
testw %ax, %ax
je 0xef19
leaq 0xba0408(%r13), %rbx
xorl %r15d, %r15d
movl $0x1000000, %ebp        # imm = 0x1000000
movl $0x1f400, -0x10008(%rbx) # imm = 0x1F400
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x0, -0x10004(%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl 0x208(%rsp), %eax
shll $0x18, %eax
addl %ebp, %eax
cltq
imulq $0x10624dd3, %rax, %rax # imm = 0x10624DD3
movq %rax, %rcx
shrq $0x3f, %rcx
sarq $0x2d, %rax
addl %ecx, %eax
movl %eax, -0x10000(%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl 0x2cc(%rsp), %r14d
cmpl $0x1, %r14d
adcl $0x0, %r14d
movl %r14d, -0x8(%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %r14d, %eax
shrl $0x1f, %eax
addl %r14d, %eax
sarl %eax
movl %eax, -0x4(%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl 0x2c8(%rsp), %eax
shll $0x18, %eax
addl %ebp, %eax
cltd
idivl %r14d
movl %eax, (%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %r15
movzwl 0x6c(%rsp), %eax
addq $0x10, %rbx
cmpq %rax, %r15
jb 0xee58
cmpw $0xf, %ax
ja 0xefa4
movzwl %ax, %ebx
shll $0x4, %ebx
xorl %ebp, %ebp
movl %ebp, 0xb90400(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xb90404(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xb90408(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xba0400(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xba0404(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xba0408(%r13,%rbx)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq $0x10, %rbx
cmpq $0x100, %rbx            # imm = 0x100
jne 0xef2b
xorl %ebx, %ebx
movl $0xaa, 0xb90060(%r13,%rbx,8)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xa294, 0xb90064(%r13,%rbx,8) # imm = 0xA294
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %rbx
cmpq $0x4, %rbx
jne 0xefa6
movl $0x3, 0xb80034(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
xorl %ebx, %ebx
movl $0x10000, %r14d         # imm = 0x10000
movl $0x116, 0xb90000(%r13,%rbx) # imm = 0x116
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
addq %r14, %rbx
cmpq %r14, %rbx
je 0xeff8
movzwl 0x6c(%rsp), %eax
cmpl $0x1, %eax
je 0xf02c
cmpl $0x2, %eax
jne 0xf033
movl $0x800, %ebx            # imm = 0x800
jmp 0xf044
movl $0x1000, %ebx           # imm = 0x1000
jmp 0xf044
cmpw $0x5, %ax
movl $0x400, %ecx            # imm = 0x400
movl $0x100, %ebx            # imm = 0x100
cmovbl %ecx, %ebx
testw %ax, %ax
je 0xf07a
leaq 0xb80400(%r13), %r14
movl %ebx, %ebp
shll $0xa, %ebp
decl %ebx
xorl %r15d, %r15d
movl %ebx, (%r14)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incq %r15
movzwl 0x6c(%rsp), %eax
addl %ebp, %ebx
addq $0x10, %r14
cmpq %rax, %r15
jb 0xf05a
movl 0xd80b0c(%r13), %ebx
callq 0xf85e
leaq 0x24e43(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
cmpl $0x7, %ebx
leaq 0xc90d(%rip), %rcx      # 0x1b9a8
leaq 0xc924(%rip), %rsi      # 0x1b9c6
cmoveq %rcx, %rsi
cmpl $0x5, %ebx
leaq 0xc8da(%rip), %rdx      # 0x1b98a
cmovneq %rsi, %rdx
xorl %r15d, %r15d
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
leaq 0xd6c410(%r13), %rax
xorl %ebp, %ebp
movl (%rax), %edx
movl %r15d, %ecx
shll %cl, %edx
addl %edx, %ebp
addq $0x8, %r15
addq $0x4, %rax
cmpq $0x20, %r15
jne 0xf0d1
cmpl $0x10092020, %ebp       # imm = 0x10092020
movl 0x24(%rsp), %r14d
jne 0xf501
cmpl $0x40006033, 0x34(%rsp) # imm = 0x40006033
je 0xf533
movl 0xc40434(%r13), %eax
movl $0x3, %ebp
movl %ebp, 0xc40438(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x2, %ebx
movl %ebx, 0xc4043c(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xc40440(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xc40444(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xc40448(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xc40438(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xc4043c(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x3e8, 0xd48560(%r13) # imm = 0x3E8
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x13, 0xd48400(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x15, 0xd48410(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x10011, 0xd48420(%r13) # imm = 0x10011
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x3030b70, 0xd484c0(%r13) # imm = 0x3030B70
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x3030b50, 0xd484d0(%r13) # imm = 0x3030B50
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x30, 0xd484e0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xc00, 0xd48500(%r13) # imm = 0xC00
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x4000000, 0xd484f0(%r13) # imm = 0x4000000
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x9, %r14d
movl %r14d, 0xd485d0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %r14d, 0xd485e0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x101212, 0xd48510(%r13) # imm = 0x101212
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x2d3c, 0xd48430(%r13) # imm = 0x2D3C
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xc40440(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebp, 0xd00240(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xffff, 0xd485f0(%r13) # imm = 0xFFFF
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x3c232003, 0xd003c0(%r13) # imm = 0x3C232003
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x31, 0xd003d0(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xa22, 0xd003e0(%r13) # imm = 0xA22
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x4050501, 0xd00400(%r13) # imm = 0x4050501
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0xf0b0476, 0xd00410(%r13) # imm = 0xF0B0476
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x103, 0xd00420(%r13) # imm = 0x103
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x144050a1, 0xd00430(%r13) # imm = 0x144050A1
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x23300, 0xd00440(%r13) # imm = 0x23300
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x4230276, 0xd00450(%r13) # imm = 0x4230276
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x857914, 0xd00460(%r13) # imm = 0x857914
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x79100232, 0xd00470(%r13) # imm = 0x79100232
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x100007ce, 0xd00480(%r13) # imm = 0x100007CE
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x50020, 0xd00490(%r13) # imm = 0x50020
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x40ee, 0xd004a0(%r13) # imm = 0x40EE
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x5000, 0xd004d0(%r13) # imm = 0x5000
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x15030006, 0xd004f0(%r13) # imm = 0x15030006
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x11305, 0xd00500(%r13) # imm = 0x11305
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x1, 0xd00530(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x1f, 0xd00570(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl %ebx, 0xc40444(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
xorl %ebp, %ebp
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl 0xc40434(%r13), %eax
testb $0x1, %al
jne 0xf4a5
incl %ebp
cmpl $0x1388, %ebp           # imm = 0x1388
jne 0xf481
movl $0x1388, %ebp           # imm = 0x1388
callq 0xf85e
leaq 0x24a1f(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
leaq 0xc55c(%rip), %rdx      # 0x1ba18
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x19ca8
movl $0x401, 0xd00020(%r13) # imm = 0x401
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl $0x3, 0xc40448(%r13)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
movl 0x24(%rsp), %r14d
jmp 0xf533
callq 0xf85e
leaq 0x249c3(%rip), %rcx     # 0x33ed0
movq 0x8(%rcx), %r8
movl $0x10092020, (%rsp)     # imm = 0x10092020
leaq 0xc4c7(%rip), %rdx      # 0x1b9e6
movl $0x1, %edi
xorl %esi, %esi
movq %rax, %rcx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x19ca8
xorl %ebx, %ebx
leaq 0x68(%rsp), %r15
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %edx, %edx
cmpl %r14d, %ebp
jae 0xf565
movzwl 0x6c(%rsp), %eax
cmpq %rax, %rbx
jae 0xf565
movl %ebp, %edi
movq %r15, %rsi
callq 0xe4f7
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl %eax, %ecx
shll %cl, %edx
notl %edx
addl %r12d, %edx
movl %edx, 0xa10000(%r13,%rbx,4)
movl $0x3e8, %edi            # imm = 0x3E8
callq 0xd460
incl %ebp
addl $0x10000, %r12d         # imm = 0x10000
cmpl $0x8, %ebp
jne 0xf53f
incq %rbx
cmpq $0x10, %rbx
jne 0xf53a
movl 0xb80820(%r13), %eax
cmpl $0x1, %eax
jne 0xf610
movl 0xb80820(%r13), %ebx
movl 0xc84004(%r13), %ebp
callq 0xf85e
leaq 0x24919(%rip), %rcx     # 0x33ed0
movq (%rcx), %r8
movl %ebp, (%rsp)
leaq 0xc47b(%rip), %rdx      # 0x1ba3f
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x19ca8
leaq 0xc4bd(%rip), %rbx      # 0x1ba99
callq 0xf85e
leaq 0x248e8(%rip), %r14     # 0x33ed0
movq (%r14), %r8
xorl %edi, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
callq 0xf85e
movq (%r14), %r8
leaq 0xc0e1(%rip), %rdx      # 0x1b6ec
jmp 0xe5a8
callq 0xf85e
leaq 0x248b4(%rip), %rcx     # 0x33ed0
movq 0x10(%rcx), %r8
leaq 0xc4af(%rip), %rdx      # 0x1bad6
xorl %ebp, %ebp
movl $0x2, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19ca8
movzwl 0x6c(%rsp), %eax
movq 0x50(%rsp), %rcx
movl %eax, 0x4f8(%rcx)
jmp 0xe5bb