// File: /workspace/github_cpp_makefile_star2_O3/f18m[P]boost-intrusive-pool/tests/unit_tests.cpp
// Function: max_size_memory_pool()
void max_size_memory_pool()
{
    BOOST_TEST_MESSAGE("Starting boost_intrusive_pool<> tests when memory pool has max size");

    struct {
        unsigned int initial_size;
        unsigned int enlarge_step;
        unsigned int max_size;
    } testArray[] = {
        { 1, 1, 10 }, // force newline
        { 10, 2, 21 }, // force newline
        { 100000, 1, 100010 }, // force newline
        { 128, 4096, 5000 }, // force newline
    };

    for (int testIdx = 0; testIdx < sizeof(testArray) / sizeof(testArray[0]); testIdx++) {
        BOOST_TEST_MESSAGE(std::string("Starting test entry #") + std::to_string(testIdx));

        boost_intrusive_pool<DummyInt> f(testArray[testIdx].initial_size /* initial size */,
            testArray[testIdx].enlarge_step /* enlarge step */, testArray[testIdx].max_size /* max size */);
        std::vector<HDummyInt> helper_container;

        BOOST_REQUIRE(f.is_limited());
        BOOST_REQUIRE_EQUAL(f.max_size(), testArray[testIdx].max_size);

        for (unsigned int j = 0; j < testArray[testIdx].initial_size; j++) {
            HDummyInt myInt = f.allocate_through_init(3);
            assert(myInt);
            helper_container.push_back(myInt);

            f.check();
        }

        // When initial_size items are allocated, the memory pool will try to pre-allocate enlarge_step items.
        // At that point, unused_count will be equal to enlarge_step.
        // But if initial_size + enlarge_step exceeds max_size, the enlarge_step will be the remaining to max_size.
        size_t enlarge_step = testArray[testIdx].enlarge_step;
        if (testArray[testIdx].initial_size + testArray[testIdx].enlarge_step > testArray[testIdx].max_size)
            enlarge_step = testArray[testIdx].max_size - testArray[testIdx].initial_size;
        BOOST_REQUIRE_EQUAL(f.unused_count(), enlarge_step);

        for (unsigned int j = testArray[testIdx].initial_size; j < testArray[testIdx].max_size; j++) {
            HDummyInt myInt = f.allocate_through_init(3);
            assert(myInt);
            helper_container.push_back(myInt);

            f.check();
        }

        BOOST_REQUIRE_EQUAL(f.unused_count(), 0);

        // now if we allocate more we should fail gracefully:
        HDummyInt myInt = f.allocate_through_init(4);
        BOOST_REQUIRE(!myInt);

        // This should hold always:
        BOOST_REQUIRE_EQUAL(f.unused_count() + f.inuse_count(), f.capacity());
        BOOST_REQUIRE_EQUAL(f.inuse_count(), testArray[testIdx].max_size);
        BOOST_REQUIRE_EQUAL(f.capacity(), testArray[testIdx].max_size);
        BOOST_REQUIRE(!f.empty());
        BOOST_REQUIRE(f.enlarge_steps_done() > 0);

        helper_container.clear();
        f.clear();

        f.check();

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

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movq 0x55bcd(%rip), %rdi     # 0x80808
leaq 0x2fbf1(%rip), %r15     # 0x5a833
leaq -0x98(%rbp), %rbx
movq %r15, (%rbx)
leaq 0x2fbf4(%rip), %r12     # 0x5a847
movq %r12, 0x8(%rbx)
movq $0x102, 0x10(%rbx)      # imm = 0x102
movq %rbx, %rsi
callq 0x181dc
callq 0x1f031
movl $0x2, 0x57bca(%rip)     # 0x82840
movb $0x1, -0x48(%rbp)
leaq -0x1a0(%rbp), %rsi
movb $0x0, 0x8(%rsi)
leaq 0x54bd4(%rip), %rax     # 0x7f860
addq $0x10, %rax
movq %rax, (%rsi)
leaq 0x55d1e(%rip), %rax     # 0x809b8
movq %rax, 0x10(%rsi)
leaq 0x2fdae(%rip), %rax     # 0x5aa53
movq %rax, 0x18(%rsi)
movq 0x55b58(%rip), %rdi     # 0x80808
callq 0x1ee5c
leaq -0x48(%rbp), %rdi
callq 0x1f012
movaps 0x2d48b(%rip), %xmm0    # 0x58150
movaps %xmm0, -0x180(%rbp)
movaps 0x2d46d(%rip), %xmm0    # 0x58140
movaps %xmm0, -0x190(%rbp)
movaps 0x2d44f(%rip), %xmm0    # 0x58130
movaps %xmm0, -0x1a0(%rbp)
leaq 0x54bb1(%rip), %rax     # 0x7f8a0
addq $0x10, %rax
movq %rax, -0x150(%rbp)
leaq 0x54c97(%rip), %rax     # 0x7f998
addq $0x10, %rax
movq %rax, -0x100(%rbp)
leaq 0x54cc5(%rip), %rax     # 0x7f9d8
addq $0x10, %rax
movq %rax, -0xe8(%rbp)
leaq 0x54cf3(%rip), %rax     # 0x7fa18
addq $0x10, %rax
movq %rax, -0xe0(%rbp)
leaq 0x54da1(%rip), %rax     # 0x7fad8
addq $0x10, %rax
movq %rax, -0x148(%rbp)
leaq 0x54d0f(%rip), %rax     # 0x7fa58
addq $0x10, %rax
movq %rax, -0x138(%rbp)
leaq -0x130(%rbp), %r14
movq $0x0, -0x140(%rbp)
movq 0x55a9b(%rip), %rdi     # 0x80808
movq %r15, -0x130(%rbp)
movq %r12, -0x128(%rbp)
movq $0x110, -0x120(%rbp) # imm = 0x110
movq %r14, %rsi
callq 0x181dc
callq 0x1f031
movl $0x2, 0x57aa3(%rip)     # 0x82840
movb $0x1, -0xa8(%rbp)
leaq -0x58(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq -0x68(%rbp), %rdi
leaq 0x2fad5(%rip), %rsi     # 0x5a88c
leaq 0x2fae3(%rip), %rdx     # 0x5a8a1
callq 0x4c874
leaq -0xb8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movl $0x1, %esi
leaq -0xc8(%rbp), %rdi
movl $0x2d, %edx
callq 0xf580
leaq -0x38(%rbp), %r12
movq -0x140(%rbp), %r14
movq -0xc8(%rbp), %rdi
movl $0x1, %esi
movl %r14d, %edx
callq 0x4be23
movq -0x68(%rbp), %rcx
movl $0xf, %edi
leaq -0x58(%rbp), %rax
cmpq %rax, %rcx
je 0x2ae1c
movq -0x58(%rbp), %rdi
movq -0x60(%rbp), %r8
movq -0xc8(%rbp), %rsi
movq -0xc0(%rbp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x2ae54
movl $0xf, %edi
leaq -0xb8(%rbp), %r9
cmpq %r9, %rsi
je 0x2ae4f
movq -0xb8(%rbp), %rdi
cmpq %rdi, %rax
jbe 0x2ae5f
leaq -0x68(%rbp), %rdi
callq 0xf170
jmp 0x2ae6f
leaq -0xc8(%rbp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0xf540
movq %r12, -0x48(%rbp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x2ae8c
movq %rdx, -0x48(%rbp)
movq (%rcx), %rdx
movq %rdx, -0x38(%rbp)
jmp 0x2ae94
movups (%rcx), %xmm0
movups %xmm0, (%r12)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, -0x40(%rbp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
xorl %eax, %eax
movb %al, (%rcx)
movb %al, -0x90(%rbp)
movq -0x150(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x55aec(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x80(%rbp)
movq 0x55926(%rip), %rdi     # 0x80808
movq %rbx, %rsi
callq 0x1ee5c
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2aef8
callq 0xf480
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x2af10
callq 0xf480
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2af22
callq 0xf480
leaq -0xa8(%rbp), %rdi
callq 0x1f012
leaq (%r14,%r14,2), %r12
movl -0x1a0(%rbp,%r12,4), %esi
movl -0x19c(%rbp,%r12,4), %edx
movl -0x198(%rbp,%r12,4), %ecx
xorps %xmm0, %xmm0
movaps %xmm0, -0x160(%rbp)
movaps %xmm0, -0x170(%rbp)
leaq -0xd8(%rbp), %rdi
xorl %r8d, %r8d
leaq -0x170(%rbp), %r9
callq 0x39422
movq -0x160(%rbp), %rax
testq %rax, %rax
je 0x2af8e
leaq -0x170(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
xorps %xmm0, %xmm0
movaps %xmm0, -0x130(%rbp)
movq $0x0, -0x120(%rbp)
callq 0x1f031
movq 0x578b9(%rip), %rdx     # 0x82868
leaq 0x578aa(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x379f9(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x5787a(%rip)     # 0x82848
leaq 0x2f872(%rip), %rax     # 0x5a847
movq %rax, 0x57874(%rip)     # 0x82850
movq $0x116, 0x57871(%rip) # imm = 0x116
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2b007
cmpq $0x0, 0x30(%rax)
sete %cl
cmpq $0x0, 0x38(%rax)
setne %al
orb %cl, %al
jmp 0x2b009
xorl %eax, %eax
movb %al, -0x48(%rbp)
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %rdi
movups %xmm0, 0x8(%rdi)
leaq 0x2fa79(%rip), %rax     # 0x5aa97
movq %rax, -0x68(%rbp)
leaq 0x2fa7c(%rip), %rax     # 0x5aaa5
movq %rax, -0x60(%rbp)
movb $0x0, -0x90(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x5596f(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %r15, -0x1f0(%rbp)
leaq 0x2f7e1(%rip), %rax     # 0x5a847
movq %rax, -0x1e8(%rbp)
subq $0x8, %rsp
movl $0x116, %ecx            # imm = 0x116
movq %rbx, %rsi
leaq -0x1f0(%rbp), %rdx
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b705
addq $0x10, %rsp
leaq -0x38(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x577bd(%rip), %rdx     # 0x82868
leaq 0x577ae(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x378fd(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x5777e(%rip)     # 0x82848
leaq 0x2f776(%rip), %rax     # 0x5a847
movq %rax, 0x57778(%rip)     # 0x82850
movq $0x117, 0x57775(%rip) # imm = 0x117
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x558bf(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2edad(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2b12a
leaq 0x38(%rax), %rcx
cmpq $0x0, 0x30(%rax)
leaq 0x70(%rax), %rax
cmoveq %rax, %rcx
movq (%rcx), %rax
jmp 0x2b12c
xorl %eax, %eax
leaq -0x198(,%r12,4), %r13
addq %rbp, %r13
movl (%r13), %ecx
cmpq %rcx, %rax
movq %rax, -0x110(%rbp)
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
leaq 0x2f6df(%rip), %rax     # 0x5a847
movq %rax, -0xa0(%rbp)
leaq -0x110(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x0, %ecx
movb %cl, -0x90(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x5581e(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rdx
movq %rdx, -0x80(%rbp)
movq %r13, -0x70(%rbp)
movb %cl, -0x40(%rbp)
movq -0x148(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x117, %ecx            # imm = 0x117
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x2f8b6(%rip), %r10     # 0x5aab3
pushq %r10
pushq %rbx
leaq 0x2f89f(%rip), %r10     # 0x5aaa6
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0x1a0(,%r12,4), %r12
addq %rbp, %r12
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
cmpl $0x0, (%r12)
je 0x2b293
xorl %r15d, %r15d
movl $0x3, -0x48(%rbp)
movq %rbx, %rdi
leaq -0xd8(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x39826
cmpq $0x0, -0x98(%rbp)
je 0x2c11f
leaq -0x130(%rbp), %rdi
movq %rbx, %rsi
callq 0x398ce
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x2b27d
callq 0x5546e
movq %rbx, %rdi
callq 0x39622
incl %r15d
movl (%r12), %eax
cmpl %eax, %r15d
jb 0x2b235
jmp 0x2b295
xorl %eax, %eax
movl 0x4(%r12), %ecx
movq %rcx, -0x110(%rbp)
leal (%rcx,%rax), %edx
movl 0x8(%r12), %ecx
cmpl %ecx, %edx
leaq 0x2f581(%rip), %r15     # 0x5a833
jbe 0x2b2bd
subl %eax, %ecx
movq %rcx, -0x110(%rbp)
callq 0x1f031
movq 0x5759f(%rip), %rdx     # 0x82868
leaq 0x57590(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x376df(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x57560(%rip)     # 0x82848
leaq 0x2f558(%rip), %rax     # 0x5a847
movq %rax, 0x5755a(%rip)     # 0x82850
movq $0x127, 0x57557(%rip) # imm = 0x127
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x556a1(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2eb8f(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2b338
movq 0x60(%rax), %rax
jmp 0x2b33a
xorl %eax, %eax
movq %rax, -0xf8(%rbp)
cmpq -0x110(%rbp), %rax
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
leaq 0x2f4dc(%rip), %rax     # 0x5a847
movq %rax, -0xa0(%rbp)
leaq -0xf8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x0, %edx
movb %dl, -0x90(%rbp)
movq -0xe0(%rbp), %rcx
movq %rcx, -0x98(%rbp)
leaq 0x5561b(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rsi
movq %rsi, -0x80(%rbp)
leaq -0x110(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movb %dl, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x127, %ecx            # imm = 0x127
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x2f6eb(%rip), %r10     # 0x5aaeb
pushq %r10
pushq %rbx
leaq 0x2f59d(%rip), %r10     # 0x5a9a7
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
movl (%r12), %r15d
cmpl 0x8(%r12), %r15d
jae 0x2b487
movl $0x3, -0x48(%rbp)
movq %rbx, %rdi
leaq -0xd8(%rbp), %rsi
leaq -0x48(%rbp), %rdx
callq 0x39826
cmpq $0x0, -0x98(%rbp)
je 0x2c13e
leaq -0x130(%rbp), %rdi
movq %rbx, %rsi
callq 0x398ce
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x2b476
callq 0x5546e
movq %rbx, %rdi
callq 0x39622
incl %r15d
cmpl (%r13), %r15d
jb 0x2b42e
callq 0x1f031
leaq 0x2f3a0(%rip), %r15     # 0x5a833
movq 0x573ce(%rip), %rdx     # 0x82868
leaq 0x573bf(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x3750e(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x5738f(%rip)     # 0x82848
leaq 0x2f387(%rip), %r12     # 0x5a847
movq %r12, 0x57389(%rip)     # 0x82850
movq $0x131, 0x57386(%rip) # imm = 0x131
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x554d0(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2e9be(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2b509
movq 0x60(%rax), %rax
jmp 0x2b50b
xorl %eax, %eax
movq %rax, -0xf8(%rbp)
movl $0x0, -0xf0(%rbp)
testq %rax, %rax
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
leaq -0xf8(%rbp), %r14
movq %r14, -0x78(%rbp)
movl $0x0, %ecx
movb %cl, -0x90(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x5544b(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rdx
movq %rdx, -0x80(%rbp)
leaq -0xf0(%rbp), %rdx
movq %rdx, -0x70(%rbp)
movb %cl, -0x40(%rbp)
movq -0x138(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x131, %ecx            # imm = 0x131
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x33f9a(%rip), %r10     # 0x5f571
pushq %r10
pushq %rbx
leaq 0x2f3c6(%rip), %r10     # 0x5a9a7
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
movl $0x4, -0x98(%rbp)
movq %r14, %rdi
leaq -0xd8(%rbp), %rsi
movq %rbx, %rdx
callq 0x39826
callq 0x1f031
leaq -0xf0(%rbp), %r14
movq 0x5723f(%rip), %rdx     # 0x82868
leaq 0x57230(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x3737f(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x57200(%rip)     # 0x82848
movq %r12, 0x57201(%rip)     # 0x82850
movq $0x135, 0x571fe(%rip) # imm = 0x135
cmpq $0x0, -0xf8(%rbp)
sete -0x48(%rbp)
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %rdi
movups %xmm0, 0x8(%rdi)
leaq 0x2f39d(%rip), %rax     # 0x5aa15
movq %rax, -0x68(%rbp)
leaq 0x2f398(%rip), %rax     # 0x5aa1b
movq %rax, -0x60(%rbp)
movb $0x0, -0x90(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x55315(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %r15, -0x1e0(%rbp)
movq %r12, -0x1d8(%rbp)
subq $0x8, %rsp
movl $0x135, %ecx            # imm = 0x135
movq %rbx, %rsi
leaq -0x1e0(%rbp), %rdx
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b705
addq $0x10, %rsp
leaq -0x38(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x5716a(%rip), %rdx     # 0x82868
leaq 0x5715b(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x372aa(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x5712b(%rip)     # 0x82848
movq %r12, 0x5712c(%rip)     # 0x82850
movq $0x138, 0x57129(%rip) # imm = 0x138
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x55273(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2e761(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rcx
testq %rcx, %rcx
je 0x2b76e
movq 0x68(%rcx), %rax
addq 0x60(%rcx), %rax
movq 0x70(%rcx), %rcx
jmp 0x2b772
xorl %eax, %eax
xorl %ecx, %ecx
movq %rax, -0xf0(%rbp)
movq %rcx, -0x108(%rbp)
cmpq %rcx, %rax
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
movq %r14, -0x78(%rbp)
movl $0x0, %edx
movb %dl, -0x90(%rbp)
movq -0xe0(%rbp), %rcx
movq %rcx, -0x98(%rbp)
leaq 0x551ee(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rsi
movq %rsi, -0x80(%rbp)
leaq -0x108(%rbp), %rsi
movq %rsi, -0x70(%rbp)
movb %dl, -0x40(%rbp)
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x138, %ecx            # imm = 0x138
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x2f0eb(%rip), %r10     # 0x5a918
pushq %r10
pushq %rbx
leaq 0x2f0be(%rip), %r10     # 0x5a8f5
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x5700c(%rip), %rdx     # 0x82868
leaq 0x56ffd(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x3714c(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x56fcd(%rip)     # 0x82848
movq %r12, 0x56fce(%rip)     # 0x82850
movq $0x139, 0x56fcb(%rip) # imm = 0x139
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x55115(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2e603(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2b8c4
movq 0x68(%rax), %rax
jmp 0x2b8c6
xorl %eax, %eax
movq %rax, -0xf0(%rbp)
movl (%r13), %ecx
cmpq %rcx, %rax
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
movq %r14, -0x78(%rbp)
movl $0x0, %ecx
movb %cl, -0x90(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x5509d(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rdx
movq %rdx, -0x80(%rbp)
movq %r13, -0x70(%rbp)
movb %cl, -0x40(%rbp)
movq -0x148(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x139, %ecx            # imm = 0x139
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x2f135(%rip), %r10     # 0x5aab3
pushq %r10
pushq %rbx
leaq 0x2ef80(%rip), %r10     # 0x5a908
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x56ebb(%rip), %rdx     # 0x82868
leaq 0x56eac(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x36ffb(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x56e7c(%rip)     # 0x82848
movq %r12, 0x56e7d(%rip)     # 0x82850
movq $0x13a, 0x56e7a(%rip) # imm = 0x13A
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x54fc4(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2e4b2(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2ba15
movq 0x70(%rax), %rax
jmp 0x2ba17
xorl %eax, %eax
movq %rax, -0xf0(%rbp)
movl (%r13), %ecx
cmpq %rcx, %rax
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
movq %r14, -0x78(%rbp)
movl $0x0, %ecx
movb %cl, -0x90(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x54f4c(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rdx
movq %rdx, -0x80(%rbp)
movq %r13, -0x70(%rbp)
movb %cl, -0x40(%rbp)
movq -0x148(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x13a, %ecx            # imm = 0x13A
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x2efe4(%rip), %r10     # 0x5aab3
pushq %r10
pushq %rbx
leaq 0x2ee3f(%rip), %r10     # 0x5a918
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x56d6a(%rip), %rdx     # 0x82868
leaq 0x56d5b(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x36eaa(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x56d2b(%rip)     # 0x82848
movq %r12, 0x56d2c(%rip)     # 0x82850
movq $0x13b, 0x56d29(%rip) # imm = 0x13B
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2bb48
movq 0x60(%rax), %rcx
cmpq 0x70(%rax), %rcx
setne %al
jmp 0x2bb4a
xorl %eax, %eax
movb %al, -0x48(%rbp)
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %rdi
movups %xmm0, 0x8(%rdi)
leaq 0x2ee0d(%rip), %rax     # 0x5a96c
movq %rax, -0x68(%rbp)
leaq 0x2ee0c(%rip), %rax     # 0x5a976
movq %rax, -0x60(%rbp)
movb $0x0, -0x90(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x54e2e(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %r15, -0x1d0(%rbp)
movq %r12, -0x1c8(%rbp)
subq $0x8, %rsp
movl $0x13b, %ecx            # imm = 0x13B
movq %rbx, %rsi
leaq -0x1d0(%rbp), %rdx
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b705
addq $0x10, %rsp
leaq -0x38(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x56c83(%rip), %rdx     # 0x82868
leaq 0x56c74(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x36dc3(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x56c44(%rip)     # 0x82848
movq %r12, 0x56c45(%rip)     # 0x82850
movq $0x13c, 0x56c42(%rip) # imm = 0x13C
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2bc3e
addq $0x40, %rax
movl $0x1, %ecx
movq (%rax), %rax
decq %rcx
testq %rax, %rax
jne 0x2bc2b
testq %rcx, %rcx
setne %al
jmp 0x2bc40
xorl %eax, %eax
movb %al, -0x48(%rbp)
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %rdi
movups %xmm0, 0x8(%rdi)
leaq 0x2ed37(%rip), %rax     # 0x5a98c
movq %rax, -0x68(%rbp)
leaq 0x2ed46(%rip), %rax     # 0x5a9a6
movq %rax, -0x60(%rbp)
movb $0x0, -0x90(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x54d38(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %r15, -0x1c0(%rbp)
movq %r12, -0x1b8(%rbp)
subq $0x8, %rsp
movl $0x13c, %ecx            # imm = 0x13C
movq %rbx, %rsi
leaq -0x1c0(%rbp), %rdx
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b705
addq $0x10, %rsp
leaq -0x38(%rbp), %rdi
callq 0x3d55a
movq -0x130(%rbp), %r15
movq -0x128(%rbp), %r12
cmpq %r15, %r12
je 0x2bcfd
movq %r15, %r13
movq %r13, %rdi
callq 0x39622
addq $0x8, %r13
cmpq %r12, %r13
jne 0x2bce5
movq %r15, -0x128(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x3966e
leaq 0x2eb23(%rip), %r15     # 0x5a833
leaq 0x2eb30(%rip), %r12     # 0x5a847
movq -0xd0(%rbp), %rdi
testq %rdi, %rdi
je 0x2bd28
callq 0x5546e
callq 0x1f031
movq 0x56b34(%rip), %rdx     # 0x82868
leaq 0x56b25(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x36c74(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x56af5(%rip)     # 0x82848
movq %r12, 0x56af6(%rip)     # 0x82850
movq $0x143, 0x56af3(%rip) # imm = 0x143
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x54c3d(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2e12b(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2bd9c
movq 0x68(%rax), %rax
jmp 0x2bd9e
xorl %eax, %eax
movq %rax, -0xf0(%rbp)
movl $0x0, -0x108(%rbp)
testq %rax, %rax
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
movq %r14, -0x78(%rbp)
movl $0x0, %ecx
movb %cl, -0x90(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x54bbf(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rdx
movq %rdx, -0x80(%rbp)
leaq -0x108(%rbp), %rdx
movq %rdx, -0x70(%rbp)
movb %cl, -0x40(%rbp)
movq -0x138(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x143, %ecx            # imm = 0x143
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x3370e(%rip), %r10     # 0x5f571
pushq %r10
pushq %rbx
leaq 0x2ea9b(%rip), %r10     # 0x5a908
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x569d6(%rip), %rdx     # 0x82868
leaq 0x569c7(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x36b16(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x56997(%rip)     # 0x82848
movq %r12, 0x56998(%rip)     # 0x82850
movq $0x144, 0x56995(%rip) # imm = 0x144
movb $0x0, -0x60(%rbp)
movq -0xe8(%rbp), %rax
movq %rax, -0x68(%rbp)
leaq 0x54adf(%rip), %rax     # 0x809b8
movq %rax, -0x58(%rbp)
leaq 0x2dfcd(%rip), %rax     # 0x59eb1
movq %rax, -0x50(%rbp)
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2befa
movq 0x70(%rax), %rax
jmp 0x2befc
xorl %eax, %eax
movq %rax, -0xf0(%rbp)
movl $0x0, -0x108(%rbp)
testq %rax, %rax
sete -0xc8(%rbp)
leaq -0xb8(%rbp), %rax
xorps %xmm0, %xmm0
movups %xmm0, -0x8(%rax)
movq %r15, -0xa8(%rbp)
movq %r12, -0xa0(%rbp)
movq %r14, -0x78(%rbp)
movl $0x0, %ecx
movb %cl, -0x90(%rbp)
movq -0xe0(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x54a61(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x78(%rbp), %rdx
movq %rdx, -0x80(%rbp)
leaq -0x108(%rbp), %rdx
movq %rdx, -0x70(%rbp)
movb %cl, -0x40(%rbp)
movq -0x138(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq %rax, -0x38(%rbp)
leaq -0x70(%rbp), %rax
movq %rax, -0x30(%rbp)
subq $0x8, %rsp
movl $0x144, %ecx            # imm = 0x144
leaq -0xc8(%rbp), %rdi
leaq -0x68(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
movl $0x2, %r8d
movl $0x2, %r9d
xorl %eax, %eax
leaq -0x48(%rbp), %r10
pushq %r10
leaq 0x335b0(%rip), %r10     # 0x5f571
pushq %r10
pushq %rbx
leaq 0x2e94d(%rip), %r10     # 0x5a918
pushq %r10
pushq $0x2
callq 0x1b705
addq $0x30, %rsp
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
callq 0x1f031
movq 0x56878(%rip), %rdx     # 0x82868
leaq 0x56869(%rip), %rdi     # 0x82860
xorl %esi, %esi
leaq 0x369b8(%rip), %rcx     # 0x629b8
xorl %r8d, %r8d
callq 0xf760
movq %r15, 0x56839(%rip)     # 0x82848
movq %r12, 0x5683a(%rip)     # 0x82850
movq $0x145, 0x56837(%rip) # imm = 0x145
movq -0xd0(%rbp), %rax
testq %rax, %rax
je 0x2c03a
movq 0x60(%rax), %rcx
cmpq 0x70(%rax), %rcx
sete %al
jmp 0x2c03c
movb $0x1, %al
movb %al, -0x48(%rbp)
xorps %xmm0, %xmm0
leaq -0x48(%rbp), %rdi
movups %xmm0, 0x8(%rdi)
leaq 0x2e91c(%rip), %rax     # 0x5a96d
movq %rax, -0x68(%rbp)
leaq 0x2e91a(%rip), %rax     # 0x5a976
movq %rax, -0x60(%rbp)
movb $0x0, -0x90(%rbp)
movq -0x100(%rbp), %rax
movq %rax, -0x98(%rbp)
leaq 0x5493c(%rip), %rax     # 0x809b8
movq %rax, -0x88(%rbp)
leaq -0x68(%rbp), %rax
movq %rax, -0x80(%rbp)
movq %r15, -0x1b0(%rbp)
movq %r12, -0x1a8(%rbp)
subq $0x8, %rsp
movl $0x145, %ecx            # imm = 0x145
movq %rbx, %rsi
leaq -0x1b0(%rbp), %rdx
movl $0x2, %r8d
xorl %r9d, %r9d
xorl %eax, %eax
pushq $0x0
callq 0x1b705
addq $0x10, %rsp
leaq -0x38(%rbp), %rdi
callq 0x3d55a
leaq -0xf8(%rbp), %rdi
callq 0x39622
leaq -0x130(%rbp), %r14
movq %r14, %rdi
callq 0x3990a
leaq -0xd8(%rbp), %rdi
callq 0x397d8
movq -0x140(%rbp), %rcx
incq %rcx
movq %rcx, -0x140(%rbp)
cmpq $0x4, %rcx
jne 0x2ad66
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2e8f0(%rip), %rdi     # 0x5aa16
leaq 0x2e706(%rip), %rsi     # 0x5a833
leaq 0x2e99b(%rip), %rcx     # 0x5aacf
movl $0x11b, %edx            # imm = 0x11B
callq 0xf2f0
leaq 0x2e8d1(%rip), %rdi     # 0x5aa16
leaq 0x2e6e7(%rip), %rsi     # 0x5a833
leaq 0x2e97c(%rip), %rcx     # 0x5aacf
movl $0x12b, %edx            # imm = 0x12B
callq 0xf2f0
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
jmp 0x2c202
jmp 0x2c22b
jmp 0x2c181
jmp 0x2c1a2
jmp 0x2c253
jmp 0x2c181
jmp 0x2c18c
jmp 0x2c18c
jmp 0x2c18c
jmp 0x2c181
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
jmp 0x2c196
jmp 0x2c18c
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
callq 0x3d55a
jmp 0x2c24a
jmp 0x2c1a2
movq %rax, %rbx
leaq -0xb8(%rbp), %rdi
jmp 0x2c23a
movq %rax, %rbx
jmp 0x2c1fb
movq %rax, %rbx
jmp 0x2c1e9
movq %rax, %rbx
jmp 0x2c1d1
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r12, %rdi
je 0x2c1d1
callq 0xf480
movq -0xc8(%rbp), %rdi
leaq -0xb8(%rbp), %rax
cmpq %rax, %rdi
je 0x2c1e9
callq 0xf480
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x2c1fb
callq 0xf480
leaq -0xa8(%rbp), %rdi
callq 0x1f012
jmp 0x2c281
movq %rax, %rbx
movq -0x160(%rbp), %rax
testq %rax, %rax
je 0x2c281
leaq -0x170(%rbp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0x2c281
movq %rax, %rdi
callq 0x32d2e
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x3d55a
jmp 0x2c269
jmp 0x2c253
jmp 0x2c253
jmp 0x2c253
movq %rax, %rbx
leaq -0xf8(%rbp), %rdi
jmp 0x2c264
movq %rax, %rbx
jmp 0x2c269
jmp 0x2c25a
movq %rax, %rbx
leaq -0x98(%rbp), %rdi
callq 0x39622
leaq -0x130(%rbp), %rdi
callq 0x3990a
leaq -0xd8(%rbp), %rdi
callq 0x397d8
movq %rbx, %rdi
callq 0xf880