Disassembly: 
  L1: 8b ff ?? mov edi, edi
   55 ?? push ebp
   8b ec ?? mov ebp, esp
   8b 45 08 ?? mov eax, dword ss:[ebp + 8]
  
  L2: 66 8b 08 ?? mov cx, word ds:[eax]
   40 ?? inc eax
   40 ?? inc eax
   66 85 c9 ?? test cx, cx
  
  L3: 75 f6 ?? jne basic block L2
  
  L4: 2b 45 08 ?? sub eax, dword ss:[ebp + 8]
   d1 f8 ?? sar eax, 1
   48 ?? dec eax
   5d ?? pop ebp
   c3 ?? ret
  
  