	.file	"extr_c_cfb64.c_CAST_cfb64_encrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	CAST_cfb64_encrypt
	.type	CAST_cfb64_encrypt, @function
CAST_cfb64_encrypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, r8
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	ebx, DWORD PTR [r9]
	mov	QWORD PTR 8[rsp], r9
	mov	eax, DWORD PTR 96[rsp]
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rcx
	xor	ecx, ecx
	test	eax, eax
	jne	.L2
	lea	r15, [rdi+rdx]
	xor	r9d, r9d
	test	rdx, rdx
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rsp]
	mov	DWORD PTR [rax], ebx
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, r9d
	mov	rdi, r14
	call	n2l@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	BYTE PTR 22[rsp], 0
	mov	BYTE PTR 7[rsp], sil
	call	n2l@PLT
	movzx	edx, BYTE PTR 7[rsp]
	lea	rdi, 22[rsp]
	mov	rsi, r13
	mov	BYTE PTR 23[rsp], dl
	call	CAST_encrypt@PLT
	movzx	edi, BYTE PTR 22[rsp]
	mov	rsi, r14
	call	l2n@PLT
	movzx	edi, BYTE PTR 23[rsp]
	mov	rsi, r14
	call	l2n@PLT
	xor	r9d, r9d
.L7:
	movsx	rdx, ebx
	movzx	eax, BYTE PTR 0[rbp]
	add	rbp, 1
	add	r12, 1
	add	rdx, r14
	add	ebx, 1
	movzx	ecx, BYTE PTR [rdx]
	mov	BYTE PTR [rdx], al
	and	ebx, 7
	xor	eax, ecx
	mov	BYTE PTR -1[r12], al
	cmp	r15, rbp
	je	.L4
.L8:
	test	ebx, ebx
	jne	.L7
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L2:
	test	rdx, rdx
	je	.L4
	lea	r15, [rdi+rdx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsx	rax, ebx
	movzx	edx, BYTE PTR 0[rbp]
	add	rbp, 1
	add	r12, 1
	add	rax, r14
	add	ebx, 1
	xor	dl, BYTE PTR [rax]
	and	ebx, 7
	mov	BYTE PTR -1[r12], dl
	mov	BYTE PTR [rax], dl
	cmp	rbp, r15
	je	.L4
.L6:
	test	ebx, ebx
	jne	.L5
	xor	esi, esi
	mov	rdi, r14
	call	n2l@PLT
	xor	esi, esi
	mov	rdi, r14
	mov	BYTE PTR 22[rsp], 0
	mov	BYTE PTR 7[rsp], sil
	call	n2l@PLT
	movzx	edx, BYTE PTR 7[rsp]
	lea	rdi, 22[rsp]
	mov	rsi, r13
	mov	BYTE PTR 23[rsp], dl
	call	CAST_encrypt@PLT
	movzx	edi, BYTE PTR 22[rsp]
	mov	rsi, r14
	call	l2n@PLT
	movzx	edi, BYTE PTR 23[rsp]
	mov	rsi, r14
	call	l2n@PLT
	jmp	.L5
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CAST_cfb64_encrypt, .-CAST_cfb64_encrypt
	.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_c_cfb64.c_CAST_cfb64_encrypt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CAST_cfb64_encrypt
	.syntax unified
	.arm
	.fpu softvfp
	.type	CAST_cfb64_encrypt, %function
CAST_cfb64_encrypt:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, #0
	sub	sp, sp, #20
	ldr	ip, [sp, #64]
	mov	r7, r3
	ldr	r10, [sp, #60]
	ldr	r3, .L19
	cmp	ip, r8
	mov	r5, r0
	mov	fp, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r9, r8
	ldr	r4, [r10]
	ldr	r6, [sp, #56]
	bne	.L2
	cmp	r2, r8
	addne	r3, r0, r2
	bne	.L8
.L4:
	ldr	r3, .L19
	str	r4, [r10]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r1, r4
	mov	r0, r6
	str	r3, [sp, #4]
	bl	n2l
	mov	r1, r4
	mov	r0, r6
	strb	r8, [sp, #8]
	bl	n2l
	mov	r1, r7
	add	r0, sp, #8
	strb	r9, [sp, #9]
	bl	CAST_encrypt
	mov	r1, r6
	ldrb	r0, [sp, #8]	@ zero_extendqisi2
	bl	l2n
	mov	r1, r6
	ldrb	r0, [sp, #9]	@ zero_extendqisi2
	bl	l2n
	ldr	r3, [sp, #4]
.L7:
	ldrb	r1, [r5], #1	@ zero_extendqisi2
	ldrb	r2, [r6, r4]	@ zero_extendqisi2
	add	r0, r4, #1
	eor	r2, r2, r1
	cmp	r3, r5
	strb	r1, [r6, r4]
	strb	r2, [fp], #1
	and	r4, r0, #7
	beq	.L4
.L8:
	cmp	r4, #0
	bne	.L7
	b	.L18
.L2:
	cmp	r2, #0
	beq	.L4
	add	r3, r0, r2
	b	.L6
.L5:
	ldrb	r1, [r6, r4]	@ zero_extendqisi2
	ldrb	r2, [r5], #1	@ zero_extendqisi2
	eor	r2, r2, r1
	cmp	r5, r3
	add	r1, r4, #1
	strb	r2, [fp], #1
	strb	r2, [r6, r4]
	and	r4, r1, #7
	beq	.L4
.L6:
	cmp	r4, #0
	bne	.L5
	mov	r1, r4
	mov	r0, r6
	str	r3, [sp, #4]
	bl	n2l
	mov	r1, r4
	mov	r0, r6
	strb	r8, [sp, #8]
	bl	n2l
	mov	r1, r7
	add	r0, sp, #8
	strb	r9, [sp, #9]
	bl	CAST_encrypt
	mov	r1, r6
	ldrb	r0, [sp, #8]	@ zero_extendqisi2
	bl	l2n
	mov	r1, r6
	ldrb	r0, [sp, #9]	@ zero_extendqisi2
	bl	l2n
	ldr	r3, [sp, #4]
	b	.L5
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	CAST_cfb64_encrypt, .-CAST_cfb64_encrypt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
