// File: Hybryd[P]HyRoadGenerator/Polygon.cpp
// Function: Polygon::width()
double Polygon::width()
{
  double res=100000000; // the power of infinity
  for(int i=0;i<size();++i)
    res=MINI(res,sqrt((poly[i].second.x() - poly[i].first.x())*(poly[i].second.x() - poly[i].first.x()) + (poly[i].second.y() - poly[i].first.y())*(poly[i].second.y() - poly[i].first.y())));
  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movsd 0x6691(%rip), %xmm0     # 0x8010
movsd %xmm0, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rdi
movl -0x14(%rbp), %eax
movl %eax, -0x24(%rbp)
callq 0x2d10
movl %eax, %ecx
movl -0x24(%rbp), %eax
cmpl %ecx, %eax
jge 0x1c46
movq -0x20(%rbp), %rdi
movsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x4c(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movaps %xmm0, %xmm1
movss -0x4c(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x34(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x48(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movaps %xmm0, %xmm1
movss -0x48(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x38(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13d0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x44(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13d0
movq -0x20(%rbp), %rdi
movaps %xmm0, %xmm1
movss -0x44(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x3c(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13d0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x40(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13d0
movss -0x40(%rbp), %xmm3
movss -0x3c(%rbp), %xmm1
movss -0x38(%rbp), %xmm2
movaps %xmm0, %xmm4
movss -0x34(%rbp), %xmm0
subss %xmm4, %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x10b0
movsd -0x30(%rbp), %xmm1
ucomisd %xmm1, %xmm0
jbe 0x1afa
movsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
jmp 0x1c2e
movq -0x20(%rbp), %rdi
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x74(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movaps %xmm0, %xmm1
movss -0x74(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x5c(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x70(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13b0
movq -0x20(%rbp), %rdi
movaps %xmm0, %xmm1
movss -0x70(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x60(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13d0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x6c(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13d0
movq -0x20(%rbp), %rdi
movaps %xmm0, %xmm1
movss -0x6c(%rbp), %xmm0
subss %xmm1, %xmm0
movss %xmm0, -0x64(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
addq $0x8, %rdi
callq 0x13d0
movq -0x20(%rbp), %rdi
movss %xmm0, -0x68(%rbp)
movslq -0x14(%rbp), %rsi
callq 0x2e10
movq %rax, %rdi
callq 0x13d0
movss -0x68(%rbp), %xmm3
movss -0x64(%rbp), %xmm1
movss -0x60(%rbp), %xmm2
movaps %xmm0, %xmm4
movss -0x5c(%rbp), %xmm0
subss %xmm4, %xmm3
mulss %xmm3, %xmm1
mulss %xmm2, %xmm0
addss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
callq 0x10b0
movsd %xmm0, -0x58(%rbp)
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x10(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x198b
movsd -0x10(%rbp), %xmm0
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)