	.file	"extr_rtmpcrypt.c_ff_rtmpe_update_keystream.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_rtmpe_update_keystream
	.type	ff_rtmpe_update_keystream, @function
ff_rtmpe_update_keystream:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR RTMP_HANDSHAKE_PACKET_SIZE[rip]
	mov	rcx, rsp
	mov	r12, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L11:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L11
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L12
.L4:
	xor	r8d, r8d
	xor	edx, edx
	lea	rdi, 8[rbx]
	mov	r9d, 1
	mov	ecx, r12d
	mov	rsi, rsp
	call	av_rc4_crypt@PLT
	xor	r8d, r8d
	xor	edx, edx
	lea	rdi, 4[rbx]
	mov	r9d, 1
	mov	ecx, r12d
	mov	rsi, rsp
	call	av_rc4_crypt@PLT
	mov	DWORD PTR [rbx], 1
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	lea	rsp, -16[rbp]
	xor	eax, eax
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ff_rtmpe_update_keystream, .-ff_rtmpe_update_keystream
	.comm	RTMP_HANDSHAKE_PACKET_SIZE,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_rtmpcrypt.c_ff_rtmpe_update_keystream.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ff_rtmpe_update_keystream
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_rtmpe_update_keystream, %function
ff_rtmpe_update_keystream:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	mov	r4, #0
	mov	r6, #1
	ldr	r3, .L6
	ldr	r5, [r0]
	ldr	r7, [r3]
	ldr	ip, .L6+4
	add	r3, r7, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	stm	sp, {r4, r6}
	add	r8, sp, #8
	mov	r1, r8
	mov	r3, r7
	mov	r2, r4
	add	r0, r5, #8
	ldr	ip, [ip]
	str	ip, [fp, #-32]
	mov	ip,#0
	bl	av_rc4_crypt
	mov	r3, r7
	mov	r2, r4
	mov	r1, r8
	stm	sp, {r4, r6}
	add	r0, r5, #4
	bl	av_rc4_crypt
	ldr	r3, .L6+4
	str	r6, [r5]
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	RTMP_HANDSHAKE_PACKET_SIZE
	.word	.LC0
	.size	ff_rtmpe_update_keystream, .-ff_rtmpe_update_keystream
	.comm	RTMP_HANDSHAKE_PACKET_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
