#!/usr/bin/env python2
## -*- coding: utf-8 -*-

import sys

def sx(bits, value):
    sign_bit = 1 << (bits - 1)
    return (value & (sign_bit - 1)) - (value & sign_bit)

SymVar_0 = int(sys.argv[1])

ref_507 = SymVar_0
ref_522 = ref_507 # MOV operation
ref_7827 = ref_522 # MOV operation
ref_8512 = ref_7827 # MOV operation
ref_8520 = (ref_8512 & 0xFFFFFFFFD9700C59) # AND operation
ref_8531 = ((0x268FF3A6 + ref_8520) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_9359 = ref_8531 # MOV operation
ref_9375 = ref_9359 # MOV operation
ref_9379 = (ref_9375 >> (0x31 & 0x3F)) # SHR operation
ref_9386 = ref_9379 # MOV operation
ref_19937 = ref_522 # MOV operation
ref_20622 = ref_19937 # MOV operation
ref_20630 = (ref_20622 & 0xFFFFFFFFD9700C59) # AND operation
ref_20641 = ((0x268FF3A6 + ref_20630) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_21295 = ref_20641 # MOV operation
ref_21311 = ref_21295 # MOV operation
ref_21315 = ((ref_21311 << (0xF & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_21322 = ref_21315 # MOV operation
ref_22731 = ref_21322 # MOV operation
ref_22745 = ref_9386 # MOV operation
ref_22747 = (~(ref_22745) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_22749 = (ref_22731 & ref_22747) # AND operation
ref_22768 = ref_9386 # MOV operation
ref_22770 = ((ref_22768 + ref_22749) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_32111 = ref_22770 # MOV operation
ref_89441 = ref_522 # MOV operation
ref_94671 = ref_32111 # MOV operation
ref_96309 = ref_89441 # MOV operation
ref_96315 = ref_94671 # MOV operation
ref_96317 = ref_96309 # MOV operation
ref_96319 = (ref_96317 | ref_96315) # OR operation
ref_96338 = ref_89441 # MOV operation
ref_96344 = ref_94671 # MOV operation
ref_96346 = (ref_96344 & ref_96338) # AND operation
ref_96353 = ref_96319 # MOV operation
ref_96355 = ((ref_96353 - ref_96346) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_96363 = ref_96355 # MOV operation
ref_98158 = ref_96363 # MOV operation
ref_98174 = ref_98158 # MOV operation
ref_98178 = (ref_98174 >> (0x7 & 0x3F)) # SHR operation
ref_98185 = ref_98178 # MOV operation
ref_100752 = ref_98185 # MOV operation
ref_114778 = ref_522 # MOV operation
ref_115723 = ref_114778 # MOV operation
ref_115751 = ((((0x0) << 64 | ref_115723) / ((((((((0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x7)) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_127280 = ref_115751 # MOV operation
ref_136916 = ref_32111 # MOV operation
ref_137861 = ref_136916 # MOV operation
ref_137889 = ((((0x0) << 64 | ref_137861) / ((((((((0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x7)) & 0xFFFFFFFFFFFFFFFF) # DIV operation
ref_148882 = ref_127280 # MOV operation
ref_150755 = ref_148882 # MOV operation
ref_150757 = ref_150755 # MOV operation
ref_150759 = (~(ref_150757) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_150775 = (ref_150759 | 0xF) # OR operation
ref_150786 = ref_148882 # MOV operation
ref_150788 = ((ref_150786 + ref_150775) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_150796 = ((ref_150788 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_151889 = ref_150796 # MOV operation
ref_151907 = (ref_151889 & 0xFFFFFFFFFFFFFFFE) # AND operation
ref_151928 = ((0x1 + ref_151907) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_163021 = ref_100752 # MOV operation
ref_163648 = ref_163021 # MOV operation
ref_163662 = ref_151928 # MOV operation
ref_163664 = ref_163648 # MOV operation
ref_163666 = (ref_163662 & 0xFFFFFFFF) # MOV operation
ref_163668 = ((ref_163664 << ((ref_163666 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
ref_163675 = ref_163668 # MOV operation
ref_169250 = ref_100752 # MOV operation
ref_179758 = ref_127280 # MOV operation
ref_181631 = ref_179758 # MOV operation
ref_181633 = ref_181631 # MOV operation
ref_181635 = (~(ref_181633) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_181651 = (ref_181635 | 0xF) # OR operation
ref_181662 = ref_179758 # MOV operation
ref_181664 = ((ref_181662 + ref_181651) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_181672 = ((ref_181664 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_182765 = ref_181672 # MOV operation
ref_182783 = (ref_182765 & 0xFFFFFFFFFFFFFFFE) # AND operation
ref_182804 = ((0x1 + ref_182783) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_183550 = ref_182804 # MOV operation
ref_183552 = (~(ref_183550) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_183556 = (0x40 & ref_183552) # AND operation
ref_183577 = ref_182804 # MOV operation
ref_183579 = (~(ref_183577) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_183581 = (0x40 & ref_183579) # AND operation
ref_183588 = ((ref_183556 + ref_183581) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_183610 = ref_182804 # MOV operation
ref_183612 = (ref_183610 ^ 0x40) # XOR operation
ref_183619 = ref_183588 # MOV operation
ref_183621 = ((ref_183619 - ref_183612) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_183629 = ref_183621 # MOV operation
ref_185279 = ref_169250 # MOV operation
ref_185285 = ref_183629 # MOV operation
ref_185287 = ref_185279 # MOV operation
ref_185289 = (ref_185285 & 0xFFFFFFFF) # MOV operation
ref_185291 = (ref_185287 >> ((ref_185289 & 0xFF) & 0x3F)) # SHR operation
ref_185298 = ref_185291 # MOV operation
ref_186924 = ref_163675 # MOV operation
ref_186928 = ref_185298 # MOV operation
ref_186930 = (~(ref_186928) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_186932 = (ref_186924 & ref_186930) # AND operation
ref_186941 = ref_185298 # MOV operation
ref_186943 = ((ref_186941 + ref_186932) & 0xFFFFFFFFFFFFFFFF) # ADD operation
ref_187031 = ref_186943 # MOV operation
ref_187033 = ref_187031 # MOV operation
ref_187035 = (~(ref_187033) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_187047 = ref_137889 # MOV operation
ref_187049 = ref_187035 # MOV operation
ref_187051 = (ref_187049 & ref_187047) # AND operation
ref_187060 = ref_186943 # MOV operation
ref_187072 = ref_137889 # MOV operation
ref_187074 = (ref_187072 ^ ref_187060) # XOR operation
ref_187081 = ref_187074 # MOV operation
ref_187083 = (~(ref_187081) & 0xFFFFFFFFFFFFFFFF) # NOT operation
ref_187087 = ref_186943 # MOV operation
ref_187099 = ref_137889 # MOV operation
ref_187101 = ref_187087 # MOV operation
ref_187103 = ((ref_187101 - ref_187099) & 0xFFFFFFFFFFFFFFFF) # SUB operation
ref_187111 = ref_187103 # MOV operation
ref_187113 = (ref_187111 & ref_187083) # AND operation
ref_187120 = (ref_187113 | ref_187051) # OR operation
ref_187127 = (ref_187120 >> (0x3F & 0x3F)) # SHR operation
ref_187386 = (ref_187127 & 0xFFFFFFFF) # MOV operation
ref_187388 = ((ref_187386 & 0xFFFFFFFF) & (ref_187386 & 0xFFFFFFFF)) # TEST operation
ref_187393 = (0x1 if (ref_187388 == 0x0) else 0x0) # Zero flag
ref_187395 = (0x402E02 if (ref_187393 == 0x1) else 0x400EED) # Program Counter


if (ref_187393 == 0x1):
    ref_500620 = SymVar_0
    ref_500635 = ref_500620 # MOV operation
    ref_507940 = ref_500635 # MOV operation
    ref_508625 = ref_507940 # MOV operation
    ref_508633 = (ref_508625 & 0xFFFFFFFFD9700C59) # AND operation
    ref_508644 = ((0x268FF3A6 + ref_508633) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_509472 = ref_508644 # MOV operation
    ref_509488 = ref_509472 # MOV operation
    ref_509492 = (ref_509488 >> (0x31 & 0x3F)) # SHR operation
    ref_509499 = ref_509492 # MOV operation
    ref_520050 = ref_500635 # MOV operation
    ref_520735 = ref_520050 # MOV operation
    ref_520743 = (ref_520735 & 0xFFFFFFFFD9700C59) # AND operation
    ref_520754 = ((0x268FF3A6 + ref_520743) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_521408 = ref_520754 # MOV operation
    ref_521424 = ref_521408 # MOV operation
    ref_521428 = ((ref_521424 << (0xF & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_521435 = ref_521428 # MOV operation
    ref_522844 = ref_521435 # MOV operation
    ref_522858 = ref_509499 # MOV operation
    ref_522860 = (~(ref_522858) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_522862 = (ref_522844 & ref_522860) # AND operation
    ref_522881 = ref_509499 # MOV operation
    ref_522883 = ((ref_522881 + ref_522862) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_532224 = ref_522883 # MOV operation
    ref_553382 = ref_532224 # MOV operation
    ref_555255 = ref_553382 # MOV operation
    ref_555257 = ref_555255 # MOV operation
    ref_555259 = (~(ref_555257) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_555275 = (ref_555259 | 0x7) # OR operation
    ref_555286 = ref_553382 # MOV operation
    ref_555288 = ((ref_555286 + ref_555275) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_555296 = ((ref_555288 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_556010 = ref_555296 # MOV operation
    ref_556018 = (ref_556010 & 0xFFFFFFFFFFFFFFFE) # AND operation
    ref_556029 = ((0x1 + ref_556018) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_568067 = ref_500635 # MOV operation
    ref_568868 = ref_568067 # MOV operation
    ref_568882 = ref_556029 # MOV operation
    ref_568884 = ref_568868 # MOV operation
    ref_568886 = (ref_568882 & 0xFFFFFFFF) # MOV operation
    ref_568888 = (ref_568884 >> ((ref_568886 & 0xFF) & 0x3F)) # SHR operation
    ref_568895 = ref_568888 # MOV operation
    ref_569548 = ref_568895 # MOV operation
    ref_569564 = ref_569548 # MOV operation
    ref_569568 = ((ref_569564 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_569575 = ref_569568 # MOV operation
    ref_572461 = ref_569575 # MOV operation
    ref_589554 = ref_500635 # MOV operation
    ref_594784 = ref_532224 # MOV operation
    ref_596422 = ref_589554 # MOV operation
    ref_596428 = ref_594784 # MOV operation
    ref_596430 = ref_596422 # MOV operation
    ref_596432 = (ref_596430 | ref_596428) # OR operation
    ref_596451 = ref_589554 # MOV operation
    ref_596457 = ref_594784 # MOV operation
    ref_596459 = (ref_596457 & ref_596451) # AND operation
    ref_596466 = ref_596432 # MOV operation
    ref_596468 = ((ref_596466 - ref_596459) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_596476 = ref_596468 # MOV operation
    ref_598271 = ref_596476 # MOV operation
    ref_598287 = ref_598271 # MOV operation
    ref_598291 = (ref_598287 >> (0x7 & 0x3F)) # SHR operation
    ref_598298 = ref_598291 # MOV operation
    ref_600865 = ref_598298 # MOV operation
    ref_614891 = ref_500635 # MOV operation
    ref_615836 = ref_614891 # MOV operation
    ref_615864 = ((((0x0) << 64 | ref_615836) / ((((((((0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x7)) & 0xFFFFFFFFFFFFFFFF) # DIV operation
    ref_627393 = ref_615864 # MOV operation
    ref_712238 = ref_572461 # MOV operation
    ref_720460 = ref_627393 # MOV operation
    ref_722333 = ref_720460 # MOV operation
    ref_722335 = ref_722333 # MOV operation
    ref_722337 = (~(ref_722335) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_722353 = (ref_722337 | 0xF) # OR operation
    ref_722364 = ref_720460 # MOV operation
    ref_722366 = ((ref_722364 + ref_722353) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_722374 = ((ref_722366 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_723030 = ref_722374 # MOV operation
    ref_723046 = ref_723030 # MOV operation
    ref_723050 = ((ref_723046 << (0x3 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_723057 = ref_723050 # MOV operation
    ref_723471 = ref_712238 # MOV operation
    ref_723475 = ref_723057 # MOV operation
    ref_723477 = (~(ref_723475) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_723479 = (ref_723471 & ref_723477) # AND operation
    ref_723488 = ref_723057 # MOV operation
    ref_723490 = ((ref_723488 + ref_723479) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_726058 = ref_723490 # MOV operation
    ref_734696 = ref_600865 # MOV operation
    ref_741686 = ref_600865 # MOV operation
    ref_744398 = ref_734696 # MOV operation
    ref_744404 = ref_741686 # MOV operation
    ref_744406 = ref_744398 # MOV operation
    ref_744408 = (ref_744406 & ref_744404) # AND operation
    ref_744427 = ref_734696 # MOV operation
    ref_744433 = ref_741686 # MOV operation
    ref_744435 = (ref_744433 | ref_744427) # OR operation
    ref_744442 = ref_744408 # MOV operation
    ref_744444 = (((sx(0x40, ref_744442) * sx(0x40, ref_744435)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_744460 = ref_734696 # MOV operation
    ref_744466 = ref_741686 # MOV operation
    ref_744468 = (~(ref_744466) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_744470 = (ref_744460 & ref_744468) # AND operation
    ref_744489 = ref_734696 # MOV operation
    ref_744491 = ref_744489 # MOV operation
    ref_744493 = (~(ref_744491) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_744499 = ref_741686 # MOV operation
    ref_744501 = (ref_744499 & ref_744493) # AND operation
    ref_744508 = (((sx(0x40, ref_744501) * sx(0x40, ref_744470)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_744512 = ((ref_744508 + ref_744444) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_753106 = ref_744512 # MOV operation
    ref_784528 = ref_726058 # MOV operation
    ref_795124 = ref_532224 # MOV operation
    ref_796369 = ref_795124 # MOV operation
    ref_796383 = ref_784528 # MOV operation
    ref_796385 = ref_796369 # MOV operation
    ref_796387 = (ref_796385 | ref_796383) # OR operation
    ref_796398 = ref_795124 # MOV operation
    ref_796412 = ref_784528 # MOV operation
    ref_796414 = (ref_796412 & ref_796398) # AND operation
    ref_796421 = ((ref_796414 + ref_796387) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_800533 = ref_796421 # MOV operation
    ref_836377 = ref_753106 # MOV operation
    ref_846973 = ref_800533 # MOV operation
    ref_848218 = ref_846973 # MOV operation
    ref_848232 = ref_836377 # MOV operation
    ref_848234 = ref_848218 # MOV operation
    ref_848236 = (ref_848234 | ref_848232) # OR operation
    ref_848247 = ref_846973 # MOV operation
    ref_848261 = ref_836377 # MOV operation
    ref_848263 = (ref_848261 & ref_848247) # AND operation
    ref_848270 = ((ref_848263 + ref_848236) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_852382 = ref_848270 # MOV operation
    ref_888226 = ref_627393 # MOV operation
    ref_898822 = ref_852382 # MOV operation
    ref_900067 = ref_898822 # MOV operation
    ref_900081 = ref_888226 # MOV operation
    ref_900083 = ref_900067 # MOV operation
    ref_900085 = (ref_900083 | ref_900081) # OR operation
    ref_900096 = ref_898822 # MOV operation
    ref_900110 = ref_888226 # MOV operation
    ref_900112 = (ref_900110 & ref_900096) # AND operation
    ref_900119 = ((ref_900112 + ref_900085) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_904231 = ref_900119 # MOV operation
    ref_938476 = ref_800533 # MOV operation
    ref_949512 = ref_532224 # MOV operation
    ref_950576 = ref_949512 # MOV operation
    ref_950590 = ref_938476 # MOV operation
    ref_950592 = (~(ref_950590) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_950594 = (ref_950576 & ref_950592) # AND operation
    ref_950613 = ref_938476 # MOV operation
    ref_950615 = ((ref_950613 + ref_950594) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_963648 = ref_904231 # MOV operation
    ref_968878 = ref_852382 # MOV operation
    ref_968939 = ref_968878 # MOV operation
    ref_968951 = ref_963648 # MOV operation
    ref_968953 = ref_968939 # MOV operation
    ref_968955 = (ref_968953 & ref_968951) # AND operation
    ref_968964 = ref_968878 # MOV operation
    ref_968976 = ref_963648 # MOV operation
    ref_968978 = (ref_968976 | ref_968964) # OR operation
    ref_968985 = ref_968955 # MOV operation
    ref_968987 = (((sx(0x40, ref_968985) * sx(0x40, ref_968978)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_968993 = ref_968878 # MOV operation
    ref_969005 = ref_963648 # MOV operation
    ref_969007 = (~(ref_969005) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_969009 = (ref_969007 & ref_968993) # AND operation
    ref_969018 = ref_968878 # MOV operation
    ref_969020 = ref_969018 # MOV operation
    ref_969022 = (~(ref_969020) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_969034 = ref_963648 # MOV operation
    ref_969036 = (ref_969034 & ref_969022) # AND operation
    ref_969043 = (((sx(0x40, ref_969036) * sx(0x40, ref_969009)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_969047 = ((ref_969043 + ref_968987) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_969143 = ref_950615 # MOV operation
    ref_969147 = ref_969047 # MOV operation
    ref_969149 = ref_969143 # MOV operation
    ref_969151 = (ref_969149 ^ ref_969147) # XOR operation
    ref_969168 = ref_950615 # MOV operation
    ref_969172 = ref_969047 # MOV operation
    ref_969174 = (ref_969172 & ref_969168) # AND operation
    ref_969181 = ((ref_969174 + ref_969174) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_969189 = ((ref_969181 + ref_969151) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_971757 = ref_969189 # MOV operation
    ref_973466 = ref_971757 # MOV operation
    ref_973468 = ref_973466 # MOV operation
    endb = ref_973468


else:
    ref_507 = SymVar_0
    ref_522 = ref_507 # MOV operation
    ref_7827 = ref_522 # MOV operation
    ref_8512 = ref_7827 # MOV operation
    ref_8520 = (ref_8512 & 0xFFFFFFFFD9700C59) # AND operation
    ref_8531 = ((0x268FF3A6 + ref_8520) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_9359 = ref_8531 # MOV operation
    ref_9375 = ref_9359 # MOV operation
    ref_9379 = (ref_9375 >> (0x31 & 0x3F)) # SHR operation
    ref_9386 = ref_9379 # MOV operation
    ref_19937 = ref_522 # MOV operation
    ref_20622 = ref_19937 # MOV operation
    ref_20630 = (ref_20622 & 0xFFFFFFFFD9700C59) # AND operation
    ref_20641 = ((0x268FF3A6 + ref_20630) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_21295 = ref_20641 # MOV operation
    ref_21311 = ref_21295 # MOV operation
    ref_21315 = ((ref_21311 << (0xF & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_21322 = ref_21315 # MOV operation
    ref_22731 = ref_21322 # MOV operation
    ref_22745 = ref_9386 # MOV operation
    ref_22747 = (~(ref_22745) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_22749 = (ref_22731 & ref_22747) # AND operation
    ref_22768 = ref_9386 # MOV operation
    ref_22770 = ((ref_22768 + ref_22749) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_32111 = ref_22770 # MOV operation
    ref_53269 = ref_32111 # MOV operation
    ref_55142 = ref_53269 # MOV operation
    ref_55144 = ref_55142 # MOV operation
    ref_55146 = (~(ref_55144) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_55162 = (ref_55146 | 0x7) # OR operation
    ref_55173 = ref_53269 # MOV operation
    ref_55175 = ((ref_55173 + ref_55162) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_55183 = ((ref_55175 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_55897 = ref_55183 # MOV operation
    ref_55905 = (ref_55897 & 0xFFFFFFFFFFFFFFFE) # AND operation
    ref_55916 = ((0x1 + ref_55905) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_67954 = ref_522 # MOV operation
    ref_68755 = ref_67954 # MOV operation
    ref_68769 = ref_55916 # MOV operation
    ref_68771 = ref_68755 # MOV operation
    ref_68773 = (ref_68769 & 0xFFFFFFFF) # MOV operation
    ref_68775 = (ref_68771 >> ((ref_68773 & 0xFF) & 0x3F)) # SHR operation
    ref_68782 = ref_68775 # MOV operation
    ref_69435 = ref_68782 # MOV operation
    ref_69451 = ref_69435 # MOV operation
    ref_69455 = ((ref_69451 << (0x7 & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_69462 = ref_69455 # MOV operation
    ref_72348 = ref_69462 # MOV operation
    ref_89441 = ref_522 # MOV operation
    ref_94671 = ref_32111 # MOV operation
    ref_96309 = ref_89441 # MOV operation
    ref_96315 = ref_94671 # MOV operation
    ref_96317 = ref_96309 # MOV operation
    ref_96319 = (ref_96317 | ref_96315) # OR operation
    ref_96338 = ref_89441 # MOV operation
    ref_96344 = ref_94671 # MOV operation
    ref_96346 = (ref_96344 & ref_96338) # AND operation
    ref_96353 = ref_96319 # MOV operation
    ref_96355 = ((ref_96353 - ref_96346) & 0xFFFFFFFFFFFFFFFF) # SUB operation
    ref_96363 = ref_96355 # MOV operation
    ref_98158 = ref_96363 # MOV operation
    ref_98174 = ref_98158 # MOV operation
    ref_98178 = (ref_98174 >> (0x7 & 0x3F)) # SHR operation
    ref_98185 = ref_98178 # MOV operation
    ref_100752 = ref_98185 # MOV operation
    ref_114778 = ref_522 # MOV operation
    ref_115723 = ref_114778 # MOV operation
    ref_115751 = ((((0x0) << 64 | ref_115723) / ((((((((0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x0) << 8 | 0x7)) & 0xFFFFFFFFFFFFFFFF) # DIV operation
    ref_127280 = ref_115751 # MOV operation
    ref_206391 = ref_127280 # MOV operation
    ref_207192 = ref_206391 # MOV operation
    ref_207208 = ref_207192 # MOV operation
    ref_207212 = (ref_207208 >> (0x2 & 0x3F)) # SHR operation
    ref_207219 = ref_207212 # MOV operation
    ref_207930 = ref_207219 # MOV operation
    ref_207932 = ref_207930 # MOV operation
    ref_207934 = (~(ref_207932) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_207940 = (ref_207934 | 0xF) # OR operation
    ref_207957 = ref_207219 # MOV operation
    ref_207959 = ((ref_207957 + ref_207940) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_207967 = ((ref_207959 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_208679 = ref_207967 # MOV operation
    ref_208687 = (ref_208679 & 0xFFFFFFFFFFFFFFFE) # AND operation
    ref_208698 = ((0x1 + ref_208687) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_217655 = ref_127280 # MOV operation
    ref_218456 = ref_217655 # MOV operation
    ref_218470 = ref_208698 # MOV operation
    ref_218472 = ref_218456 # MOV operation
    ref_218474 = (ref_218470 & 0xFFFFFFFF) # MOV operation
    ref_218476 = (ref_218472 >> ((ref_218474 & 0xFF) & 0x3F)) # SHR operation
    ref_218483 = ref_218476 # MOV operation
    ref_230777 = ref_127280 # MOV operation
    ref_231578 = ref_230777 # MOV operation
    ref_231594 = ref_231578 # MOV operation
    ref_231598 = (ref_231594 >> (0x2 & 0x3F)) # SHR operation
    ref_231605 = ref_231598 # MOV operation
    ref_232316 = ref_231605 # MOV operation
    ref_232318 = ref_232316 # MOV operation
    ref_232320 = (~(ref_232318) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_232326 = (ref_232320 | 0xF) # OR operation
    ref_232343 = ref_231605 # MOV operation
    ref_232345 = ((ref_232343 + ref_232326) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_232353 = ((ref_232345 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_233065 = ref_232353 # MOV operation
    ref_233073 = (ref_233065 & 0xFFFFFFFFFFFFFFFE) # AND operation
    ref_233084 = ((0x1 + ref_233073) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_235374 = ref_233084 # MOV operation
    ref_235376 = (~(ref_235374) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_235378 = ((ref_235376 + 0x40) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_235386 = ((ref_235378 + 0x1) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_248852 = ref_127280 # MOV operation
    ref_249479 = ref_248852 # MOV operation
    ref_249493 = ref_235386 # MOV operation
    ref_249495 = ref_249479 # MOV operation
    ref_249497 = (ref_249493 & 0xFFFFFFFF) # MOV operation
    ref_249499 = ((ref_249495 << ((ref_249497 & 0xFF) & 0x3F)) & 0xFFFFFFFFFFFFFFFF) # SHL operation
    ref_249506 = ref_249499 # MOV operation
    ref_249920 = ref_218483 # MOV operation
    ref_249924 = ref_249506 # MOV operation
    ref_249926 = (~(ref_249924) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_249928 = (ref_249920 & ref_249926) # AND operation
    ref_249937 = ref_249506 # MOV operation
    ref_249939 = ((ref_249937 + ref_249928) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_252507 = ref_249939 # MOV operation
    ref_261145 = ref_100752 # MOV operation
    ref_268135 = ref_100752 # MOV operation
    ref_270847 = ref_261145 # MOV operation
    ref_270853 = ref_268135 # MOV operation
    ref_270855 = ref_270847 # MOV operation
    ref_270857 = (ref_270855 & ref_270853) # AND operation
    ref_270876 = ref_261145 # MOV operation
    ref_270882 = ref_268135 # MOV operation
    ref_270884 = (ref_270882 | ref_270876) # OR operation
    ref_270891 = ref_270857 # MOV operation
    ref_270893 = (((sx(0x40, ref_270891) * sx(0x40, ref_270884)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_270909 = ref_261145 # MOV operation
    ref_270915 = ref_268135 # MOV operation
    ref_270917 = (~(ref_270915) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_270919 = (ref_270909 & ref_270917) # AND operation
    ref_270938 = ref_261145 # MOV operation
    ref_270940 = ref_270938 # MOV operation
    ref_270942 = (~(ref_270940) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_270948 = ref_268135 # MOV operation
    ref_270950 = (ref_270948 & ref_270942) # AND operation
    ref_270957 = (((sx(0x40, ref_270950) * sx(0x40, ref_270919)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_270961 = ((ref_270957 + ref_270893) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_279555 = ref_270961 # MOV operation
    ref_310977 = ref_72348 # MOV operation
    ref_321573 = ref_32111 # MOV operation
    ref_322818 = ref_321573 # MOV operation
    ref_322832 = ref_310977 # MOV operation
    ref_322834 = ref_322818 # MOV operation
    ref_322836 = (ref_322834 | ref_322832) # OR operation
    ref_322847 = ref_321573 # MOV operation
    ref_322861 = ref_310977 # MOV operation
    ref_322863 = (ref_322861 & ref_322847) # AND operation
    ref_322870 = ((ref_322863 + ref_322836) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_326982 = ref_322870 # MOV operation
    ref_362826 = ref_279555 # MOV operation
    ref_373422 = ref_326982 # MOV operation
    ref_374667 = ref_373422 # MOV operation
    ref_374681 = ref_362826 # MOV operation
    ref_374683 = ref_374667 # MOV operation
    ref_374685 = (ref_374683 | ref_374681) # OR operation
    ref_374696 = ref_373422 # MOV operation
    ref_374710 = ref_362826 # MOV operation
    ref_374712 = (ref_374710 & ref_374696) # AND operation
    ref_374719 = ((ref_374712 + ref_374685) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_378831 = ref_374719 # MOV operation
    ref_414675 = ref_252507 # MOV operation
    ref_425271 = ref_378831 # MOV operation
    ref_426516 = ref_425271 # MOV operation
    ref_426530 = ref_414675 # MOV operation
    ref_426532 = ref_426516 # MOV operation
    ref_426534 = (ref_426532 | ref_426530) # OR operation
    ref_426545 = ref_425271 # MOV operation
    ref_426559 = ref_414675 # MOV operation
    ref_426561 = (ref_426559 & ref_426545) # AND operation
    ref_426568 = ((ref_426561 + ref_426534) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_430680 = ref_426568 # MOV operation
    ref_464925 = ref_326982 # MOV operation
    ref_475961 = ref_32111 # MOV operation
    ref_477025 = ref_475961 # MOV operation
    ref_477039 = ref_464925 # MOV operation
    ref_477041 = (~(ref_477039) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_477043 = (ref_477025 & ref_477041) # AND operation
    ref_477062 = ref_464925 # MOV operation
    ref_477064 = ((ref_477062 + ref_477043) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_490097 = ref_430680 # MOV operation
    ref_495327 = ref_378831 # MOV operation
    ref_495388 = ref_495327 # MOV operation
    ref_495400 = ref_490097 # MOV operation
    ref_495402 = ref_495388 # MOV operation
    ref_495404 = (ref_495402 & ref_495400) # AND operation
    ref_495413 = ref_495327 # MOV operation
    ref_495425 = ref_490097 # MOV operation
    ref_495427 = (ref_495425 | ref_495413) # OR operation
    ref_495434 = ref_495404 # MOV operation
    ref_495436 = (((sx(0x40, ref_495434) * sx(0x40, ref_495427)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_495442 = ref_495327 # MOV operation
    ref_495454 = ref_490097 # MOV operation
    ref_495456 = (~(ref_495454) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_495458 = (ref_495456 & ref_495442) # AND operation
    ref_495467 = ref_495327 # MOV operation
    ref_495469 = ref_495467 # MOV operation
    ref_495471 = (~(ref_495469) & 0xFFFFFFFFFFFFFFFF) # NOT operation
    ref_495483 = ref_490097 # MOV operation
    ref_495485 = (ref_495483 & ref_495471) # AND operation
    ref_495492 = (((sx(0x40, ref_495485) * sx(0x40, ref_495458)) & 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF) & 0xFFFFFFFFFFFFFFFF) # IMUL operation
    ref_495496 = ((ref_495492 + ref_495436) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_495592 = ref_477064 # MOV operation
    ref_495596 = ref_495496 # MOV operation
    ref_495598 = ref_495592 # MOV operation
    ref_495600 = (ref_495598 ^ ref_495596) # XOR operation
    ref_495617 = ref_477064 # MOV operation
    ref_495621 = ref_495496 # MOV operation
    ref_495623 = (ref_495621 & ref_495617) # AND operation
    ref_495630 = ((ref_495623 + ref_495623) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_495638 = ((ref_495630 + ref_495600) & 0xFFFFFFFFFFFFFFFF) # ADD operation
    ref_498206 = ref_495638 # MOV operation
    ref_499915 = ref_498206 # MOV operation
    ref_499917 = ref_499915 # MOV operation
    endb = ref_499917


print endb & 0xffffffffffffffff
