// File: 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
movq %rsp, %rbp
subq $0x1b0, %rsp            # imm = 0x1B0
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movl %r9d, -0x34(%rbp)
leaq -0x10(%rbp), %rdi
callq 0xc670
movsbl (%rax), %eax
cmpl $0x28, %eax
jne 0xc0ff
leaq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0xc690
movq %rax, -0x40(%rbp)
movl $0x0, -0x44(%rbp)
cmpl $0x3, -0x44(%rbp)
jge 0xc0cd
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x28(%rbp), %rsi
movq -0x58(%rbp), %rdi
callq 0xbb60
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x28(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xc6d0
testb $0x1, %al
jne 0xbd2f
jmp 0xbdf1
movb $0x1, -0x85(%rbp)
movl $0x20, %edi
callq 0x41a0
movq %rax, -0x168(%rbp)
leaq -0x78(%rbp), %rdi
callq 0xbc70
jmp 0xbd52
movq -0x18(%rbp), %rax
movq %rax, -0x170(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xc710
movq -0x168(%rbp), %rdi
movq -0x170(%rbp), %rdx
movq %rax, %rcx
leaq -0x78(%rbp), %rsi
callq 0x9bd0
jmp 0xbd86
movq -0x168(%rbp), %rdi
movb $0x0, -0x85(%rbp)
leaq 0x10f6d(%rip), %rsi     # 0x1cd08
leaq 0x9ae(%rip), %rdx       # 0xc750
callq 0x45d0
jmp 0xc205
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0xbdd5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x41f0
testb $0x1, -0x85(%rbp)
jne 0xbde0
jmp 0xbdec
movq -0x168(%rbp), %rdi
callq 0x4260
jmp 0xc1fc
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x10(%rbp), %rdi
callq 0xc670
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0xbe1f
leaq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0xc690
movq %rax, -0x98(%rbp)
movq -0x28(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xc6d0
testb $0x1, %al
jne 0xbe35
jmp 0xbf00
movb $0x1, -0xb9(%rbp)
movl $0x20, %edi
callq 0x41a0
movq %rax, -0x178(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0xbc70
jmp 0xbe5b
movq -0x18(%rbp), %rax
movq %rax, -0x180(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xc710
movq -0x178(%rbp), %rdi
movq -0x180(%rbp), %rdx
movq %rax, %rcx
leaq -0xb8(%rbp), %rsi
callq 0x9bd0
jmp 0xbe92
movq -0x178(%rbp), %rdi
movb $0x0, -0xb9(%rbp)
leaq 0x10e61(%rip), %rsi     # 0x1cd08
leaq 0x8a2(%rip), %rdx       # 0xc750
callq 0x45d0
jmp 0xc205
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0xbee4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x41f0
testb $0x1, -0xb9(%rbp)
jne 0xbeef
jmp 0xbefb
movq -0x178(%rbp), %rdi
callq 0x4260
jmp 0xc1fc
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x28(%rbp), %rsi
movq -0xd0(%rbp), %rdi
callq 0xc410
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x28(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xc6d0
testb $0x1, %al
jne 0xbf43
jmp 0xc00e
movb $0x1, -0xf1(%rbp)
movl $0x20, %edi
callq 0x41a0
movq %rax, -0x188(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0xbc70
jmp 0xbf69
movq -0x18(%rbp), %rax
movq %rax, -0x190(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xc710
movq -0x188(%rbp), %rdi
movq -0x190(%rbp), %rdx
movq %rax, %rcx
leaq -0xf0(%rbp), %rsi
callq 0x9bd0
jmp 0xbfa0
movq -0x188(%rbp), %rdi
movb $0x0, -0xf1(%rbp)
leaq 0x10d53(%rip), %rsi     # 0x1cd08
leaq 0x794(%rip), %rdx       # 0xc750
callq 0x45d0
jmp 0xc205
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0xbff2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0xf0(%rbp), %rdi
callq 0x41f0
testb $0x1, -0xf1(%rbp)
jne 0xbffd
jmp 0xc009
movq -0x188(%rbp), %rdi
callq 0x4260
jmp 0xc1fc
movq -0x90(%rbp), %rax
movq %rax, -0x120(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x128(%rbp)
leaq -0x129(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x4600
movq -0x198(%rbp), %rcx
movq -0x120(%rbp), %rsi
movq -0x128(%rbp), %rdx
leaq -0x118(%rbp), %rdi
callq 0xc770
jmp 0xc05d
leaq -0x129(%rbp), %rdi
callq 0x4390
leaq -0x118(%rbp), %rdi
callq 0x4120
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0xa, %edx
callq 0x44e0
movl %eax, %edx
movq -0x30(%rbp), %rax
movslq -0x44(%rbp), %rcx
movl %edx, (%rax,%rcx,4)
leaq -0x118(%rbp), %rdi
callq 0x41f0
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xbcee
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x129(%rbp), %rdi
callq 0x4390
jmp 0xc1fc
leaq -0x10(%rbp), %rdi
callq 0xc670
movsbl (%rax), %eax
cmpl $0x29, %eax
jne 0xc0fd
leaq -0x10(%rbp), %rdi
xorl %esi, %esi
callq 0xc690
movq %rax, -0x138(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xc1ef
jmp 0xc123
movl -0x34(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x30(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x30(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xc1ef
movb $0x1, -0x159(%rbp)
movl $0x20, %edi
callq 0x41a0
movq %rax, -0x1a0(%rbp)
leaq 0x9785(%rip), %rsi      # 0x158c7
leaq -0x158(%rbp), %rdi
callq 0x140e0
jmp 0xc150
movq -0x18(%rbp), %rax
movq %rax, -0x1a8(%rbp)
movq -0x20(%rbp), %rsi
leaq -0x10(%rbp), %rdi
callq 0xc710
movq -0x1a0(%rbp), %rdi
movq -0x1a8(%rbp), %rdx
movq %rax, %rcx
leaq -0x158(%rbp), %rsi
callq 0x9bd0
jmp 0xc187
movq -0x1a0(%rbp), %rdi
movb $0x0, -0x159(%rbp)
leaq 0x10b6c(%rip), %rsi     # 0x1cd08
leaq 0x5ad(%rip), %rdx       # 0xc750
callq 0x45d0
jmp 0xc205
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
jmp 0xc1d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x80(%rbp)
movl %eax, -0x84(%rbp)
leaq -0x158(%rbp), %rdi
callq 0x41f0
testb $0x1, -0x159(%rbp)
jne 0xc1e1
jmp 0xc1ed
movq -0x1a0(%rbp), %rdi
callq 0x4260
jmp 0xc1fc
movq -0x8(%rbp), %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbp
retq
movq -0x80(%rbp), %rdi
callq 0x45f0
nopw %cs:(%rax,%rax)