	.file	"extr_des.c_mbedtls_des_crypt_cbc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mbedtls_des_crypt_cbc
	.type	mbedtls_des_crypt_cbc, @function
mbedtls_des_crypt_cbc:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH[rip]
	test	dl, 7
	jne	.L1
	cmp	DWORD PTR MBEDTLS_DES_ENCRYPT[rip], esi
	mov	rbp, rdi
	mov	rbx, rdx
	mov	r12, rcx
	je	.L4
	test	rdx, rdx
	je	.L6
	lea	rax, [r8+rdx]
	lea	r14, 16[rsp]
	mov	QWORD PTR [rsp], rax
	lea	rax, [r9+rdx]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13, QWORD PTR [rsp]
	mov	r15, QWORD PTR 8[rsp]
	mov	edx, 8
	mov	rdi, r14
	sub	r13, rbx
	sub	r15, rbx
	mov	rsi, r13
	call	memcpy@PLT
	mov	rdx, r15
	mov	rsi, r13
	mov	rdi, rbp
	call	mbedtls_des_crypt_ecb@PLT
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L9:
	movzx	edx, BYTE PTR [r12+rax]
	xor	BYTE PTR [r15+rax], dl
	add	rax, 1
	cmp	rax, 8
	jne	.L9
	mov	edx, 8
	mov	rsi, r14
	mov	rdi, r12
	call	memcpy@PLT
	sub	rbx, 8
	jne	.L5
.L6:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 40
	.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
.L4:
	.cfi_restore_state
	test	rdx, rdx
	je	.L6
	lea	rax, [r8+rdx]
	mov	QWORD PTR [rsp], rax
	lea	rax, [r9+rdx]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rsi, QWORD PTR [rsp]
	mov	r14, QWORD PTR 8[rsp]
	xor	eax, eax
	sub	rsi, rbx
	sub	r14, rbx
	.p2align 4,,10
	.p2align 3
.L7:
	movzx	edx, BYTE PTR [rsi+rax]
	xor	dl, BYTE PTR [r12+rax]
	mov	BYTE PTR [r14+rax], dl
	add	rax, 1
	cmp	rax, 8
	jne	.L7
	mov	rdx, r14
	mov	rsi, r14
	mov	rdi, rbp
	call	mbedtls_des_crypt_ecb@PLT
	mov	edx, 8
	mov	rsi, r14
	mov	rdi, r12
	call	memcpy@PLT
	sub	rbx, 8
	jne	.L8
	xor	eax, eax
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mbedtls_des_crypt_cbc, .-mbedtls_des_crypt_cbc
	.comm	MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH,4,4
	.comm	MBEDTLS_DES_ENCRYPT,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_des.c_mbedtls_des_crypt_cbc.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mbedtls_des_crypt_cbc
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_des_crypt_cbc, %function
mbedtls_des_crypt_cbc:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r3
	ldr	r3, .L23
	sub	sp, sp, #20
	tst	r2, #7
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r9, [sp, #48]
	ldr	r4, [sp, #52]
	bne	.L21
	ldr	r3, .L23+4
	mov	r7, r0
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L4
	cmp	r2, #0
	addne	r4, r4, #7
	addne	r5, r9, r2
	subne	r8, r6, #1
	beq	.L6
.L10:
	mov	r2, #8
	mov	r1, r9
	add	r0, sp, #4
	bl	memcpy
	sub	r2, r4, #7
	mov	r1, r9
	mov	r0, r7
	bl	mbedtls_des_crypt_ecb
	mov	r3, r8
	sub	r2, r4, #8
.L9:
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	ldrb	r0, [r3, #1]!	@ zero_extendqisi2
	cmp	r2, r4
	eor	r1, r1, r0
	strb	r1, [r2]
	bne	.L9
	mov	r2, #8
	mov	r0, r6
	add	r9, r9, #8
	add	r1, sp, #4
	bl	memcpy
	cmp	r9, r5
	add	r4, r4, #8
	bne	.L10
.L6:
	mov	r0, #0
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L4:
	cmp	r2, #0
	beq	.L6
	add	r9, r9, #7
	add	r5, r4, r2
	sub	r8, r6, #1
.L8:
	mov	r0, r8
	sub	r2, r9, #8
	sub	r1, r4, #1
.L7:
	ldrb	r3, [r2, #1]!	@ zero_extendqisi2
	ldrb	ip, [r0, #1]!	@ zero_extendqisi2
	cmp	r2, r9
	eor	r3, r3, ip
	strb	r3, [r1, #1]!
	bne	.L7
	mov	r2, r4
	mov	r1, r4
	mov	r0, r7
	bl	mbedtls_des_crypt_ecb
	mov	r2, #8
	mov	r1, r4
	mov	r0, r6
	add	r4, r4, r2
	bl	memcpy
	cmp	r4, r5
	add	r9, r9, #8
	bne	.L8
	b	.L6
.L21:
	ldr	r3, .L23+8
	ldr	r0, [r3]
	b	.L1
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	MBEDTLS_DES_ENCRYPT
	.word	MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH
	.size	mbedtls_des_crypt_cbc, .-mbedtls_des_crypt_cbc
	.comm	MBEDTLS_ERR_DES_INVALID_INPUT_LENGTH,4,4
	.comm	MBEDTLS_DES_ENCRYPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
