	.file	"extr_bio_lib.c_bio_read_intern.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bio_read_intern, @function
bio_read_intern:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	rdi, rdi
	je	.L2
	mov	rax, QWORD PTR 24[rdi]
	mov	rbp, rdi
	test	rax, rax
	je	.L2
	cmp	QWORD PTR [rax], 0
	je	.L2
	cmp	QWORD PTR 8[rdi], 0
	mov	r13, rsi
	mov	rbx, rdx
	mov	r12, rcx
	je	.L21
.L5:
	push	0
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR BIO_CB_READ[rip]
	mov	rdi, rbp
	xor	r9d, r9d
	push	1
	.cfi_def_cfa_offset 64
	xor	r8d, r8d
	mov	rcx, rbx
	mov	rdx, r13
	call	bio_call_callback@PLT
	pop	rsi
	.cfi_def_cfa_offset 56
	pop	rdi
	.cfi_def_cfa_offset 48
	test	eax, eax
	jle	.L1
.L8:
	mov	r8d, DWORD PTR 32[rbp]
	test	r8d, r8d
	je	.L22
	mov	rax, QWORD PTR 24[rbp]
	mov	rcx, r12
	mov	rdx, rbx
	mov	rsi, r13
	mov	rdi, rbp
	call	[QWORD PTR [rax]]
	test	eax, eax
	jle	.L9
	mov	rdx, QWORD PTR [r12]
	add	DWORD PTR 16[rbp], edx
.L9:
	cmp	QWORD PTR 8[rbp], 0
	je	.L23
.L10:
	push	r12
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR BIO_CB_READ[rip]
	mov	rcx, rbx
	mov	rdx, r13
	push	rax
	.cfi_def_cfa_offset 64
	or	esi, DWORD PTR BIO_CB_RETURN[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	rdi, rbp
	call	bio_call_callback@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
.L11:
	test	eax, eax
	jle	.L1
	cmp	QWORD PTR [r12], rbx
	ja	.L24
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	cmp	QWORD PTR 0[rbp], 0
	jne	.L10
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	QWORD PTR [rdi], 0
	jne	.L5
	jmp	.L8
.L24:
	mov	esi, DWORD PTR ERR_R_INTERNAL_ERROR[rip]
	mov	edi, DWORD PTR BIO_F_BIO_READ_INTERN[rip]
	call	BIOerr@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR BIO_R_UNSUPPORTED_METHOD[rip]
	mov	edi, DWORD PTR BIO_F_BIO_READ_INTERN[rip]
	call	BIOerr@PLT
	mov	eax, -2
	jmp	.L1
.L22:
	mov	esi, DWORD PTR BIO_R_UNINITIALIZED[rip]
	mov	edi, DWORD PTR BIO_F_BIO_READ_INTERN[rip]
	call	BIOerr@PLT
	mov	eax, -2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bio_read_intern, .-bio_read_intern
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.comm	BIO_R_UNSUPPORTED_METHOD,4,4
	.comm	BIO_R_UNINITIALIZED,4,4
	.comm	BIO_F_BIO_READ_INTERN,4,4
	.comm	BIO_CB_RETURN,4,4
	.comm	BIO_CB_READ,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_lib.c_bio_read_intern.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bio_read_intern, %function
bio_read_intern:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	sub	sp, sp, #16
	beq	.L2
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L2
	mov	r6, r3
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r4, #4]
	mov	r7, r1
	cmp	r3, #0
	mov	r5, r2
	beq	.L25
.L5:
	mov	r0, #0
	mov	r2, #1
	ldr	r3, .L29
	str	r0, [sp, #12]
	str	r0, [sp, #4]
	str	r0, [sp]
	str	r2, [sp, #8]
	ldr	r1, [r3]
	mov	r2, r7
	mov	r3, r5
	mov	r0, r4
	bl	bio_call_callback
	cmp	r0, #0
	ble	.L1
.L8:
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L26
	ldr	r2, [r4, #12]
	mov	r3, r6
	ldr	r8, [r2]
	mov	r1, r7
	mov	r2, r5
	mov	r0, r4
	blx	r8
	cmp	r0, #0
	ldrgt	r3, [r4, #8]
	ldrgt	r2, [r6]
	addgt	r3, r3, r2
	strgt	r3, [r4, #8]
	ldr	r3, [r4, #4]
	cmp	r3, #0
	beq	.L27
.L10:
	mov	r3, #0
	ldr	r1, .L29
	ldr	r2, .L29+4
	ldr	ip, [r1]
	ldr	r1, [r2]
	str	r0, [sp, #8]
	str	r3, [sp, #4]
	str	r3, [sp]
	mov	r2, r7
	mov	r0, r4
	mov	r3, r5
	str	r6, [sp, #12]
	orr	r1, ip, r1
	bl	bio_call_callback
.L11:
	cmp	r0, #0
	ble	.L1
	ldr	r3, [r6]
	cmp	r3, r5
	bhi	.L28
.L1:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L10
	b	.L11
.L25:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L5
	b	.L8
.L28:
	ldr	r2, .L29+8
	ldr	r3, .L29+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	BIOerr
	mvn	r0, #0
	b	.L1
.L2:
	ldr	r2, .L29+16
.L23:
	ldr	r3, .L29+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	BIOerr
	mvn	r0, #1
	b	.L1
.L26:
	ldr	r2, .L29+20
	b	.L23
.L30:
	.align	2
.L29:
	.word	BIO_CB_READ
	.word	BIO_CB_RETURN
	.word	ERR_R_INTERNAL_ERROR
	.word	BIO_F_BIO_READ_INTERN
	.word	BIO_R_UNSUPPORTED_METHOD
	.word	BIO_R_UNINITIALIZED
	.size	bio_read_intern, .-bio_read_intern
	.comm	ERR_R_INTERNAL_ERROR,4,4
	.comm	BIO_R_UNSUPPORTED_METHOD,4,4
	.comm	BIO_R_UNINITIALIZED,4,4
	.comm	BIO_F_BIO_READ_INTERN,4,4
	.comm	BIO_CB_RETURN,4,4
	.comm	BIO_CB_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
