// File: /workspace/github_cpp_makefile_star2_O1/f18m[P]boost-intrusive-pool/tests/unit_tests.cpp
// Function: overwrite_pool_items_with_other_pool_items()
void overwrite_pool_items_with_other_pool_items()
{
    boost_intrusive_pool<DummyInt> pool(64, 16, 0, memorypool::RECYCLE_METHOD_DESTROY_FUNCTION);

    pool.check();

    {
        std::map<int, HDummyInt> helper_container;
        for (unsigned int j = 0; j < 1000; j++) {
            HDummyInt myInt = pool.allocate_through_init(j);
            assert(myInt);

            pool.check();

            // put the item inside a MAP container
            helper_container[j] = myInt;
        }

        pool.check();

        BOOST_REQUIRE(!pool.is_memory_exhausted());
        BOOST_REQUIRE_EQUAL(pool.inuse_count(), 1000);

        // now allocate an other block of items and check refcounting happens correctly so that
        // if we overwrite a filled map entry, the previous pointer is erased correctly
        for (unsigned int j = 0; j < 500; j++) {
            HDummyInt myInt = pool.allocate_through_init(j);
            assert(myInt);

            pool.check();

            // put the item inside a MAP container
            helper_container[j] = myInt;
        }

        pool.check();

        BOOST_REQUIRE(!pool.is_memory_exhausted());
        BOOST_REQUIRE_EQUAL(
            pool.inuse_count(), 1000); // should be still 1000: we allocated 500 more but released other 500 entries!

        helper_container.clear(); // all pointers it contains will be now released
    }

    BOOST_REQUIRE_EQUAL(pool.inuse_count(), 0);

    // repeat twice for test:
    pool.clear();
    pool.clear();

    pool.check();

    BOOST_REQUIRE_EQUAL(pool.inuse_count(), 0);
    BOOST_REQUIRE_EQUAL(pool.capacity(), 0);
    BOOST_REQUIRE(pool.empty());
    BOOST_REQUIRE_EQUAL(pool.unused_count(), 0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
xorps %xmm0, %xmm0
leaq -0x150(%rbp), %r9
movaps %xmm0, (%r9)
movaps %xmm0, 0x10(%r9)
leaq -0x40(%rbp), %rdi
movl $0x40, %esi
movl $0x10, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x39bfe
movq -0x140(%rbp), %rax
testq %rax, %rax
je 0x2e6ba
leaq -0x150(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2e6c8
callq 0x5600c
leaq -0x110(%rbp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq -0x90(%rbp), %rax
movl %ecx, (%rax)
leaq -0x68(%rbp), %r14
leaq -0x40(%rbp), %r15
leaq -0x118(%rbp), %r12
leaq -0xe8(%rbp), %r13
leaq -0xb0(%rbp), %rbx
movq %r14, %rdi
movq %r15, %rsi
leaq -0x90(%rbp), %rdx
callq 0x39cc4
cmpq $0x0, -0x68(%rbp)
je 0x2f403
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2e734
callq 0x5600c
movl -0x90(%rbp), %eax
movl %eax, -0xe8(%rbp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x39d96
movq -0x68(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
testq %rcx, %rcx
je 0x2e773
movq 0x8(%rcx), %rdx
cmpq $0x3ff, %rdx            # imm = 0x3FF
jae 0x2f441
incq %rdx
movq %rdx, 0x8(%rcx)
movq (%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq %rbx, %rdi
callq 0x39dfe
movq %r14, %rdi
callq 0x39dfe
movl -0x90(%rbp), %eax
incl %eax
movl %eax, -0x90(%rbp)
cmpl $0x3e8, %eax            # imm = 0x3E8
jb 0x2e709
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2e7b7
callq 0x5600c
callq 0x1f367
movq 0x560a5(%rip), %rdx     # 0x84868
leaq 0x56096(%rip), %rdi     # 0x84860
leaq 0x351e7(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2d051(%rip), %rbx     # 0x5b833
movq %rbx, 0x5605f(%rip)     # 0x84848
leaq 0x2d057(%rip), %rax     # 0x5b847
movq %rax, 0x56059(%rip)     # 0x84850
movq $0x1d6, 0x56056(%rip) # imm = 0x1D6
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2e813
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x2e815
xorl %eax, %eax
xorb $0x1, %al
leaq -0x68(%rbp), %r14
movb %al, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
leaq 0x2d366(%rip), %rax     # 0x5bb93
movq %rax, -0x90(%rbp)
leaq 0x2d373(%rip), %rax     # 0x5bbae
movq %rax, -0x88(%rbp)
leaq -0xb0(%rbp), %r15
movb $0x0, 0x8(%r15)
leaq 0x5314b(%rip), %rax     # 0x819a0
addq $0x10, %rax
movq %rax, -0x120(%rbp)
movq %rax, (%r15)
leaq 0x5414e(%rip), %rax     # 0x829b8
movq %rax, 0x10(%r15)
leaq -0x90(%rbp), %rax
movq %rax, 0x18(%r15)
leaq -0x180(%rbp), %rdx
movq %rbx, (%rdx)
leaq 0x2cfbd(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
subq $0x8, %rsp
movl $0x1d6, %ecx            # imm = 0x1D6
movq %r14, %rdi
movq %r15, %rsi
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b92f
addq $0x10, %rsp
leaq -0x58(%rbp), %rdi
callq 0x3dd4c
callq 0x1f367
movq 0x55fa0(%rip), %rdx     # 0x84868
leaq 0x55f91(%rip), %rdi     # 0x84860
leaq 0x350e2(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %rbx, 0x55f61(%rip)     # 0x84848
leaq 0x2cf59(%rip), %rax     # 0x5b847
movq %rax, 0x55f5b(%rip)     # 0x84850
movq $0x1d7, 0x55f58(%rip) # imm = 0x1D7
movb $0x0, -0x88(%rbp)
leaq 0x530d2(%rip), %rax     # 0x819e0
addq $0x10, %rax
movq %rax, -0xc8(%rbp)
movq %rax, -0x90(%rbp)
leaq 0x54091(%rip), %rax     # 0x829b8
movq %rax, -0x80(%rbp)
leaq 0x2c57f(%rip), %rax     # 0x5aeb1
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2e945
movq 0x68(%rax), %rax
jmp 0x2e947
xorl %eax, %eax
leaq -0x30(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x3e8, %rax            # imm = 0x3E8
leaq -0xe8(%rbp), %rdi
sete (%rdi)
leaq -0xcc(%rbp), %r8
movl $0x3e8, (%r8)           # imm = 0x3E8
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x130(%rbp), %rdx
movq %rbx, (%rdx)
leaq 0x2cec3(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
leaq -0x70(%rbp), %rsi
movq %rcx, (%rsi)
xorl %eax, %eax
movb %al, -0xa8(%rbp)
leaq 0x53082(%rip), %rcx     # 0x81a20
addq $0x10, %rcx
movq %rcx, -0xc0(%rbp)
movq %rcx, -0xb0(%rbp)
leaq 0x54001(%rip), %rcx     # 0x829b8
movq %rcx, -0xa0(%rbp)
movq %rsi, -0x98(%rbp)
leaq -0x48(%rbp), %rsi
movq %r8, (%rsi)
movb %al, -0x60(%rbp)
leaq 0x5308a(%rip), %rax     # 0x81a60
addq $0x10, %rax
movq %rax, -0xb8(%rbp)
movq %rax, -0x68(%rbp)
movq %rcx, -0x58(%rbp)
movq %rsi, -0x50(%rbp)
subq $0x8, %rsp
leaq 0x2d1ca(%rip), %r11     # 0x5bbc2
leaq 0x2d1b0(%rip), %r10     # 0x5bbaf
leaq -0x90(%rbp), %rsi
movl $0x1d7, %ecx            # imm = 0x1D7
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r14
pushq %r11
pushq %r15
pushq %r10
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0xd8(%rbp), %rdi
callq 0x3dd4c
leaq -0x90(%rbp), %rax
movl $0x0, (%rax)
leaq -0x40(%rbp), %r15
leaq -0x118(%rbp), %r12
leaq -0xe8(%rbp), %r13
leaq -0xb0(%rbp), %rbx
movq %r14, %rdi
movq %r15, %rsi
leaq -0x90(%rbp), %rdx
callq 0x39cc4
cmpq $0x0, -0x68(%rbp)
je 0x2f422
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2ea89
callq 0x5600c
movl -0x90(%rbp), %eax
movl %eax, -0xe8(%rbp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x39d96
movq -0x68(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
testq %rcx, %rcx
je 0x2eac8
movq 0x8(%rcx), %rdx
cmpq $0x3ff, %rdx            # imm = 0x3FF
jae 0x2f443
incq %rdx
movq %rdx, 0x8(%rcx)
movq (%rax), %rdx
movq %rdx, -0xb0(%rbp)
movq %rcx, (%rax)
movq %rbx, %rdi
callq 0x39dfe
movq %r14, %rdi
callq 0x39dfe
movl -0x90(%rbp), %eax
incl %eax
movl %eax, -0x90(%rbp)
cmpl $0x1f4, %eax            # imm = 0x1F4
jb 0x2ea5e
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
leaq 0x2cd27(%rip), %r12     # 0x5b833
je 0x2eb13
callq 0x5600c
callq 0x1f367
movq 0x55d49(%rip), %rdx     # 0x84868
leaq 0x55d3a(%rip), %rdi     # 0x84860
leaq 0x34e8b(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %r12, 0x55d0a(%rip)     # 0x84848
leaq 0x2cd02(%rip), %rax     # 0x5b847
movq %rax, 0x55d04(%rip)     # 0x84850
movq $0x1e7, 0x55d01(%rip) # imm = 0x1E7
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2eb68
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x2eb6a
xorl %eax, %eax
leaq 0x2d022(%rip), %rcx     # 0x5bb93
leaq 0x2d036(%rip), %rdx     # 0x5bbae
xorb $0x1, %al
leaq -0x68(%rbp), %r15
movb %al, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r15)
movq %rcx, -0x90(%rbp)
movq %rdx, -0x88(%rbp)
leaq -0xb0(%rbp), %r14
movb $0x0, 0x8(%r14)
movq -0x120(%rbp), %rax
movq %rax, (%r14)
leaq 0x53e04(%rip), %rax     # 0x829b8
movq %rax, 0x10(%r14)
leaq -0x90(%rbp), %rax
movq %rax, 0x18(%r14)
leaq -0x170(%rbp), %rdx
movq %r12, (%rdx)
leaq 0x2cc73(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
subq $0x8, %rsp
movl $0x1e7, %ecx            # imm = 0x1E7
movq %r15, %rdi
movq %r14, %rsi
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b92f
addq $0x10, %rsp
leaq -0x58(%rbp), %rdi
callq 0x3dd4c
callq 0x1f367
movq 0x55c56(%rip), %rdx     # 0x84868
leaq 0x55c47(%rip), %rdi     # 0x84860
leaq 0x34d98(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
movq %r12, 0x55c17(%rip)     # 0x84848
leaq 0x2cc0f(%rip), %rax     # 0x5b847
movq %rax, 0x55c11(%rip)     # 0x84850
movq $0x1e9, 0x55c0e(%rip) # imm = 0x1E9
movb $0x0, -0x88(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq 0x53d52(%rip), %rax     # 0x829b8
movq %rax, -0x80(%rbp)
leaq 0x2c240(%rip), %rax     # 0x5aeb1
movq %rax, -0x78(%rbp)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2ec84
movq 0x68(%rax), %rax
jmp 0x2ec86
xorl %eax, %eax
movq %rax, -0x30(%rbp)
movl $0x3e8, -0xcc(%rbp)     # imm = 0x3E8
cmpq $0x3e8, %rax            # imm = 0x3E8
leaq -0xe8(%rbp), %rdi
sete (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0x130(%rbp), %rbx
movq %r12, (%rbx)
leaq 0x2cb8b(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rbx)
leaq -0x30(%rbp), %rax
movq %rax, -0x70(%rbp)
xorl %eax, %eax
movb %al, -0xa8(%rbp)
movq -0xc0(%rbp), %rcx
movq %rcx, -0xb0(%rbp)
leaq 0x53cd3(%rip), %rcx     # 0x829b8
movq %rcx, -0xa0(%rbp)
leaq -0x70(%rbp), %rdx
movq %rdx, -0x98(%rbp)
leaq -0xcc(%rbp), %rdx
movq %rdx, -0x48(%rbp)
movb %al, -0x60(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq %rcx, -0x58(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
subq $0x8, %rsp
leaq -0x90(%rbp), %rsi
movl $0x1e9, %ecx            # imm = 0x1E9
movq %rbx, %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r15
leaq 0x2ce7c(%rip), %r10     # 0x5bbc2
pushq %r10
pushq %r14
leaq 0x2ce5e(%rip), %r12     # 0x5bbaf
pushq %r12
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0xd8(%rbp), %rdi
callq 0x3dd4c
leaq -0x118(%rbp), %r15
movq %r15, %rdi
callq 0x56736
movq %r15, %rdi
callq 0x4c966
callq 0x1f367
movq 0x55adb(%rip), %rdx     # 0x84868
leaq 0x55acc(%rip), %rdi     # 0x84860
leaq 0x34c1d(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2ca87(%rip), %rcx     # 0x5b833
movq %rcx, 0x55a95(%rip)     # 0x84848
leaq 0x2ca8d(%rip), %rax     # 0x5b847
movq %rax, 0x55a8f(%rip)     # 0x84850
movq $0x1ee, 0x55a8c(%rip) # imm = 0x1EE
movb $0x0, -0x60(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x53bd6(%rip), %rax     # 0x829b8
movq %rax, -0x58(%rbp)
leaq 0x2c0c4(%rip), %rax     # 0x5aeb1
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2ee00
movq 0x68(%rax), %rax
jmp 0x2ee02
xorl %eax, %eax
movq %rax, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
testq %rax, %rax
leaq -0x90(%rbp), %rdi
sete (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0xe8(%rbp), %rdx
movq %rcx, (%rdx)
leaq 0x2ca15(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
leaq -0x48(%rbp), %rax
movq %rax, -0x130(%rbp)
xorl %eax, %eax
movb %al, -0x110(%rbp)
movq -0xc0(%rbp), %rcx
movq %rcx, -0x118(%rbp)
leaq 0x53b5a(%rip), %rcx     # 0x829b8
movq %rcx, -0x108(%rbp)
movq %rbx, -0x100(%rbp)
leaq -0x30(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movb %al, -0xa8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rcx, -0xa0(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x316cc(%rip), %r13     # 0x60571
leaq -0x68(%rbp), %rsi
movl $0x1ee, %ecx            # imm = 0x1EE
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r14
pushq %r13
pushq %r15
pushq %r12
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0x80(%rbp), %rdi
callq 0x3dd4c
leaq -0x40(%rbp), %rdi
callq 0x39e4a
leaq -0x40(%rbp), %rdi
callq 0x39e4a
movq -0x38(%rbp), %rdi
testq %rdi, %rdi
je 0x2eef8
callq 0x5600c
callq 0x1f367
movq 0x55964(%rip), %rdx     # 0x84868
leaq 0x55955(%rip), %rdi     # 0x84860
leaq 0x34aa6(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2c910(%rip), %rcx     # 0x5b833
movq %rcx, 0x5591e(%rip)     # 0x84848
leaq 0x2c916(%rip), %rax     # 0x5b847
movq %rax, 0x55918(%rip)     # 0x84850
movq $0x1f6, 0x55915(%rip) # imm = 0x1F6
movb $0x0, -0x60(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x53a5f(%rip), %rax     # 0x829b8
movq %rax, -0x58(%rbp)
leaq 0x2bf4d(%rip), %rax     # 0x5aeb1
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2ef77
movq 0x68(%rax), %rax
jmp 0x2ef79
xorl %eax, %eax
movq %rax, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
testq %rax, %rax
leaq -0x90(%rbp), %rdi
sete (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0xe8(%rbp), %rdx
movq %rcx, (%rdx)
leaq 0x2c89e(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
leaq -0x48(%rbp), %rax
movq %rax, -0x130(%rbp)
xorl %eax, %eax
movb %al, -0x110(%rbp)
movq -0xc0(%rbp), %rcx
movq %rcx, -0x118(%rbp)
leaq 0x539e3(%rip), %rcx     # 0x829b8
movq %rcx, -0x108(%rbp)
movq %rbx, -0x100(%rbp)
leaq -0x30(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movb %al, -0xa8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rcx, -0xa0(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq -0x68(%rbp), %rsi
movl $0x1f6, %ecx            # imm = 0x1F6
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r14
pushq %r13
pushq %r15
pushq %r12
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0x80(%rbp), %rdi
callq 0x3dd4c
callq 0x1f367
movq 0x55814(%rip), %rdx     # 0x84868
leaq 0x55805(%rip), %rdi     # 0x84860
leaq 0x34956(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2c7c0(%rip), %rcx     # 0x5b833
movq %rcx, 0x557ce(%rip)     # 0x84848
leaq 0x2c7c6(%rip), %rax     # 0x5b847
movq %rax, 0x557c8(%rip)     # 0x84850
movq $0x1f7, 0x557c5(%rip) # imm = 0x1F7
movb $0x0, -0x60(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x5390f(%rip), %rax     # 0x829b8
movq %rax, -0x58(%rbp)
leaq 0x2bdfd(%rip), %rax     # 0x5aeb1
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2f0c7
movq 0x70(%rax), %rax
jmp 0x2f0c9
xorl %eax, %eax
movq %rax, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
testq %rax, %rax
leaq -0x90(%rbp), %rdi
sete (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0xe8(%rbp), %rdx
movq %rcx, (%rdx)
leaq 0x2c74e(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
leaq -0x48(%rbp), %rax
movq %rax, -0x130(%rbp)
xorl %eax, %eax
movb %al, -0x110(%rbp)
movq -0xc0(%rbp), %rcx
movq %rcx, -0x118(%rbp)
leaq 0x53893(%rip), %rcx     # 0x829b8
movq %rcx, -0x108(%rbp)
movq %rbx, -0x100(%rbp)
leaq -0x30(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movb %al, -0xa8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rcx, -0xa0(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x2ca5b(%rip), %r10     # 0x5bbc7
leaq -0x68(%rbp), %r12
movl $0x1f7, %ecx            # imm = 0x1F7
movq %r12, %rsi
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r14
pushq %r13
pushq %r15
pushq %r10
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0x80(%rbp), %rdi
callq 0x3dd4c
callq 0x1f367
movq 0x556ba(%rip), %rdx     # 0x84868
leaq 0x556ab(%rip), %rdi     # 0x84860
leaq 0x347fc(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2c666(%rip), %rax     # 0x5b833
movq %rax, 0x55674(%rip)     # 0x84848
leaq 0x2c66c(%rip), %rax     # 0x5b847
movq %rax, 0x5566e(%rip)     # 0x84850
movq $0x1f8, 0x5566b(%rip) # imm = 0x1F8
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2f203
movq 0x60(%rax), %rcx
cmpq 0x70(%rax), %rcx
sete %al
jmp 0x2f205
movb $0x1, %al
movb %al, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
leaq 0x2c9c0(%rip), %rax     # 0x5bbd7
movq %rax, -0x68(%rbp)
leaq 0x2c9c1(%rip), %rax     # 0x5bbe3
movq %rax, -0x60(%rbp)
movb $0x0, 0x8(%r15)
movq -0x120(%rbp), %rax
movq %rax, (%r15)
leaq 0x5377c(%rip), %rax     # 0x829b8
movq %rax, 0x10(%r15)
movq %r12, 0x18(%r15)
leaq -0x160(%rbp), %rdx
leaq 0x2c5e1(%rip), %rax     # 0x5b833
movq %rax, (%rdx)
leaq 0x2c5eb(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
subq $0x8, %rsp
movl $0x1f8, %ecx            # imm = 0x1F8
movq %r14, %rdi
movq %r15, %rsi
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b92f
addq $0x10, %rsp
leaq -0xa0(%rbp), %rdi
callq 0x3dd4c
callq 0x1f367
movq 0x555cb(%rip), %rdx     # 0x84868
leaq 0x555bc(%rip), %rdi     # 0x84860
leaq 0x3470d(%rip), %rcx     # 0x639b8
xorl %esi, %esi
xorl %r8d, %r8d
callq 0xf760
leaq 0x2c577(%rip), %rcx     # 0x5b833
movq %rcx, 0x55585(%rip)     # 0x84848
leaq 0x2c57d(%rip), %rax     # 0x5b847
movq %rax, 0x5557f(%rip)     # 0x84850
movq $0x1f9, 0x5557c(%rip) # imm = 0x1F9
movb $0x0, -0x60(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x536c6(%rip), %rax     # 0x829b8
movq %rax, -0x58(%rbp)
leaq 0x2bbb4(%rip), %rax     # 0x5aeb1
movq %rax, -0x50(%rbp)
movq -0x38(%rbp), %rax
testq %rax, %rax
je 0x2f310
movq 0x60(%rax), %rax
jmp 0x2f312
xorl %eax, %eax
movq %rax, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
testq %rax, %rax
leaq -0x90(%rbp), %rdi
sete (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq -0xe8(%rbp), %rdx
movq %rcx, (%rdx)
leaq 0x2c505(%rip), %rax     # 0x5b847
movq %rax, 0x8(%rdx)
leaq -0x48(%rbp), %rax
movq %rax, -0x130(%rbp)
xorl %eax, %eax
movb %al, -0x110(%rbp)
movq -0xc0(%rbp), %rcx
movq %rcx, -0x118(%rbp)
leaq 0x5364a(%rip), %rcx     # 0x829b8
movq %rcx, -0x108(%rbp)
movq %rbx, -0x100(%rbp)
leaq -0x30(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movb %al, -0xa8(%rbp)
movq -0xb8(%rbp), %rax
movq %rax, -0xb0(%rbp)
movq %rcx, -0xa0(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x98(%rbp)
subq $0x8, %rsp
leaq 0x2c74f(%rip), %r10     # 0x5bb04
leaq -0x68(%rbp), %rsi
movl $0x1f9, %ecx            # imm = 0x1F9
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
pushq %r14
pushq %r13
pushq %r15
pushq %r10
pushq $0x2
callq 0x1b92f
addq $0x30, %rsp
leaq -0x80(%rbp), %rdi
callq 0x3dd4c
leaq -0x40(%rbp), %rdi
callq 0x39fb4
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2c60c(%rip), %rdi     # 0x5ba16
leaq 0x2c422(%rip), %rsi     # 0x5b833
leaq 0x2c749(%rip), %rcx     # 0x5bb61
movl $0x1cc, %edx            # imm = 0x1CC
callq 0xf2f0
leaq 0x2c5ed(%rip), %rdi     # 0x5ba16
leaq 0x2c403(%rip), %rsi     # 0x5b833
leaq 0x2c72a(%rip), %rcx     # 0x5bb61
movl $0x1dd, %edx            # imm = 0x1DD
callq 0xf2f0
jmp 0x2f443
leaq 0x31942(%rip), %rdi     # 0x60d8c
leaq 0x30f92(%rip), %rsi     # 0x603e3
leaq 0x31985(%rip), %rcx     # 0x60ddd
movl $0xdc, %edx
callq 0xf2f0
jmp 0x2f4f3
jmp 0x2f4f3
jmp 0x2f4ce
jmp 0x2f480
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
jmp 0x2f487
jmp 0x2f480
jmp 0x2f480
movq %rax, %rbx
leaq -0x80(%rbp), %rdi
callq 0x3dd4c
jmp 0x2f502
jmp 0x2f492
jmp 0x2f49e
movq %rax, %rbx
leaq -0xd8(%rbp), %rdi
jmp 0x2f4a5
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x3dd4c
jmp 0x2f4f6
movq %rax, %rbx
movq -0x140(%rbp), %rax
testq %rax, %rax
je 0x2f50b
leaq -0x150(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2f50b
movq %rax, %rdi
callq 0x3347e
jmp 0x2f4f3
movq %rax, %rbx
jmp 0x2f502
jmp 0x2f4e5
jmp 0x2f4e5
jmp 0x2f4e5
jmp 0x2f4f3
movq %rax, %rbx
leaq -0x68(%rbp), %rdi
callq 0x39dfe
jmp 0x2f4f6
movq %rax, %rbx
leaq -0x118(%rbp), %rdi
callq 0x4c966
leaq -0x40(%rbp), %rdi
callq 0x39fb4
movq %rbx, %rdi
callq 0xf880