	.file	"extr_bio_ok.c_ok_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ok_read, @function
ok_read:
.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, 24
	.cfi_def_cfa_offset 80
	test	rsi, rsi
	je	.L28
	mov	r13, rdi
	mov	r12, rsi
	mov	ebp, edx
	call	BIO_get_data@PLT
	mov	rdi, r13
	mov	rbx, rax
	call	BIO_next@PLT
	mov	r14, rax
	test	rbx, rbx
	je	.L28
	test	rax, rax
	je	.L28
	mov	rdi, r13
	xor	r15d, r15d
	call	BIO_get_init@PLT
	test	rax, rax
	jne	.L5
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR IOBS[rip]
	lea	rsi, [rcx+rax*4]
	mov	rdi, r14
	sub	edx, eax
	call	BIO_read@PLT
	test	eax, eax
	jle	.L10
	add	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 24[rbx]
	cmp	eax, 1
	je	.L30
.L11:
	test	eax, eax
	je	.L31
.L13:
	cmp	QWORD PTR 32[rbx], 0
	jle	.L10
.L5:
	test	ebp, ebp
	jle	.L10
	cmp	QWORD PTR 48[rbx], 0
	movsx	rax, DWORD PTR [rbx]
	mov	rcx, QWORD PTR 40[rbx]
	je	.L6
	movsx	rsi, DWORD PTR 4[rbx]
	mov	rdi, r12
	sub	eax, esi
	lea	rsi, [rcx+rsi*4]
	cmp	ebp, eax
	cmovle	eax, ebp
	mov	edx, eax
	mov	DWORD PTR 12[rsp], eax
	call	memcpy@PLT
	movsx	rax, DWORD PTR 12[rsp]
	mov	rdx, rax
	add	edx, DWORD PTR 4[rbx]
	add	r15d, eax
	add	r12, rax
	mov	DWORD PTR 4[rbx], edx
	sub	ebp, eax
	cmp	edx, DWORD PTR [rbx]
	je	.L32
.L7:
	test	ebp, ebp
	je	.L10
	movsx	rax, DWORD PTR [rbx]
	mov	rcx, QWORD PTR 40[rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, r13
	call	block_in@PLT
	test	eax, eax
	jne	.L13
.L12:
	mov	rdi, r13
	call	BIO_clear_retry_flags@PLT
	.p2align 4,,10
	.p2align 3
.L28:
	xor	r15d, r15d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L30:
	.cfi_restore_state
	mov	rdi, r13
	call	sig_in@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR 24[rbx]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	movsx	rcx, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR 4[rbx], 0
	mov	rdx, rcx
	cmp	rcx, rax
	jne	.L33
	mov	DWORD PTR [rbx], 0
.L9:
	mov	QWORD PTR 48[rbx], 0
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L33:
	sub	edx, eax
	mov	rdi, QWORD PTR 40[rbx]
	mov	DWORD PTR [rbx], edx
	lea	rsi, [rdi+rax*4]
	call	memmove@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r13
	call	BIO_clear_retry_flags@PLT
	mov	rdi, r13
	call	BIO_copy_next_retry@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ok_read, .-ok_read
	.comm	IOBS,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_ok.c_ok_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ok_read, %function
ok_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r7, r1, #0
	beq	.L31
	mov	r5, r2
	mov	r8, r0
	bl	BIO_get_data
	mov	r4, r0
	mov	r0, r8
	bl	BIO_next
	clz	r6, r0
	cmp	r4, #0
	lsr	r6, r6, #5
	moveq	r6, #1
	cmp	r6, #0
	mov	r9, r0
	beq	.L33
.L31:
	mov	r6, #0
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	mov	r0, r8
	bl	BIO_get_init
	cmp	r0, #0
	beq	.L31
	ldr	r10, .L38
	b	.L5
.L6:
	ldr	r3, [r10]
	add	r1, r1, r2, lsl #2
	mov	r0, r9
	sub	r2, r3, r2
	bl	BIO_read
	cmp	r0, #0
	ble	.L10
	ldr	r3, [r4]
	ldr	r2, [r4, #16]
	add	r0, r3, r0
	cmp	r2, #1
	str	r0, [r4]
	beq	.L34
.L11:
	cmp	r2, #0
	beq	.L35
.L13:
	ldr	r3, [r4, #20]
	cmp	r3, #0
	ble	.L10
.L5:
	cmp	r5, #0
	ble	.L10
	ldr	r3, [r4, #28]
	ldr	r2, [r4]
	cmp	r3, #0
	ldr	r1, [r4, #24]
	beq	.L6
	ldr	r3, [r4, #4]
	mov	r0, r7
	sub	r2, r2, r3
	cmp	r5, r2
	movlt	fp, r5
	movge	fp, r2
	add	r1, r1, r3, lsl #2
	mov	r2, fp
	bl	memcpy
	ldm	r4, {r1, r3}
	add	r3, fp, r3
	cmp	r3, r1
	add	r6, r6, fp
	sub	r5, r5, fp
	add	r7, r7, fp
	str	r3, [r4, #4]
	beq	.L36
.L7:
	cmp	r5, #0
	beq	.L10
	ldr	r2, [r4]
	ldr	r1, [r4, #24]
	b	.L6
.L35:
	mov	r0, r8
	bl	block_in
	cmp	r0, #0
	bne	.L13
.L12:
	mov	r0, r8
	bl	BIO_clear_retry_flags
	b	.L31
.L34:
	mov	r0, r8
	bl	sig_in
	cmp	r0, #0
	beq	.L12
	ldr	r2, [r4, #16]
	b	.L11
.L36:
	mov	r3, #0
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	str	r3, [r4, #4]
	cmp	r2, r1
	moveq	r3, #0
	streq	r3, [r4]
	moveq	r3, #0
	streq	r3, [r4, #28]
	beq	.L7
.L37:
	ldr	r0, [r4, #24]
	sub	r2, r2, r1
	str	r2, [r4]
	add	r1, r0, r1, lsl #2
	bl	memmove
	mov	r3, #0
	str	r3, [r4, #28]
	b	.L7
.L10:
	mov	r0, r8
	bl	BIO_clear_retry_flags
	mov	r0, r8
	bl	BIO_copy_next_retry
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L39:
	.align	2
.L38:
	.word	IOBS
	.size	ok_read, .-ok_read
	.comm	IOBS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
