	.file	"extr_crypto-des3.c__krb5_DES3_random_to_key.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	""
	.string	"\360"
	.text
	.p2align 4
	.globl	_krb5_DES3_random_to_key
	.type	_krb5_DES3_random_to_key, @function
_krb5_DES3_random_to_key:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12, QWORD PTR [rsi]
	mov	rbx, rdx
	mov	edx, DWORD PTR 8[rsi]
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	rdi, r12
	mov	rdx, rbx
	lea	r8, -28[rbx]
	xor	r9d, r9d
.L2:
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR [rdx+rax*4]
	mov	BYTE PTR [rdi+rax], cl
	add	rax, 1
	cmp	rax, 7
	jne	.L3
	mov	rcx, rdx
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L4:
	movzx	esi, BYTE PTR 24[rcx]
	sub	rcx, 4
	and	esi, 1
	or	eax, esi
	add	eax, eax
	cmp	r8, rcx
	jne	.L4
	add	r9d, 7
	mov	BYTE PTR 7[rdi], al
	add	rdx, 28
	add	rdi, 8
	add	r8, 28
	cmp	r9d, 21
	jne	.L2
	mov	rbx, QWORD PTR 0[rbp]
	lea	r12, .LC0[rip]
	lea	rbp, 3[rbx]
.L7:
	mov	rdi, rbx
	call	DES_set_odd_parity@PLT
	mov	rdi, rbx
	call	DES_is_weak_key@PLT
	test	rax, rax
	jne	.L16
.L6:
	add	rbx, 1
	cmp	rbp, rbx
	jne	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbx
	call	_krb5_xor@PLT
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	_krb5_DES3_random_to_key, .-_krb5_DES3_random_to_key
	.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_crypto-des3.c__krb5_DES3_random_to_key.c"
	.text
	.align	2
	.global	_krb5_DES3_random_to_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	_krb5_DES3_random_to_key, %function
_krb5_DES3_random_to_key:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r2
	ldr	r3, [r1]
	ldr	r2, [r1, #4]
	mov	r4, r1
	mov	r0, r3
	mov	r1, #0
	bl	memset
	add	r6, r5, #28
	mov	r2, r5
	mov	r5, #0
.L2:
	mov	ip, r0
	mov	r3, r2
.L3:
	ldr	r1, [r3], #4
	cmp	r3, r6
	strb	r1, [ip], #1
	bne	.L3
	mov	ip, r6
	mov	lr, #0
.L4:
	ldr	r3, [ip, #-4]!
	and	r3, r3, #1
	orr	r3, r3, lr
	lsl	r3, r3, #1
	cmp	ip, r2
	and	lr, r3, #255
	bne	.L4
	add	r5, r5, #1
	cmp	r5, #3
	strb	lr, [r0, #7]
	add	r6, r6, #28
	add	r0, r0, #8
	add	r2, ip, #28
	bne	.L2
	ldr	r4, [r4]
	ldr	r6, .L18
	add	r5, r4, #3
.L7:
	mov	r0, r4
	bl	DES_set_odd_parity
	mov	r0, r4
	bl	DES_is_weak_key
	cmp	r0, #0
	bne	.L17
.L6:
	add	r4, r4, #1
	cmp	r5, r4
	bne	.L7
	pop	{r4, r5, r6, pc}
.L17:
	mov	r1, r6
	mov	r0, r4
	bl	_krb5_xor
	b	.L6
.L19:
	.align	2
.L18:
	.word	.LANCHOR0
	.size	_krb5_DES3_random_to_key, .-_krb5_DES3_random_to_key
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"\000\000\000\000\000\000\000\360\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
