	.file	"extr_ltls.c__bio_write.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BIO_write error:%d"
.LC1:
	.string	"invalid BIO_write:%d"
	.text
	.p2align 4
	.type	_bio_write, @function
_bio_write:
.LFB0:
	.cfi_startproc
	endbr64
	test	rcx, rcx
	je	.L12
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC1[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r14
	mov	rsi, rbx
	call	BIO_write@PLT
	mov	edx, eax
	test	eax, eax
	jle	.L16
	cdqe
	cmp	rax, r14
	ja	.L5
	add	rbx, rax
	sub	r14, rax
	jne	.L7
	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
.L16:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	luaL_error@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, r13
	mov	rdi, r12
	call	luaL_error@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	_bio_write, .-_bio_write
	.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_ltls.c__bio_write.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BIO_write error:%d\000"
	.align	2
.LC1:
	.ascii	"invalid BIO_write:%d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_bio_write, %function
_bio_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r4, r3, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r7, r0
	mov	r6, r1
	mov	r5, r2
	ldr	r9, .L15
	ldr	r8, .L15+4
.L7:
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6]
	bl	BIO_write
	subs	r2, r0, #0
	ble	.L14
	cmp	r2, r4
	bhi	.L5
	subs	r4, r4, r2
	add	r5, r5, r2
	bne	.L7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r1, r8
	mov	r0, r7
	bl	luaL_error
	b	.L7
.L5:
	mov	r1, r9
	mov	r0, r7
	bl	luaL_error
	b	.L7
.L16:
	.align	2
.L15:
	.word	.LC1
	.word	.LC0
	.size	_bio_write, .-_bio_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
