	.file	"extr_cipher.c_mbedtls_cipher_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mbedtls_cipher_update
	.type	mbedtls_cipher_update, @function
mbedtls_cipher_update:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L18
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	cmp	QWORD PTR 32[rdi], 0
	mov	rbx, rdi
	je	.L10
	mov	rbp, r8
	test	r8, r8
	je	.L10
	mov	QWORD PTR [r8], 0
	mov	r14, rsi
	mov	r12, rcx
	mov	r13, rdx
	call	mbedtls_cipher_get_block_size@PLT
	mov	rsi, QWORD PTR MBEDTLS_MODE_ECB[rip]
	mov	rcx, rax
	mov	rax, QWORD PTR 32[rbx]
	cmp	QWORD PTR [rax], rsi
	je	.L22
	mov	eax, DWORD PTR MBEDTLS_ERR_CIPHER_INVALID_CONTEXT[rip]
	test	rcx, rcx
	je	.L1
	cmp	r14, r12
	je	.L23
.L9:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, DWORD PTR MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	cmp	QWORD PTR 8[rbx], 0
	je	.L24
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	cmp	rcx, r13
	je	.L7
	mov	eax, DWORD PTR MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	eax, DWORD PTR MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA[rip]
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 0[rbp], rcx
	mov	rdx, r14
	mov	rcx, r12
	mov	rdi, QWORD PTR 24[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax]
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_restore 14
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rax, r13
	xor	edx, edx
	div	rcx
	test	rdx, rdx
	je	.L9
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	mbedtls_cipher_update, .-mbedtls_cipher_update
	.comm	MBEDTLS_MODE_STREAM,8,8
	.comm	MBEDTLS_MODE_GCM,8,8
	.comm	MBEDTLS_MODE_ECB,8,8
	.comm	MBEDTLS_MODE_CTR,8,8
	.comm	MBEDTLS_MODE_CFB,8,8
	.comm	MBEDTLS_MODE_CBC,8,8
	.comm	MBEDTLS_ERR_CIPHER_INVALID_CONTEXT,4,4
	.comm	MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED,4,4
	.comm	MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE,4,4
	.comm	MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,4
	.comm	MBEDTLS_ENCRYPT,8,8
	.comm	MBEDTLS_DECRYPT,8,8
	.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_cipher.c_mbedtls_cipher_update.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.global	mbedtls_cipher_update
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbedtls_cipher_update, %function
mbedtls_cipher_update:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	ldr	r6, [sp, #24]
	beq	.L9
	clz	ip, r6
	mov	r5, r3
	ldr	r3, [r4, #16]
	lsr	ip, ip, #5
	cmp	r3, #0
	moveq	ip, #1
	cmp	ip, #0
	bne	.L9
	str	ip, [r6]
	mov	r8, r1
	mov	r7, r2
	bl	mbedtls_cipher_get_block_size
	ldr	r3, [r4, #16]
	ldr	r2, .L22
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L18
	cmp	r0, #0
	beq	.L19
	cmp	r8, r5
	beq	.L20
.L8:
	ldr	r3, .L22+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L21
.L9:
	ldr	r3, .L22+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	cmp	r0, r7
	beq	.L6
	ldr	r3, .L22+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, .L22+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r3, [r3, #4]
	str	r0, [r6]
	ldr	lr, [r3]
	mov	r2, r8
	mov	r3, r5
	mov	ip, lr
	ldr	r1, [r4]
	ldr	r0, [r4, #12]
	pop	{r4, r5, r6, r7, r8, lr}
	bx	ip
.L21:
	mov	r1, r0
	mov	r0, r7
	bl	__aeabi_uidivmod
	cmp	r1, #0
	beq	.L8
	b	.L9
.L23:
	.align	2
.L22:
	.word	MBEDTLS_MODE_ECB
	.word	MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE
	.word	MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA
	.word	MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED
	.word	MBEDTLS_ERR_CIPHER_INVALID_CONTEXT
	.size	mbedtls_cipher_update, .-mbedtls_cipher_update
	.comm	MBEDTLS_MODE_STREAM,4,4
	.comm	MBEDTLS_MODE_GCM,4,4
	.comm	MBEDTLS_MODE_ECB,4,4
	.comm	MBEDTLS_MODE_CTR,4,4
	.comm	MBEDTLS_MODE_CFB,4,4
	.comm	MBEDTLS_MODE_CBC,4,4
	.comm	MBEDTLS_ERR_CIPHER_INVALID_CONTEXT,4,4
	.comm	MBEDTLS_ERR_CIPHER_FULL_BLOCK_EXPECTED,4,4
	.comm	MBEDTLS_ERR_CIPHER_FEATURE_UNAVAILABLE,4,4
	.comm	MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA,4,4
	.comm	MBEDTLS_ENCRYPT,4,4
	.comm	MBEDTLS_DECRYPT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
