	.file	"139526.c"
	.intel_syntax noprefix
	.text
	.globl	SRC_PASS
	.bss
	.align 16
	.type	SRC_PASS, @object
	.size	SRC_PASS, 17
SRC_PASS:
	.zero	17
	.globl	SRC_DATA
	.align 16
	.type	SRC_DATA, @object
	.size	SRC_DATA, 17
SRC_DATA:
	.zero	17
	.globl	DES_HASH
	.align 32
	.type	DES_HASH, @object
	.size	DES_HASH, 256
DES_HASH:
	.zero	256
	.globl	MAP_BASE16
	.section	.rodata
	.align 16
	.type	MAP_BASE16, @object
	.size	MAP_BASE16, 17
MAP_BASE16:
	.string	"0123456789ABCDEF"
	.globl	TMP
	.bss
	.align 4
	.type	TMP, @object
	.size	TMP, 4
TMP:
	.zero	4
	.globl	i
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	j
	.align 4
	.type	j, @object
	.size	j, 4
j:
	.zero	4
	.globl	k
	.align 4
	.type	k, @object
	.size	k, 4
k:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%c%c "
	.text
	.globl	rc4_enc_dec
	.type	rc4_enc_dec, @function
rc4_enc_dec:
.LFB6:
	.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
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR i[rip], 0
	jmp	.L2
.L3:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR i[rip]
	mov	ecx, edx
	cdqe
	lea	rdx, DES_HASH[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L2:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 255
	jle	.L3
	mov	DWORD PTR i[rip], 0
	mov	DWORD PTR j[rip], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	r12d, al
	mov	eax, DWORD PTR i[rip]
	movsx	rbx, eax
	lea	rdi, SRC_PASS[rip]
	call	strlen@PLT
	mov	rsi, rax
	mov	rax, rbx
	mov	edx, 0
	div	rsi
	mov	rcx, rdx
	mov	rdx, rcx
	lea	rax, SRC_PASS[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	movsx	eax, al
	lea	edx, [r12+rax]
	mov	eax, DWORD PTR j[rip]
	add	eax, edx
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR j[rip], eax
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	DWORD PTR TMP[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	ecx, DWORD PTR j[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, DES_HASH[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	edx, DWORD PTR TMP[rip]
	mov	eax, DWORD PTR i[rip]
	mov	ecx, edx
	cdqe
	lea	rdx, DES_HASH[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L4:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 255
	jle	.L5
	mov	DWORD PTR i[rip], 0
	mov	DWORD PTR j[rip], 0
	mov	DWORD PTR k[rip], 0
	jmp	.L6
.L7:
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR i[rip], eax
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	edx, al
	mov	eax, DWORD PTR j[rip]
	add	eax, edx
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	DWORD PTR j[rip], eax
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	mov	DWORD PTR TMP[rip], eax
	mov	eax, DWORD PTR i[rip]
	mov	ecx, DWORD PTR j[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	movsx	rax, ecx
	lea	rcx, DES_HASH[rip]
	mov	BYTE PTR [rax+rcx], dl
	mov	edx, DWORD PTR TMP[rip]
	mov	eax, DWORD PTR i[rip]
	mov	ecx, edx
	cdqe
	lea	rdx, DES_HASH[rip]
	mov	BYTE PTR [rax+rdx], cl
	mov	eax, DWORD PTR k[rip]
	cdqe
	lea	rdx, SRC_DATA[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	ecx, al
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	esi, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR j[rip]
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	add	eax, esi
	movzx	eax, al
	cdqe
	lea	rdx, DES_HASH[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movzx	eax, al
	xor	eax, ecx
	mov	DWORD PTR TMP[rip], eax
	mov	eax, DWORD PTR TMP[rip]
	and	eax, 15
	cdqe
	lea	rdx, MAP_BASE16[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	edx, al
	mov	eax, DWORD PTR TMP[rip]
	sar	eax, 4
	cdqe
	lea	rcx, MAP_BASE16[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR k[rip]
	add	eax, 1
	mov	DWORD PTR k[rip], eax
.L6:
	mov	eax, DWORD PTR k[rip]
	movsx	rbx, eax
	lea	rdi, SRC_DATA[rip]
	call	strlen@PLT
	cmp	rbx, rax
	jb	.L7
	nop
	nop
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	rc4_enc_dec, .-rc4_enc_dec
	.section	.rodata
.LC1:
	.string	"%s"
.LC2:
	.string	"%*c"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, SRC_PASS[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rsi, SRC_DATA[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, 0
	call	rc4_enc_dec
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"139526.c"
	.text
	.comm	SRC_PASS,17,4
	.comm	SRC_DATA,17,4
	.comm	DES_HASH,256,4
	.global	MAP_BASE16
	.section	.rodata
	.align	2
	.type	MAP_BASE16, %object
	.size	MAP_BASE16, 17
MAP_BASE16:
	.ascii	"0123456789ABCDEF\000"
	.comm	TMP,4,4
	.comm	i,4,4
	.comm	j,4,4
	.comm	k,4,4
	.global	__aeabi_uidivmod
	.align	2
.LC0:
	.ascii	"%c%c \000"
	.text
	.align	2
	.global	rc4_enc_dec
	.syntax unified
	.arm
	.fpu softvfp
	.type	rc4_enc_dec, %function
rc4_enc_dec:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r3, .L8
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L3:
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	and	r1, r2, #255
	ldr	r2, .L8+4
	strb	r1, [r2, r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8
	str	r3, [r2]
.L2:
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, #255
	ble	.L3
	ldr	r3, .L8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8+8
	mov	r2, #0
	str	r2, [r3]
	b	.L4
.L5:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r4, r3
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r5, r3
	ldr	r0, .L8+12
	bl	strlen
	mov	r3, r0
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, .L8+12
	ldrb	r3, [r3, r2]	@ zero_extendqisi2
	add	r2, r4, r3
	ldr	r3, .L8+8
	ldr	r3, [r3]
	add	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	ldr	r2, .L8+8
	str	r3, [r2]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L8+16
	str	r2, [r3]
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r1, .L8+4
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L8+4
	strb	r1, [r2, r3]
	ldr	r3, .L8+16
	ldr	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	and	r1, r2, #255
	ldr	r2, .L8+4
	strb	r1, [r2, r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8
	str	r3, [r2]
.L4:
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, #255
	ble	.L5
	ldr	r3, .L8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L8+20
	mov	r2, #0
	str	r2, [r3]
	b	.L6
.L7:
	ldr	r3, .L8
	ldr	r3, [r3]
	add	r3, r3, #1
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	ldr	r2, .L8
	str	r3, [r2]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L8+8
	ldr	r3, [r3]
	add	r3, r2, r3
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	ldr	r2, .L8+8
	str	r3, [r2]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L8+16
	str	r2, [r3]
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r1, .L8+4
	ldrb	r1, [r1, r2]	@ zero_extendqisi2
	ldr	r2, .L8+4
	strb	r1, [r2, r3]
	ldr	r3, .L8+16
	ldr	r2, [r3]
	ldr	r3, .L8
	ldr	r3, [r3]
	and	r1, r2, #255
	ldr	r2, .L8+4
	strb	r1, [r2, r3]
	ldr	r3, .L8+20
	ldr	r3, [r3]
	ldr	r2, .L8+24
	ldrb	r2, [r2, r3]	@ zero_extendqisi2
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r1, .L8+4
	ldrb	r1, [r1, r3]	@ zero_extendqisi2
	ldr	r3, .L8+8
	ldr	r3, [r3]
	ldr	r0, .L8+4
	ldrb	r3, [r0, r3]	@ zero_extendqisi2
	add	r3, r1, r3
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, .L8+4
	ldrb	r3, [r3, r1]	@ zero_extendqisi2
	eor	r3, r3, r2
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L8+16
	str	r2, [r3]
	ldr	r3, .L8+16
	ldr	r3, [r3]
	asr	r3, r3, #4
	ldr	r2, .L8+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, .L8+16
	ldr	r3, [r3]
	and	r3, r3, #15
	ldr	r2, .L8+28
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L8+32
	bl	printf
	ldr	r3, .L8+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L8+20
	str	r3, [r2]
.L6:
	ldr	r0, .L8+24
	bl	strlen
	mov	r3, r0
	ldr	r2, .L8+20
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L7
	nop
	nop
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	i
	.word	DES_HASH
	.word	j
	.word	SRC_PASS
	.word	TMP
	.word	k
	.word	SRC_DATA
	.word	MAP_BASE16
	.word	.LC0
	.size	rc4_enc_dec, .-rc4_enc_dec
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"%*c\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L12
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r1, .L12+12
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	bl	rc4_enc_dec
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	SRC_PASS
	.word	.LC1
	.word	.LC2
	.word	SRC_DATA
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
