// File: /workspace/github_cpp_makefile_star2_O1/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, %r15
cmpb $0x28, (%rdi)
jne 0x7b07
movq %rcx, %r13
movq %rdx, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
incq %r15
xorl %r12d, %r12d
movq (%r13), %r14
cmpq %r15, %r14
je 0x7a66
movsbl (%r15), %edi
callq 0x3080
testl %eax, %eax
je 0x7a66
incq %r15
cmpq %r14, %r15
jne 0x7a4c
movq %r14, %rbp
jmp 0x7a69
movq %r15, %rbp
cmpq %r14, %rbp
je 0x7b91
xorl %r15d, %r15d
cmpb $0x2d, (%rbp)
sete %r15b
addq %rbp, %r15
cmpq %r14, %r15
je 0x7bff
movsbl (%r15), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x7aa0
incq %r15
cmpq %r14, %r15
jne 0x7a89
movq %r14, %r15
cmpq %r14, %r15
je 0x7b24
leaq 0x18(%rsp), %r14
movq %r14, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x7d8c
movq 0x8(%rsp), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x3320
movl %eax, (%rbx,%r12,4)
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x7aeb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
incq %r12
cmpq $0x3, %r12
jne 0x7a43
cmpb $0x29, (%r15)
jne 0x7c69
incq %r15
jmp 0x7b12
movl %r9d, 0x8(%rbx)
movl %r9d, 0x4(%rbx)
movl %r9d, (%rbx)
movq %r15, %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 0x4d83(%rip), %rsi      # 0xc8bb
leaq 0x8(%rsp), %rdi
callq 0xb1bd
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %r15
leaq 0x91bc(%rip), %rax      # 0x10d20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x917b(%rip), %rsi      # 0x10cf8
movq 0x942c(%rip), %rdx      # 0x10fb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7cd1
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x4d16(%rip), %rsi      # 0xc8bb
leaq 0x8(%rsp), %rdi
callq 0xb1bd
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %r15b
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %rbp
leaq 0x914f(%rip), %rax      # 0x10d20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %rbp, 0x18(%rbx)
xorl %r15d, %r15d
leaq 0x910d(%rip), %rsi      # 0x10cf8
movq 0x93be(%rip), %rdx      # 0x10fb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7cd1
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x4ca8(%rip), %rsi      # 0xc8bb
leaq 0x8(%rsp), %rdi
callq 0xb1bd
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %r15
leaq 0x90e1(%rip), %rax      # 0x10d20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x90a0(%rip), %rsi      # 0x10cf8
movq 0x9351(%rip), %rdx      # 0x10fb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7cd1
movl $0x20, %edi
callq 0x3140
movq %rax, %rbx
leaq 0x4c55(%rip), %rsi      # 0xc8d2
leaq 0x8(%rsp), %rdi
callq 0xb1bd
movq 0x30(%rsp), %rax
movq (%rax), %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x32e0
subq %r14, %r15
leaq 0x9077(%rip), %rax      # 0x10d20
movq %rax, (%rbx)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rbx)
movq %r15, 0x18(%rbx)
xorl %ebp, %ebp
leaq 0x9036(%rip), %rsi      # 0x10cf8
movq 0x92e7(%rip), %rdx      # 0x10fb0
movq %rbx, %rdi
callq 0x33f0
jmp 0x7d07
jmp 0x7d28
jmp 0x7d07
jmp 0x7d28
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7d00
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x7d00
movq %rax, %r14
movb $0x1, %r15b
testb %r15b, %r15b
jne 0x7d33
jmp 0x7d3b
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7d2e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3250
jmp 0x7d2e
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x7d3b
movq %rbx, %rdi
callq 0x31d0
movq %r14, %rdi
callq 0x3420
nop