// File: /workspace/github_cpp_makefile_star2_O2/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, %r14
movq %rdi, %r12
cmpb $0x28, (%rdi)
jne 0x6516
movq %rcx, %r13
movq %rdx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
incq %r12
xorl %ebx, %ebx
cmpq $0x3, %rbx
je 0x6523
movq %r12, %rdi
movq %r13, %rsi
callq 0x6403
movq %rax, %r15
movq (%r13), %rbp
cmpq %rbp, %rax
je 0x6543
xorl %eax, %eax
cmpb $0x2d, (%r15)
sete %al
movq %r15, %r12
addq %rax, %r12
cmpq %rbp, %r12
je 0x6598
cmpq %rbp, %r12
je 0x64ca
movsbl (%r12), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x64cd
incq %r12
jmp 0x64b3
movq %rbp, %r12
cmpq %rbp, %r12
je 0x65eb
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x6822
movq 0x18(%rsp), %rdi
xorl %esi, %esi
pushq $0xa
popq %rdx
callq 0x3370
movl %eax, (%r14,%rbx,4)
movq %rbp, %rdi
callq 0x3110
incq %rbx
jmp 0x6476
movl %r9d, 0x8(%r14)
movl %r9d, 0x4(%r14)
movl %r9d, (%r14)
jmp 0x6531
cmpb $0x29, (%r12)
jne 0x663b
incq %r12
movq %r12, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x3150
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x6432
movq 0x8(%rsp), %rax
movq (%rax), %rax
subq %rax, %r15
movb $0x1, %bpl
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
movq %r15, %rcx
callq 0x55c4
xorl %ebp, %ebp
leaq 0x8784(%rip), %rsi      # 0xed08
movq 0x8a25(%rip), %rdx      # 0xefb0
movq %rbx, %rdi
callq 0x3440
jmp 0x668f
pushq $0x20
popq %rdi
callq 0x3150
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x6432
movq 0x8(%rsp), %rax
subq (%rax), %rbp
movb $0x1, %r15b
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
callq 0x55c4
xorl %r15d, %r15d
leaq 0x8731(%rip), %rsi      # 0xed08
movq 0x89d2(%rip), %rdx      # 0xefb0
movq %rbx, %rdi
callq 0x3440
jmp 0x668f
pushq $0x20
popq %rdi
callq 0x3150
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x6432
movq 0x8(%rsp), %rax
subq (%rax), %rbp
movb $0x1, %r15b
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
movq %rbp, %rcx
callq 0x55c4
xorl %r15d, %r15d
leaq 0x86de(%rip), %rsi      # 0xed08
movq 0x897f(%rip), %rdx      # 0xefb0
movq %rbx, %rdi
callq 0x3440
jmp 0x668f
pushq $0x20
popq %rdi
callq 0x3150
movq %rax, %rbx
leaq 0x427f(%rip), %rsi      # 0xa8cc
leaq 0x18(%rsp), %rdi
callq 0x95ed
movq 0x8(%rsp), %rax
subq (%rax), %r12
movb $0x1, %bpl
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
movq %r12, %rcx
callq 0x55c4
xorl %ebp, %ebp
leaq 0x8688(%rip), %rsi      # 0xed08
movq 0x8929(%rip), %rdx      # 0xefb0
movq %rbx, %rdi
callq 0x3440
jmp 0x66ad
jmp 0x66c1
jmp 0x6697
jmp 0x66c1
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x3110
testb %r15b, %r15b
jne 0x66c4
jmp 0x66cc
jmp 0x66c1
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x3110
testb %bpl, %bpl
jne 0x66c4
jmp 0x66cc
movq %rax, %r14
movq %rbx, %rdi
callq 0x31f0
movq %r14, %rdi
callq 0x3460