Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
293
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. ALT_LIST_NODE_COLUMN **__thiscall list_find_atnum_sub_ABF42(ALT_LIST *this, ALT_LIST_ITER *Ret, int Index)
  2. {
  3. int Size; // edx@1
  4. ALT_LIST_NODE *Iter; // ecx@2
  5. int v6; // eax@7
  6. ALT_LIST_NODE_COLUMN **result; // eax@9
  7.  
  8. Size = this->_M_count;
  9. if ( Index == Size - 1 )
  10. {
  11. Iter = this->_M_node->_M_prev; // end()-1
  12. }
  13. else
  14. {
  15. Iter = this->_M_node;
  16. if ( Index < Size )
  17. {
  18. Iter = Iter->_M_next;
  19. if ( Index <= 0 )
  20. {
  21. v6 = -Index;
  22. if ( Index < 0 )
  23. {
  24. do
  25. {
  26. --v6;
  27. Iter = Iter->_M_prev;
  28. }
  29. while ( v6 );
  30. }
  31. }
  32. else
  33. {
  34. do
  35. {
  36. --Index;
  37. Iter = Iter->_M_next;
  38. }
  39. while ( Index );
  40. }
  41. }
  42. }
  43. result = Ret;
  44. Ret->_Ptr = Iter;
  45. return result;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement