// File: /workspace/github_cpp_makefile_star2_O3/FreeSlave[P]def2fgd/src/defreader.cpp
// Function: (anonymous namespace)::readBox(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, unsigned long, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>> const&, int*, int)
static std::string::iterator readBox(std::string::iterator it, size_t lineNum, const std::string::iterator& begin, const std::string::iterator& end, int* size, int defaultSize)
    {
        if (*it == '(')
        {
            it++;
            for (int i=0; i<3; ++i)
            {
                it = skipSpaces(it, end);
                if (it == end)
                    throw DefReadError(unexpectedEndOfFile(), lineNum, it-begin);
                std::string::iterator start = it;
                if (*it == '-')
                    it++;
                if (it == end)
                    throw DefReadError(unexpectedEndOfFile(), lineNum, it-begin);
                it = skipDigits(it, end);
                if (it == end)
                    throw DefReadError(unexpectedEndOfFile(), lineNum, it-begin);
                std::string numstr(start, it);
                size[i] = static_cast<int>(strtol(numstr.c_str(), NULL, 10));
            }
            if (*it == ')')
            {
                it++;
                return it;
            }
        }
        else
        {
            size[0] = size[1] = size[2] = defaultSize;
            return it;
        }
        throw DefReadError(translate("Unexpected symbol"), lineNum, it-begin);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %rbx
movq %rdi, %r12
cmpb $0x28, (%rdi)
jne 0x7913
movq %rcx, %r13
movq %rdx, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
incq %r12
xorl %r14d, %r14d
leaq 0x8(%rsp), %rbp
movq (%r13), %r15
cmpq %r15, %r12
je 0x7876
movsbl (%r12), %edi
callq 0x3080
testl %eax, %eax
je 0x7876
incq %r12
cmpq %r15, %r12
jne 0x785b
movq %r15, %rsi
jmp 0x7879
movq %r12, %rsi
cmpq %r15, %rsi
je 0x799d
xorl %r12d, %r12d
cmpb $0x2d, (%rsi)
sete %r12b
addq %rsi, %r12
cmpq %r15, %r12
je 0x7a0a
movsbl (%r12), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x78b0
incq %r12
cmpq %r15, %r12
jne 0x7898
movq %r15, %r12
cmpq %r15, %r12
je 0x7930
leaq 0x18(%rsp), %r15
movq %r15, 0x8(%rsp)
movq %rbp, %rdi
movq %r12, %rdx
callq 0x7b6a
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x3320
movl %eax, (%rbx,%r14,4)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x78f6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
incq %r14
cmpq $0x3, %r14
jne 0x7852
cmpb $0x29, (%r12)
jne 0x7a74
incq %r12
jmp 0x791e
movl %r9d, 0x8(%rbx)
movl %r9d, 0x4(%rbx)
movl %r9d, (%rbx)
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x3f71(%rip), %rsi      # 0xb8b5
leaq 0x8(%rsp), %rdi
callq 0xaed9
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %r15
leaq 0x83b0(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x836f(%rip), %rsi      # 0xfcf8
movq 0x8620(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7adc
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x3f04(%rip), %rsi      # 0xb8b5
leaq 0x8(%rsp), %rdi
callq 0xaed9
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %r15
leaq 0x8343(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x8302(%rip), %rsi      # 0xfcf8
movq 0x85b3(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7adc
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x3e97(%rip), %rsi      # 0xb8b5
leaq 0x8(%rsp), %rdi
callq 0xaed9
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %r15
leaq 0x82d6(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x8295(%rip), %rsi      # 0xfcf8
movq 0x8546(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7adc
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x3e44(%rip), %rsi      # 0xb8cc
leaq 0x8(%rsp), %rdi
callq 0xaed9
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %r12
leaq 0x826c(%rip), %rax      # 0xfd20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r12, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x822b(%rip), %rsi      # 0xfcf8
movq 0x84dc(%rip), %rdx      # 0xffb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7ae8
jmp 0x7b0e
jmp 0x7ae8
jmp 0x7b0e
jmp 0x7ae8
jmp 0x7b0e
movq %rax, %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7b07
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
testb %bpl, %bpl
jne 0x7b11
jmp 0x7b19
movq %rax, %r15
movq %rbx, %rdi
callq 0x31d0
movq %r15, %rdi
callq 0x3420
nop