	.file	"extr_kcrypto_arcfour.c_arcfour_encrypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	arcfour_encrypt, @function
arcfour_encrypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 184
	.cfi_def_cfa_offset 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 168[rsp], rax
	xor	eax, eax
	lea	rbx, 32[rsp]
	mov	rdx, rbx
	call	arcfour_derive_key@PLT
	test	rbp, rbp
	je	.L2
	lea	r8, 96[rsp]
	mov	rsi, rbp
	mov	rdx, r15
	mov	rdi, rbx
	mov	rcx, r8
	mov	QWORD PTR 8[rsp], r8
	lea	rbp, 28[rsp]
	call	arcfour_hmac@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	edx, 16
	mov	rdi, rbp
	mov	rsi, r8
	call	rc4_init@PLT
.L3:
	mov	ecx, DWORD PTR rc4_crypt_int[rip]
	mov	r8, rbp
	mov	rdx, r14
	mov	rsi, r13
	mov	rdi, r12
	call	m_apply@PLT
	mov	rax, QWORD PTR 168[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 184
	.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
.L2:
	.cfi_restore_state
	lea	rbp, 28[rsp]
	mov	edx, 16
	mov	rsi, rbx
	mov	rdi, rbp
	call	rc4_init@PLT
	jmp	.L3
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	arcfour_encrypt, .-arcfour_encrypt
	.comm	rc4_crypt_int,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_kcrypto_arcfour.c_arcfour_encrypt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	arcfour_encrypt, %function
arcfour_encrypt:
	@ args = 8, pretend = 0, frame = 136
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #148
	ldr	r7, [sp, #168]
	mov	r6, r3
	ldr	r3, .L8
	mov	r4, r1
	mov	r5, r2
	mov	r1, #0
	add	r2, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #140]
	mov	r3,#0
	bl	arcfour_derive_key
	cmp	r7, #0
	beq	.L2
	mov	r1, r7
	ldr	r2, [sp, #172]
	add	r0, sp, #12
	add	r3, sp, #76
	add	r7, sp, #8
	bl	arcfour_hmac
	mov	r0, r7
	mov	r2, #16
	add	r1, sp, #76
	bl	rc4_init
.L3:
	ldr	r3, .L8+4
	str	r7, [sp]
	mov	r2, r6
	ldr	r3, [r3]
	mov	r1, r5
	mov	r0, r4
	bl	m_apply
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #140]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #148
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	add	r7, sp, #8
	mov	r0, r7
	mov	r2, #16
	add	r1, sp, #12
	bl	rc4_init
	b	.L3
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	rc4_crypt_int
	.size	arcfour_encrypt, .-arcfour_encrypt
	.comm	rc4_crypt_int,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
