// File: /workspace/github_c_makefile_star2_O2/intel[P]pf-bb-config/vrb2/vrb2_cfg_app.c
// Function: vrb2_configure
int
vrb2_configure(void *dev, void *bar0addr, const char *cfg_filename, const bool first_cfg)
{
	struct vrb2_conf vrb2_conf;
	int ret;

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

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

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1298, %rsp           # imm = 0x1298
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, 0x40(%rsp)
movq %rdx, %rdi
callq 0x137d0
pushq $-0x1
popq %r12
testb %al, %al
je 0x14c22
callq 0x16020
leaq 0x202cb(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
leaq 0x6c08(%rip), %rdx      # 0x1b817
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
movq %r15, %r9
xorl %eax, %eax
callq 0x19400
jmp 0x14c33
leaq 0x6c(%rsp), %rsi
movq %r15, %rdi
callq 0x16463
testl %eax, %eax
je 0x14c6c
callq 0x16020
leaq 0x20291(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
leaq 0x83a1(%rip), %rdx      # 0x1cfea
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
movl %r12d, %eax
addq $0x1298, %rsp           # imm = 0x1298
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc8412c(%r13), %eax
cmpl $0x1f, %eax
jne 0x14cee
movl $0x3f30a00, 0xc8410c(%r13) # imm = 0x3F30A00
pushq $0x1
popq %rbx
movl %ebx, %edi
callq 0xd460
movl $0xf, 0xc84128(%r13)
movl %ebx, %edi
callq 0xd460
pushq $0x64
popq %rdi
callq 0xd460
movl 0xc8412c(%r13), %ebx
cmpl $0xf, %ebx
jne 0x14d0e
movl $0x0, 0xc84128(%r13)
pushq $0x1
popq %rdi
callq 0xd460
pushq $0x64
popq %rdi
callq 0xd460
movl 0xc8412c(%r13), %ebx
testl %ebx, %ebx
je 0x14d30
callq 0x16020
leaq 0x201eb(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
andl $0x0, (%rsp)
jmp 0x14d24
movl 0xa0f244(%r13), %ebx
cmpl $0xf, %ebx
jne 0x14e2b
movl %ebp, 0x34(%rsp)
movb $0x1, 0x26c28(%rip)     # 0x3b931
jmp 0x14e66
callq 0x16020
leaq 0x201b6(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
movl $0xf, (%rsp)
leaq 0x7b22(%rip), %rdx      # 0x1c84d
jmp 0x15a0c
leaq 0xb9040c(%r13), %rax
leaq 0xb900c0(%r13), %rcx
xorl %edx, %edx
movl $0x10000, %esi          # imm = 0x10000
xorl %edi, %edi
cmpq $0x6, %rdi
je 0x14d93
xorl %r8d, %r8d
cmpq $0x400, %r8             # imm = 0x400
je 0x14d72
movl %edx, -0xc(%rax,%r8)
movl %edx, -0x8(%rax,%r8)
movl %edx, -0x4(%rax,%r8)
movl %edx, (%rax,%r8)
addq $0x10, %r8
jmp 0x14d50
xorl %r8d, %r8d
cmpq $0x8, %r8
je 0x14d88
movl $0x0, (%rcx,%r8,4)
incq %r8
jmp 0x14d75
incq %rdi
addq %rsi, %rax
addq %rsi, %rcx
jmp 0x14d47
leaq 0xa08000(%r13), %rax
xorl %ecx, %ecx
cmpq $0x20, %rcx
je 0x14dc1
xorl %edx, %edx
cmpq $0x40, %rdx
je 0x14db6
movl $0x0, (%rax,%rdx,4)
incq %rdx
jmp 0x14da4
incq %rcx
addq $0x100, %rax            # imm = 0x100
jmp 0x14d9c
movl 0xa0f244(%r13), %ebx
cmpl $0xf, %ebx
jne 0x14e2b
movb $0x1, 0x26b5d(%rip)     # 0x3b931
movl $0x31, 0x810000(%r13)
movl $0xc8, %edi
callq 0xd460
testl $0x4, 0x810000(%r13)
je 0x14e1a
callq 0x16020
leaq 0x200ce(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
leaq 0x898e(%rip), %rdx      # 0x1d79a
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
movl %ebp, 0x34(%rsp)
movl $0x30, 0x810000(%r13)
jmp 0x14e66
movl %ebp, 0x34(%rsp)
callq 0x16020
leaq 0x20095(%rip), %rcx     # 0x34ed0
movq 0x8(%rcx), %r8
movl $0xf, (%rsp)
leaq 0x8901(%rip), %rdx      # 0x1d74e
pushq $0x1
popq %rdi
xorl %esi, %esi
movq %rax, %rcx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x19400
movb $0x0, 0x26acb(%rip)     # 0x3b931
movl 0xc8412c(%r13), %eax
xorl %eax, %eax
cmpw $0x0, 0x8a(%rsp)
sete %al
xorl %ecx, %ecx
cmpw $0x0, 0x90(%rsp)
sete %cl
leal (%rax,%rcx,2), %eax
xorl %ecx, %ecx
cmpw $0x0, 0x72(%rsp)
sete %cl
leal (%rax,%rcx,4), %eax
xorl %ecx, %ecx
cmpw $0x0, 0x7e(%rsp)
sete %cl
leal (%rax,%rcx,8), %ebp
movl 0xc8412c(%r13), %ebx
cmpl %ebp, %ebx
je 0x14f05
callq 0x16020
leaq 0x20011(%rip), %r14     # 0x34ed0
movq 0x10(%r14), %r8
movl %ebp, (%rsp)
leaq 0x88f5(%rip), %rdx      # 0x1d7c2
pushq $0x2
popq %rdi
xorl %esi, %esi
movq %rax, %rcx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x19400
movl %ebp, 0xc84128(%r13)
pushq $0x1
popq %rdi
callq 0xd460
pushq $0x64
popq %rdi
callq 0xd460
movl 0xc8412c(%r13), %ebx
cmpl %ebp, %ebx
jne 0x159fa
pushq $0x2
popq %rbx
movzbl 0x26a22(%rip), %eax     # 0x3b931
orl $0x30a00, %eax          # imm = 0x30A00
movl %eax, 0xc8410c(%r13)
pushq $0x1
popq %r12
movl %r12d, %edi
callq 0xd460
movl $0x1, 0xb8002c(%r13)
movl %r12d, %edi
callq 0xd460
movl $0x8000103, 0xb30000(%r13) # imm = 0x8000103
movl %r12d, %edi
callq 0xd460
xorl %ebp, %ebp
movl %ebp, 0xb80868(%r13)
movl %r12d, %edi
callq 0xd460
movl $0x7df, 0xb80870(%r13) # imm = 0x7DF
movl %r12d, %edi
callq 0xd460
movl $0x22, 0xb80010(%r13)
movl %r12d, %edi
callq 0xd460
movl %ebp, 0xb80814(%r13)
movl %r12d, %edi
callq 0xd460
movl $0xb80c04, %r14d        # imm = 0xB80C04
cmpq $0xb80e04, %r14         # imm = 0xB80E04
je 0x14fca
movl $0x3, -0x4(%r13,%r14)
movl %r12d, %edi
callq 0xd460
movl $0x186a0, (%r13,%r14)   # imm = 0x186A0
movl %r12d, %edi
callq 0xd460
addq $0x10, %r14
jmp 0x14f99
xorl %ebp, %ebp
movl %ebp, 0xb80000(%r13)
pushq $0x1
popq %r15
movl %r15d, %edi
callq 0xd460
pushq $-0x1
popq %r14
movl %r14d, 0xb80044(%r13)
movl %r15d, %edi
callq 0xd460
movl %ebp, 0xb80040(%r13)
movl %r15d, %edi
callq 0xd460
movl $0x80000003, 0xb80004(%r13) # imm = 0x80000003
movl %r15d, %edi
callq 0xd460
movl $0x7fc00, 0xb80008(%r13) # imm = 0x7FC00
movl %r15d, %edi
callq 0xd460
movl %r14d, 0xb80800(%r13)
movl %r15d, %edi
callq 0xd460
movl $0x2e03c0, %r14d        # imm = 0x2E03C0
cmpq $0x2e03c6, %r14         # imm = 0x2E03C6
je 0x1505b
movl $0x200000, (%r13,%r14,4) # imm = 0x200000
movl %r15d, %edi
callq 0xd460
incq %r14
jmp 0x1503c
pushq $-0x1
popq %r14
movl %r14d, 0xb808b0(%r13)
pushq $0x1
popq %r12
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xb80890(%r13)
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xb808a0(%r13)
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xb808a4(%r13)
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xb808a8(%r13)
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xb808ac(%r13)
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xb808b0(%r13)
movl %r12d, %edi
callq 0xd460
movl $0x800, %ebp            # imm = 0x800
movl %ebp, 0xa00040(%r13)
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xa00044(%r13)
movl %r12d, %edi
callq 0xd460
movl %ebp, 0xa00048(%r13)
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xa0004c(%r13)
movl %r12d, %edi
callq 0xd460
movl $0x10000000, 0xa00050(%r13) # imm = 0x10000000
movl %r12d, %edi
callq 0xd460
movl %r14d, 0xa00054(%r13)
movl %r12d, %edi
callq 0xd460
movl $0x100000, 0xb80e04(%r13) # imm = 0x100000
movl %r12d, %edi
callq 0xd460
cmpb $0x1, 0x267e8(%rip)     # 0x3b931
jne 0x1515e
movl $0x1, 0xb80e00(%r13)
pushq $0x1
popq %rdi
callq 0xd460
xorl %eax, %eax
leaq 0x7979(%rip), %rcx      # 0x1cae0
pushq $0x3
popq %rdx
cmpq $0x80, %rax
je 0x15191
movl (%rax,%rcx), %esi
movl %edx, %edi
cmpl $0x1, %esi
je 0x15183
cmpl $0x9, %esi
je 0x1518b
movl %ebx, %edi
movl %edi, 0xb31800(%r13,%rax,4)
addq $0x4, %rax
jmp 0x1516a
xorl %eax, %eax
movl $0x2ad0, %edx           # imm = 0x2AD0
xorl %esi, %esi
cmpq $0x4, %rsi
je 0x151d9
xorl %ecx, %ecx
xorl %edi, %edi
cmpq $0x20, %rcx
je 0x151c5
leal (%rsi,%rcx), %r8d
movl %r12d, %r9d
shll %cl, %r9d
btq %r8, %rdx
cmovael %eax, %r9d
orl %r9d, %edi
addq $0x4, %rcx
jmp 0x151a4
movq %rsi, %rcx
shlq $0x4, %rcx
movl %edi, 0xb31004(%r13,%rcx)
incq %rsi
jmp 0x1519a
movl $0x1111, 0xb31044(%r13) # imm = 0x1111
movl $0x20200208, 0xb800c8(%r13) # imm = 0x20200208
movl $0x1008, 0xb800cc(%r13) # imm = 0x1008
pushq $0x14
popq %rax
movl %eax, 0xb800b0(%r13)
movl %eax, 0xb800b4(%r13)
movl $0x4, 0xb800b8(%r13)
movl $0xb4c104, %eax         # imm = 0xB4C104
cmpq $0xb51104, %rax         # imm = 0xB51104
je 0x15234
movl $0x200f2, (%r13,%rax)   # imm = 0x200F2
addq $0x1000, %rax           # imm = 0x1000
jmp 0x1521b
movzwl 0x72(%rsp), %eax
movzwl 0x7e(%rsp), %ecx
addl %eax, %ecx
movzwl 0x78(%rsp), %eax
movzwl 0x84(%rsp), %edx
addl %eax, %edx
addl %ecx, %edx
movzwl 0x8a(%rsp), %eax
movzwl 0x90(%rsp), %ecx
addl %eax, %ecx
addl %edx, %ecx
movq %rcx, 0x48(%rsp)
callq 0x16020
leaq 0x1fc5a(%rip), %rcx     # 0x34ed0
movq 0x10(%rcx), %r8
movzwl 0x72(%rsp), %r9d
movzwl 0x78(%rsp), %ecx
movzwl 0x7e(%rsp), %edx
movzwl 0x84(%rsp), %esi
movzwl 0x8a(%rsp), %edi
movzwl 0x90(%rsp), %r10d
movl %r10d, 0x20(%rsp)
movl %edi, 0x18(%rsp)
movl %esi, 0x10(%rsp)
movl %edx, 0x8(%rsp)
movl %ecx, (%rsp)
leaq 0x8563(%rip), %rdx      # 0x1d821
xorl %ebx, %ebx
pushq $0x2
popq %rdi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
cmpq %rbx, 0x48(%rsp)
je 0x152ff
movl $0x5, 0xa00200(%r13,%rbx,4)
movl $0x10010, 0xa00300(%r13,%rbx,4) # imm = 0x10010
movl $0x2, 0xa02f00(%r13,%rbx,4)
incq %rbx
jmp 0x152cf
movl $0x280340, %ebx         # imm = 0x280340
pushq $0x1
popq %r15
cmpq $0x280360, %rbx         # imm = 0x280360
je 0x153ba
movl $0x3020100, -0x700(%r13,%rbx,4) # imm = 0x3020100
movl %r15d, %edi
callq 0xd460
movl $0x7060504, -0x600(%r13,%rbx,4) # imm = 0x7060504
movl %r15d, %edi
callq 0xd460
movl $0xb0a0908, -0x500(%r13,%rbx,4) # imm = 0xB0A0908
movl %r15d, %edi
callq 0xd460
movl $0xf0e0d0c, -0x400(%r13,%rbx,4) # imm = 0xF0E0D0C
movl %r15d, %edi
callq 0xd460
movl $0x13121110, -0x300(%r13,%rbx,4) # imm = 0x13121110
movl %r15d, %edi
callq 0xd460
movl $0x17161514, -0x200(%r13,%rbx,4) # imm = 0x17161514
movl %r15d, %edi
callq 0xd460
movl $0x1b1a1918, -0x100(%r13,%rbx,4) # imm = 0x1B1A1918
movl %r15d, %edi
callq 0xd460
movl $0x1f1e1d1c, (%r13,%rbx,4) # imm = 0x1F1E1D1C
movl %r15d, %edi
callq 0xd460
incq %rbx
jmp 0x15308
movl $0xf0f, 0xa02fc0(%r13) # imm = 0xF0F
pushq $0x1
popq %rbx
movl %ebx, %edi
callq 0xd460
movl $0x3, 0xa0f320(%r13)
movl %ebx, %edi
callq 0xd460
movl $0x280380, %r14d        # imm = 0x280380
cmpq $0x2803a0, %r14         # imm = 0x2803A0
je 0x15405
movl $0x0, (%r13,%r14,4)
movl %ebx, %edi
callq 0xd460
incq %r14
jmp 0x153e7
movzwl 0x72(%rsp), %r12d
xorl %eax, %eax
xorl %ebp, %ebp
cmpl %eax, %r12d
je 0x1541b
btsl %eax, %ebp
incl %eax
jmp 0x1540f
movl $0x28038c, %r14d        # imm = 0x28038C
pushq $0x1
popq %rbx
cmpq $0x280391, %r14         # imm = 0x280391
je 0x1543e
movl %ebp, (%r13,%r14,4)
movl %ebx, %edi
callq 0xd460
incq %r14
jmp 0x15424
movzwl 0x7e(%rsp), %r15d
addl %r12d, %r15d
xorl %ebp, %ebp
cmpl %r15d, %r12d
jae 0x15457
btsl %r12d, %ebp
incl %r12d
jmp 0x15449
leaq 0xa00e00(%r13), %r14
movl $0x2d007f, %r12d        # imm = 0x2D007F
pushq $0x1
popq %rbx
cmpq $0x2d187f, %r12         # imm = 0x2D187F
je 0x1549a
movl (%r13,%r12,4), %eax
andl $0x70, %eax
cmpl $0x10, %eax
movl $0x0, %eax
cmovel %ebp, %eax
movl %eax, (%r14)
movl %ebx, %edi
callq 0xd460
addq $0x4, %r14
addq $0x400, %r12            # imm = 0x400
jmp 0x15467
movq %r13, 0x28(%rsp)
movzwl 0x78(%rsp), %r13d
addl %r15d, %r13d
xorl %ebp, %ebp
cmpl %r13d, %r15d
jae 0x154b8
btsl %r15d, %ebp
incl %r15d
jmp 0x154aa
movl $0x280395, %r14d        # imm = 0x280395
pushq $0x1
popq %rbx
cmpq $0x280398, %r14         # imm = 0x280398
je 0x154df
movq 0x28(%rsp), %rax
movl %ebp, (%rax,%r14,4)
movl %ebx, %edi
callq 0xd460
incq %r14
jmp 0x154c1
movzwl 0x84(%rsp), %r12d
addl %r13d, %r12d
xorl %ebp, %ebp
cmpl %r12d, %r13d
jae 0x154fb
btsl %r13d, %ebp
incl %r13d
jmp 0x154ed
movl $0x280389, %r14d        # imm = 0x280389
pushq $0x1
popq %rbx
movq 0x28(%rsp), %r13
cmpq $0x28038c, %r14         # imm = 0x28038C
je 0x15523
movl %ebp, (%r13,%r14,4)
movl %ebx, %edi
callq 0xd460
incq %r14
jmp 0x15509
movzwl 0x8a(%rsp), %r15d
addl %r12d, %r15d
xorl %ebp, %ebp
cmpl %r15d, %r12d
jae 0x1553f
btsl %r12d, %ebp
incl %r12d
jmp 0x15531
movl $0x280398, %r14d        # imm = 0x280398
pushq $0x1
popq %rbx
cmpq $0x28039b, %r14         # imm = 0x28039B
je 0x15562
movl %ebp, (%r13,%r14,4)
movl %ebx, %edi
callq 0xd460
incq %r14
jmp 0x15548
movzwl 0x90(%rsp), %eax
addl %r15d, %eax
xorl %ebp, %ebp
cmpl %eax, %r15d
jae 0x1557d
btsl %r15d, %ebp
incl %r15d
jmp 0x1556f
movl $0x28039e, %r14d        # imm = 0x28039E
pushq $0x1
popq %rbx
cmpq $0x2803a0, %r14         # imm = 0x2803A0
je 0x155a0
movl %ebp, (%r13,%r14,4)
movl %ebx, %edi
callq 0xd460
incq %r14
jmp 0x15586
xorl %eax, %eax
leaq 0x6c(%rsp), %r13
leaq 0x82e2(%rip), %r12      # 0x1d890
xorl %ebp, %ebp
cmpq $0x4, %rbp
je 0x1560b
xorl %r15d, %r15d
movq %rax, 0x38(%rsp)
movl %eax, %ebx
xorl %r14d, %r14d
cmpl $0x20, %r15d
je 0x155e9
movl %ebx, %edi
movq %r13, %rsi
callq 0x145cc
cltq
movl (%r12,%rax,4), %eax
movl %r15d, %ecx
shll %cl, %eax
orl %eax, %r14d
incl %ebx
addl $0x4, %r15d
jmp 0x155c3
movq 0x28(%rsp), %rax
movl %r14d, 0xa02f80(%rax,%rbp,4)
pushq $0x1
popq %rdi
callq 0xd460
incq %rbp
movq 0x38(%rsp), %rax
addl $0x8, %eax
jmp 0x155b0
movl $0x280bc0, %ebx         # imm = 0x280BC0
pushq $0x1
popq %r12
movq 0x28(%rsp), %r14
cmpq $0x280be0, %rbx         # imm = 0x280BE0
je 0x15637
movl $0x0, (%r14,%rbx,4)
movl %r12d, %edi
callq 0xd460
incq %rbx
jmp 0x15619
movl %r12d, 0xa000a0(%r14)
movl %r12d, %edi
callq 0xd460
movl $0x1000, 0xa000b0(%r14) # imm = 0x1000
movl %r12d, %edi
callq 0xd460
xorl %r15d, %r15d
movl %r15d, 0xa000b4(%r14)
movl %r12d, %edi
callq 0xd460
movl %r15d, 0xa000b8(%r14)
movl %r12d, %edi
callq 0xd460
movl %r15d, 0xa000bc(%r14)
movl %r12d, %edi
callq 0xd460
movl %r12d, 0xa00034(%r14)
movl %r12d, %edi
callq 0xd460
movl %r15d, 0xa00034(%r14)
movl %r12d, %edi
callq 0xd460
movl $0x30, 0x810000(%r14)
movl %r12d, %edi
callq 0xd460
movl %r15d, 0xc84020(%r14)
movl %r12d, %edi
callq 0xd460
movl $0xffffffff, 0xc84040(%r14) # imm = 0xFFFFFFFF
movl %r12d, %edi
callq 0xd460
movl $0xc7478807, 0xc84038(%r14) # imm = 0xC7478807
movl %r12d, %edi
callq 0xd460
movl %r15d, 0xc84114(%r14)
movl %r12d, %edi
callq 0xd460
movzbl 0x6c(%rsp), %eax
leal 0x1f07f0(,%rax,2), %eax
movl %eax, 0xc84108(%r14)
movl %r12d, %edi
callq 0xd460
movl %r12d, 0xb8002c(%r14)
movl %r12d, %edi
callq 0xd460
movl %r12d, 0xb90008(%r14)
movl %r12d, %edi
callq 0xd460
movl %r12d, 0xba0008(%r14)
movl %r12d, %edi
callq 0xd460
leaq 0x61d0(%rip), %rax      # 0x1b91d
leaq 0x6216(%rip), %rbx      # 0x1b96a
cmpb $0x0, 0x6c(%rsp)
cmovneq %rax, %rbx
callq 0x16020
leaq 0x1f767(%rip), %rcx     # 0x34ed0
movq 0x10(%rcx), %r8
pushq $0x2
popq %r13
movl %r13d, %edi
xorl %esi, %esi
movq %rbx, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
leaq 0xb98000(%r14), %rbx
movzwl 0x70(%rsp), %eax
cmpq %rax, %r15
jae 0x157d5
xorl %r14d, %r14d
cmpq $0x60000, %r14          # imm = 0x60000
je 0x157c9
movl $0x1, (%rbx,%r14)
movl %r12d, %edi
callq 0xd460
movl $0x2, (%rbx,%r14)
movl %r12d, %edi
callq 0xd460
addq $0x10000, %r14          # imm = 0x10000
jmp 0x15797
incq %r15
addq $0x100, %rbx            # imm = 0x100
jmp 0x1578a
movl $0xb9c0f0, %ebx         # imm = 0xB9C0F0
pushq $0x1
popq %r12
movq 0x28(%rsp), %r14
cmpq $0xbfc0f0, %rbx         # imm = 0xBFC0F0
je 0x15815
movl $0x1, (%r14,%rbx)
movl %r12d, %edi
callq 0xd460
movl $0x2, (%r14,%rbx)
movl %r12d, %edi
callq 0xd460
addq $0x10000, %rbx          # imm = 0x10000
jmp 0x157e3
movq 0x28(%rsp), %r14
movl %r12d, 0xb9c400(%r14)
movl %r12d, %edi
callq 0xd460
movl %r12d, 0xb9c404(%r14)
movl %r12d, %edi
callq 0xd460
xorl %r15d, %r15d
movl %r15d, 0xb9c408(%r14)
movl %r12d, %edi
callq 0xd460
movl %r13d, 0xb9c400(%r14)
movl %r12d, %edi
callq 0xd460
movl %r12d, 0xbbc400(%r14)
movl %r12d, %edi
callq 0xd460
movl $0x201, 0xbbc404(%r14) # imm = 0x201
movl %r12d, %edi
callq 0xd460
movl %r15d, 0xbbc408(%r14)
movl %r12d, %edi
callq 0xd460
movl %r13d, 0xbbc400(%r14)
movl %r12d, %edi
callq 0xd460
cmpw $0x0, 0x8a(%rsp)
pushq $-0x1
popq %r12
je 0x158d1
movzbl 0x34(%rsp), %ebx
cmpl $0x3, %r15d
je 0x158d1
movq %r14, %rdi
movl %r15d, %esi
movl %ebx, %edx
movq 0x40(%rsp), %rcx
callq 0x160d0
incl %r15d
testl %eax, %eax
jns 0x158ad
jmp 0x15a1d
addq $0xa10000, %r14         # imm = 0xA10000
xorl %ecx, %ecx
leaq 0x6c(%rsp), %r15
cmpq $0x40, %rcx
je 0x159bc
xorl %ebp, %ebp
movq %r14, 0x28(%rsp)
movq %rcx, 0x38(%rsp)
cmpl $0x20, %ebp
je 0x159b0
xorl %eax, %eax
cmpq $0x4, %rax
je 0x15910
andl $0x0, 0x50(%rsp,%rax,4)
incq %rax
jmp 0x15900
movzwl 0x70(%rsp), %eax
cmpq %rax, %rcx
jae 0x15983
cmpl 0x48(%rsp), %ebp
jae 0x15983
xorl %ebx, %ebx
leaq 0x50(%rsp), %r13
xorl %r12d, %r12d
cmpq $0x40, %rbx
je 0x15983
movl %ebp, %edi
movq %r15, %rsi
callq 0x146d1
leaq 0x10(%rbx), %r14
movl %eax, %ecx
movl $0xffff, %eax           # imm = 0xFFFF
cmpq %rcx, %r14
jbe 0x15972
movl %ebp, %edi
movq %r15, %rsi
callq 0x146d1
movl %eax, %ecx
xorl %eax, %eax
cmpq %rcx, %rbx
jae 0x15972
movl %ebp, %edi
movq %r15, %rsi
callq 0x146d1
leal (%rax,%r12), %ecx
pushq $-0x1
popq %rax
shll %cl, %eax
notl %eax
movl %eax, (%r13)
addl $-0x10, %r12d
addq $0x4, %r13
movq %r14, %rbx
jmp 0x1592a
movl %ebp, %eax
shll $0x10, %eax
xorl %ecx, %ecx
movq 0x28(%rsp), %r14
cmpq $0x4, %rcx
je 0x159a4
movl 0x50(%rsp,%rcx,4), %edx
addl %eax, %edx
movl %edx, (%r14,%rcx,4)
incq %rcx
jmp 0x1598f
incl %ebp
movq 0x38(%rsp), %rcx
jmp 0x158f5
incq %rcx
addq $0x10, %r14
jmp 0x158df
callq 0x16020
leaq 0x1f508(%rip), %rcx     # 0x34ed0
movq 0x10(%rcx), %r8
leaq 0x7e90(%rip), %rdx      # 0x1d863
xorl %r12d, %r12d
pushq $0x2
popq %rdi
xorl %esi, %esi
movq %rax, %rcx
xorl %eax, %eax
callq 0x19400
movzwl 0x70(%rsp), %eax
movq 0x40(%rsp), %rcx
movl %eax, 0x4f8(%rcx)
jmp 0x14c57
callq 0x16020
movq (%r14), %r8
movl %ebp, (%rsp)
leaq 0x7de3(%rip), %rdx      # 0x1d7ef
xorl %edi, %edi
xorl %esi, %esi
movq %rax, %rcx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x19400
callq 0x16020
leaq 0x1f4a7(%rip), %rcx     # 0x34ed0
movq (%rcx), %r8
leaq 0x75d9(%rip), %rdx      # 0x1d00c
jmp 0x14c49