	.file	"extr_pqcomm.c_internal_putbytes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	internal_putbytes, @function
internal_putbytes:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	rdi, QWORD PTR PqSendPointer[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	rsi, rsi
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rbx, QWORD PTR PqSendBufferSize[rip]
	cmp	rbx, rdi
	jg	.L4
	xor	edi, edi
	call	socket_set_nonblocking@PLT
	xor	eax, eax
	call	internal_flush@PLT
	test	rax, rax
	jne	.L5
	mov	rbx, QWORD PTR PqSendBufferSize[rip]
	mov	rdi, QWORD PTR PqSendPointer[rip]
.L4:
	sub	rbx, rdi
	mov	rsi, r12
	cmp	rbx, rbp
	cmova	rbx, rbp
	add	rdi, QWORD PTR PqSendBuffer[rip]
	mov	rdx, rbx
	add	r12, rbx
	call	memcpy@PLT
	mov	rdi, QWORD PTR PqSendPointer[rip]
	add	rdi, rbx
	mov	QWORD PTR PqSendPointer[rip], rdi
	sub	rbp, rbx
	jne	.L6
.L7:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR EOF[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	internal_putbytes, .-internal_putbytes
	.comm	PqSendPointer,8,8
	.comm	PqSendBufferSize,8,8
	.comm	PqSendBuffer,8,8
	.comm	EOF,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_pqcomm.c_internal_putbytes.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	internal_putbytes, %function
internal_putbytes:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r1, #0
	beq	.L7
	mov	r9, r0
	ldr	r8, .L11
	ldr	r6, .L11+4
	ldr	r3, [r8]
	ldr	r7, .L11+8
.L6:
	ldr	r4, [r6]
	cmp	r4, r3
	bgt	.L4
	mov	r0, #0
	bl	socket_set_nonblocking
	bl	internal_flush
	cmp	r0, #0
	bne	.L5
	ldr	r4, [r6]
	ldr	r3, [r8]
.L4:
	sub	r4, r4, r3
	cmp	r4, r5
	movcs	r4, r5
	ldr	r0, [r7]
	mov	r1, r9
	add	r0, r3, r0
	mov	r2, r4
	bl	memcpy
	ldr	r3, [r8]
	subs	r5, r5, r4
	add	r3, r4, r3
	add	r9, r9, r4
	str	r3, [r8]
	bne	.L6
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, .L11+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	PqSendPointer
	.word	PqSendBufferSize
	.word	PqSendBuffer
	.word	EOF
	.size	internal_putbytes, .-internal_putbytes
	.comm	PqSendPointer,4,4
	.comm	PqSendBufferSize,4,4
	.comm	PqSendBuffer,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
