; This file is generated from a similarly-named Perl script in the BoringSSL
; source tree. Do not edit by hand.

default	rel
%define XMMWORD
%define YMMWORD
%define ZMMWORD
section	.text code align=64


ALIGN	16
_x86_64_AES_encrypt_compact:

	lea	r8,[128+r14]
	mov	edi,DWORD[((0-128))+r8]
	mov	ebp,DWORD[((32-128))+r8]
	mov	r10d,DWORD[((64-128))+r8]
	mov	r11d,DWORD[((96-128))+r8]
	mov	edi,DWORD[((128-128))+r8]
	mov	ebp,DWORD[((160-128))+r8]
	mov	r10d,DWORD[((192-128))+r8]
	mov	r11d,DWORD[((224-128))+r8]
	jmp	NEAR $L$enc_loop_compact
ALIGN	16
$L$enc_loop_compact:
	xor	eax,DWORD[r15]
	xor	ebx,DWORD[4+r15]
	xor	ecx,DWORD[8+r15]
	xor	edx,DWORD[12+r15]
	lea	r15,[16+r15]
	movzx	r10d,al
	movzx	r11d,bl
	movzx	r12d,cl
	movzx	r8d,dl
	movzx	esi,bh
	movzx	edi,ch
	shr	ecx,16
	movzx	ebp,dh
	movzx	r10d,BYTE[r10*1+r14]
	movzx	r11d,BYTE[r11*1+r14]
	movzx	r12d,BYTE[r12*1+r14]
	movzx	r8d,BYTE[r8*1+r14]

	movzx	r9d,BYTE[rsi*1+r14]
	movzx	esi,ah
	movzx	r13d,BYTE[rdi*1+r14]
	movzx	edi,cl
	movzx	ebp,BYTE[rbp*1+r14]
	movzx	esi,BYTE[rsi*1+r14]

	shl	r9d,8
	shr	edx,16
	shl	r13d,8
	xor	r10d,r9d
	shr	eax,16
	movzx	r9d,dl
	shr	ebx,16
	xor	r11d,r13d
	shl	ebp,8
	movzx	r13d,al
	movzx	edi,BYTE[rdi*1+r14]
	xor	r12d,ebp

	shl	esi,8
	movzx	ebp,bl
	shl	edi,16
	xor	r8d,esi
	movzx	r9d,BYTE[r9*1+r14]
	movzx	esi,dh
	movzx	r13d,BYTE[r13*1+r14]
	xor	r10d,edi

	shr	ecx,8
	movzx	edi,ah
	shl	r9d,16
	shr	ebx,8
	shl	r13d,16
	xor	r11d,r9d
	movzx	ebp,BYTE[rbp*1+r14]
	movzx	esi,BYTE[rsi*1+r14]
	movzx	edi,BYTE[rdi*1+r14]
	movzx	edx,BYTE[rcx*1+r14]
	movzx	ecx,BYTE[rbx*1+r14]

	shl	ebp,16
	xor	r12d,r13d
	shl	esi,24
	xor	r8d,ebp
	shl	edi,24
	xor	r10d,esi
	shl	edx,24
	xor	r11d,edi
	shl	ecx,24
	mov	eax,r10d
	mov	ebx,r11d
	xor	ecx,r12d
	xor	edx,r8d
	cmp	r15,QWORD[16+rsp]
	je	NEAR $L$enc_compact_done
	mov	r10d,0x80808080
	mov	r11d,0x80808080
	and	r10d,eax
	and	r11d,ebx
	mov	esi,r10d
	mov	edi,r11d
	shr	r10d,7
	lea	r8d,[rax*1+rax]
	shr	r11d,7
	lea	r9d,[rbx*1+rbx]
	sub	esi,r10d
	sub	edi,r11d
	and	r8d,0xfefefefe
	and	r9d,0xfefefefe
	and	esi,0x1b1b1b1b
	and	edi,0x1b1b1b1b
	mov	r10d,eax
	mov	r11d,ebx
	xor	r8d,esi
	xor	r9d,edi

	xor	eax,r8d
	xor	ebx,r9d
	mov	r12d,0x80808080
	rol	eax,24
	mov	ebp,0x80808080
	rol	ebx,24
	and	r12d,ecx
	and	ebp,edx
	xor	eax,r8d
	xor	ebx,r9d
	mov	esi,r12d
	ror	r10d,16
	mov	edi,ebp
	ror	r11d,16
	lea	r8d,[rcx*1+rcx]
	shr	r12d,7
	xor	eax,r10d
	shr	ebp,7
	xor	ebx,r11d
	ror	r10d,8
	lea	r9d,[rdx*1+rdx]
	ror	r11d,8
	sub	esi,r12d
	sub	edi,ebp
	xor	eax,r10d
	xor	ebx,r11d

	and	r8d,0xfefefefe
	and	r9d,0xfefefefe
	and	esi,0x1b1b1b1b
	and	edi,0x1b1b1b1b
	mov	r12d,ecx
	mov	ebp,edx
	xor	r8d,esi
	xor	r9d,edi

	ror	r12d,16
	xor	ecx,r8d
	ror	ebp,16
	xor	edx,r9d
	rol	ecx,24
	mov	esi,DWORD[r14]
	rol	edx,24
	xor	ecx,r8d
	mov	edi,DWORD[64+r14]
	xor	edx,r9d
	mov	r8d,DWORD[128+r14]
	xor	ecx,r12d
	ror	r12d,8
	xor	edx,ebp
	ror	ebp,8
	xor	ecx,r12d
	mov	r9d,DWORD[192+r14]
	xor	edx,ebp
	jmp	NEAR $L$enc_loop_compact
ALIGN	16
$L$enc_compact_done:
	xor	eax,DWORD[r15]
	xor	ebx,DWORD[4+r15]
	xor	ecx,DWORD[8+r15]
	xor	edx,DWORD[12+r15]
DB	0xf3,0xc3


ALIGN	16
global	GFp_aes_nohw_encrypt


GFp_aes_nohw_encrypt:
	mov	QWORD[8+rsp],rdi	;WIN64 prologue
	mov	QWORD[16+rsp],rsi
	mov	rax,rsp
$L$SEH_begin_GFp_aes_nohw_encrypt:
	mov	rdi,rcx
	mov	rsi,rdx
	mov	rdx,r8



	mov	rax,rsp

	push	rbx

	push	rbp

	push	r12

	push	r13

	push	r14

	push	r15



	lea	rcx,[((-63))+rdx]
	and	rsp,-64
	sub	rcx,rsp
	neg	rcx
	and	rcx,0x3c0
	sub	rsp,rcx
	sub	rsp,32

	mov	QWORD[16+rsp],rsi
	mov	QWORD[24+rsp],rax

$L$enc_prologue:

	mov	r15,rdx
	mov	r13d,DWORD[240+r15]

	mov	eax,DWORD[rdi]
	mov	ebx,DWORD[4+rdi]
	mov	ecx,DWORD[8+rdi]
	mov	edx,DWORD[12+rdi]

	shl	r13d,4
	lea	rbp,[r13*1+r15]
	mov	QWORD[rsp],r15
	mov	QWORD[8+rsp],rbp


	lea	r14,[(($L$AES_Te+2048))]
	lea	rbp,[768+rsp]
	sub	rbp,r14
	and	rbp,0x300
	lea	r14,[rbp*1+r14]

	call	_x86_64_AES_encrypt_compact

	mov	r9,QWORD[16+rsp]
	mov	rsi,QWORD[24+rsp]

	mov	DWORD[r9],eax
	mov	DWORD[4+r9],ebx
	mov	DWORD[8+r9],ecx
	mov	DWORD[12+r9],edx

	mov	r15,QWORD[((-48))+rsi]

	mov	r14,QWORD[((-40))+rsi]

	mov	r13,QWORD[((-32))+rsi]

	mov	r12,QWORD[((-24))+rsi]

	mov	rbp,QWORD[((-16))+rsi]

	mov	rbx,QWORD[((-8))+rsi]

	lea	rsp,[rsi]

$L$enc_epilogue:
	mov	rdi,QWORD[8+rsp]	;WIN64 epilogue
	mov	rsi,QWORD[16+rsp]
	DB	0F3h,0C3h		;repret

$L$SEH_end_GFp_aes_nohw_encrypt:
ALIGN	16
global	GFp_aes_nohw_set_encrypt_key

GFp_aes_nohw_set_encrypt_key:
	mov	QWORD[8+rsp],rdi	;WIN64 prologue
	mov	QWORD[16+rsp],rsi
	mov	rax,rsp
$L$SEH_begin_GFp_aes_nohw_set_encrypt_key:
	mov	rdi,rcx
	mov	rsi,rdx
	mov	rdx,r8



	push	rbx

	push	rbp

	push	r12

	push	r13

	push	r14

	push	r15

	sub	rsp,8

$L$enc_key_prologue:

	call	_x86_64_AES_set_encrypt_key

	mov	rbp,QWORD[40+rsp]

	mov	rbx,QWORD[48+rsp]

	add	rsp,56

$L$enc_key_epilogue:
	mov	rdi,QWORD[8+rsp]	;WIN64 epilogue
	mov	rsi,QWORD[16+rsp]
	DB	0F3h,0C3h		;repret

$L$SEH_end_GFp_aes_nohw_set_encrypt_key:


ALIGN	16
_x86_64_AES_set_encrypt_key:

	mov	ecx,esi
	mov	rsi,rdi
	mov	rdi,rdx

	test	rsi,-1
	jz	NEAR $L$badpointer
	test	rdi,-1
	jz	NEAR $L$badpointer

	lea	rbp,[$L$AES_Te]
	lea	rbp,[((2048+128))+rbp]


	mov	eax,DWORD[((0-128))+rbp]
	mov	ebx,DWORD[((32-128))+rbp]
	mov	r8d,DWORD[((64-128))+rbp]
	mov	edx,DWORD[((96-128))+rbp]
	mov	eax,DWORD[((128-128))+rbp]
	mov	ebx,DWORD[((160-128))+rbp]
	mov	r8d,DWORD[((192-128))+rbp]
	mov	edx,DWORD[((224-128))+rbp]

	cmp	ecx,128
	je	NEAR $L$10rounds
	cmp	ecx,256
	je	NEAR $L$14rounds
	mov	rax,-2
	jmp	NEAR $L$exit

$L$10rounds:
	mov	rax,QWORD[rsi]
	mov	rdx,QWORD[8+rsi]
	mov	QWORD[rdi],rax
	mov	QWORD[8+rdi],rdx

	shr	rdx,32
	xor	ecx,ecx
	jmp	NEAR $L$10shortcut
ALIGN	4
$L$10loop:
	mov	eax,DWORD[rdi]
	mov	edx,DWORD[12+rdi]
$L$10shortcut:
	movzx	esi,dl
	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	movzx	esi,dh
	shl	ebx,24
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	shr	edx,16
	movzx	esi,dl
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	movzx	esi,dh
	shl	ebx,8
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	shl	ebx,16
	xor	eax,ebx

	xor	eax,DWORD[((1024-128))+rcx*4+rbp]
	mov	DWORD[16+rdi],eax
	xor	eax,DWORD[4+rdi]
	mov	DWORD[20+rdi],eax
	xor	eax,DWORD[8+rdi]
	mov	DWORD[24+rdi],eax
	xor	eax,DWORD[12+rdi]
	mov	DWORD[28+rdi],eax
	add	ecx,1
	lea	rdi,[16+rdi]
	cmp	ecx,10
	jl	NEAR $L$10loop

	mov	DWORD[80+rdi],10
	xor	rax,rax
	jmp	NEAR $L$exit

$L$14rounds:
	mov	rax,QWORD[rsi]
	mov	rbx,QWORD[8+rsi]
	mov	rcx,QWORD[16+rsi]
	mov	rdx,QWORD[24+rsi]
	mov	QWORD[rdi],rax
	mov	QWORD[8+rdi],rbx
	mov	QWORD[16+rdi],rcx
	mov	QWORD[24+rdi],rdx

	shr	rdx,32
	xor	ecx,ecx
	jmp	NEAR $L$14shortcut
ALIGN	4
$L$14loop:
	mov	eax,DWORD[rdi]
	mov	edx,DWORD[28+rdi]
$L$14shortcut:
	movzx	esi,dl
	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	movzx	esi,dh
	shl	ebx,24
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	shr	edx,16
	movzx	esi,dl
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	movzx	esi,dh
	shl	ebx,8
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	shl	ebx,16
	xor	eax,ebx

	xor	eax,DWORD[((1024-128))+rcx*4+rbp]
	mov	DWORD[32+rdi],eax
	xor	eax,DWORD[4+rdi]
	mov	DWORD[36+rdi],eax
	xor	eax,DWORD[8+rdi]
	mov	DWORD[40+rdi],eax
	xor	eax,DWORD[12+rdi]
	mov	DWORD[44+rdi],eax

	cmp	ecx,6
	je	NEAR $L$14break
	add	ecx,1

	mov	edx,eax
	mov	eax,DWORD[16+rdi]
	movzx	esi,dl
	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	movzx	esi,dh
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	shr	edx,16
	shl	ebx,8
	movzx	esi,dl
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	movzx	esi,dh
	shl	ebx,16
	xor	eax,ebx

	movzx	ebx,BYTE[((-128))+rsi*1+rbp]
	shl	ebx,24
	xor	eax,ebx

	mov	DWORD[48+rdi],eax
	xor	eax,DWORD[20+rdi]
	mov	DWORD[52+rdi],eax
	xor	eax,DWORD[24+rdi]
	mov	DWORD[56+rdi],eax
	xor	eax,DWORD[28+rdi]
	mov	DWORD[60+rdi],eax

	lea	rdi,[32+rdi]
	jmp	NEAR $L$14loop
$L$14break:
	mov	DWORD[48+rdi],14
	xor	rax,rax
	jmp	NEAR $L$exit

$L$badpointer:
	mov	rax,-1
$L$exit:
DB	0xf3,0xc3


ALIGN	64
$L$AES_Te:
	DD	0xa56363c6,0xa56363c6
	DD	0x847c7cf8,0x847c7cf8
	DD	0x997777ee,0x997777ee
	DD	0x8d7b7bf6,0x8d7b7bf6
	DD	0x0df2f2ff,0x0df2f2ff
	DD	0xbd6b6bd6,0xbd6b6bd6
	DD	0xb16f6fde,0xb16f6fde
	DD	0x54c5c591,0x54c5c591
	DD	0x50303060,0x50303060
	DD	0x03010102,0x03010102
	DD	0xa96767ce,0xa96767ce
	DD	0x7d2b2b56,0x7d2b2b56
	DD	0x19fefee7,0x19fefee7
	DD	0x62d7d7b5,0x62d7d7b5
	DD	0xe6abab4d,0xe6abab4d
	DD	0x9a7676ec,0x9a7676ec
	DD	0x45caca8f,0x45caca8f
	DD	0x9d82821f,0x9d82821f
	DD	0x40c9c989,0x40c9c989
	DD	0x877d7dfa,0x877d7dfa
	DD	0x15fafaef,0x15fafaef
	DD	0xeb5959b2,0xeb5959b2
	DD	0xc947478e,0xc947478e
	DD	0x0bf0f0fb,0x0bf0f0fb
	DD	0xecadad41,0xecadad41
	DD	0x67d4d4b3,0x67d4d4b3
	DD	0xfda2a25f,0xfda2a25f
	DD	0xeaafaf45,0xeaafaf45
	DD	0xbf9c9c23,0xbf9c9c23
	DD	0xf7a4a453,0xf7a4a453
	DD	0x967272e4,0x967272e4
	DD	0x5bc0c09b,0x5bc0c09b
	DD	0xc2b7b775,0xc2b7b775
	DD	0x1cfdfde1,0x1cfdfde1
	DD	0xae93933d,0xae93933d
	DD	0x6a26264c,0x6a26264c
	DD	0x5a36366c,0x5a36366c
	DD	0x413f3f7e,0x413f3f7e
	DD	0x02f7f7f5,0x02f7f7f5
	DD	0x4fcccc83,0x4fcccc83
	DD	0x5c343468,0x5c343468
	DD	0xf4a5a551,0xf4a5a551
	DD	0x34e5e5d1,0x34e5e5d1
	DD	0x08f1f1f9,0x08f1f1f9
	DD	0x937171e2,0x937171e2
	DD	0x73d8d8ab,0x73d8d8ab
	DD	0x53313162,0x53313162
	DD	0x3f15152a,0x3f15152a
	DD	0x0c040408,0x0c040408
	DD	0x52c7c795,0x52c7c795
	DD	0x65232346,0x65232346
	DD	0x5ec3c39d,0x5ec3c39d
	DD	0x28181830,0x28181830
	DD	0xa1969637,0xa1969637
	DD	0x0f05050a,0x0f05050a
	DD	0xb59a9a2f,0xb59a9a2f
	DD	0x0907070e,0x0907070e
	DD	0x36121224,0x36121224
	DD	0x9b80801b,0x9b80801b
	DD	0x3de2e2df,0x3de2e2df
	DD	0x26ebebcd,0x26ebebcd
	DD	0x6927274e,0x6927274e
	DD	0xcdb2b27f,0xcdb2b27f
	DD	0x9f7575ea,0x9f7575ea
	DD	0x1b090912,0x1b090912
	DD	0x9e83831d,0x9e83831d
	DD	0x742c2c58,0x742c2c58
	DD	0x2e1a1a34,0x2e1a1a34
	DD	0x2d1b1b36,0x2d1b1b36
	DD	0xb26e6edc,0xb26e6edc
	DD	0xee5a5ab4,0xee5a5ab4
	DD	0xfba0a05b,0xfba0a05b
	DD	0xf65252a4,0xf65252a4
	DD	0x4d3b3b76,0x4d3b3b76
	DD	0x61d6d6b7,0x61d6d6b7
	DD	0xceb3b37d,0xceb3b37d
	DD	0x7b292952,0x7b292952
	DD	0x3ee3e3dd,0x3ee3e3dd
	DD	0x712f2f5e,0x712f2f5e
	DD	0x97848413,0x97848413
	DD	0xf55353a6,0xf55353a6
	DD	0x68d1d1b9,0x68d1d1b9
	DD	0x00000000,0x00000000
	DD	0x2cededc1,0x2cededc1
	DD	0x60202040,0x60202040
	DD	0x1ffcfce3,0x1ffcfce3
	DD	0xc8b1b179,0xc8b1b179
	DD	0xed5b5bb6,0xed5b5bb6
	DD	0xbe6a6ad4,0xbe6a6ad4
	DD	0x46cbcb8d,0x46cbcb8d
	DD	0xd9bebe67,0xd9bebe67
	DD	0x4b393972,0x4b393972
	DD	0xde4a4a94,0xde4a4a94
	DD	0xd44c4c98,0xd44c4c98
	DD	0xe85858b0,0xe85858b0
	DD	0x4acfcf85,0x4acfcf85
	DD	0x6bd0d0bb,0x6bd0d0bb
	DD	0x2aefefc5,0x2aefefc5
	DD	0xe5aaaa4f,0xe5aaaa4f
	DD	0x16fbfbed,0x16fbfbed
	DD	0xc5434386,0xc5434386
	DD	0xd74d4d9a,0xd74d4d9a
	DD	0x55333366,0x55333366
	DD	0x94858511,0x94858511
	DD	0xcf45458a,0xcf45458a
	DD	0x10f9f9e9,0x10f9f9e9
	DD	0x06020204,0x06020204
	DD	0x817f7ffe,0x817f7ffe
	DD	0xf05050a0,0xf05050a0
	DD	0x443c3c78,0x443c3c78
	DD	0xba9f9f25,0xba9f9f25
	DD	0xe3a8a84b,0xe3a8a84b
	DD	0xf35151a2,0xf35151a2
	DD	0xfea3a35d,0xfea3a35d
	DD	0xc0404080,0xc0404080
	DD	0x8a8f8f05,0x8a8f8f05
	DD	0xad92923f,0xad92923f
	DD	0xbc9d9d21,0xbc9d9d21
	DD	0x48383870,0x48383870
	DD	0x04f5f5f1,0x04f5f5f1
	DD	0xdfbcbc63,0xdfbcbc63
	DD	0xc1b6b677,0xc1b6b677
	DD	0x75dadaaf,0x75dadaaf
	DD	0x63212142,0x63212142
	DD	0x30101020,0x30101020
	DD	0x1affffe5,0x1affffe5
	DD	0x0ef3f3fd,0x0ef3f3fd
	DD	0x6dd2d2bf,0x6dd2d2bf
	DD	0x4ccdcd81,0x4ccdcd81
	DD	0x140c0c18,0x140c0c18
	DD	0x35131326,0x35131326
	DD	0x2fececc3,0x2fececc3
	DD	0xe15f5fbe,0xe15f5fbe
	DD	0xa2979735,0xa2979735
	DD	0xcc444488,0xcc444488
	DD	0x3917172e,0x3917172e
	DD	0x57c4c493,0x57c4c493
	DD	0xf2a7a755,0xf2a7a755
	DD	0x827e7efc,0x827e7efc
	DD	0x473d3d7a,0x473d3d7a
	DD	0xac6464c8,0xac6464c8
	DD	0xe75d5dba,0xe75d5dba
	DD	0x2b191932,0x2b191932
	DD	0x957373e6,0x957373e6
	DD	0xa06060c0,0xa06060c0
	DD	0x98818119,0x98818119
	DD	0xd14f4f9e,0xd14f4f9e
	DD	0x7fdcdca3,0x7fdcdca3
	DD	0x66222244,0x66222244
	DD	0x7e2a2a54,0x7e2a2a54
	DD	0xab90903b,0xab90903b
	DD	0x8388880b,0x8388880b
	DD	0xca46468c,0xca46468c
	DD	0x29eeeec7,0x29eeeec7
	DD	0xd3b8b86b,0xd3b8b86b
	DD	0x3c141428,0x3c141428
	DD	0x79dedea7,0x79dedea7
	DD	0xe25e5ebc,0xe25e5ebc
	DD	0x1d0b0b16,0x1d0b0b16
	DD	0x76dbdbad,0x76dbdbad
	DD	0x3be0e0db,0x3be0e0db
	DD	0x56323264,0x56323264
	DD	0x4e3a3a74,0x4e3a3a74
	DD	0x1e0a0a14,0x1e0a0a14
	DD	0xdb494992,0xdb494992
	DD	0x0a06060c,0x0a06060c
	DD	0x6c242448,0x6c242448
	DD	0xe45c5cb8,0xe45c5cb8
	DD	0x5dc2c29f,0x5dc2c29f
	DD	0x6ed3d3bd,0x6ed3d3bd
	DD	0xefacac43,0xefacac43
	DD	0xa66262c4,0xa66262c4
	DD	0xa8919139,0xa8919139
	DD	0xa4959531,0xa4959531
	DD	0x37e4e4d3,0x37e4e4d3
	DD	0x8b7979f2,0x8b7979f2
	DD	0x32e7e7d5,0x32e7e7d5
	DD	0x43c8c88b,0x43c8c88b
	DD	0x5937376e,0x5937376e
	DD	0xb76d6dda,0xb76d6dda
	DD	0x8c8d8d01,0x8c8d8d01
	DD	0x64d5d5b1,0x64d5d5b1
	DD	0xd24e4e9c,0xd24e4e9c
	DD	0xe0a9a949,0xe0a9a949
	DD	0xb46c6cd8,0xb46c6cd8
	DD	0xfa5656ac,0xfa5656ac
	DD	0x07f4f4f3,0x07f4f4f3
	DD	0x25eaeacf,0x25eaeacf
	DD	0xaf6565ca,0xaf6565ca
	DD	0x8e7a7af4,0x8e7a7af4
	DD	0xe9aeae47,0xe9aeae47
	DD	0x18080810,0x18080810
	DD	0xd5baba6f,0xd5baba6f
	DD	0x887878f0,0x887878f0
	DD	0x6f25254a,0x6f25254a
	DD	0x722e2e5c,0x722e2e5c
	DD	0x241c1c38,0x241c1c38
	DD	0xf1a6a657,0xf1a6a657
	DD	0xc7b4b473,0xc7b4b473
	DD	0x51c6c697,0x51c6c697
	DD	0x23e8e8cb,0x23e8e8cb
	DD	0x7cdddda1,0x7cdddda1
	DD	0x9c7474e8,0x9c7474e8
	DD	0x211f1f3e,0x211f1f3e
	DD	0xdd4b4b96,0xdd4b4b96
	DD	0xdcbdbd61,0xdcbdbd61
	DD	0x868b8b0d,0x868b8b0d
	DD	0x858a8a0f,0x858a8a0f
	DD	0x907070e0,0x907070e0
	DD	0x423e3e7c,0x423e3e7c
	DD	0xc4b5b571,0xc4b5b571
	DD	0xaa6666cc,0xaa6666cc
	DD	0xd8484890,0xd8484890
	DD	0x05030306,0x05030306
	DD	0x01f6f6f7,0x01f6f6f7
	DD	0x120e0e1c,0x120e0e1c
	DD	0xa36161c2,0xa36161c2
	DD	0x5f35356a,0x5f35356a
	DD	0xf95757ae,0xf95757ae
	DD	0xd0b9b969,0xd0b9b969
	DD	0x91868617,0x91868617
	DD	0x58c1c199,0x58c1c199
	DD	0x271d1d3a,0x271d1d3a
	DD	0xb99e9e27,0xb99e9e27
	DD	0x38e1e1d9,0x38e1e1d9
	DD	0x13f8f8eb,0x13f8f8eb
	DD	0xb398982b,0xb398982b
	DD	0x33111122,0x33111122
	DD	0xbb6969d2,0xbb6969d2
	DD	0x70d9d9a9,0x70d9d9a9
	DD	0x898e8e07,0x898e8e07
	DD	0xa7949433,0xa7949433
	DD	0xb69b9b2d,0xb69b9b2d
	DD	0x221e1e3c,0x221e1e3c
	DD	0x92878715,0x92878715
	DD	0x20e9e9c9,0x20e9e9c9
	DD	0x49cece87,0x49cece87
	DD	0xff5555aa,0xff5555aa
	DD	0x78282850,0x78282850
	DD	0x7adfdfa5,0x7adfdfa5
	DD	0x8f8c8c03,0x8f8c8c03
	DD	0xf8a1a159,0xf8a1a159
	DD	0x80898909,0x80898909
	DD	0x170d0d1a,0x170d0d1a
	DD	0xdabfbf65,0xdabfbf65
	DD	0x31e6e6d7,0x31e6e6d7
	DD	0xc6424284,0xc6424284
	DD	0xb86868d0,0xb86868d0
	DD	0xc3414182,0xc3414182
	DD	0xb0999929,0xb0999929
	DD	0x772d2d5a,0x772d2d5a
	DD	0x110f0f1e,0x110f0f1e
	DD	0xcbb0b07b,0xcbb0b07b
	DD	0xfc5454a8,0xfc5454a8
	DD	0xd6bbbb6d,0xd6bbbb6d
	DD	0x3a16162c,0x3a16162c
DB	0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5
DB	0x30,0x01,0x67,0x2b,0xfe,0xd7,0xab,0x76
DB	0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0
DB	0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0
DB	0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc
DB	0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15
DB	0x04,0xc7,0x23,0xc3,0x18,0x96,0x05,0x9a
DB	0x07,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75
DB	0x09,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0
DB	0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84
DB	0x53,0xd1,0x00,0xed,0x20,0xfc,0xb1,0x5b
DB	0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf
DB	0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85
DB	0x45,0xf9,0x02,0x7f,0x50,0x3c,0x9f,0xa8
DB	0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5
DB	0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2
DB	0xcd,0x0c,0x13,0xec,0x5f,0x97,0x44,0x17
DB	0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73
DB	0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88
DB	0x46,0xee,0xb8,0x14,0xde,0x5e,0x0b,0xdb
DB	0xe0,0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e1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94
DB	0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf
DB	0x8c,0xa1,0x89,0x0d,0xbf,0xe6,0x42,0x68
DB	0x41,0x99,0x2d,0x0f,0xb0,0x54,0xbb,0x16
	DD	0x00000001,0x00000002,0x00000004,0x00000008
	DD	0x00000010,0x00000020,0x00000040,0x00000080
	DD	0x0000001b,0x00000036,0x80808080,0x80808080
	DD	0xfefefefe,0xfefefefe,0x1b1b1b1b,0x1b1b1b1b
DB	65,69,83,32,102,111,114,32,120,56,54,95,54,52,44,32
DB	67,82,89,80,84,79,71,65,77,83,32,98,121,32,60,97
DB	112,112,114,111,64,111,112,101,110,115,115,108,46,111,114,103
DB	62,0
ALIGN	64
EXTERN	__imp_RtlVirtualUnwind

ALIGN	16
block_se_handler:
	push	rsi
	push	rdi
	push	rbx
	push	rbp
	push	r12
	push	r13
	push	r14
	push	r15
	pushfq
	sub	rsp,64

	mov	rax,QWORD[120+r8]
	mov	rbx,QWORD[248+r8]

	mov	rsi,QWORD[8+r9]
	mov	r11,QWORD[56+r9]

	mov	r10d,DWORD[r11]
	lea	r10,[r10*1+rsi]
	cmp	rbx,r10
	jb	NEAR $L$in_block_prologue

	mov	rax,QWORD[152+r8]

	mov	r10d,DWORD[4+r11]
	lea	r10,[r10*1+rsi]
	cmp	rbx,r10
	jae	NEAR $L$in_block_prologue

	mov	rax,QWORD[24+rax]

	mov	rbx,QWORD[((-8))+rax]
	mov	rbp,QWORD[((-16))+rax]
	mov	r12,QWORD[((-24))+rax]
	mov	r13,QWORD[((-32))+rax]
	mov	r14,QWORD[((-40))+rax]
	mov	r15,QWORD[((-48))+rax]
	mov	QWORD[144+r8],rbx
	mov	QWORD[160+r8],rbp
	mov	QWORD[216+r8],r12
	mov	QWORD[224+r8],r13
	mov	QWORD[232+r8],r14
	mov	QWORD[240+r8],r15

$L$in_block_prologue:
	mov	rdi,QWORD[8+rax]
	mov	rsi,QWORD[16+rax]
	mov	QWORD[152+r8],rax
	mov	QWORD[168+r8],rsi
	mov	QWORD[176+r8],rdi

	jmp	NEAR $L$common_seh_exit



ALIGN	16
key_se_handler:
	push	rsi
	push	rdi
	push	rbx
	push	rbp
	push	r12
	push	r13
	push	r14
	push	r15
	pushfq
	sub	rsp,64

	mov	rax,QWORD[120+r8]
	mov	rbx,QWORD[248+r8]

	mov	rsi,QWORD[8+r9]
	mov	r11,QWORD[56+r9]

	mov	r10d,DWORD[r11]
	lea	r10,[r10*1+rsi]
	cmp	rbx,r10
	jb	NEAR $L$in_key_prologue

	mov	rax,QWORD[152+r8]

	mov	r10d,DWORD[4+r11]
	lea	r10,[r10*1+rsi]
	cmp	rbx,r10
	jae	NEAR $L$in_key_prologue

	lea	rax,[56+rax]

	mov	rbx,QWORD[((-8))+rax]
	mov	rbp,QWORD[((-16))+rax]
	mov	r12,QWORD[((-24))+rax]
	mov	r13,QWORD[((-32))+rax]
	mov	r14,QWORD[((-40))+rax]
	mov	r15,QWORD[((-48))+rax]
	mov	QWORD[144+r8],rbx
	mov	QWORD[160+r8],rbp
	mov	QWORD[216+r8],r12
	mov	QWORD[224+r8],r13
	mov	QWORD[232+r8],r14
	mov	QWORD[240+r8],r15

$L$in_key_prologue:
	mov	rdi,QWORD[8+rax]
	mov	rsi,QWORD[16+rax]
	mov	QWORD[152+r8],rax
	mov	QWORD[168+r8],rsi
	mov	QWORD[176+r8],rdi

$L$common_seh_exit:
	mov	rdi,QWORD[40+r9]
	mov	rsi,r8
	mov	ecx,154
	DD	0xa548f3fc

	mov	rsi,r9
	xor	rcx,rcx
	mov	rdx,QWORD[8+rsi]
	mov	r8,QWORD[rsi]
	mov	r9,QWORD[16+rsi]
	mov	r10,QWORD[40+rsi]
	lea	r11,[56+rsi]
	lea	r12,[24+rsi]
	mov	QWORD[32+rsp],r10
	mov	QWORD[40+rsp],r11
	mov	QWORD[48+rsp],r12
	mov	QWORD[56+rsp],rcx
	call	QWORD[__imp_RtlVirtualUnwind]

	mov	eax,1
	add	rsp,64
	popfq
	pop	r15
	pop	r14
	pop	r13
	pop	r12
	pop	rbp
	pop	rbx
	pop	rdi
	pop	rsi
	DB	0F3h,0C3h		;repret


section	.pdata rdata align=4
ALIGN	4
	DD	$L$SEH_begin_GFp_aes_nohw_encrypt wrt ..imagebase
	DD	$L$SEH_end_GFp_aes_nohw_encrypt wrt ..imagebase
	DD	$L$SEH_info_GFp_aes_nohw_encrypt wrt ..imagebase

	DD	$L$SEH_begin_GFp_aes_nohw_set_encrypt_key wrt ..imagebase
	DD	$L$SEH_end_GFp_aes_nohw_set_encrypt_key wrt ..imagebase
	DD	$L$SEH_info_GFp_aes_nohw_set_encrypt_key wrt ..imagebase

section	.xdata rdata align=8
ALIGN	8
$L$SEH_info_GFp_aes_nohw_encrypt:
DB	9,0,0,0
	DD	block_se_handler wrt ..imagebase
	DD	$L$enc_prologue wrt ..imagebase,$L$enc_epilogue wrt ..imagebase
$L$SEH_info_GFp_aes_nohw_set_encrypt_key:
DB	9,0,0,0
	DD	key_se_handler wrt ..imagebase
	DD	$L$enc_key_prologue wrt ..imagebase,$L$enc_key_epilogue wrt ..imagebase
