	.file	"extr_crypto_aes_algo.c_aes_encrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	aes_encrypt
	.type	aes_encrypt, @function
aes_encrypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 88
	mov	QWORD PTR -120[rbp], rdx
	movsx	r14, DWORD PTR Nb[rip]
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	add	eax, 1
	cdqe
	imul	rax, r14
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L14:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L14
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L15
.L4:
	lea	rax, 3[rsp]
	mov	rdi, r12
	sal	r14, 2
	mov	r13, rax
	and	rax, -4
	shr	r14, 2
	mov	rsi, rax
	mov	QWORD PTR -112[rbp], rax
	shr	r13, 2
	call	aes_expkey@PLT
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rbx]
	mov	QWORD PTR -96[rbp], r14
	mov	rcx, QWORD PTR 32[rbx]
	mov	rsi, QWORD PTR 72[rbx]
	sal	rax, 24
	sal	rdx, 16
	mov	rdi, QWORD PTR 96[rbx]
	sal	rcx, 24
	or	edx, eax
	mov	rax, QWORD PTR 16[rbx]
	or	edx, DWORD PTR 24[rbx]
	sal	rsi, 16
	sal	rdi, 24
	sal	rax, 8
	or	edx, eax
	mov	rax, QWORD PTR 40[rbx]
	xor	edx, DWORD PTR 0[0+r13*4]
	sal	rax, 16
	or	eax, ecx
	mov	rcx, QWORD PTR 48[rbx]
	or	eax, DWORD PTR 56[rbx]
	sal	rcx, 8
	or	eax, ecx
	mov	rcx, QWORD PTR 64[rbx]
	xor	eax, DWORD PTR 4[0+r13*4]
	sal	rcx, 24
	or	esi, ecx
	mov	rcx, QWORD PTR 80[rbx]
	or	esi, DWORD PTR 88[rbx]
	sal	rcx, 8
	or	esi, ecx
	mov	rcx, QWORD PTR 104[rbx]
	xor	esi, DWORD PTR 8[0+r13*4]
	sal	rcx, 16
	or	ecx, edi
	mov	rdi, QWORD PTR 112[rbx]
	or	ecx, DWORD PTR 120[rbx]
	mov	ebx, DWORD PTR [r12]
	sal	rdi, 8
	or	ecx, edi
	mov	DWORD PTR -100[rbp], ebx
	xor	ecx, DWORD PTR 12[0+r13*4]
	cmp	ebx, 1
	jle	.L5
	mov	rbx, QWORD PTR FT0[rip]
	mov	r11, QWORD PTR FT1[rip]
	mov	r14d, 1
	mov	r13, QWORD PTR FT2[rip]
	mov	r12, QWORD PTR FT3[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	movsx	rdi, edx
	mov	r9d, DWORD PTR [r12+rdi*4]
	mov	edi, edx
	sar	edi, 8
	movsx	rdi, edi
	mov	QWORD PTR -72[rbp], rdi
	movsx	rdi, eax
	mov	r8d, DWORD PTR [r12+rdi*4]
	mov	edi, edx
	sar	edx, 24
	sar	edi, 16
	movsx	rdx, edx
	movsx	r10, edi
	mov	edi, eax
	sar	edi, 8
	mov	QWORD PTR -80[rbp], r10
	movsx	r10, r14d
	add	r14d, 1
	movsx	r15, edi
	imul	r10, QWORD PTR -96[rbp]
	movsx	rdi, esi
	mov	QWORD PTR -88[rbp], r15
	mov	r15, QWORD PTR -112[rbp]
	mov	edi, DWORD PTR [r12+rdi*4]
	lea	r10, [r15+r10*4]
	movsx	r15, ecx
	mov	r15d, DWORD PTR [r12+r15*4]
	xor	r15d, DWORD PTR [r10]
	xor	r15d, DWORD PTR [rbx+rdx*4]
	xor	r8d, DWORD PTR 8[r10]
	mov	edx, r15d
	mov	r15d, eax
	sar	eax, 24
	xor	edi, DWORD PTR 12[r10]
	sar	r15d, 16
	movsx	r15, r15d
	xor	edx, DWORD PTR [r11+r15*4]
	mov	r15d, esi
	sar	r15d, 8
	movsx	r15, r15d
	xor	edx, DWORD PTR 0[r13+r15*4]
	movsx	r15, eax
	mov	eax, DWORD PTR 4[r10]
	xor	eax, r9d
	mov	r9d, esi
	xor	eax, DWORD PTR [rbx+r15*4]
	sar	esi, 24
	sar	r9d, 16
	mov	r15, QWORD PTR -88[rbp]
	movsx	r9, r9d
	xor	eax, DWORD PTR [r11+r9*4]
	mov	r9d, ecx
	sar	r9d, 8
	movsx	r9, r9d
	xor	eax, DWORD PTR 0[r13+r9*4]
	movsx	r9, esi
	mov	esi, ecx
	sar	ecx, 24
	xor	r8d, DWORD PTR [rbx+r9*4]
	sar	esi, 16
	mov	r9, QWORD PTR -72[rbp]
	movsx	rsi, esi
	xor	r8d, DWORD PTR [r11+rsi*4]
	mov	esi, DWORD PTR 0[r13+r9*4]
	xor	esi, r8d
	movsx	r8, ecx
	xor	edi, DWORD PTR [rbx+r8*4]
	mov	r8, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR [r11+r8*4]
	xor	ecx, edi
	xor	ecx, DWORD PTR 0[r13+r15*4]
	cmp	r14d, DWORD PTR -100[rbp]
	jne	.L6
.L5:
	movsx	rdi, DWORD PTR -100[rbp]
	imul	rdi, QWORD PTR -96[rbp]
	mov	r11d, edx
	mov	rbx, QWORD PTR -112[rbp]
	sar	r11d, 24
	movsx	r11, r11d
	lea	r9, [rbx+rdi*4]
	mov	rdi, QWORD PTR Sbox[rip]
	mov	rbx, QWORD PTR -120[rbp]
	movsx	r8, DWORD PTR [r9]
	mov	r10d, r8d
	sar	r10d, 24
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, eax
	mov	QWORD PTR [rbx], r10
	sar	r11d, 16
	mov	r10d, r8d
	movsx	r11, r11d
	sar	r10d, 16
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, esi
	mov	QWORD PTR 8[rbx], r10
	sar	r11d, 8
	mov	r10d, r8d
	movsx	r11, r11d
	sar	r10d, 8
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, eax
	mov	QWORD PTR 16[rbx], r10
	movsx	r10, ecx
	sar	r11d, 24
	xor	r8, QWORD PTR [rdi+r10*8]
	movsx	r11, r11d
	mov	QWORD PTR 24[rbx], r8
	movsx	r8, DWORD PTR 4[r9]
	mov	r10d, r8d
	sar	r10d, 24
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, esi
	mov	QWORD PTR 32[rbx], r10
	sar	r11d, 16
	mov	r10d, r8d
	movsx	r11, r11d
	sar	r10d, 16
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, ecx
	mov	QWORD PTR 40[rbx], r10
	sar	r11d, 8
	mov	r10d, r8d
	movsx	r11, r11d
	sar	r10d, 8
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, esi
	movsx	rsi, esi
	mov	QWORD PTR 48[rbx], r10
	movsx	r10, edx
	sar	r11d, 24
	xor	r8, QWORD PTR [rdi+r10*8]
	movsx	r11, r11d
	mov	QWORD PTR 56[rbx], r8
	movsx	r8, DWORD PTR 8[r9]
	mov	r10d, r8d
	sar	r10d, 24
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, ecx
	sar	ecx, 24
	mov	QWORD PTR 64[rbx], r10
	sar	r11d, 16
	mov	r10d, r8d
	movsx	rcx, ecx
	movsx	r11, r11d
	sar	r10d, 16
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	r11d, edx
	mov	QWORD PTR 72[rbx], r10
	sar	r11d, 8
	mov	r10d, r8d
	sar	r10d, 8
	movsx	r11, r11d
	movsx	r10, r10d
	xor	r10, QWORD PTR [rdi+r11*8]
	mov	QWORD PTR 80[rbx], r10
	movsx	r10, eax
	xor	r8, QWORD PTR [rdi+r10*8]
	mov	QWORD PTR 88[rbx], r8
	movsx	r8, DWORD PTR 12[r9]
	mov	r9d, r8d
	sar	r9d, 24
	sar	edx, 16
	movsx	r9, r9d
	xor	r9, QWORD PTR [rdi+rcx*8]
	mov	ecx, r8d
	movsx	rdx, edx
	sar	ecx, 16
	mov	QWORD PTR 96[rbx], r9
	sar	eax, 8
	movsx	rcx, ecx
	xor	rcx, QWORD PTR [rdi+rdx*8]
	mov	edx, r8d
	cdqe
	sar	edx, 8
	mov	QWORD PTR 104[rbx], rcx
	movsx	rdx, edx
	xor	rdx, QWORD PTR [rdi+rax*8]
	mov	QWORD PTR 112[rbx], rdx
	xor	r8, QWORD PTR [rdi+rsi*8]
	mov	QWORD PTR 120[rbx], r8
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aes_encrypt, .-aes_encrypt
	.comm	Sbox,8,8
	.comm	Nr_AES256,4,4
	.comm	Nb,4,4
	.comm	FT3,8,8
	.comm	FT2,8,8
	.comm	FT1,8,8
	.comm	FT0,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_crypto_aes_algo.c_aes_encrypt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	aes_encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	aes_encrypt, %function
aes_encrypt:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	ldr	ip, .L9
	ldr	r3, [r0]
	ldr	r4, [ip]
	mov	ip, sp
	add	r3, r3, #1
	mul	r3, r4, r3
	sub	r3, ip, r3, lsl #3
	mov	sp, r3
	mov	r8, sp
	mov	r5, r1
	mov	r6, r0
	ldr	r3, .L9+4
	str	r2, [fp, #-88]
	mov	r1, r8
	str	r8, [fp, #-80]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	aes_expkey
	ldr	r0, [r5, #4]
	ldr	lr, [r5, #36]
	ldr	r2, [r5]
	ldr	r1, [r5, #32]
	lsl	r0, r0, #16
	lsl	lr, lr, #16
	ldr	r3, [r5, #20]
	ldr	ip, [r5, #52]
	orr	r0, r0, r2, lsl #24
	orr	lr, lr, r1, lsl #24
	ldr	r2, [r5, #12]
	ldr	r1, [r5, #44]
	ldr	r7, [r5, #16]
	ldr	r9, [r6]
	ldr	r6, [r5, #48]
	orr	r0, r0, r2
	orr	lr, lr, r1
	ldr	r2, [r5, #8]
	ldr	r1, [r5, #60]
	lsl	r3, r3, #16
	lsl	ip, ip, #16
	orr	r3, r3, r7, lsl #24
	orr	ip, ip, r6, lsl #24
	ldr	r7, [r5, #28]
	orr	ip, ip, r1
	orr	r0, r0, r2, lsl #8
	ldr	r1, [r5, #40]
	ldr	r2, [r5, #56]
	orr	r3, r3, r7
	ldr	r7, [r5, #24]
	orr	lr, lr, r1, lsl #8
	orr	ip, ip, r2, lsl #8
	ldr	r6, [r8]
	ldr	r5, [r8, #4]
	ldr	r1, [r8, #8]
	ldr	r2, [r8, #12]
	orr	r3, r3, r7, lsl #8
	bic	r4, r4, #-1073741824
	cmp	r9, #1
	str	r9, [fp, #-84]
	str	r4, [fp, #-76]
	eor	r0, r0, r6
	eor	r3, r3, r5
	eor	lr, lr, r1
	eor	ip, ip, r2
	ble	.L2
	mov	r2, #1
	ldr	r5, .L9+8
	ldr	r4, .L9+12
	str	r2, [fp, #-60]
	ldr	r2, .L9+16
	ldr	r1, .L9+20
	ldr	r5, [r5]
	ldr	r9, [r4]
	ldr	r7, [r2]
	ldr	r10, [r1]
	str	r5, [fp, #-52]
	str	r9, [fp, #-56]
	str	r7, [fp, #-48]
.L3:
	ldr	r7, [fp, #-60]
	ldr	r1, [fp, #-76]
	mov	r2, r7
	mul	r2, r1, r2
	ldr	r1, [fp, #-80]
	ldr	r6, [fp, #-52]
	add	r5, r1, r2, lsl #2
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, [fp, #-48]
	asr	r4, r0, #24
	ldr	r9, [r1, ip, lsl #2]
	asr	r1, r3, #24
	ldr	r1, [r6, r1, lsl #2]
	ldr	r8, [r6, r4, lsl #2]
	ldr	r4, [fp, #-56]
	str	r1, [fp, #-72]
	asr	r1, r3, #16
	eor	r2, r2, r9
	ldr	r9, [r4, r1, lsl #2]
	ldr	r1, [fp, #-48]
	ldr	r4, [r5, #4]
	ldr	r1, [r1, r0, lsl #2]
	str	r9, [fp, #-68]
	eor	r1, r1, r4
	ldr	r4, [fp, #-48]
	str	r8, [fp, #-64]
	ldr	r9, [r4, r3, lsl #2]
	ldr	r4, [r5, #8]
	add	r8, r7, #1
	eor	r4, r4, r9
	asr	r9, lr, #24
	ldr	r9, [r6, r9, lsl #2]
	mov	r6, r8
	str	r8, [fp, #-60]
	ldr	r8, [fp, #-64]
	ldr	r7, [fp, #-56]
	eor	r2, r2, r8
	asr	r8, r0, #16
	asr	r0, r0, #8
	ldr	r0, [r10, r0, lsl #2]
	ldr	r5, [r5, #12]
	str	r0, [fp, #-64]
	ldr	r0, [fp, #-72]
	asr	r3, r3, #8
	eor	r1, r1, r0
	ldr	r0, [fp, #-48]
	ldr	r3, [r10, r3, lsl #2]
	ldr	r0, [r0, lr, lsl #2]
	ldr	r8, [r7, r8, lsl #2]
	eor	r5, r5, r0
	ldr	r0, [fp, #-52]
	mov	r7, r3
	asr	r3, ip, #24
	ldr	r3, [r0, r3, lsl #2]
	eor	r9, r9, r4
	ldr	r4, [fp, #-56]
	asr	r0, ip, #16
	eor	r5, r5, r3
	asr	r3, lr, #16
	asr	lr, lr, #8
	ldr	r3, [r4, r3, lsl #2]
	ldr	r4, [r4, r0, lsl #2]
	ldr	r0, [r10, lr, lsl #2]
	mov	lr, r6
	ldr	r6, [fp, #-84]
	asr	ip, ip, #8
	cmp	lr, r6
	ldr	lr, [fp, #-68]
	ldr	ip, [r10, ip, lsl #2]
	eor	r2, r2, lr
	eor	r0, r0, r2
	ldr	r2, [fp, #-64]
	eor	r1, r1, r3
	eor	r4, r4, r9
	eor	r5, r5, r8
	eor	r3, r1, ip
	eor	lr, r4, r2
	eor	ip, r5, r7
	bne	.L3
.L2:
	ldr	r2, [fp, #-76]
	ldr	r1, [fp, #-84]
	ldr	r6, [fp, #-80]
	mul	r1, r2, r1
	ldr	r2, .L9+24
	asr	r5, r0, #24
	ldr	r2, [r2]
	ldr	r4, [r6, r1, lsl #2]
	ldr	r5, [r2, r5, lsl #2]
	ldr	r8, [fp, #-88]
	eor	r5, r5, r4, asr #24
	str	r5, [r8]
	asr	r5, r3, #16
	ldr	r5, [r2, r5, lsl #2]
	add	r1, r6, r1, lsl #2
	eor	r5, r5, r4, asr #16
	str	r5, [r8, #4]
	asr	r6, lr, #8
	ldr	r5, [r2, r6, lsl #2]
	asr	r7, r3, #24
	eor	r5, r5, r4, asr #8
	str	r5, [r8, #8]
	ldr	r6, [r2, ip, lsl #2]
	ldr	r5, [r1, #4]
	eor	r4, r4, r6
	str	r4, [r8, #12]
	ldr	r4, [r2, r7, lsl #2]
	asr	r6, lr, #16
	eor	r4, r4, r5, asr #24
	str	r4, [r8, #16]
	ldr	r4, [r2, r6, lsl #2]
	asr	r6, ip, #8
	eor	r4, r4, r5, asr #16
	str	r4, [r8, #20]
	ldr	r4, [r2, r6, lsl #2]
	asr	r7, lr, #24
	eor	r4, r4, r5, asr #8
	str	r4, [r8, #24]
	ldr	r6, [r2, r0, lsl #2]
	ldr	r4, [r1, #8]
	eor	r5, r5, r6
	str	r5, [r8, #28]
	ldr	r5, [r2, r7, lsl #2]
	asr	r6, ip, #16
	eor	r5, r5, r4, asr #24
	str	r5, [r8, #32]
	ldr	r5, [r2, r6, lsl #2]
	asr	r6, r0, #8
	eor	r5, r5, r4, asr #16
	str	r5, [r8, #36]
	ldr	r5, [r2, r6, lsl #2]
	asr	ip, ip, #24
	eor	r5, r5, r4, asr #8
	str	r5, [r8, #40]
	ldr	r5, [r2, r3, lsl #2]
	ldr	r1, [r1, #12]
	eor	r4, r4, r5
	str	r4, [r8, #44]
	ldr	ip, [r2, ip, lsl #2]
	asr	r0, r0, #16
	eor	ip, ip, r1, asr #24
	str	ip, [r8, #48]
	ldr	r0, [r2, r0, lsl #2]
	asr	r3, r3, #8
	eor	r0, r0, r1, asr #16
	str	r0, [r8, #52]
	ldr	r3, [r2, r3, lsl #2]
	eor	r3, r3, r1, asr #8
	str	r3, [r8, #56]
	ldr	r3, [r2, lr, lsl #2]
	eor	r1, r1, r3
	ldr	r3, .L9+4
	str	r1, [r8, #60]
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L8
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	Nb
	.word	.LC0
	.word	FT0
	.word	FT1
	.word	FT3
	.word	FT2
	.word	Sbox
	.size	aes_encrypt, .-aes_encrypt
	.comm	Sbox,4,4
	.comm	Nr_AES256,4,4
	.comm	Nb,4,4
	.comm	FT3,4,4
	.comm	FT2,4,4
	.comm	FT1,4,4
	.comm	FT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
