	.file	"extr_bio_b64.c_b64_ctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b64_ctrl, @function
b64_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	BIO_get_data@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	BIO_next@PLT
	test	rbx, rbx
	je	.L22
	mov	r12, rax
	test	rax, rax
	je	.L22
	lea	eax, -128[r15]
	cmp	eax, 9
	ja	.L3
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L3-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L3-.L4
	.long	.L3-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L23-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L22:
	xor	r15d, r15d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L3:
	.cfi_restore_state
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, r15d
.L31:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	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
	jmp	BIO_ctrl@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jg	.L12
.L23:
	mov	r15d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 16[rbx]
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], rax
	setge	dil
	call	OPENSSL_assert@PLT
	mov	rax, QWORD PTR 8[rbx]
	sub	rax, QWORD PTR 16[rbx]
	mov	r15, rax
	test	rax, rax
	jne	.L13
	mov	eax, DWORD PTR B64_NONE[rip]
	cmp	DWORD PTR 36[rbx], eax
	je	.L16
	mov	edi, DWORD PTR 32[rbx]
	call	EVP_ENCODE_CTX_num@PLT
	test	eax, eax
	jne	.L23
.L16:
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, 129
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L8:
	movabs	rax, 4294967297
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, 131
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR B64_NONE[rip]
	mov	DWORD PTR 36[rbx], eax
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	call	BIO_clear_retry_flags@PLT
	mov	rdi, r12
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, 128
	call	BIO_ctrl@PLT
	mov	rdi, rbp
	mov	r15, rax
	call	BIO_copy_next_retry@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 16[rbx]
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], rax
	setge	dil
	call	OPENSSL_assert@PLT
	mov	rax, QWORD PTR 8[rbx]
	sub	rax, QWORD PTR 16[rbx]
	mov	r15, rax
	test	rax, rax
	jg	.L1
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, 132
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	lea	r15, 8[rbx]
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	rax, rdx
	je	.L33
.L18:
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	b64_write@PLT
	test	eax, eax
	js	.L34
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	cmp	rax, rdx
	jne	.L18
.L33:
	mov	rdi, rbp
	call	BIO_get_flags@PLT
	test	DWORD PTR BIO_FLAGS_BASE64_NO_NL[rip], eax
	je	.L19
	mov	edx, DWORD PTR 40[rbx]
	test	edx, edx
	je	.L20
	mov	rsi, QWORD PTR 48[rbx]
	mov	rdi, QWORD PTR 24[rbx]
	call	EVP_EncodeBlock@PLT
	mov	QWORD PTR 16[rbx], 0
	xor	edx, edx
	mov	QWORD PTR 8[rbx], rax
	mov	DWORD PTR 40[rbx], 0
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L13:
	jg	.L1
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR B64_NONE[rip]
	cmp	DWORD PTR 36[rbx], eax
	je	.L20
	mov	edi, DWORD PTR 32[rbx]
	call	EVP_ENCODE_CTX_num@PLT
	test	eax, eax
	je	.L20
	mov	QWORD PTR 16[rbx], 0
	mov	rsi, QWORD PTR 24[rbx]
	mov	rdx, r15
	mov	edi, DWORD PTR 32[rbx]
	call	EVP_EncodeFinal@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR 16[rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, 136
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L34:
	movsx	r15, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rcx, r14
	mov	rdx, r13
	mov	esi, 135
	jmp	.L31
	.cfi_endproc
.LFE0:
	.size	b64_ctrl, .-b64_ctrl
	.comm	BIO_FLAGS_BASE64_NO_NL,4,4
	.comm	B64_NONE,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_bio_b64.c_b64_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b64_ctrl, %function
b64_ctrl:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r5, r0
	mov	r9, r1
	mov	r7, r2
	mov	r8, r3
	bl	BIO_get_data
	mov	r4, r0
	mov	r0, r5
	bl	BIO_next
	cmp	r0, #0
	cmpne	r4, #0
	beq	.L21
	sub	r3, r9, #128
	mov	r6, r0
	cmp	r3, #9
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L4:
	.word	.L10
	.word	.L9
	.word	.L3
	.word	.L8
	.word	.L7
	.word	.L3
	.word	.L3
	.word	.L6
	.word	.L5
	.word	.L22
.L21:
	mov	r3, #0
.L1:
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	mov	r3, r8
	mov	r2, r7
	mov	r1, r9
.L30:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	BIO_ctrl
.L5:
	ldr	r3, [r4]
	cmp	r3, #0
	bgt	.L12
.L22:
	mov	r3, #1
	mov	r0, r3
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	OPENSSL_assert
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	sub	r3, r0, r3
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L33
	ldr	r2, [r4, #24]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
	ldr	r0, [r4, #20]
	bl	EVP_ENCODE_CTX_num
	cmp	r0, #0
	bne	.L22
.L16:
	mov	r3, r8
	mov	r2, r7
	mov	r0, r6
	mov	r1, #129
	b	.L30
.L8:
	mov	r1, #1
	ldr	r2, .L33
	str	r1, [r4, #4]
	ldr	ip, [r2]
	mov	r3, r8
	str	r1, [r4]
	mov	r2, r7
	mov	r1, #131
	str	ip, [r4, #24]
	b	.L30
.L10:
	mov	r0, r5
	bl	BIO_clear_retry_flags
	mov	r3, r8
	mov	r2, r7
	mov	r1, #128
	mov	r0, r6
	bl	BIO_ctrl
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #4]
	bl	BIO_copy_next_retry
	ldr	r3, [sp, #4]
	b	.L1
.L7:
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	cmp	r0, r3
	movlt	r0, #0
	movge	r0, #1
	bl	OPENSSL_assert
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	sub	r3, r0, r3
	cmp	r3, #0
	bgt	.L1
	mov	r3, r8
	mov	r2, r7
	mov	r0, r6
	mov	r1, #132
	b	.L30
.L6:
	add	r2, r4, #8
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	ldr	r9, .L33+4
	ldr	r10, .L33
	str	r2, [sp, #4]
.L11:
	cmp	r0, r3
	beq	.L32
.L17:
	mov	r2, #0
	mov	r0, r5
	mov	r1, r2
	bl	b64_write
	subs	r3, r0, #0
	blt	.L1
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	cmp	r0, r3
	bne	.L17
.L32:
	mov	r0, r5
	bl	BIO_get_flags
	ldr	r3, [r9]
	ands	fp, r0, r3
	beq	.L18
	ldr	r2, [r4, #28]
	cmp	r2, #0
	beq	.L19
	ldr	r1, [r4, #32]
	ldr	r0, [r4, #16]
	bl	EVP_EncodeBlock
	mov	r3, #0
	str	r0, [r4, #8]
	str	r3, [r4, #12]
	str	r3, [r4, #28]
	b	.L11
.L13:
	bgt	.L1
	b	.L16
.L18:
	ldr	r1, [r4, #24]
	ldr	r2, [r10]
	cmp	r1, r2
	beq	.L19
	ldr	r0, [r4, #20]
	bl	EVP_ENCODE_CTX_num
	cmp	r0, #0
	beq	.L19
	ldr	r2, [sp, #4]
	ldr	r1, [r4, #16]
	ldr	r0, [r4, #20]
	str	fp, [r4, #12]
	bl	EVP_EncodeFinal
	ldr	r0, [r4, #8]
	ldr	r3, [r4, #12]
	b	.L11
.L12:
	mov	r3, r8
	mov	r2, r7
	mov	r1, #136
	b	.L30
.L19:
	mov	r3, r8
	mov	r2, r7
	mov	r0, r6
	mov	r1, #135
	b	.L30
.L34:
	.align	2
.L33:
	.word	B64_NONE
	.word	BIO_FLAGS_BASE64_NO_NL
	.size	b64_ctrl, .-b64_ctrl
	.comm	BIO_FLAGS_BASE64_NO_NL,4,4
	.comm	B64_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
