1*0Sstevel@tonic-gate#!/usr/local/bin/perl 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate# Normal is the 4*0Sstevel@tonic-gate# ripemd160_block_asm_host_order(RIPEMD160_CTX *c, ULONG *X,int blocks); 5*0Sstevel@tonic-gate 6*0Sstevel@tonic-gate$normal=0; 7*0Sstevel@tonic-gate 8*0Sstevel@tonic-gatepush(@INC,"perlasm","../../perlasm"); 9*0Sstevel@tonic-gaterequire "x86asm.pl"; 10*0Sstevel@tonic-gate 11*0Sstevel@tonic-gate&asm_init($ARGV[0],$0); 12*0Sstevel@tonic-gate 13*0Sstevel@tonic-gate$A="ecx"; 14*0Sstevel@tonic-gate$B="esi"; 15*0Sstevel@tonic-gate$C="edi"; 16*0Sstevel@tonic-gate$D="ebx"; 17*0Sstevel@tonic-gate$E="ebp"; 18*0Sstevel@tonic-gate$tmp1="eax"; 19*0Sstevel@tonic-gate$tmp2="edx"; 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate$KL1=0x5A827999; 22*0Sstevel@tonic-gate$KL2=0x6ED9EBA1; 23*0Sstevel@tonic-gate$KL3=0x8F1BBCDC; 24*0Sstevel@tonic-gate$KL4=0xA953FD4E; 25*0Sstevel@tonic-gate$KR0=0x50A28BE6; 26*0Sstevel@tonic-gate$KR1=0x5C4DD124; 27*0Sstevel@tonic-gate$KR2=0x6D703EF3; 28*0Sstevel@tonic-gate$KR3=0x7A6D76E9; 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate 31*0Sstevel@tonic-gate@wl=( 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15, 32*0Sstevel@tonic-gate 7, 4,13, 1,10, 6,15, 3,12, 0, 9, 5, 2,14,11, 8, 33*0Sstevel@tonic-gate 3,10,14, 4, 9,15, 8, 1, 2, 7, 0, 6,13,11, 5,12, 34*0Sstevel@tonic-gate 1, 9,11,10, 0, 8,12, 4,13, 3, 7,15,14, 5, 6, 2, 35*0Sstevel@tonic-gate 4, 0, 5, 9, 7,12, 2,10,14, 1, 3, 8,11, 6,15,13, 36*0Sstevel@tonic-gate ); 37*0Sstevel@tonic-gate 38*0Sstevel@tonic-gate@wr=( 5,14, 7, 0, 9, 2,11, 4,13, 6,15, 8, 1,10, 3,12, 39*0Sstevel@tonic-gate 6,11, 3, 7, 0,13, 5,10,14,15, 8,12, 4, 9, 1, 2, 40*0Sstevel@tonic-gate 15, 5, 1, 3, 7,14, 6, 9,11, 8,12, 2,10, 0, 4,13, 41*0Sstevel@tonic-gate 8, 6, 4, 1, 3,11,15, 0, 5,12, 2,13, 9, 7,10,14, 42*0Sstevel@tonic-gate 12,15,10, 4, 1, 5, 8, 7, 6, 2,13,14, 0, 3, 9,11, 43*0Sstevel@tonic-gate ); 44*0Sstevel@tonic-gate 45*0Sstevel@tonic-gate@sl=( 11,14,15,12, 5, 8, 7, 9,11,13,14,15, 6, 7, 9, 8, 46*0Sstevel@tonic-gate 7, 6, 8,13,11, 9, 7,15, 7,12,15, 9,11, 7,13,12, 47*0Sstevel@tonic-gate 11,13, 6, 7,14, 9,13,15,14, 8,13, 6, 5,12, 7, 5, 48*0Sstevel@tonic-gate 11,12,14,15,14,15, 9, 8, 9,14, 5, 6, 8, 6, 5,12, 49*0Sstevel@tonic-gate 9,15, 5,11, 6, 8,13,12, 5,12,13,14,11, 8, 5, 6, 50*0Sstevel@tonic-gate ); 51*0Sstevel@tonic-gate 52*0Sstevel@tonic-gate@sr=( 8, 9, 9,11,13,15,15, 5, 7, 7, 8,11,14,14,12, 6, 53*0Sstevel@tonic-gate 9,13,15, 7,12, 8, 9,11, 7, 7,12, 7, 6,15,13,11, 54*0Sstevel@tonic-gate 9, 7,15,11, 8, 6, 6,14,12,13, 5,14,13,13, 7, 5, 55*0Sstevel@tonic-gate 15, 5, 8,11,14,14, 6,14, 6, 9,12, 9,12, 5,15, 8, 56*0Sstevel@tonic-gate 8, 5,12, 9,12, 5,14, 6, 8,13, 6, 5,15,13,11,11, 57*0Sstevel@tonic-gate ); 58*0Sstevel@tonic-gate 59*0Sstevel@tonic-gate&ripemd160_block("ripemd160_block_asm_host_order"); 60*0Sstevel@tonic-gate&asm_finish(); 61*0Sstevel@tonic-gate 62*0Sstevel@tonic-gatesub Xv 63*0Sstevel@tonic-gate { 64*0Sstevel@tonic-gate local($n)=@_; 65*0Sstevel@tonic-gate return(&swtmp($n)); 66*0Sstevel@tonic-gate # tmp on stack 67*0Sstevel@tonic-gate } 68*0Sstevel@tonic-gate 69*0Sstevel@tonic-gatesub Np 70*0Sstevel@tonic-gate { 71*0Sstevel@tonic-gate local($p)=@_; 72*0Sstevel@tonic-gate local(%n)=($A,$E,$B,$A,$C,$B,$D,$C,$E,$D); 73*0Sstevel@tonic-gate return($n{$p}); 74*0Sstevel@tonic-gate } 75*0Sstevel@tonic-gate 76*0Sstevel@tonic-gatesub RIP1 77*0Sstevel@tonic-gate { 78*0Sstevel@tonic-gate local($a,$b,$c,$d,$e,$pos,$s,$o,$pos2)=@_; 79*0Sstevel@tonic-gate 80*0Sstevel@tonic-gate &comment($p++); 81*0Sstevel@tonic-gate if ($p & 1) 82*0Sstevel@tonic-gate { 83*0Sstevel@tonic-gate #&mov($tmp1, $c) if $o == -1; 84*0Sstevel@tonic-gate &xor($tmp1, $d) if $o == -1; 85*0Sstevel@tonic-gate &mov($tmp2, &Xv($pos)); 86*0Sstevel@tonic-gate &xor($tmp1, $b); 87*0Sstevel@tonic-gate &add($a, $tmp2); 88*0Sstevel@tonic-gate &rotl($c, 10); 89*0Sstevel@tonic-gate &add($a, $tmp1); 90*0Sstevel@tonic-gate &mov($tmp1, &Np($c)); # NEXT 91*0Sstevel@tonic-gate # XXX 92*0Sstevel@tonic-gate &rotl($a, $s); 93*0Sstevel@tonic-gate &add($a, $e); 94*0Sstevel@tonic-gate } 95*0Sstevel@tonic-gate else 96*0Sstevel@tonic-gate { 97*0Sstevel@tonic-gate &xor($tmp1, $d); 98*0Sstevel@tonic-gate &mov($tmp2, &Xv($pos)); 99*0Sstevel@tonic-gate &xor($tmp1, $b); 100*0Sstevel@tonic-gate &add($a, $tmp1); 101*0Sstevel@tonic-gate &mov($tmp1, &Np($c)) if $o <= 0; 102*0Sstevel@tonic-gate &mov($tmp1, -1) if $o == 1; 103*0Sstevel@tonic-gate # XXX if $o == 2; 104*0Sstevel@tonic-gate &rotl($c, 10); 105*0Sstevel@tonic-gate &add($a, $tmp2); 106*0Sstevel@tonic-gate &xor($tmp1, &Np($d)) if $o <= 0; 107*0Sstevel@tonic-gate &mov($tmp2, &Xv($pos2)) if $o == 1; 108*0Sstevel@tonic-gate &mov($tmp2, &wparam(0)) if $o == 2; 109*0Sstevel@tonic-gate &rotl($a, $s); 110*0Sstevel@tonic-gate &add($a, $e); 111*0Sstevel@tonic-gate } 112*0Sstevel@tonic-gate } 113*0Sstevel@tonic-gate 114*0Sstevel@tonic-gatesub RIP2 115*0Sstevel@tonic-gate { 116*0Sstevel@tonic-gate local($a,$b,$c,$d,$e,$pos,$pos2,$s,$K,$o)=@_; 117*0Sstevel@tonic-gate 118*0Sstevel@tonic-gate# XXXXXX 119*0Sstevel@tonic-gate &comment($p++); 120*0Sstevel@tonic-gate if ($p & 1) 121*0Sstevel@tonic-gate { 122*0Sstevel@tonic-gate# &mov($tmp2, &Xv($pos)) if $o < -1; 123*0Sstevel@tonic-gate# &mov($tmp1, -1) if $o < -1; 124*0Sstevel@tonic-gate 125*0Sstevel@tonic-gate &add($a, $tmp2); 126*0Sstevel@tonic-gate &mov($tmp2, $c); 127*0Sstevel@tonic-gate &sub($tmp1, $b); 128*0Sstevel@tonic-gate &and($tmp2, $b); 129*0Sstevel@tonic-gate &and($tmp1, $d); 130*0Sstevel@tonic-gate &or($tmp2, $tmp1); 131*0Sstevel@tonic-gate &mov($tmp1, &Xv($pos2)) if $o <= 0; # XXXXXXXXXXXXXX 132*0Sstevel@tonic-gate # XXX 133*0Sstevel@tonic-gate &rotl($c, 10); 134*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp2,1)); 135*0Sstevel@tonic-gate &mov($tmp2, -1) if $o <= 0; 136*0Sstevel@tonic-gate # XXX 137*0Sstevel@tonic-gate &rotl($a, $s); 138*0Sstevel@tonic-gate &add($a, $e); 139*0Sstevel@tonic-gate } 140*0Sstevel@tonic-gate else 141*0Sstevel@tonic-gate { 142*0Sstevel@tonic-gate # XXX 143*0Sstevel@tonic-gate &add($a, $tmp1); 144*0Sstevel@tonic-gate &mov($tmp1, $c); 145*0Sstevel@tonic-gate &sub($tmp2, $b); 146*0Sstevel@tonic-gate &and($tmp1, $b); 147*0Sstevel@tonic-gate &and($tmp2, $d); 148*0Sstevel@tonic-gate if ($o != 2) 149*0Sstevel@tonic-gate { 150*0Sstevel@tonic-gate &or($tmp1, $tmp2); 151*0Sstevel@tonic-gate &mov($tmp2, &Xv($pos2)) if $o <= 0; 152*0Sstevel@tonic-gate &mov($tmp2, -1) if $o == 1; 153*0Sstevel@tonic-gate &rotl($c, 10); 154*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp1,1)); 155*0Sstevel@tonic-gate &mov($tmp1, -1) if $o <= 0; 156*0Sstevel@tonic-gate &sub($tmp2, &Np($c)) if $o == 1; 157*0Sstevel@tonic-gate } else { 158*0Sstevel@tonic-gate &or($tmp2, $tmp1); 159*0Sstevel@tonic-gate &mov($tmp1, &Np($c)); 160*0Sstevel@tonic-gate &rotl($c, 10); 161*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp2,1)); 162*0Sstevel@tonic-gate &xor($tmp1, &Np($d)); 163*0Sstevel@tonic-gate } 164*0Sstevel@tonic-gate &rotl($a, $s); 165*0Sstevel@tonic-gate &add($a, $e); 166*0Sstevel@tonic-gate } 167*0Sstevel@tonic-gate } 168*0Sstevel@tonic-gate 169*0Sstevel@tonic-gatesub RIP3 170*0Sstevel@tonic-gate { 171*0Sstevel@tonic-gate local($a,$b,$c,$d,$e,$pos,$s,$K,$o,$pos2)=@_; 172*0Sstevel@tonic-gate 173*0Sstevel@tonic-gate &comment($p++); 174*0Sstevel@tonic-gate if ($p & 1) 175*0Sstevel@tonic-gate { 176*0Sstevel@tonic-gate# &mov($tmp2, -1) if $o < -1; 177*0Sstevel@tonic-gate# &sub($tmp2, $c) if $o < -1; 178*0Sstevel@tonic-gate &mov($tmp1, &Xv($pos)); 179*0Sstevel@tonic-gate &or($tmp2, $b); 180*0Sstevel@tonic-gate &add($a, $tmp1); 181*0Sstevel@tonic-gate &xor($tmp2, $d); 182*0Sstevel@tonic-gate &mov($tmp1, -1) if $o <= 0; # NEXT 183*0Sstevel@tonic-gate # XXX 184*0Sstevel@tonic-gate &rotl($c, 10); 185*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp2,1)); 186*0Sstevel@tonic-gate &sub($tmp1, &Np($c)) if $o <= 0; # NEXT 187*0Sstevel@tonic-gate # XXX 188*0Sstevel@tonic-gate &rotl($a, $s); 189*0Sstevel@tonic-gate &add($a, $e); 190*0Sstevel@tonic-gate } 191*0Sstevel@tonic-gate else 192*0Sstevel@tonic-gate { 193*0Sstevel@tonic-gate &mov($tmp2, &Xv($pos)); 194*0Sstevel@tonic-gate &or($tmp1, $b); 195*0Sstevel@tonic-gate &add($a, $tmp2); 196*0Sstevel@tonic-gate &xor($tmp1, $d); 197*0Sstevel@tonic-gate &mov($tmp2, -1) if $o <= 0; # NEXT 198*0Sstevel@tonic-gate &mov($tmp2, -1) if $o == 1; 199*0Sstevel@tonic-gate &mov($tmp2, &Xv($pos2)) if $o == 2; 200*0Sstevel@tonic-gate &rotl($c, 10); 201*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp1,1)); 202*0Sstevel@tonic-gate &sub($tmp2, &Np($c)) if $o <= 0; # NEXT 203*0Sstevel@tonic-gate &mov($tmp1, &Np($d)) if $o == 1; 204*0Sstevel@tonic-gate &mov($tmp1, -1) if $o == 2; 205*0Sstevel@tonic-gate &rotl($a, $s); 206*0Sstevel@tonic-gate &add($a, $e); 207*0Sstevel@tonic-gate } 208*0Sstevel@tonic-gate } 209*0Sstevel@tonic-gate 210*0Sstevel@tonic-gatesub RIP4 211*0Sstevel@tonic-gate { 212*0Sstevel@tonic-gate local($a,$b,$c,$d,$e,$pos,$s,$K,$o)=@_; 213*0Sstevel@tonic-gate 214*0Sstevel@tonic-gate &comment($p++); 215*0Sstevel@tonic-gate if ($p & 1) 216*0Sstevel@tonic-gate { 217*0Sstevel@tonic-gate# &mov($tmp2, -1) if $o == -2; 218*0Sstevel@tonic-gate# &mov($tmp1, $d) if $o == -2; 219*0Sstevel@tonic-gate &sub($tmp2, $d); 220*0Sstevel@tonic-gate &and($tmp1, $b); 221*0Sstevel@tonic-gate &and($tmp2, $c); 222*0Sstevel@tonic-gate &or($tmp2, $tmp1); 223*0Sstevel@tonic-gate &mov($tmp1, &Xv($pos)); 224*0Sstevel@tonic-gate &rotl($c, 10); 225*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp2)); 226*0Sstevel@tonic-gate &mov($tmp2, -1) unless $o > 0; # NEXT 227*0Sstevel@tonic-gate # XXX 228*0Sstevel@tonic-gate &add($a, $tmp1); 229*0Sstevel@tonic-gate &mov($tmp1, &Np($d)) unless $o > 0; # NEXT 230*0Sstevel@tonic-gate # XXX 231*0Sstevel@tonic-gate &rotl($a, $s); 232*0Sstevel@tonic-gate &add($a, $e); 233*0Sstevel@tonic-gate } 234*0Sstevel@tonic-gate else 235*0Sstevel@tonic-gate { 236*0Sstevel@tonic-gate &sub($tmp2, $d); 237*0Sstevel@tonic-gate &and($tmp1, $b); 238*0Sstevel@tonic-gate &and($tmp2, $c); 239*0Sstevel@tonic-gate &or($tmp2, $tmp1); 240*0Sstevel@tonic-gate &mov($tmp1, &Xv($pos)); 241*0Sstevel@tonic-gate &rotl($c, 10); 242*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp2)); 243*0Sstevel@tonic-gate &mov($tmp2, -1) if $o == 0; # NEXT 244*0Sstevel@tonic-gate &mov($tmp2, -1) if $o == 1; 245*0Sstevel@tonic-gate &mov($tmp2, -1) if $o == 2; 246*0Sstevel@tonic-gate # XXX 247*0Sstevel@tonic-gate &add($a, $tmp1); 248*0Sstevel@tonic-gate &mov($tmp1, &Np($d)) if $o == 0; # NEXT 249*0Sstevel@tonic-gate &sub($tmp2, &Np($d)) if $o == 1; 250*0Sstevel@tonic-gate &sub($tmp2, &Np($c)) if $o == 2; 251*0Sstevel@tonic-gate # XXX 252*0Sstevel@tonic-gate &rotl($a, $s); 253*0Sstevel@tonic-gate &add($a, $e); 254*0Sstevel@tonic-gate } 255*0Sstevel@tonic-gate } 256*0Sstevel@tonic-gate 257*0Sstevel@tonic-gatesub RIP5 258*0Sstevel@tonic-gate { 259*0Sstevel@tonic-gate local($a,$b,$c,$d,$e,$pos,$s,$K,$o)=@_; 260*0Sstevel@tonic-gate 261*0Sstevel@tonic-gate &comment($p++); 262*0Sstevel@tonic-gate if ($p & 1) 263*0Sstevel@tonic-gate { 264*0Sstevel@tonic-gate &mov($tmp2, -1) if $o == -2; 265*0Sstevel@tonic-gate &sub($tmp2, $d) if $o == -2; 266*0Sstevel@tonic-gate &mov($tmp1, &Xv($pos)); 267*0Sstevel@tonic-gate &or($tmp2, $c); 268*0Sstevel@tonic-gate &add($a, $tmp1); 269*0Sstevel@tonic-gate &xor($tmp2, $b); 270*0Sstevel@tonic-gate &mov($tmp1, -1) if $o <= 0; 271*0Sstevel@tonic-gate # XXX 272*0Sstevel@tonic-gate &rotl($c, 10); 273*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp2,1)); 274*0Sstevel@tonic-gate &sub($tmp1, &Np($d)) if $o <= 0; 275*0Sstevel@tonic-gate # XXX 276*0Sstevel@tonic-gate &rotl($a, $s); 277*0Sstevel@tonic-gate &add($a, $e); 278*0Sstevel@tonic-gate } 279*0Sstevel@tonic-gate else 280*0Sstevel@tonic-gate { 281*0Sstevel@tonic-gate &mov($tmp2, &Xv($pos)); 282*0Sstevel@tonic-gate &or($tmp1, $c); 283*0Sstevel@tonic-gate &add($a, $tmp2); 284*0Sstevel@tonic-gate &xor($tmp1, $b); 285*0Sstevel@tonic-gate &mov($tmp2, -1) if $o <= 0; 286*0Sstevel@tonic-gate &mov($tmp2, &wparam(0)) if $o == 1; # Middle code 287*0Sstevel@tonic-gate &mov($tmp2, -1) if $o == 2; 288*0Sstevel@tonic-gate &rotl($c, 10); 289*0Sstevel@tonic-gate &lea($a, &DWP($K,$a,$tmp1,1)); 290*0Sstevel@tonic-gate &sub($tmp2, &Np($d)) if $o <= 0; 291*0Sstevel@tonic-gate &mov(&swtmp(16), $A) if $o == 1; 292*0Sstevel@tonic-gate &mov($tmp1, &Np($d)) if $o == 2; 293*0Sstevel@tonic-gate &rotl($a, $s); 294*0Sstevel@tonic-gate &add($a, $e); 295*0Sstevel@tonic-gate } 296*0Sstevel@tonic-gate } 297*0Sstevel@tonic-gate 298*0Sstevel@tonic-gatesub ripemd160_block 299*0Sstevel@tonic-gate { 300*0Sstevel@tonic-gate local($name)=@_; 301*0Sstevel@tonic-gate 302*0Sstevel@tonic-gate &function_begin_B($name,"",3); 303*0Sstevel@tonic-gate 304*0Sstevel@tonic-gate # parameter 1 is the RIPEMD160_CTX structure. 305*0Sstevel@tonic-gate # A 0 306*0Sstevel@tonic-gate # B 4 307*0Sstevel@tonic-gate # C 8 308*0Sstevel@tonic-gate # D 12 309*0Sstevel@tonic-gate # E 16 310*0Sstevel@tonic-gate 311*0Sstevel@tonic-gate &mov($tmp2, &wparam(0)); 312*0Sstevel@tonic-gate &mov($tmp1, &wparam(1)); 313*0Sstevel@tonic-gate &push("esi"); 314*0Sstevel@tonic-gate &mov($A, &DWP( 0,$tmp2,"",0)); 315*0Sstevel@tonic-gate &push("edi"); 316*0Sstevel@tonic-gate &mov($B, &DWP( 4,$tmp2,"",0)); 317*0Sstevel@tonic-gate &push("ebp"); 318*0Sstevel@tonic-gate &mov($C, &DWP( 8,$tmp2,"",0)); 319*0Sstevel@tonic-gate &push("ebx"); 320*0Sstevel@tonic-gate &stack_push(16+5+6); 321*0Sstevel@tonic-gate # Special comment about the figure of 6. 322*0Sstevel@tonic-gate # Idea is to pad the current frame so 323*0Sstevel@tonic-gate # that the top of the stack gets fairly 324*0Sstevel@tonic-gate # aligned. Well, as you realize it would 325*0Sstevel@tonic-gate # always depend on how the frame below is 326*0Sstevel@tonic-gate # aligned. The good news are that gcc-2.95 327*0Sstevel@tonic-gate # and later does keep first argument at 328*0Sstevel@tonic-gate # least double-wise aligned. 329*0Sstevel@tonic-gate # <appro@fy.chalmers.se> 330*0Sstevel@tonic-gate 331*0Sstevel@tonic-gate &set_label("start") unless $normal; 332*0Sstevel@tonic-gate &comment(""); 333*0Sstevel@tonic-gate 334*0Sstevel@tonic-gate # &mov($tmp1, &wparam(1)); # Done at end of loop 335*0Sstevel@tonic-gate # &mov($tmp2, &wparam(0)); # Done at end of loop 336*0Sstevel@tonic-gate 337*0Sstevel@tonic-gate for ($z=0; $z<16; $z+=2) 338*0Sstevel@tonic-gate { 339*0Sstevel@tonic-gate &mov($D, &DWP( $z*4,$tmp1,"",0)); 340*0Sstevel@tonic-gate &mov($E, &DWP( ($z+1)*4,$tmp1,"",0)); 341*0Sstevel@tonic-gate &mov(&swtmp($z), $D); 342*0Sstevel@tonic-gate &mov(&swtmp($z+1), $E); 343*0Sstevel@tonic-gate } 344*0Sstevel@tonic-gate &mov($tmp1, $C); 345*0Sstevel@tonic-gate &mov($D, &DWP(12,$tmp2,"",0)); 346*0Sstevel@tonic-gate &mov($E, &DWP(16,$tmp2,"",0)); 347*0Sstevel@tonic-gate 348*0Sstevel@tonic-gate &RIP1($A,$B,$C,$D,$E,$wl[ 0],$sl[ 0],-1); 349*0Sstevel@tonic-gate &RIP1($E,$A,$B,$C,$D,$wl[ 1],$sl[ 1],0); 350*0Sstevel@tonic-gate &RIP1($D,$E,$A,$B,$C,$wl[ 2],$sl[ 2],0); 351*0Sstevel@tonic-gate &RIP1($C,$D,$E,$A,$B,$wl[ 3],$sl[ 3],0); 352*0Sstevel@tonic-gate &RIP1($B,$C,$D,$E,$A,$wl[ 4],$sl[ 4],0); 353*0Sstevel@tonic-gate &RIP1($A,$B,$C,$D,$E,$wl[ 5],$sl[ 5],0); 354*0Sstevel@tonic-gate &RIP1($E,$A,$B,$C,$D,$wl[ 6],$sl[ 6],0); 355*0Sstevel@tonic-gate &RIP1($D,$E,$A,$B,$C,$wl[ 7],$sl[ 7],0); 356*0Sstevel@tonic-gate &RIP1($C,$D,$E,$A,$B,$wl[ 8],$sl[ 8],0); 357*0Sstevel@tonic-gate &RIP1($B,$C,$D,$E,$A,$wl[ 9],$sl[ 9],0); 358*0Sstevel@tonic-gate &RIP1($A,$B,$C,$D,$E,$wl[10],$sl[10],0); 359*0Sstevel@tonic-gate &RIP1($E,$A,$B,$C,$D,$wl[11],$sl[11],0); 360*0Sstevel@tonic-gate &RIP1($D,$E,$A,$B,$C,$wl[12],$sl[12],0); 361*0Sstevel@tonic-gate &RIP1($C,$D,$E,$A,$B,$wl[13],$sl[13],0); 362*0Sstevel@tonic-gate &RIP1($B,$C,$D,$E,$A,$wl[14],$sl[14],0); 363*0Sstevel@tonic-gate &RIP1($A,$B,$C,$D,$E,$wl[15],$sl[15],1,$wl[16]); 364*0Sstevel@tonic-gate 365*0Sstevel@tonic-gate &RIP2($E,$A,$B,$C,$D,$wl[16],$wl[17],$sl[16],$KL1,-1); 366*0Sstevel@tonic-gate &RIP2($D,$E,$A,$B,$C,$wl[17],$wl[18],$sl[17],$KL1,0); 367*0Sstevel@tonic-gate &RIP2($C,$D,$E,$A,$B,$wl[18],$wl[19],$sl[18],$KL1,0); 368*0Sstevel@tonic-gate &RIP2($B,$C,$D,$E,$A,$wl[19],$wl[20],$sl[19],$KL1,0); 369*0Sstevel@tonic-gate &RIP2($A,$B,$C,$D,$E,$wl[20],$wl[21],$sl[20],$KL1,0); 370*0Sstevel@tonic-gate &RIP2($E,$A,$B,$C,$D,$wl[21],$wl[22],$sl[21],$KL1,0); 371*0Sstevel@tonic-gate &RIP2($D,$E,$A,$B,$C,$wl[22],$wl[23],$sl[22],$KL1,0); 372*0Sstevel@tonic-gate &RIP2($C,$D,$E,$A,$B,$wl[23],$wl[24],$sl[23],$KL1,0); 373*0Sstevel@tonic-gate &RIP2($B,$C,$D,$E,$A,$wl[24],$wl[25],$sl[24],$KL1,0); 374*0Sstevel@tonic-gate &RIP2($A,$B,$C,$D,$E,$wl[25],$wl[26],$sl[25],$KL1,0); 375*0Sstevel@tonic-gate &RIP2($E,$A,$B,$C,$D,$wl[26],$wl[27],$sl[26],$KL1,0); 376*0Sstevel@tonic-gate &RIP2($D,$E,$A,$B,$C,$wl[27],$wl[28],$sl[27],$KL1,0); 377*0Sstevel@tonic-gate &RIP2($C,$D,$E,$A,$B,$wl[28],$wl[29],$sl[28],$KL1,0); 378*0Sstevel@tonic-gate &RIP2($B,$C,$D,$E,$A,$wl[29],$wl[30],$sl[29],$KL1,0); 379*0Sstevel@tonic-gate &RIP2($A,$B,$C,$D,$E,$wl[30],$wl[31],$sl[30],$KL1,0); 380*0Sstevel@tonic-gate &RIP2($E,$A,$B,$C,$D,$wl[31],$wl[32],$sl[31],$KL1,1); 381*0Sstevel@tonic-gate 382*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wl[32],$sl[32],$KL2,-1); 383*0Sstevel@tonic-gate &RIP3($C,$D,$E,$A,$B,$wl[33],$sl[33],$KL2,0); 384*0Sstevel@tonic-gate &RIP3($B,$C,$D,$E,$A,$wl[34],$sl[34],$KL2,0); 385*0Sstevel@tonic-gate &RIP3($A,$B,$C,$D,$E,$wl[35],$sl[35],$KL2,0); 386*0Sstevel@tonic-gate &RIP3($E,$A,$B,$C,$D,$wl[36],$sl[36],$KL2,0); 387*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wl[37],$sl[37],$KL2,0); 388*0Sstevel@tonic-gate &RIP3($C,$D,$E,$A,$B,$wl[38],$sl[38],$KL2,0); 389*0Sstevel@tonic-gate &RIP3($B,$C,$D,$E,$A,$wl[39],$sl[39],$KL2,0); 390*0Sstevel@tonic-gate &RIP3($A,$B,$C,$D,$E,$wl[40],$sl[40],$KL2,0); 391*0Sstevel@tonic-gate &RIP3($E,$A,$B,$C,$D,$wl[41],$sl[41],$KL2,0); 392*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wl[42],$sl[42],$KL2,0); 393*0Sstevel@tonic-gate &RIP3($C,$D,$E,$A,$B,$wl[43],$sl[43],$KL2,0); 394*0Sstevel@tonic-gate &RIP3($B,$C,$D,$E,$A,$wl[44],$sl[44],$KL2,0); 395*0Sstevel@tonic-gate &RIP3($A,$B,$C,$D,$E,$wl[45],$sl[45],$KL2,0); 396*0Sstevel@tonic-gate &RIP3($E,$A,$B,$C,$D,$wl[46],$sl[46],$KL2,0); 397*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wl[47],$sl[47],$KL2,1); 398*0Sstevel@tonic-gate 399*0Sstevel@tonic-gate &RIP4($C,$D,$E,$A,$B,$wl[48],$sl[48],$KL3,-1); 400*0Sstevel@tonic-gate &RIP4($B,$C,$D,$E,$A,$wl[49],$sl[49],$KL3,0); 401*0Sstevel@tonic-gate &RIP4($A,$B,$C,$D,$E,$wl[50],$sl[50],$KL3,0); 402*0Sstevel@tonic-gate &RIP4($E,$A,$B,$C,$D,$wl[51],$sl[51],$KL3,0); 403*0Sstevel@tonic-gate &RIP4($D,$E,$A,$B,$C,$wl[52],$sl[52],$KL3,0); 404*0Sstevel@tonic-gate &RIP4($C,$D,$E,$A,$B,$wl[53],$sl[53],$KL3,0); 405*0Sstevel@tonic-gate &RIP4($B,$C,$D,$E,$A,$wl[54],$sl[54],$KL3,0); 406*0Sstevel@tonic-gate &RIP4($A,$B,$C,$D,$E,$wl[55],$sl[55],$KL3,0); 407*0Sstevel@tonic-gate &RIP4($E,$A,$B,$C,$D,$wl[56],$sl[56],$KL3,0); 408*0Sstevel@tonic-gate &RIP4($D,$E,$A,$B,$C,$wl[57],$sl[57],$KL3,0); 409*0Sstevel@tonic-gate &RIP4($C,$D,$E,$A,$B,$wl[58],$sl[58],$KL3,0); 410*0Sstevel@tonic-gate &RIP4($B,$C,$D,$E,$A,$wl[59],$sl[59],$KL3,0); 411*0Sstevel@tonic-gate &RIP4($A,$B,$C,$D,$E,$wl[60],$sl[60],$KL3,0); 412*0Sstevel@tonic-gate &RIP4($E,$A,$B,$C,$D,$wl[61],$sl[61],$KL3,0); 413*0Sstevel@tonic-gate &RIP4($D,$E,$A,$B,$C,$wl[62],$sl[62],$KL3,0); 414*0Sstevel@tonic-gate &RIP4($C,$D,$E,$A,$B,$wl[63],$sl[63],$KL3,1); 415*0Sstevel@tonic-gate 416*0Sstevel@tonic-gate &RIP5($B,$C,$D,$E,$A,$wl[64],$sl[64],$KL4,-1); 417*0Sstevel@tonic-gate &RIP5($A,$B,$C,$D,$E,$wl[65],$sl[65],$KL4,0); 418*0Sstevel@tonic-gate &RIP5($E,$A,$B,$C,$D,$wl[66],$sl[66],$KL4,0); 419*0Sstevel@tonic-gate &RIP5($D,$E,$A,$B,$C,$wl[67],$sl[67],$KL4,0); 420*0Sstevel@tonic-gate &RIP5($C,$D,$E,$A,$B,$wl[68],$sl[68],$KL4,0); 421*0Sstevel@tonic-gate &RIP5($B,$C,$D,$E,$A,$wl[69],$sl[69],$KL4,0); 422*0Sstevel@tonic-gate &RIP5($A,$B,$C,$D,$E,$wl[70],$sl[70],$KL4,0); 423*0Sstevel@tonic-gate &RIP5($E,$A,$B,$C,$D,$wl[71],$sl[71],$KL4,0); 424*0Sstevel@tonic-gate &RIP5($D,$E,$A,$B,$C,$wl[72],$sl[72],$KL4,0); 425*0Sstevel@tonic-gate &RIP5($C,$D,$E,$A,$B,$wl[73],$sl[73],$KL4,0); 426*0Sstevel@tonic-gate &RIP5($B,$C,$D,$E,$A,$wl[74],$sl[74],$KL4,0); 427*0Sstevel@tonic-gate &RIP5($A,$B,$C,$D,$E,$wl[75],$sl[75],$KL4,0); 428*0Sstevel@tonic-gate &RIP5($E,$A,$B,$C,$D,$wl[76],$sl[76],$KL4,0); 429*0Sstevel@tonic-gate &RIP5($D,$E,$A,$B,$C,$wl[77],$sl[77],$KL4,0); 430*0Sstevel@tonic-gate &RIP5($C,$D,$E,$A,$B,$wl[78],$sl[78],$KL4,0); 431*0Sstevel@tonic-gate &RIP5($B,$C,$D,$E,$A,$wl[79],$sl[79],$KL4,1); 432*0Sstevel@tonic-gate 433*0Sstevel@tonic-gate # &mov($tmp2, &wparam(0)); # moved into last RIP5 434*0Sstevel@tonic-gate # &mov(&swtmp(16), $A); 435*0Sstevel@tonic-gate &mov($A, &DWP( 0,$tmp2,"",0)); 436*0Sstevel@tonic-gate &mov(&swtmp(16+1), $B); 437*0Sstevel@tonic-gate &mov(&swtmp(16+2), $C); 438*0Sstevel@tonic-gate &mov($B, &DWP( 4,$tmp2,"",0)); 439*0Sstevel@tonic-gate &mov(&swtmp(16+3), $D); 440*0Sstevel@tonic-gate &mov($C, &DWP( 8,$tmp2,"",0)); 441*0Sstevel@tonic-gate &mov(&swtmp(16+4), $E); 442*0Sstevel@tonic-gate &mov($D, &DWP(12,$tmp2,"",0)); 443*0Sstevel@tonic-gate &mov($E, &DWP(16,$tmp2,"",0)); 444*0Sstevel@tonic-gate 445*0Sstevel@tonic-gate &RIP5($A,$B,$C,$D,$E,$wr[ 0],$sr[ 0],$KR0,-2); 446*0Sstevel@tonic-gate &RIP5($E,$A,$B,$C,$D,$wr[ 1],$sr[ 1],$KR0,0); 447*0Sstevel@tonic-gate &RIP5($D,$E,$A,$B,$C,$wr[ 2],$sr[ 2],$KR0,0); 448*0Sstevel@tonic-gate &RIP5($C,$D,$E,$A,$B,$wr[ 3],$sr[ 3],$KR0,0); 449*0Sstevel@tonic-gate &RIP5($B,$C,$D,$E,$A,$wr[ 4],$sr[ 4],$KR0,0); 450*0Sstevel@tonic-gate &RIP5($A,$B,$C,$D,$E,$wr[ 5],$sr[ 5],$KR0,0); 451*0Sstevel@tonic-gate &RIP5($E,$A,$B,$C,$D,$wr[ 6],$sr[ 6],$KR0,0); 452*0Sstevel@tonic-gate &RIP5($D,$E,$A,$B,$C,$wr[ 7],$sr[ 7],$KR0,0); 453*0Sstevel@tonic-gate &RIP5($C,$D,$E,$A,$B,$wr[ 8],$sr[ 8],$KR0,0); 454*0Sstevel@tonic-gate &RIP5($B,$C,$D,$E,$A,$wr[ 9],$sr[ 9],$KR0,0); 455*0Sstevel@tonic-gate &RIP5($A,$B,$C,$D,$E,$wr[10],$sr[10],$KR0,0); 456*0Sstevel@tonic-gate &RIP5($E,$A,$B,$C,$D,$wr[11],$sr[11],$KR0,0); 457*0Sstevel@tonic-gate &RIP5($D,$E,$A,$B,$C,$wr[12],$sr[12],$KR0,0); 458*0Sstevel@tonic-gate &RIP5($C,$D,$E,$A,$B,$wr[13],$sr[13],$KR0,0); 459*0Sstevel@tonic-gate &RIP5($B,$C,$D,$E,$A,$wr[14],$sr[14],$KR0,0); 460*0Sstevel@tonic-gate &RIP5($A,$B,$C,$D,$E,$wr[15],$sr[15],$KR0,2); 461*0Sstevel@tonic-gate 462*0Sstevel@tonic-gate &RIP4($E,$A,$B,$C,$D,$wr[16],$sr[16],$KR1,-2); 463*0Sstevel@tonic-gate &RIP4($D,$E,$A,$B,$C,$wr[17],$sr[17],$KR1,0); 464*0Sstevel@tonic-gate &RIP4($C,$D,$E,$A,$B,$wr[18],$sr[18],$KR1,0); 465*0Sstevel@tonic-gate &RIP4($B,$C,$D,$E,$A,$wr[19],$sr[19],$KR1,0); 466*0Sstevel@tonic-gate &RIP4($A,$B,$C,$D,$E,$wr[20],$sr[20],$KR1,0); 467*0Sstevel@tonic-gate &RIP4($E,$A,$B,$C,$D,$wr[21],$sr[21],$KR1,0); 468*0Sstevel@tonic-gate &RIP4($D,$E,$A,$B,$C,$wr[22],$sr[22],$KR1,0); 469*0Sstevel@tonic-gate &RIP4($C,$D,$E,$A,$B,$wr[23],$sr[23],$KR1,0); 470*0Sstevel@tonic-gate &RIP4($B,$C,$D,$E,$A,$wr[24],$sr[24],$KR1,0); 471*0Sstevel@tonic-gate &RIP4($A,$B,$C,$D,$E,$wr[25],$sr[25],$KR1,0); 472*0Sstevel@tonic-gate &RIP4($E,$A,$B,$C,$D,$wr[26],$sr[26],$KR1,0); 473*0Sstevel@tonic-gate &RIP4($D,$E,$A,$B,$C,$wr[27],$sr[27],$KR1,0); 474*0Sstevel@tonic-gate &RIP4($C,$D,$E,$A,$B,$wr[28],$sr[28],$KR1,0); 475*0Sstevel@tonic-gate &RIP4($B,$C,$D,$E,$A,$wr[29],$sr[29],$KR1,0); 476*0Sstevel@tonic-gate &RIP4($A,$B,$C,$D,$E,$wr[30],$sr[30],$KR1,0); 477*0Sstevel@tonic-gate &RIP4($E,$A,$B,$C,$D,$wr[31],$sr[31],$KR1,2); 478*0Sstevel@tonic-gate 479*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wr[32],$sr[32],$KR2,-2); 480*0Sstevel@tonic-gate &RIP3($C,$D,$E,$A,$B,$wr[33],$sr[33],$KR2,0); 481*0Sstevel@tonic-gate &RIP3($B,$C,$D,$E,$A,$wr[34],$sr[34],$KR2,0); 482*0Sstevel@tonic-gate &RIP3($A,$B,$C,$D,$E,$wr[35],$sr[35],$KR2,0); 483*0Sstevel@tonic-gate &RIP3($E,$A,$B,$C,$D,$wr[36],$sr[36],$KR2,0); 484*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wr[37],$sr[37],$KR2,0); 485*0Sstevel@tonic-gate &RIP3($C,$D,$E,$A,$B,$wr[38],$sr[38],$KR2,0); 486*0Sstevel@tonic-gate &RIP3($B,$C,$D,$E,$A,$wr[39],$sr[39],$KR2,0); 487*0Sstevel@tonic-gate &RIP3($A,$B,$C,$D,$E,$wr[40],$sr[40],$KR2,0); 488*0Sstevel@tonic-gate &RIP3($E,$A,$B,$C,$D,$wr[41],$sr[41],$KR2,0); 489*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wr[42],$sr[42],$KR2,0); 490*0Sstevel@tonic-gate &RIP3($C,$D,$E,$A,$B,$wr[43],$sr[43],$KR2,0); 491*0Sstevel@tonic-gate &RIP3($B,$C,$D,$E,$A,$wr[44],$sr[44],$KR2,0); 492*0Sstevel@tonic-gate &RIP3($A,$B,$C,$D,$E,$wr[45],$sr[45],$KR2,0); 493*0Sstevel@tonic-gate &RIP3($E,$A,$B,$C,$D,$wr[46],$sr[46],$KR2,0); 494*0Sstevel@tonic-gate &RIP3($D,$E,$A,$B,$C,$wr[47],$sr[47],$KR2,2,$wr[48]); 495*0Sstevel@tonic-gate 496*0Sstevel@tonic-gate &RIP2($C,$D,$E,$A,$B,$wr[48],$wr[49],$sr[48],$KR3,-2); 497*0Sstevel@tonic-gate &RIP2($B,$C,$D,$E,$A,$wr[49],$wr[50],$sr[49],$KR3,0); 498*0Sstevel@tonic-gate &RIP2($A,$B,$C,$D,$E,$wr[50],$wr[51],$sr[50],$KR3,0); 499*0Sstevel@tonic-gate &RIP2($E,$A,$B,$C,$D,$wr[51],$wr[52],$sr[51],$KR3,0); 500*0Sstevel@tonic-gate &RIP2($D,$E,$A,$B,$C,$wr[52],$wr[53],$sr[52],$KR3,0); 501*0Sstevel@tonic-gate &RIP2($C,$D,$E,$A,$B,$wr[53],$wr[54],$sr[53],$KR3,0); 502*0Sstevel@tonic-gate &RIP2($B,$C,$D,$E,$A,$wr[54],$wr[55],$sr[54],$KR3,0); 503*0Sstevel@tonic-gate &RIP2($A,$B,$C,$D,$E,$wr[55],$wr[56],$sr[55],$KR3,0); 504*0Sstevel@tonic-gate &RIP2($E,$A,$B,$C,$D,$wr[56],$wr[57],$sr[56],$KR3,0); 505*0Sstevel@tonic-gate &RIP2($D,$E,$A,$B,$C,$wr[57],$wr[58],$sr[57],$KR3,0); 506*0Sstevel@tonic-gate &RIP2($C,$D,$E,$A,$B,$wr[58],$wr[59],$sr[58],$KR3,0); 507*0Sstevel@tonic-gate &RIP2($B,$C,$D,$E,$A,$wr[59],$wr[60],$sr[59],$KR3,0); 508*0Sstevel@tonic-gate &RIP2($A,$B,$C,$D,$E,$wr[60],$wr[61],$sr[60],$KR3,0); 509*0Sstevel@tonic-gate &RIP2($E,$A,$B,$C,$D,$wr[61],$wr[62],$sr[61],$KR3,0); 510*0Sstevel@tonic-gate &RIP2($D,$E,$A,$B,$C,$wr[62],$wr[63],$sr[62],$KR3,0); 511*0Sstevel@tonic-gate &RIP2($C,$D,$E,$A,$B,$wr[63],$wr[64],$sr[63],$KR3,2); 512*0Sstevel@tonic-gate 513*0Sstevel@tonic-gate &RIP1($B,$C,$D,$E,$A,$wr[64],$sr[64],-2); 514*0Sstevel@tonic-gate &RIP1($A,$B,$C,$D,$E,$wr[65],$sr[65],0); 515*0Sstevel@tonic-gate &RIP1($E,$A,$B,$C,$D,$wr[66],$sr[66],0); 516*0Sstevel@tonic-gate &RIP1($D,$E,$A,$B,$C,$wr[67],$sr[67],0); 517*0Sstevel@tonic-gate &RIP1($C,$D,$E,$A,$B,$wr[68],$sr[68],0); 518*0Sstevel@tonic-gate &RIP1($B,$C,$D,$E,$A,$wr[69],$sr[69],0); 519*0Sstevel@tonic-gate &RIP1($A,$B,$C,$D,$E,$wr[70],$sr[70],0); 520*0Sstevel@tonic-gate &RIP1($E,$A,$B,$C,$D,$wr[71],$sr[71],0); 521*0Sstevel@tonic-gate &RIP1($D,$E,$A,$B,$C,$wr[72],$sr[72],0); 522*0Sstevel@tonic-gate &RIP1($C,$D,$E,$A,$B,$wr[73],$sr[73],0); 523*0Sstevel@tonic-gate &RIP1($B,$C,$D,$E,$A,$wr[74],$sr[74],0); 524*0Sstevel@tonic-gate &RIP1($A,$B,$C,$D,$E,$wr[75],$sr[75],0); 525*0Sstevel@tonic-gate &RIP1($E,$A,$B,$C,$D,$wr[76],$sr[76],0); 526*0Sstevel@tonic-gate &RIP1($D,$E,$A,$B,$C,$wr[77],$sr[77],0); 527*0Sstevel@tonic-gate &RIP1($C,$D,$E,$A,$B,$wr[78],$sr[78],0); 528*0Sstevel@tonic-gate &RIP1($B,$C,$D,$E,$A,$wr[79],$sr[79],2); 529*0Sstevel@tonic-gate 530*0Sstevel@tonic-gate # &mov($tmp2, &wparam(0)); # Moved into last round 531*0Sstevel@tonic-gate 532*0Sstevel@tonic-gate &mov($tmp1, &DWP( 4,$tmp2,"",0)); # ctx->B 533*0Sstevel@tonic-gate &add($D, $tmp1); 534*0Sstevel@tonic-gate &mov($tmp1, &swtmp(16+2)); # $c 535*0Sstevel@tonic-gate &add($D, $tmp1); 536*0Sstevel@tonic-gate 537*0Sstevel@tonic-gate &mov($tmp1, &DWP( 8,$tmp2,"",0)); # ctx->C 538*0Sstevel@tonic-gate &add($E, $tmp1); 539*0Sstevel@tonic-gate &mov($tmp1, &swtmp(16+3)); # $d 540*0Sstevel@tonic-gate &add($E, $tmp1); 541*0Sstevel@tonic-gate 542*0Sstevel@tonic-gate &mov($tmp1, &DWP(12,$tmp2,"",0)); # ctx->D 543*0Sstevel@tonic-gate &add($A, $tmp1); 544*0Sstevel@tonic-gate &mov($tmp1, &swtmp(16+4)); # $e 545*0Sstevel@tonic-gate &add($A, $tmp1); 546*0Sstevel@tonic-gate 547*0Sstevel@tonic-gate 548*0Sstevel@tonic-gate &mov($tmp1, &DWP(16,$tmp2,"",0)); # ctx->E 549*0Sstevel@tonic-gate &add($B, $tmp1); 550*0Sstevel@tonic-gate &mov($tmp1, &swtmp(16+0)); # $a 551*0Sstevel@tonic-gate &add($B, $tmp1); 552*0Sstevel@tonic-gate 553*0Sstevel@tonic-gate &mov($tmp1, &DWP( 0,$tmp2,"",0)); # ctx->A 554*0Sstevel@tonic-gate &add($C, $tmp1); 555*0Sstevel@tonic-gate &mov($tmp1, &swtmp(16+1)); # $b 556*0Sstevel@tonic-gate &add($C, $tmp1); 557*0Sstevel@tonic-gate 558*0Sstevel@tonic-gate &mov($tmp1, &wparam(2)); 559*0Sstevel@tonic-gate 560*0Sstevel@tonic-gate &mov(&DWP( 0,$tmp2,"",0), $D); 561*0Sstevel@tonic-gate &mov(&DWP( 4,$tmp2,"",0), $E); 562*0Sstevel@tonic-gate &mov(&DWP( 8,$tmp2,"",0), $A); 563*0Sstevel@tonic-gate &sub($tmp1,1); 564*0Sstevel@tonic-gate &mov(&DWP(12,$tmp2,"",0), $B); 565*0Sstevel@tonic-gate &mov(&DWP(16,$tmp2,"",0), $C); 566*0Sstevel@tonic-gate 567*0Sstevel@tonic-gate &jle(&label("get_out")); 568*0Sstevel@tonic-gate 569*0Sstevel@tonic-gate &mov(&wparam(2),$tmp1); 570*0Sstevel@tonic-gate &mov($C, $A); 571*0Sstevel@tonic-gate &mov($tmp1, &wparam(1)); 572*0Sstevel@tonic-gate &mov($A, $D); 573*0Sstevel@tonic-gate &add($tmp1, 64); 574*0Sstevel@tonic-gate &mov($B, $E); 575*0Sstevel@tonic-gate &mov(&wparam(1),$tmp1); 576*0Sstevel@tonic-gate 577*0Sstevel@tonic-gate &jmp(&label("start")); 578*0Sstevel@tonic-gate 579*0Sstevel@tonic-gate &set_label("get_out"); 580*0Sstevel@tonic-gate 581*0Sstevel@tonic-gate &stack_pop(16+5+6); 582*0Sstevel@tonic-gate 583*0Sstevel@tonic-gate &pop("ebx"); 584*0Sstevel@tonic-gate &pop("ebp"); 585*0Sstevel@tonic-gate &pop("edi"); 586*0Sstevel@tonic-gate &pop("esi"); 587*0Sstevel@tonic-gate &ret(); 588*0Sstevel@tonic-gate &function_end_B($name); 589*0Sstevel@tonic-gate } 590*0Sstevel@tonic-gate 591