	.file	"extr_crypto_base64.c_update.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	update, @function
update:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	je	.L17
	xor	ebp, ebp
	cmp	eax, 1
	je	.L18
.L6:
	mov	rdi, rbp
	call	free@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L18:
	.cfi_restore_state
	test	edx, edx
	lea	eax, 3[rdx]
	cmovns	eax, edx
	sar	eax, 2
	lea	edx, [rax+rax*2]
	lea	edi, 4[rdx]
	test	r12d, r12d
	jle	.L7
	movsx	rcx, r12d
	cmp	BYTE PTR -1[rsi+rcx], 61
	je	.L19
.L7:
	add	edi, 4
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rax
	call	r_base64_decode@PLT
	mov	r13d, eax
	test	r13d, r13d
	jle	.L6
.L20:
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, r14
	call	r_crypto_append@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	lea	eax, 2[rdx]
	movsx	r13, eax
	sar	eax, 31
	imul	r13, r13, 1431655766
	shr	r13, 32
	sub	r13d, eax
	sal	r13d, 2
	lea	edi, 1[r13]
	call	malloc@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, rax
	call	r_base64_encode@PLT
	test	r13d, r13d
	jle	.L6
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L10:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L19:
	.cfi_restore_state
	cmp	BYTE PTR -2[rsi+rcx], 61
	lea	edi, 3[rax+rax*2]
	jne	.L7
	lea	edi, 2[rdx]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	update, .-update
	.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_base64.c_update.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update, %function
update:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r5, r0
	mov	r8, r1
	mov	r4, r2
	beq	.L17
	cmp	r3, #1
	movne	r7, #0
	beq	.L18
.L6:
	mov	r0, r7
	bl	free
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	cmp	r2, #0
	add	r3, r2, #3
	movge	r3, r2
	asr	r3, r3, #2
	add	r2, r3, r3, lsl #1
	add	r0, r2, #4
	ble	.L7
	add	r1, r1, r4
	ldrb	ip, [r1, #-1]	@ zero_extendqisi2
	cmp	ip, #61
	beq	.L19
.L7:
	add	r0, r0, #4
	bl	malloc
	subs	r7, r0, #0
	beq	.L10
	mov	r2, r4
	mov	r1, r8
	bl	r_base64_decode
	mov	r6, r0
.L5:
	cmp	r6, #0
	ble	.L6
	mov	r2, r6
	mov	r0, r5
	mov	r1, r7
	bl	r_crypto_append
	b	.L6
.L17:
	ldr	r6, .L20
	add	r0, r2, #2
	smull	r3, r6, r0, r6
	sub	r6, r6, r0, asr #31
	lsl	r6, r6, #2
	add	r0, r6, #1
	bl	malloc
	subs	r7, r0, #0
	beq	.L10
	mov	r2, r4
	mov	r1, r8
	bl	r_base64_encode
	b	.L5
.L19:
	ldrb	r1, [r1, #-2]	@ zero_extendqisi2
	cmp	r1, #61
	addne	r0, r3, #1
	addeq	r0, r2, #2
	addne	r0, r0, r0, lsl #1
	b	.L7
.L10:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	.align	2
.L20:
	.word	1431655766
	.size	update, .-update
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
