1160814Ssimon#!/usr/bin/perl -w
2160814Ssimon#
3160814Ssimon# MD5 optimized for AMD64.
4160814Ssimon#
5160814Ssimon# Author: Marc Bevand <bevand_m (at) epita.fr>
6160814Ssimon# Licence: I hereby disclaim the copyright on this code and place it
7160814Ssimon# in the public domain.
8160814Ssimon#
9160814Ssimon
10160814Ssimonuse strict;
11160814Ssimon
12160814Ssimonmy $code;
13160814Ssimon
14160814Ssimon# round1_step() does:
15160814Ssimon#   dst = x + ((dst + F(x,y,z) + X[k] + T_i) <<< s)
16160814Ssimon#   %r10d = X[k_next]
17160814Ssimon#   %r11d = z' (copy of z for the next step)
18238405Sjkim# Each round1_step() takes about 5.3 clocks (9 instructions, 1.7 IPC)
19160814Ssimonsub round1_step
20160814Ssimon{
21160814Ssimon    my ($pos, $dst, $x, $y, $z, $k_next, $T_i, $s) = @_;
22160814Ssimon    $code .= " mov	0*4(%rsi),	%r10d		/* (NEXT STEP) X[0] */\n" if ($pos == -1);
23160814Ssimon    $code .= " mov	%edx,		%r11d		/* (NEXT STEP) z' = %edx */\n" if ($pos == -1);
24160814Ssimon    $code .= <<EOF;
25160814Ssimon	xor	$y,		%r11d		/* y ^ ... */
26160814Ssimon	lea	$T_i($dst,%r10d),$dst		/* Const + dst + ... */
27160814Ssimon	and	$x,		%r11d		/* x & ... */
28160814Ssimon	xor	$z,		%r11d		/* z ^ ... */
29160814Ssimon	mov	$k_next*4(%rsi),%r10d		/* (NEXT STEP) X[$k_next] */
30160814Ssimon	add	%r11d,		$dst		/* dst += ... */
31160814Ssimon	rol	\$$s,		$dst		/* dst <<< s */
32160814Ssimon	mov	$y,		%r11d		/* (NEXT STEP) z' = $y */
33160814Ssimon	add	$x,		$dst		/* dst += x */
34160814SsimonEOF
35160814Ssimon}
36160814Ssimon
37160814Ssimon# round2_step() does:
38160814Ssimon#   dst = x + ((dst + G(x,y,z) + X[k] + T_i) <<< s)
39160814Ssimon#   %r10d = X[k_next]
40238405Sjkim#   %r11d = z' (copy of z for the next step)
41238405Sjkim#   %r12d = z' (copy of z for the next step)
42238405Sjkim# Each round2_step() takes about 5.4 clocks (11 instructions, 2.0 IPC)
43160814Ssimonsub round2_step
44160814Ssimon{
45160814Ssimon    my ($pos, $dst, $x, $y, $z, $k_next, $T_i, $s) = @_;
46160814Ssimon    $code .= " mov	1*4(%rsi),	%r10d		/* (NEXT STEP) X[1] */\n" if ($pos == -1);
47238405Sjkim    $code .= " mov	%edx,		%r11d		/* (NEXT STEP) z' = %edx */\n" if ($pos == -1);
48238405Sjkim    $code .= " mov	%edx,		%r12d		/* (NEXT STEP) z' = %edx */\n" if ($pos == -1);
49160814Ssimon    $code .= <<EOF;
50238405Sjkim	not	%r11d				/* not z */
51160814Ssimon	lea	$T_i($dst,%r10d),$dst		/* Const + dst + ... */
52238405Sjkim	and	$x,		%r12d		/* x & z */
53238405Sjkim	and	$y,		%r11d		/* y & (not z) */
54160814Ssimon	mov	$k_next*4(%rsi),%r10d		/* (NEXT STEP) X[$k_next] */
55238405Sjkim	or	%r11d,		%r12d		/* (y & (not z)) | (x & z) */
56238405Sjkim	mov	$y,		%r11d		/* (NEXT STEP) z' = $y */
57238405Sjkim	add	%r12d,		$dst		/* dst += ... */
58238405Sjkim	mov	$y,		%r12d		/* (NEXT STEP) z' = $y */
59160814Ssimon	rol	\$$s,		$dst		/* dst <<< s */
60160814Ssimon	add	$x,		$dst		/* dst += x */
61160814SsimonEOF
62160814Ssimon}
63160814Ssimon
64160814Ssimon# round3_step() does:
65160814Ssimon#   dst = x + ((dst + H(x,y,z) + X[k] + T_i) <<< s)
66160814Ssimon#   %r10d = X[k_next]
67160814Ssimon#   %r11d = y' (copy of y for the next step)
68238405Sjkim# Each round3_step() takes about 4.2 clocks (8 instructions, 1.9 IPC)
69160814Ssimonsub round3_step
70160814Ssimon{
71160814Ssimon    my ($pos, $dst, $x, $y, $z, $k_next, $T_i, $s) = @_;
72160814Ssimon    $code .= " mov	5*4(%rsi),	%r10d		/* (NEXT STEP) X[5] */\n" if ($pos == -1);
73160814Ssimon    $code .= " mov	%ecx,		%r11d		/* (NEXT STEP) y' = %ecx */\n" if ($pos == -1);
74160814Ssimon    $code .= <<EOF;
75160814Ssimon	lea	$T_i($dst,%r10d),$dst		/* Const + dst + ... */
76160814Ssimon	mov	$k_next*4(%rsi),%r10d		/* (NEXT STEP) X[$k_next] */
77160814Ssimon	xor	$z,		%r11d		/* z ^ ... */
78160814Ssimon	xor	$x,		%r11d		/* x ^ ... */
79160814Ssimon	add	%r11d,		$dst		/* dst += ... */
80160814Ssimon	rol	\$$s,		$dst		/* dst <<< s */
81160814Ssimon	mov	$x,		%r11d		/* (NEXT STEP) y' = $x */
82160814Ssimon	add	$x,		$dst		/* dst += x */
83160814SsimonEOF
84160814Ssimon}
85160814Ssimon
86160814Ssimon# round4_step() does:
87160814Ssimon#   dst = x + ((dst + I(x,y,z) + X[k] + T_i) <<< s)
88160814Ssimon#   %r10d = X[k_next]
89160814Ssimon#   %r11d = not z' (copy of not z for the next step)
90238405Sjkim# Each round4_step() takes about 5.2 clocks (9 instructions, 1.7 IPC)
91160814Ssimonsub round4_step
92160814Ssimon{
93160814Ssimon    my ($pos, $dst, $x, $y, $z, $k_next, $T_i, $s) = @_;
94160814Ssimon    $code .= " mov	0*4(%rsi),	%r10d		/* (NEXT STEP) X[0] */\n" if ($pos == -1);
95160814Ssimon    $code .= " mov	\$0xffffffff,	%r11d\n" if ($pos == -1);
96160814Ssimon    $code .= " xor	%edx,		%r11d		/* (NEXT STEP) not z' = not %edx*/\n"
97160814Ssimon    if ($pos == -1);
98160814Ssimon    $code .= <<EOF;
99160814Ssimon	lea	$T_i($dst,%r10d),$dst		/* Const + dst + ... */
100160814Ssimon	or	$x,		%r11d		/* x | ... */
101160814Ssimon	xor	$y,		%r11d		/* y ^ ... */
102160814Ssimon	add	%r11d,		$dst		/* dst += ... */
103160814Ssimon	mov	$k_next*4(%rsi),%r10d		/* (NEXT STEP) X[$k_next] */
104160814Ssimon	mov	\$0xffffffff,	%r11d
105160814Ssimon	rol	\$$s,		$dst		/* dst <<< s */
106160814Ssimon	xor	$y,		%r11d		/* (NEXT STEP) not z' = not $y */
107160814Ssimon	add	$x,		$dst		/* dst += x */
108160814SsimonEOF
109160814Ssimon}
110160814Ssimon
111279264Sdelphijno warnings qw(uninitialized);
112238405Sjkimmy $flavour = shift;
113238405Sjkimmy $output  = shift;
114238405Sjkimif ($flavour =~ /\./) { $output = $flavour; undef $flavour; }
115160814Ssimon
116238405Sjkimmy $win64=0; $win64=1 if ($flavour =~ /[nm]asm|mingw64/ || $output =~ /\.asm$/);
117238405Sjkim
118238405Sjkim$0 =~ m/(.*[\/\\])[^\/\\]+$/; my $dir=$1; my $xlate;
119238405Sjkim( $xlate="${dir}x86_64-xlate.pl" and -f $xlate ) or
120238405Sjkim( $xlate="${dir}../../perlasm/x86_64-xlate.pl" and -f $xlate) or
121238405Sjkimdie "can't locate x86_64-xlate.pl";
122238405Sjkim
123246772Sjkimopen OUT,"| \"$^X\" $xlate $flavour $output";
124246772Sjkim*STDOUT=*OUT;
125238405Sjkim
126160814Ssimon$code .= <<EOF;
127160814Ssimon.text
128160814Ssimon.align 16
129160814Ssimon
130194206Ssimon.globl md5_block_asm_data_order
131194206Ssimon.type md5_block_asm_data_order,\@function,3
132194206Ssimonmd5_block_asm_data_order:
133160814Ssimon	push	%rbp
134160814Ssimon	push	%rbx
135238405Sjkim	push	%r12
136160814Ssimon	push	%r14
137160814Ssimon	push	%r15
138238405Sjkim.Lprologue:
139160814Ssimon
140160814Ssimon	# rdi = arg #1 (ctx, MD5_CTX pointer)
141160814Ssimon	# rsi = arg #2 (ptr, data pointer)
142160814Ssimon	# rdx = arg #3 (nbr, number of 16-word blocks to process)
143160814Ssimon	mov	%rdi,		%rbp	# rbp = ctx
144160814Ssimon	shl	\$6,		%rdx	# rdx = nbr in bytes
145160814Ssimon	lea	(%rsi,%rdx),	%rdi	# rdi = end
146160814Ssimon	mov	0*4(%rbp),	%eax	# eax = ctx->A
147160814Ssimon	mov	1*4(%rbp),	%ebx	# ebx = ctx->B
148160814Ssimon	mov	2*4(%rbp),	%ecx	# ecx = ctx->C
149160814Ssimon	mov	3*4(%rbp),	%edx	# edx = ctx->D
150160814Ssimon	# end is 'rdi'
151160814Ssimon	# ptr is 'rsi'
152160814Ssimon	# A is 'eax'
153160814Ssimon	# B is 'ebx'
154160814Ssimon	# C is 'ecx'
155160814Ssimon	# D is 'edx'
156160814Ssimon
157160814Ssimon	cmp	%rdi,		%rsi		# cmp end with ptr
158160814Ssimon	je	.Lend				# jmp if ptr == end
159160814Ssimon
160160814Ssimon	# BEGIN of loop over 16-word blocks
161160814Ssimon.Lloop:	# save old values of A, B, C, D
162160814Ssimon	mov	%eax,		%r8d
163160814Ssimon	mov	%ebx,		%r9d
164160814Ssimon	mov	%ecx,		%r14d
165160814Ssimon	mov	%edx,		%r15d
166160814SsimonEOF
167160814Ssimonround1_step(-1,'%eax','%ebx','%ecx','%edx', '1','0xd76aa478', '7');
168160814Ssimonround1_step( 0,'%edx','%eax','%ebx','%ecx', '2','0xe8c7b756','12');
169160814Ssimonround1_step( 0,'%ecx','%edx','%eax','%ebx', '3','0x242070db','17');
170160814Ssimonround1_step( 0,'%ebx','%ecx','%edx','%eax', '4','0xc1bdceee','22');
171160814Ssimonround1_step( 0,'%eax','%ebx','%ecx','%edx', '5','0xf57c0faf', '7');
172160814Ssimonround1_step( 0,'%edx','%eax','%ebx','%ecx', '6','0x4787c62a','12');
173160814Ssimonround1_step( 0,'%ecx','%edx','%eax','%ebx', '7','0xa8304613','17');
174160814Ssimonround1_step( 0,'%ebx','%ecx','%edx','%eax', '8','0xfd469501','22');
175160814Ssimonround1_step( 0,'%eax','%ebx','%ecx','%edx', '9','0x698098d8', '7');
176160814Ssimonround1_step( 0,'%edx','%eax','%ebx','%ecx','10','0x8b44f7af','12');
177160814Ssimonround1_step( 0,'%ecx','%edx','%eax','%ebx','11','0xffff5bb1','17');
178160814Ssimonround1_step( 0,'%ebx','%ecx','%edx','%eax','12','0x895cd7be','22');
179160814Ssimonround1_step( 0,'%eax','%ebx','%ecx','%edx','13','0x6b901122', '7');
180160814Ssimonround1_step( 0,'%edx','%eax','%ebx','%ecx','14','0xfd987193','12');
181160814Ssimonround1_step( 0,'%ecx','%edx','%eax','%ebx','15','0xa679438e','17');
182160814Ssimonround1_step( 1,'%ebx','%ecx','%edx','%eax', '0','0x49b40821','22');
183160814Ssimon
184160814Ssimonround2_step(-1,'%eax','%ebx','%ecx','%edx', '6','0xf61e2562', '5');
185160814Ssimonround2_step( 0,'%edx','%eax','%ebx','%ecx','11','0xc040b340', '9');
186160814Ssimonround2_step( 0,'%ecx','%edx','%eax','%ebx', '0','0x265e5a51','14');
187160814Ssimonround2_step( 0,'%ebx','%ecx','%edx','%eax', '5','0xe9b6c7aa','20');
188160814Ssimonround2_step( 0,'%eax','%ebx','%ecx','%edx','10','0xd62f105d', '5');
189160814Ssimonround2_step( 0,'%edx','%eax','%ebx','%ecx','15', '0x2441453', '9');
190160814Ssimonround2_step( 0,'%ecx','%edx','%eax','%ebx', '4','0xd8a1e681','14');
191160814Ssimonround2_step( 0,'%ebx','%ecx','%edx','%eax', '9','0xe7d3fbc8','20');
192160814Ssimonround2_step( 0,'%eax','%ebx','%ecx','%edx','14','0x21e1cde6', '5');
193160814Ssimonround2_step( 0,'%edx','%eax','%ebx','%ecx', '3','0xc33707d6', '9');
194160814Ssimonround2_step( 0,'%ecx','%edx','%eax','%ebx', '8','0xf4d50d87','14');
195160814Ssimonround2_step( 0,'%ebx','%ecx','%edx','%eax','13','0x455a14ed','20');
196160814Ssimonround2_step( 0,'%eax','%ebx','%ecx','%edx', '2','0xa9e3e905', '5');
197160814Ssimonround2_step( 0,'%edx','%eax','%ebx','%ecx', '7','0xfcefa3f8', '9');
198160814Ssimonround2_step( 0,'%ecx','%edx','%eax','%ebx','12','0x676f02d9','14');
199160814Ssimonround2_step( 1,'%ebx','%ecx','%edx','%eax', '0','0x8d2a4c8a','20');
200160814Ssimon
201160814Ssimonround3_step(-1,'%eax','%ebx','%ecx','%edx', '8','0xfffa3942', '4');
202160814Ssimonround3_step( 0,'%edx','%eax','%ebx','%ecx','11','0x8771f681','11');
203160814Ssimonround3_step( 0,'%ecx','%edx','%eax','%ebx','14','0x6d9d6122','16');
204160814Ssimonround3_step( 0,'%ebx','%ecx','%edx','%eax', '1','0xfde5380c','23');
205160814Ssimonround3_step( 0,'%eax','%ebx','%ecx','%edx', '4','0xa4beea44', '4');
206160814Ssimonround3_step( 0,'%edx','%eax','%ebx','%ecx', '7','0x4bdecfa9','11');
207160814Ssimonround3_step( 0,'%ecx','%edx','%eax','%ebx','10','0xf6bb4b60','16');
208160814Ssimonround3_step( 0,'%ebx','%ecx','%edx','%eax','13','0xbebfbc70','23');
209160814Ssimonround3_step( 0,'%eax','%ebx','%ecx','%edx', '0','0x289b7ec6', '4');
210160814Ssimonround3_step( 0,'%edx','%eax','%ebx','%ecx', '3','0xeaa127fa','11');
211160814Ssimonround3_step( 0,'%ecx','%edx','%eax','%ebx', '6','0xd4ef3085','16');
212160814Ssimonround3_step( 0,'%ebx','%ecx','%edx','%eax', '9', '0x4881d05','23');
213160814Ssimonround3_step( 0,'%eax','%ebx','%ecx','%edx','12','0xd9d4d039', '4');
214160814Ssimonround3_step( 0,'%edx','%eax','%ebx','%ecx','15','0xe6db99e5','11');
215160814Ssimonround3_step( 0,'%ecx','%edx','%eax','%ebx', '2','0x1fa27cf8','16');
216160814Ssimonround3_step( 1,'%ebx','%ecx','%edx','%eax', '0','0xc4ac5665','23');
217160814Ssimon
218160814Ssimonround4_step(-1,'%eax','%ebx','%ecx','%edx', '7','0xf4292244', '6');
219160814Ssimonround4_step( 0,'%edx','%eax','%ebx','%ecx','14','0x432aff97','10');
220160814Ssimonround4_step( 0,'%ecx','%edx','%eax','%ebx', '5','0xab9423a7','15');
221160814Ssimonround4_step( 0,'%ebx','%ecx','%edx','%eax','12','0xfc93a039','21');
222160814Ssimonround4_step( 0,'%eax','%ebx','%ecx','%edx', '3','0x655b59c3', '6');
223160814Ssimonround4_step( 0,'%edx','%eax','%ebx','%ecx','10','0x8f0ccc92','10');
224160814Ssimonround4_step( 0,'%ecx','%edx','%eax','%ebx', '1','0xffeff47d','15');
225160814Ssimonround4_step( 0,'%ebx','%ecx','%edx','%eax', '8','0x85845dd1','21');
226160814Ssimonround4_step( 0,'%eax','%ebx','%ecx','%edx','15','0x6fa87e4f', '6');
227160814Ssimonround4_step( 0,'%edx','%eax','%ebx','%ecx', '6','0xfe2ce6e0','10');
228160814Ssimonround4_step( 0,'%ecx','%edx','%eax','%ebx','13','0xa3014314','15');
229160814Ssimonround4_step( 0,'%ebx','%ecx','%edx','%eax', '4','0x4e0811a1','21');
230160814Ssimonround4_step( 0,'%eax','%ebx','%ecx','%edx','11','0xf7537e82', '6');
231160814Ssimonround4_step( 0,'%edx','%eax','%ebx','%ecx', '2','0xbd3af235','10');
232160814Ssimonround4_step( 0,'%ecx','%edx','%eax','%ebx', '9','0x2ad7d2bb','15');
233160814Ssimonround4_step( 1,'%ebx','%ecx','%edx','%eax', '0','0xeb86d391','21');
234160814Ssimon$code .= <<EOF;
235160814Ssimon	# add old values of A, B, C, D
236160814Ssimon	add	%r8d,	%eax
237160814Ssimon	add	%r9d,	%ebx
238160814Ssimon	add	%r14d,	%ecx
239160814Ssimon	add	%r15d,	%edx
240160814Ssimon
241160814Ssimon	# loop control
242160814Ssimon	add	\$64,		%rsi		# ptr += 64
243160814Ssimon	cmp	%rdi,		%rsi		# cmp end with ptr
244160814Ssimon	jb	.Lloop				# jmp if ptr < end
245160814Ssimon	# END of loop over 16-word blocks
246160814Ssimon
247160814Ssimon.Lend:
248160814Ssimon	mov	%eax,		0*4(%rbp)	# ctx->A = A
249160814Ssimon	mov	%ebx,		1*4(%rbp)	# ctx->B = B
250160814Ssimon	mov	%ecx,		2*4(%rbp)	# ctx->C = C
251160814Ssimon	mov	%edx,		3*4(%rbp)	# ctx->D = D
252160814Ssimon
253238405Sjkim	mov	(%rsp),%r15
254238405Sjkim	mov	8(%rsp),%r14
255238405Sjkim	mov	16(%rsp),%r12
256238405Sjkim	mov	24(%rsp),%rbx
257238405Sjkim	mov	32(%rsp),%rbp
258238405Sjkim	add	\$40,%rsp
259238405Sjkim.Lepilogue:
260238405Sjkim	ret
261238405Sjkim.size md5_block_asm_data_order,.-md5_block_asm_data_order
262238405SjkimEOF
263238405Sjkim
264238405Sjkim# EXCEPTION_DISPOSITION handler (EXCEPTION_RECORD *rec,ULONG64 frame,
265238405Sjkim#		CONTEXT *context,DISPATCHER_CONTEXT *disp)
266238405Sjkimif ($win64) {
267238405Sjkimmy $rec="%rcx";
268238405Sjkimmy $frame="%rdx";
269238405Sjkimmy $context="%r8";
270238405Sjkimmy $disp="%r9";
271238405Sjkim
272238405Sjkim$code.=<<___;
273238405Sjkim.extern	__imp_RtlVirtualUnwind
274238405Sjkim.type	se_handler,\@abi-omnipotent
275238405Sjkim.align	16
276238405Sjkimse_handler:
277238405Sjkim	push	%rsi
278238405Sjkim	push	%rdi
279238405Sjkim	push	%rbx
280238405Sjkim	push	%rbp
281238405Sjkim	push	%r12
282238405Sjkim	push	%r13
283238405Sjkim	push	%r14
284238405Sjkim	push	%r15
285238405Sjkim	pushfq
286238405Sjkim	sub	\$64,%rsp
287238405Sjkim
288238405Sjkim	mov	120($context),%rax	# pull context->Rax
289238405Sjkim	mov	248($context),%rbx	# pull context->Rip
290238405Sjkim
291238405Sjkim	lea	.Lprologue(%rip),%r10
292238405Sjkim	cmp	%r10,%rbx		# context->Rip<.Lprologue
293238405Sjkim	jb	.Lin_prologue
294238405Sjkim
295238405Sjkim	mov	152($context),%rax	# pull context->Rsp
296238405Sjkim
297238405Sjkim	lea	.Lepilogue(%rip),%r10
298238405Sjkim	cmp	%r10,%rbx		# context->Rip>=.Lepilogue
299238405Sjkim	jae	.Lin_prologue
300238405Sjkim
301238405Sjkim	lea	40(%rax),%rax
302238405Sjkim
303238405Sjkim	mov	-8(%rax),%rbp
304238405Sjkim	mov	-16(%rax),%rbx
305238405Sjkim	mov	-24(%rax),%r12
306238405Sjkim	mov	-32(%rax),%r14
307238405Sjkim	mov	-40(%rax),%r15
308238405Sjkim	mov	%rbx,144($context)	# restore context->Rbx
309238405Sjkim	mov	%rbp,160($context)	# restore context->Rbp
310238405Sjkim	mov	%r12,216($context)	# restore context->R12
311238405Sjkim	mov	%r14,232($context)	# restore context->R14
312238405Sjkim	mov	%r15,240($context)	# restore context->R15
313238405Sjkim
314238405Sjkim.Lin_prologue:
315238405Sjkim	mov	8(%rax),%rdi
316238405Sjkim	mov	16(%rax),%rsi
317238405Sjkim	mov	%rax,152($context)	# restore context->Rsp
318238405Sjkim	mov	%rsi,168($context)	# restore context->Rsi
319238405Sjkim	mov	%rdi,176($context)	# restore context->Rdi
320238405Sjkim
321238405Sjkim	mov	40($disp),%rdi		# disp->ContextRecord
322238405Sjkim	mov	$context,%rsi		# context
323238405Sjkim	mov	\$154,%ecx		# sizeof(CONTEXT)
324238405Sjkim	.long	0xa548f3fc		# cld; rep movsq
325238405Sjkim
326238405Sjkim	mov	$disp,%rsi
327238405Sjkim	xor	%rcx,%rcx		# arg1, UNW_FLAG_NHANDLER
328238405Sjkim	mov	8(%rsi),%rdx		# arg2, disp->ImageBase
329238405Sjkim	mov	0(%rsi),%r8		# arg3, disp->ControlPc
330238405Sjkim	mov	16(%rsi),%r9		# arg4, disp->FunctionEntry
331238405Sjkim	mov	40(%rsi),%r10		# disp->ContextRecord
332238405Sjkim	lea	56(%rsi),%r11		# &disp->HandlerData
333238405Sjkim	lea	24(%rsi),%r12		# &disp->EstablisherFrame
334238405Sjkim	mov	%r10,32(%rsp)		# arg5
335238405Sjkim	mov	%r11,40(%rsp)		# arg6
336238405Sjkim	mov	%r12,48(%rsp)		# arg7
337238405Sjkim	mov	%rcx,56(%rsp)		# arg8, (NULL)
338238405Sjkim	call	*__imp_RtlVirtualUnwind(%rip)
339238405Sjkim
340238405Sjkim	mov	\$1,%eax		# ExceptionContinueSearch
341238405Sjkim	add	\$64,%rsp
342238405Sjkim	popfq
343160814Ssimon	pop	%r15
344160814Ssimon	pop	%r14
345238405Sjkim	pop	%r13
346238405Sjkim	pop	%r12
347238405Sjkim	pop	%rbp
348160814Ssimon	pop	%rbx
349238405Sjkim	pop	%rdi
350238405Sjkim	pop	%rsi
351160814Ssimon	ret
352238405Sjkim.size	se_handler,.-se_handler
353160814Ssimon
354238405Sjkim.section	.pdata
355238405Sjkim.align	4
356238405Sjkim	.rva	.LSEH_begin_md5_block_asm_data_order
357238405Sjkim	.rva	.LSEH_end_md5_block_asm_data_order
358238405Sjkim	.rva	.LSEH_info_md5_block_asm_data_order
359238405Sjkim
360238405Sjkim.section	.xdata
361238405Sjkim.align	8
362238405Sjkim.LSEH_info_md5_block_asm_data_order:
363238405Sjkim	.byte	9,0,0,0
364238405Sjkim	.rva	se_handler
365238405Sjkim___
366238405Sjkim}
367238405Sjkim
368160814Ssimonprint $code;
369160814Ssimon
370160814Ssimonclose STDOUT;
371