	.file	"extr_mesh_aes_encrypt.c_tc_aes_encrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tc_aes_encrypt
	.type	tc_aes_encrypt, @function
tc_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, rdx
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	QWORD PTR -72[rbp], rdi
	mov	r13d, DWORD PTR Nk[rip]
	imul	r13d, DWORD PTR Nb[rip]
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, r13d
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	cmp	QWORD PTR -72[rbp], 0
	mov	r15, rsp
	je	.L7
	test	rsi, rsi
	je	.L7
	test	r12, r12
	je	.L7
	sal	r13d, 2
	mov	rdx, rsi
	mov	rdi, r15
	mov	ecx, r13d
	mov	esi, r13d
	call	_copy@PLT
	mov	rsi, QWORD PTR [r12]
	mov	rdi, r15
	call	add_round_key@PLT
	cmp	DWORD PTR Nr[rip], 1
	je	.L11
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r15
	mov	r14d, ebx
	add	ebx, 1
	call	sub_bytes@PLT
	mov	rdi, r15
	call	shift_rows@PLT
	mov	rdi, r15
	call	mix_columns@PLT
	mov	esi, ebx
	mov	rdi, r15
	imul	esi, DWORD PTR Nb[rip]
	add	rsi, QWORD PTR [r12]
	call	add_round_key@PLT
	mov	eax, DWORD PTR Nr[rip]
	sub	eax, 1
	cmp	ebx, eax
	jb	.L9
	add	r14d, 2
.L8:
	mov	rdi, r15
	call	sub_bytes@PLT
	mov	rdi, r15
	call	shift_rows@PLT
	imul	r14d, DWORD PTR Nb[rip]
	mov	rsi, QWORD PTR [r12]
	mov	rdi, r15
	add	rsi, r14
	call	add_round_key@PLT
	mov	rdi, QWORD PTR -72[rbp]
	mov	ecx, r13d
	mov	rdx, r15
	mov	esi, r13d
	call	_copy@PLT
	mov	esi, DWORD PTR TC_ZERO_BYTE[rip]
	mov	edx, r13d
	mov	rdi, r15
	call	_set@PLT
	mov	eax, DWORD PTR TC_CRYPTO_SUCCESS[rip]
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L26
	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
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR TC_CRYPTO_FAIL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r14d, 1
	jmp	.L8
.L26:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tc_aes_encrypt, .-tc_aes_encrypt
	.comm	TC_ZERO_BYTE,4,4
	.comm	TC_CRYPTO_SUCCESS,4,4
	.comm	TC_CRYPTO_FAIL,4,4
	.comm	Nr,4,4
	.comm	Nk,4,4
	.comm	Nb,4,4
	.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_mesh_aes_encrypt.c_tc_aes_encrypt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tc_aes_encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	tc_aes_encrypt, %function
tc_aes_encrypt:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L19
	ldr	r7, .L19+4
	ldr	r6, [r3]
	ldr	r3, [r7]
	cmp	r0, #0
	mul	r6, r3, r6
	lsl	r6, r6, #2
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L19+8
	str	r0, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L4
	cmp	r1, #0
	beq	.L4
	cmp	r2, #0
	mov	r5, r2
	beq	.L4
	mov	r4, sp
	mov	r2, r1
	mov	r3, r6
	mov	r1, r6
	mov	r0, r4
	ldr	r9, .L19+12
	bl	_copy
	ldr	r1, [r5]
	mov	r0, r4
	bl	add_round_key
	ldr	r1, [r9]
	cmp	r1, #1
	beq	.L8
	mov	r10, #0
.L6:
	mov	r0, r4
	bl	sub_bytes
	mov	r0, r4
	bl	shift_rows
	mov	r0, r4
	bl	mix_columns
	ldr	r2, [r5]
	ldr	r1, [r7]
	mov	r8, r10
	add	r10, r10, #1
	mla	r1, r10, r1, r2
	mov	r0, r4
	bl	add_round_key
	ldr	r2, [r9]
	sub	r2, r2, #1
	cmp	r10, r2
	bcc	.L6
	add	r8, r8, #2
.L5:
	mov	r0, r4
	bl	sub_bytes
	mov	r0, r4
	bl	shift_rows
	ldr	r3, [r5]
	ldr	r1, [r7]
	mov	r0, r4
	mla	r1, r8, r1, r3
	bl	add_round_key
	mov	r3, r6
	mov	r2, r4
	mov	r1, r6
	ldr	r0, [fp, #-48]
	bl	_copy
	ldr	r3, .L19+16
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r4
	bl	_set
	ldr	r3, .L19+20
	ldr	r0, [r3]
	b	.L1
.L4:
	ldr	r3, .L19+24
	ldr	r0, [r3]
.L1:
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r8, r1
	b	.L5
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	Nk
	.word	Nb
	.word	.LC0
	.word	Nr
	.word	TC_ZERO_BYTE
	.word	TC_CRYPTO_SUCCESS
	.word	TC_CRYPTO_FAIL
	.size	tc_aes_encrypt, .-tc_aes_encrypt
	.comm	TC_ZERO_BYTE,4,4
	.comm	TC_CRYPTO_SUCCESS,4,4
	.comm	TC_CRYPTO_FAIL,4,4
	.comm	Nr,4,4
	.comm	Nk,4,4
	.comm	Nb,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
