	.file	"95450902.c"
	.intel_syntax noprefix
	.text
	.globl	fopen
	.type	fopen, @function
fopen:
.LFB6:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 119
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 97
	je	.L2
	mov	eax, 0
	jmp	.L3
.L2:
	lea	rax, _iob[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L4
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 3
	test	eax, eax
	je	.L16
	add	QWORD PTR -8[rbp], 32
.L4:
	lea	rax, _iob[rip+640]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L7
	jmp	.L6
.L16:
	nop
.L6:
	lea	rax, _iob[rip+640]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L8
	mov	eax, 0
	jmp	.L3
.L8:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 119
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 438
	mov	rdi, rax
	call	creat@PLT
	mov	DWORD PTR -12[rbp], eax
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 97
	jne	.L11
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 438
	mov	rdi, rax
	call	creat@PLT
	mov	DWORD PTR -12[rbp], eax
.L12:
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
.L10:
	cmp	DWORD PTR -12[rbp], -1
	jne	.L13
	mov	eax, 0
	jmp	.L3
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 114
	jne	.L14
	mov	edx, 1
	jmp	.L15
.L14:
	mov	edx, 2
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fopen, .-fopen
	.globl	_fillbuf
	.type	_fillbuf, @function
_fillbuf:
.LFB7:
	.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	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 25
	cmp	eax, 1
	je	.L18
	mov	eax, -1
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 3
	test	eax, eax
	je	.L20
	mov	eax, 1
	jmp	.L21
.L20:
	mov	eax, 1024
.L21:
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L22
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L22
	mov	eax, -1
	jmp	.L19
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	or	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], edx
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, -1
	jmp	.L19
.L23:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rcx, 1[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx], rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_fillbuf, .-_fillbuf
	.globl	_flushbuf
	.type	_flushbuf, @function
_flushbuf:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	BYTE PTR -17[rbp], al
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 26
	cmp	eax, 2
	je	.L27
	mov	eax, -1
	jmp	.L35
.L27:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L29
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 3
	test	eax, eax
	jne	.L29
	mov	edi, 1024
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L30
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	or	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L29
.L30:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1023
.L29:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 3
	test	eax, eax
	je	.L31
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
	cmp	DWORD PTR -36[rbp], -1
	jne	.L32
	mov	eax, -1
	jmp	.L35
.L32:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 28[rax]
	lea	rcx, -17[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 1
	jmp	.L33
.L31:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1023
.L33:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jne	.L34
	mov	eax, DWORD PTR -36[rbp]
	jmp	.L35
.L34:
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 24[rax]
	or	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	eax, -1
.L35:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_flushbuf, .-_flushbuf
	.globl	_iob
	.data
	.align 32
	.type	_iob, @object
	.size	_iob, 640
_iob:
	.long	0
	.zero	4
	.quad	0
	.quad	0
	.long	1
	.long	0
	.long	0
	.zero	4
	.quad	0
	.quad	0
	.long	2
	.long	1
	.long	0
	.zero	4
	.quad	0
	.quad	0
	.long	3
	.long	2
	.zero	544
	.text
	.globl	fflush
	.type	fflush, @function
fflush:
.LFB9:
	.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 -12[rbp], 0
	cmp	QWORD PTR -24[rbp], 0
	jne	.L38
	lea	rax, _iob[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L39
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 2
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fflush
	cmp	eax, -1
	jne	.L40
	mov	DWORD PTR -12[rbp], -1
.L40:
	add	QWORD PTR -8[rbp], 32
.L39:
	lea	rax, _iob[rip+640]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L41
	jmp	.L42
.L38:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 2
	test	eax, eax
	jne	.L43
	mov	eax, -1
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	edi, -1
	call	_flushbuf
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 16
	test	eax, eax
	je	.L42
	mov	DWORD PTR -12[rbp], -1
.L42:
	mov	eax, DWORD PTR -12[rbp]
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fflush, .-fflush
	.globl	fclose
	.type	fclose, @function
fclose:
.LFB10:
	.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L46
	mov	eax, -1
	jmp	.L47
.L46:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fflush
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	free@PLT
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 28[rax], -1
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fclose, .-fclose
	.globl	fseek
	.type	fseek, @function
fseek:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 3
	test	eax, eax
	jne	.L50
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L50
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 2
	test	eax, eax
	je	.L51
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fflush
	test	eax, eax
	je	.L50
	mov	eax, -1
	jmp	.L52
.L51:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, 1
	test	eax, eax
	je	.L50
	cmp	DWORD PTR -36[rbp], 1
	jne	.L53
	cmp	QWORD PTR -32[rbp], 0
	js	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	cmp	QWORD PTR -32[rbp], rax
	jg	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	eax, 0
	jmp	.L52
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sub	QWORD PTR -32[rbp], rax
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 28[rax]
	mov	edx, DWORD PTR -36[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	shr	rax, 63
	movzx	eax, al
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L55
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], edx
.L55:
	mov	eax, DWORD PTR -4[rbp]
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	fseek, .-fseek
	.globl	main
	.type	main, @function
main:
.LFB12:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	jmp	.L57
.L61:
	mov	eax, DWORD PTR _iob[rip+32]
	sub	eax, 1
	mov	DWORD PTR _iob[rip+32], eax
	mov	eax, DWORD PTR _iob[rip+32]
	test	eax, eax
	js	.L58
	mov	rax, QWORD PTR _iob[rip+40]
	lea	rdx, 1[rax]
	mov	QWORD PTR _iob[rip+40], rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L57
.L58:
	mov	eax, DWORD PTR -4[rbp]
	lea	rsi, _iob[rip+32]
	mov	edi, eax
	call	_flushbuf
.L57:
	mov	eax, DWORD PTR _iob[rip]
	sub	eax, 1
	mov	DWORD PTR _iob[rip], eax
	mov	eax, DWORD PTR _iob[rip]
	test	eax, eax
	js	.L59
	mov	rax, QWORD PTR _iob[rip+8]
	lea	rdx, 1[rax]
	mov	QWORD PTR _iob[rip+8], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	jmp	.L60
.L59:
	lea	rdi, _iob[rip]
	call	_fillbuf
.L60:
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 120
	jne	.L61
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.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	"95450902.c"
	.text
	.align	2
	.global	fopen
	.syntax unified
	.arm
	.fpu softvfp
	.type	fopen, %function
fopen:
	@ 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, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	beq	.L2
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #119
	beq	.L2
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	beq	.L2
	mov	r3, #0
	b	.L3
.L2:
	ldr	r3, .L17
	str	r3, [fp, #-8]
	b	.L4
.L7:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	str	r3, [fp, #-8]
.L4:
	ldr	r2, .L17+4
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcc	.L7
	b	.L6
.L16:
	nop
.L6:
	ldr	r2, .L17+4
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcc	.L8
	mov	r3, #0
	b	.L3
.L8:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #119
	bne	.L9
	ldr	r1, .L17+8
	ldr	r0, [fp, #-16]
	bl	creat
	str	r0, [fp, #-12]
	b	.L10
.L9:
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #97
	bne	.L11
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L12
	ldr	r1, .L17+8
	ldr	r0, [fp, #-16]
	bl	creat
	str	r0, [fp, #-12]
.L12:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	lseek
	b	.L10
.L11:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-12]
.L10:
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L13
	mov	r3, #0
	b	.L3
.L13:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #114
	bne	.L14
	mov	r2, #1
	b	.L15
.L14:
	mov	r2, #2
.L15:
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	_iob
	.word	_iob+400
	.word	438
	.size	fopen, .-fopen
	.align	2
	.global	_fillbuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	_fillbuf, %function
_fillbuf:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	and	r3, r3, #25
	cmp	r3, #1
	beq	.L20
	mvn	r3, #0
	b	.L21
.L20:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L22
	mov	r3, #1
	b	.L23
.L22:
	mov	r3, #1024
.L23:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L24
	mvn	r3, #0
	b	.L21
.L24:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L25
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L26
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	orr	r2, r3, #8
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
	b	.L27
.L26:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	orr	r2, r3, #16
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
.L27:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	mvn	r3, #0
	b	.L21
.L25:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r1, r3, #1
	ldr	r2, [fp, #-16]
	str	r1, [r2, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_fillbuf, .-_fillbuf
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_flushbuf
	.syntax unified
	.arm
	.fpu softvfp
	.type	_flushbuf, %function
_flushbuf:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	and	r3, r3, #26
	cmp	r3, #2
	beq	.L29
	mvn	r3, #0
	b	.L37
.L29:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L31
	mov	r0, #1024
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L32
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	orr	r2, r3, #3
	ldr	r3, [fp, #-28]
	str	r2, [r3, #12]
	b	.L31
.L32:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r2, .L39+4
	str	r2, [r3]
.L31:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	and	r3, r3, #3
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L34
	mvn	r3, #0
	b	.L37
.L34:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #16]
	sub	r1, fp, #17
	mov	r2, #1
	mov	r0, r3
	bl	write
	str	r0, [fp, #-16]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L35
.L33:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #16]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	bl	write
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-28]
	ldr	r2, .L39+4
	str	r2, [r3]
.L35:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bne	.L36
	ldr	r3, [fp, #-24]
	b	.L37
.L36:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #12]
	orr	r2, r3, #16
	ldr	r3, [fp, #-28]
	str	r2, [r3, #12]
	mvn	r3, #0
.L37:
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC0
	.word	1023
	.size	_flushbuf, .-_flushbuf
	.global	_iob
	.data
	.align	2
	.type	_iob, %object
	.size	_iob, 400
_iob:
	.word	0
	.word	0
	.word	0
	.word	1
	.word	0
	.word	0
	.word	0
	.word	0
	.word	2
	.word	1
	.word	0
	.word	0
	.word	0
	.word	3
	.word	2
	.space	340
	.text
	.align	2
	.global	fflush
	.syntax unified
	.arm
	.fpu softvfp
	.type	fflush, %function
fflush:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L49
	str	r3, [fp, #-8]
	b	.L43
.L45:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	and	r3, r3, #2
	cmp	r3, #0
	bne	.L44
	ldr	r0, [fp, #-8]
	bl	fflush
	mov	r3, r0
	cmn	r3, #1
	bne	.L44
	mvn	r3, #0
	str	r3, [fp, #-12]
.L44:
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	str	r3, [fp, #-8]
.L43:
	ldr	r2, .L49+4
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcc	.L45
	b	.L46
.L42:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	and	r3, r3, #2
	cmp	r3, #0
	bne	.L47
	mvn	r3, #0
	b	.L48
.L47:
	ldr	r1, [fp, #-16]
	mvn	r0, #0
	bl	_flushbuf
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L46
	mvn	r3, #0
	str	r3, [fp, #-12]
.L46:
	ldr	r3, [fp, #-12]
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	_iob
	.word	_iob+400
	.size	fflush, .-fflush
	.align	2
	.global	fclose
	.syntax unified
	.arm
	.fpu softvfp
	.type	fclose, %function
fclose:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L52
	mvn	r3, #0
	b	.L53
.L52:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	fflush
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
.L54:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	mvn	r2, #0
	str	r2, [r3, #16]
	ldr	r0, [fp, #-8]
	bl	close
	mov	r3, r0
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fclose, .-fclose
	.align	2
	.global	fseek
	.syntax unified
	.arm
	.fpu softvfp
	.type	fseek, %function
fseek:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	and	r3, r3, #3
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L57
	ldr	r0, [fp, #-16]
	bl	fflush
	mov	r3, r0
	cmp	r3, #0
	beq	.L56
	mvn	r3, #0
	b	.L58
.L57:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bne	.L59
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L60
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bgt	.L60
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	bic	r2, r3, #8
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
	mov	r3, #0
	b	.L58
.L60:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
.L59:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L56:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	lseek
	mov	r3, r0
	lsr	r3, r3, #31
	and	r3, r3, #255
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	bic	r2, r3, #8
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
.L61:
	ldr	r3, [fp, #-8]
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fseek, .-fseek
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	b	.L63
.L67:
	ldr	r3, .L69
	ldr	r3, [r3, #20]
	sub	r3, r3, #1
	ldr	r2, .L69
	str	r3, [r2, #20]
	ldr	r3, .L69
	ldr	r3, [r3, #20]
	cmp	r3, #0
	blt	.L64
	ldr	r3, .L69
	ldr	r3, [r3, #24]
	add	r2, r3, #1
	ldr	r1, .L69
	str	r2, [r1, #24]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L63
.L64:
	ldr	r1, .L69+4
	ldr	r0, [fp, #-8]
	bl	_flushbuf
.L63:
	ldr	r3, .L69
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L69
	str	r3, [r2]
	ldr	r3, .L69
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L65
	ldr	r3, .L69
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r1, .L69
	str	r2, [r1, #4]
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L66
.L65:
	ldr	r0, .L69
	bl	_fillbuf
	mov	r3, r0
.L66:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #120
	bne	.L67
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	_iob
	.word	_iob+20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
