	.file	"67326053.c"
	.intel_syntax noprefix
	.text
	.globl	optr
	.bss
	.align 4
	.type	optr, @object
	.size	optr, 4
optr:
	.zero	4
	.globl	obuf
	.align 32
	.type	obuf, @object
	.size	obuf, 512
obuf:
	.zero	512
	.globl	nflush
	.align 4
	.type	nflush, @object
	.size	nflush, 4
nflush:
	.zero	4
	.text
	.globl	put
	.type	put, @function
put:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	sub	QWORD PTR -24[rbp], 1
	mov	edx, DWORD PTR optr[rip]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	sub	eax, 512
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L2
	mov	eax, DWORD PTR -12[rbp]
	neg	eax
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR optr[rip]
	cdqe
	lea	rdx, obuf[rip]
	add	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	jmp	.L3
.L4:
	add	QWORD PTR -24[rbp], 1
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
.L3:
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	jns	.L4
	mov	DWORD PTR optr[rip], 512
	mov	edi, 1
	mov	eax, 0
	call	flsh
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -28[rbp], eax
.L2:
	mov	eax, DWORD PTR optr[rip]
	cdqe
	lea	rdx, obuf[rip]
	add	rax, rdx
	sub	rax, 1
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR optr[rip], eax
	jmp	.L5
.L6:
	add	QWORD PTR -24[rbp], 1
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
.L5:
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	jns	.L6
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	put, .-put
	.globl	flsh
	.type	flsh, @function
flsh:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR optr[rip]
	test	eax, eax
	jg	.L9
	mov	eax, DWORD PTR optr[rip]
	jmp	.L10
.L9:
	mov	eax, DWORD PTR nflush[rip]
	add	eax, 1
	mov	DWORD PTR nflush[rip], eax
	mov	edx, DWORD PTR optr[rip]
	mov	eax, DWORD PTR tp[rip]
	lea	rsi, obuf[rip]
	mov	edi, eax
	mov	eax, 0
	call	write@PLT
	mov	edx, DWORD PTR optr[rip]
	cmp	eax, edx
	je	.L11
	mov	eax, -1
	jmp	.L10
.L11:
	mov	DWORD PTR optr[rip], 0
	mov	eax, 0
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	flsh, .-flsh
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"67326053.c"
	.text
	.comm	optr,4,4
	.comm	obuf,512,4
	.comm	nflush,4,4
	.align	2
	.global	put
	.syntax unified
	.arm
	.fpu softvfp
	.type	put, %function
put:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	sub	r3, r3, #512
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	add	r3, r3, r2
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L3
.L4:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
.L3:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L8
	mov	r2, #512
	str	r2, [r3]
	mov	r0, #1
	bl	flsh
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L2:
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, .L8+4
	add	r3, r3, r2
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, .L8
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	b	.L5
.L6:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-12]
	strb	r2, [r3]
.L5:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L6
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	optr
	.word	obuf
	.size	put, .-put
	.align	2
	.global	flsh
	.syntax unified
	.arm
	.fpu softvfp
	.type	flsh, %function
flsh:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L11
	ldr	r3, .L14
	ldr	r3, [r3]
	b	.L12
.L11:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L14+4
	str	r3, [r2]
	ldr	r3, .L14+8
	ldr	r3, [r3]
	ldr	r2, .L14
	ldr	r2, [r2]
	ldr	r1, .L14+12
	mov	r0, r3
	bl	write
	mov	r2, r0
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L13
	mvn	r3, #0
	b	.L12
.L13:
	ldr	r3, .L14
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	optr
	.word	nflush
	.word	tp
	.word	obuf
	.size	flsh, .-flsh
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
