	.file	"extr_crypt-des.c_crypt_des.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	crypt_des
	.type	crypt_des, @function
crypt_des:
.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, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rdx
	mov	edx, DWORD PTR des_initialised[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	test	edx, edx
	je	.L29
.L2:
	lea	r15, 32[rsp]
	mov	rax, r15
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	edx, BYTE PTR [r14]
	add	rax, 4
	mov	ecx, edx
	add	edx, edx
	mov	DWORD PTR -4[rax], edx
	cmp	cl, 1
	mov	rdx, rax
	sbb	r14, -1
	sub	rdx, r15
	cmp	rdx, 32
	jne	.L4
	mov	rdi, r15
	call	des_setkey@PLT
	test	rax, rax
	jne	.L11
	movzx	eax, BYTE PTR _PASSWORD_EFMT1[rip]
	cmp	BYTE PTR [r12], al
	jne	.L7
	lea	r13, 1[r12]
	xor	ebp, ebp
	xor	ebx, ebx
.L8:
	movsx	edi, BYTE PTR 0[r13]
	add	r13, 1
	call	ascii_to_bin@PLT
	mov	ecx, ebp
	add	ebp, 6
	sal	eax, cl
	or	ebx, eax
	cmp	ebp, 24
	jne	.L8
	lea	rdx, 5[r12]
	xor	r13d, r13d
	xor	ebp, ebp
.L9:
	movsx	edi, BYTE PTR [rdx]
	mov	QWORD PTR [rsp], rdx
	call	ascii_to_bin@PLT
	mov	ecx, r13d
	mov	rdx, QWORD PTR [rsp]
	add	r13d, 6
	sal	eax, cl
	or	ebp, eax
	add	rdx, 1
	cmp	r13d, 24
	jne	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	cmp	BYTE PTR [r14], 0
	je	.L30
	xor	edx, edx
	mov	ecx, 1
	mov	rsi, r15
	mov	rdi, r15
	call	des_cipher@PLT
	test	rax, rax
	jne	.L11
	mov	rdx, r15
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L14:
	add	rdx, 4
	add	eax, eax
	add	r14, 1
	xor	DWORD PTR -4[rdx], eax
	mov	rax, rdx
	sub	rax, r15
	cmp	rax, 32
	je	.L13
.L12:
	movsx	eax, BYTE PTR [r14]
	test	al, al
	jne	.L14
.L13:
	mov	rdi, r15
	call	des_setkey@PLT
	test	rax, rax
	je	.L10
.L11:
	mov	eax, -1
.L1:
	mov	rbx, QWORD PTR 40[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L31
	add	rsp, 56
	.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
.L7:
	.cfi_restore_state
	movsx	edi, BYTE PTR 1[r12]
	call	ascii_to_bin@PLT
	movsx	edi, BYTE PTR [r12]
	mov	ebp, eax
	call	ascii_to_bin@PLT
	movzx	edx, BYTE PTR [r12]
	mov	rbx, QWORD PTR 8[rsp]
	sal	ebp, 6
	or	ebp, eax
	mov	BYTE PTR [rbx], dl
	movzx	eax, BYTE PTR 1[r12]
	lea	r12, 2[rbx]
	test	al, al
	cmove	eax, edx
	mov	BYTE PTR 1[rbx], al
	mov	ebx, 25
.L16:
	mov	edi, ebp
	call	setup_salt@PLT
	xor	esi, esi
	xor	edi, edi
	lea	rcx, 28[rsp]
	lea	rdx, 24[rsp]
	mov	r8d, ebx
	call	do_des@PLT
	test	rax, rax
	jne	.L11
	mov	eax, DWORD PTR 24[rsp]
	mov	rcx, QWORD PTR ascii64[rip]
	mov	edx, eax
	shr	edx, 26
	mov	rdx, QWORD PTR [rcx+rdx*8]
	mov	BYTE PTR [r12], dl
	mov	edx, eax
	mov	rcx, QWORD PTR ascii64[rip]
	sar	edx, 20
	and	edx, 63
	mov	rdx, QWORD PTR [rcx+rdx*8]
	mov	BYTE PTR 1[r12], dl
	mov	edx, eax
	mov	rcx, QWORD PTR ascii64[rip]
	sar	eax, 8
	sar	edx, 14
	and	eax, 63
	and	edx, 63
	mov	rdx, QWORD PTR [rcx+rdx*8]
	mov	BYTE PTR 2[r12], dl
	mov	rdx, QWORD PTR ascii64[rip]
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	BYTE PTR 3[r12], al
	mov	edx, DWORD PTR 28[rsp]
	mov	eax, DWORD PTR 24[rsp]
	mov	rsi, QWORD PTR ascii64[rip]
	mov	ecx, edx
	shr	ecx, 16
	sal	eax, 16
	or	eax, ecx
	mov	ecx, eax
	sar	ecx, 18
	and	ecx, 63
	mov	rcx, QWORD PTR [rsi+rcx*8]
	mov	BYTE PTR 4[r12], cl
	mov	ecx, eax
	mov	rsi, QWORD PTR ascii64[rip]
	sar	ecx, 12
	and	ecx, 63
	mov	rcx, QWORD PTR [rsi+rcx*8]
	mov	BYTE PTR 5[r12], cl
	mov	ecx, eax
	mov	rsi, QWORD PTR ascii64[rip]
	and	eax, 63
	sar	ecx, 6
	and	ecx, 63
	mov	rcx, QWORD PTR [rsi+rcx*8]
	mov	BYTE PTR 6[r12], cl
	mov	rcx, QWORD PTR ascii64[rip]
	mov	rax, QWORD PTR [rcx+rax*8]
	mov	BYTE PTR 7[r12], al
	lea	eax, 0[0+rdx*4]
	mov	rdx, QWORD PTR ascii64[rip]
	mov	ecx, eax
	sar	ecx, 12
	and	ecx, 63
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	BYTE PTR 8[r12], cl
	mov	ecx, eax
	and	eax, 60
	sar	ecx, 6
	and	ecx, 63
	mov	rcx, QWORD PTR [rdx+rcx*8]
	mov	BYTE PTR 9[r12], cl
	mov	rax, QWORD PTR [rdx+rax*8]
	mov	BYTE PTR 11[r12], 0
	mov	BYTE PTR 10[r12], al
	xor	eax, eax
	jmp	.L1
.L29:
	call	des_init@PLT
	jmp	.L2
.L30:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rsi, r12
	mov	edx, 9
	call	stpncpy@PLT
	mov	r12, rax
	jmp	.L16
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	crypt_des, .-crypt_des
	.comm	des_initialised,4,4
	.comm	ascii64,8,8
	.comm	_PASSWORD_EFMT1,1,1
	.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_crypt-des.c_crypt_des.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	crypt_des
	.syntax unified
	.arm
	.fpu softvfp
	.type	crypt_des, %function
crypt_des:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L34
	sub	sp, sp, #36
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, #0
	ldr	r3, .L34+4
	mov	r6, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L31
.L2:
	add	r9, sp, #20
	mov	r2, r9
.L4:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	lsl	r3, r3, #1
	str	r3, [r2], #4
	sub	r3, r2, r9
	addne	r4, r4, #1
	cmp	r3, #32
	bne	.L4
	mov	r0, r9
	bl	des_setkey
	subs	r5, r0, #0
	bne	.L11
	ldr	r3, .L34+8
	ldrb	r2, [r6]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L7
	mov	fp, r6
	mov	r7, r5
	mov	r10, r5
.L8:
	ldrb	r0, [fp, #1]!	@ zero_extendqisi2
	bl	ascii_to_bin
	orr	r7, r7, r0, lsl r10
	add	r10, r10, #6
	cmp	r10, #24
	bne	.L8
	mov	r10, #0
	add	fp, r6, #4
.L9:
	ldrb	r0, [fp, #1]!	@ zero_extendqisi2
	bl	ascii_to_bin
	orr	r5, r5, r0, lsl r10
	add	r10, r10, #6
	cmp	r10, #24
	bne	.L9
.L10:
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L32
	mov	r3, #1
	mov	r2, #0
	mov	r1, r9
	mov	r0, r9
	bl	des_cipher
	cmp	r0, #0
	bne	.L11
	mov	r3, r4
	mov	ip, r9
	b	.L12
.L14:
	ldr	lr, [ip], #4
	mov	r4, r3
	sub	r1, ip, r9
	eor	lr, lr, r2, lsl #1
	cmp	r1, #32
	str	lr, [ip, #-4]
	beq	.L13
.L12:
	mov	r4, r3
	ldrb	r2, [r3], #1	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L14
.L13:
	mov	r0, r9
	bl	des_setkey
	cmp	r0, #0
	beq	.L10
.L11:
	mvn	r0, #0
.L1:
	ldr	r3, .L34+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L33
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldrb	r0, [r6, #1]	@ zero_extendqisi2
	bl	ascii_to_bin
	mov	r4, r8
	mov	r5, r0
	ldrb	r0, [r6]	@ zero_extendqisi2
	bl	ascii_to_bin
	ldrb	r2, [r6]	@ zero_extendqisi2
	mov	r7, #25
	strb	r2, [r4], #2
	ldrb	r3, [r6, #1]	@ zero_extendqisi2
	orr	r5, r0, r5, lsl #6
	cmp	r3, #0
	moveq	r3, r2
	strb	r3, [r8, #1]
.L16:
	mov	r0, r5
	bl	setup_salt
	mov	r1, #0
	str	r7, [sp]
	mov	r0, r1
	add	r3, sp, #16
	add	r2, sp, #12
	bl	do_des
	cmp	r0, #0
	bne	.L11
	ldr	r1, .L34+12
	ldr	r2, [sp, #12]
	ldr	r3, [r1]
	lsr	ip, r2, #26
	ldr	ip, [r3, ip, lsl #2]
	asr	r3, r2, #20
	strb	ip, [r4]
	ldr	ip, [r1]
	and	r3, r3, #63
	ldr	ip, [ip, r3, lsl #2]
	asr	r3, r2, #14
	strb	ip, [r4, #1]
	ldr	ip, [r1]
	and	r3, r3, #63
	ldr	r3, [ip, r3, lsl #2]
	asr	ip, r2, #8
	strb	r3, [r4, #2]
	ldr	lr, [r1]
	ldr	r3, [sp, #16]
	and	ip, ip, #63
	ldr	lr, [lr, ip, lsl #2]
	lsr	ip, r3, #16
	strb	lr, [r4, #3]
	orr	r2, ip, r2, lsl #16
	ldr	r1, [r1]
	asr	ip, r2, #18
	and	ip, ip, #63
	ldr	lr, [r1, ip, lsl #2]
	asr	ip, r2, #12
	strb	lr, [r4, #4]
	and	ip, ip, #63
	ldr	lr, [r1, ip, lsl #2]
	asr	ip, r2, #6
	strb	lr, [r4, #5]
	and	ip, ip, #63
	ldr	ip, [r1, ip, lsl #2]
	and	r2, r2, #63
	strb	ip, [r4, #6]
	ldr	ip, [r1, r2, lsl #2]
	lsl	r3, r3, #2
	asr	r2, r3, #12
	strb	ip, [r4, #7]
	and	r2, r2, #63
	ldr	ip, [r1, r2, lsl #2]
	asr	r2, r3, #6
	strb	ip, [r4, #8]
	and	r2, r2, #63
	ldr	r2, [r1, r2, lsl #2]
	and	r3, r3, #63
	strb	r2, [r4, #9]
	ldr	r3, [r1, r3, lsl #2]
	strb	r0, [r4, #11]
	strb	r3, [r4, #10]
	b	.L1
.L31:
	bl	des_init
	b	.L2
.L32:
	mov	r1, r6
	mov	r0, r8
	mov	r2, #9
	bl	stpncpy
	mov	r4, r0
	b	.L16
.L33:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	des_initialised
	.word	.LC0
	.word	_PASSWORD_EFMT1
	.word	ascii64
	.size	crypt_des, .-crypt_des
	.comm	des_initialised,4,4
	.comm	ascii64,4,4
	.comm	_PASSWORD_EFMT1,1,1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
