	.file	"extr_geode-aes.c_geode_setkey_cip.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	geode_setkey_cip, @function
geode_setkey_cip:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	crypto_tfm_ctx@PLT
	cmp	DWORD PTR AES_KEYSIZE_128[rip], r12d
	mov	DWORD PTR [rax], r12d
	mov	rbp, rax
	je	.L11
	cmp	DWORD PTR AES_KEYSIZE_192[rip], r12d
	mov	eax, DWORD PTR [rbx]
	je	.L4
	cmp	DWORD PTR AES_KEYSIZE_256[rip], r12d
	je	.L4
	or	eax, DWORD PTR CRYPTO_TFM_RES_BAD_KEY_LEN[rip]
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rcx, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR CRYPTO_TFM_REQ_MASK[rip]
	mov	rsi, r13
	mov	edi, DWORD PTR 16[rbp]
	not	edx
	and	edx, DWORD PTR [rcx]
	mov	DWORD PTR [rcx], edx
	and	eax, DWORD PTR CRYPTO_TFM_REQ_MASK[rip]
	or	eax, edx
	mov	edx, r12d
	mov	DWORD PTR [rcx], eax
	call	crypto_cipher_setkey@PLT
	test	eax, eax
	je	.L1
	mov	edx, DWORD PTR CRYPTO_TFM_RES_MASK[rip]
	mov	rcx, QWORD PTR 8[rbp]
	not	edx
	and	edx, DWORD PTR [rbx]
	mov	ecx, DWORD PTR [rcx]
	mov	DWORD PTR [rbx], edx
	and	ecx, DWORD PTR CRYPTO_TFM_RES_MASK[rip]
	or	edx, ecx
	mov	DWORD PTR [rbx], edx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rax]
	mov	edx, r12d
	mov	rsi, r13
	call	memcpy@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	geode_setkey_cip, .-geode_setkey_cip
	.comm	EINVAL,4,4
	.comm	CRYPTO_TFM_RES_MASK,4,4
	.comm	CRYPTO_TFM_RES_BAD_KEY_LEN,4,4
	.comm	CRYPTO_TFM_REQ_MASK,4,4
	.comm	AES_KEYSIZE_256,4,4
	.comm	AES_KEYSIZE_192,4,4
	.comm	AES_KEYSIZE_128,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_geode-aes.c_geode_setkey_cip.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	geode_setkey_cip, %function
geode_setkey_cip:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r7, r1
	mov	r6, r0
	bl	crypto_tfm_ctx
	ldr	r3, .L12
	mov	r5, r0
	ldr	r2, [r3]
	str	r4, [r0]
	cmp	r2, r4
	beq	.L11
	ldr	r2, .L12+4
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r2, r4
	beq	.L4
	ldr	r2, .L12+8
	ldr	r2, [r2]
	cmp	r2, r4
	beq	.L4
	ldr	r2, .L12+12
	ldr	r1, .L12+16
	ldr	r2, [r2]
	orr	r3, r2, r3
	str	r3, [r6]
	ldr	r0, [r1]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	ip, [r5, #4]
	ldr	r1, .L12+20
	ldr	r0, [ip]
	ldr	lr, [r1]
	mov	r2, r4
	bic	r0, r0, lr
	str	r0, [ip]
	ldr	lr, [r1]
	mov	r1, r7
	and	r3, r3, lr
	orr	r3, r3, r0
	str	r3, [ip]
	ldr	r0, [r5, #8]
	bl	crypto_cipher_setkey
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, .L12+24
	ldr	r3, [r6]
	ldr	r2, [r1]
	ldr	ip, [r5, #4]
	bic	r2, r3, r2
	str	r2, [r6]
	ldr	r3, [ip]
	ldr	r1, [r1]
	and	r3, r3, r1
	orr	r3, r3, r2
	str	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r1, r7
	ldr	r0, [r0, #12]
	bl	memcpy
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	AES_KEYSIZE_128
	.word	AES_KEYSIZE_192
	.word	AES_KEYSIZE_256
	.word	CRYPTO_TFM_RES_BAD_KEY_LEN
	.word	EINVAL
	.word	CRYPTO_TFM_REQ_MASK
	.word	CRYPTO_TFM_RES_MASK
	.size	geode_setkey_cip, .-geode_setkey_cip
	.comm	EINVAL,4,4
	.comm	CRYPTO_TFM_RES_MASK,4,4
	.comm	CRYPTO_TFM_RES_BAD_KEY_LEN,4,4
	.comm	CRYPTO_TFM_REQ_MASK,4,4
	.comm	AES_KEYSIZE_256,4,4
	.comm	AES_KEYSIZE_192,4,4
	.comm	AES_KEYSIZE_128,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
