	.file	"extr_file.c_test_filbuf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wb"
.LC1:
	.string	"filbuf.tst"
.LC2:
	.string	"\n\n\n\n"
.LC3:
	.string	"rt"
.LC4:
	.string	"read wrong byte\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC5:
	.string	"ascii crlf removal does not match native\n"
	.section	.rodata.str1.1
.LC6:
	.string	"fgetpos fail\n"
.LC7:
	.string	"ftell does not match fgetpos\n"
	.text
	.p2align 4
	.type	test_filbuf, @function
test_filbuf:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	fopen@PLT
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC2[rip]
	mov	rcx, rax
	mov	rbp, rax
	call	fwrite@PLT
	mov	rdi, rbp
	call	fclose@PLT
	lea	rsi, .LC3[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	_filbuf@PLT
	xor	edi, edi
	lea	rsi, .LC4[rip]
	cmp	eax, 10
	sete	dil
	call	ok@PLT
	mov	rdi, rbp
	call	ftell@PLT
	xor	edi, edi
	lea	rsi, .LC5[rip]
	cmp	eax, -2
	sete	dil
	call	ok@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rbp
	call	fgetpos@PLT
	xor	edi, edi
	lea	rsi, .LC6[rip]
	test	rax, rax
	sete	dil
	call	ok@PLT
	xor	edi, edi
	cmp	DWORD PTR 4[rsp], -2
	lea	rsi, .LC7[rip]
	sete	dil
	call	ok@PLT
	mov	rdi, rbp
	call	fclose@PLT
	lea	rdi, .LC1[rip]
	call	unlink@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	test_filbuf, .-test_filbuf
	.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_file.c_test_filbuf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"filbuf.tst\000"
	.align	2
.LC2:
	.ascii	"\012\012\012\012\000"
	.align	2
.LC3:
	.ascii	"rt\000"
	.align	2
.LC4:
	.ascii	"read wrong byte\012\000"
	.align	2
.LC5:
	.ascii	"ascii crlf removal does not match native\012\000"
	.align	2
.LC6:
	.ascii	"fgetpos fail\012\000"
	.align	2
.LC7:
	.ascii	"ftell does not match fgetpos\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_filbuf, %function
test_filbuf:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L6
	sub	sp, sp, #8
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	fopen
	mov	r4, r0
	mov	r3, r0
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L6+12
	bl	fwrite
	mov	r0, r4
	bl	fclose
	ldr	r1, .L6+16
	ldr	r0, .L6+8
	bl	fopen
	mov	r4, r0
	bl	_filbuf
	sub	r0, r0, #10
	clz	r0, r0
	ldr	r1, .L6+20
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	ftell
	cmn	r0, #2
	movne	r0, #0
	moveq	r0, #1
	ldr	r1, .L6+24
	bl	ok
	mov	r1, sp
	mov	r0, r4
	bl	fgetpos
	clz	r0, r0
	ldr	r1, .L6+28
	lsr	r0, r0, #5
	bl	ok
	ldr	r0, [sp]
	ldr	r1, .L6+32
	cmn	r0, #2
	movne	r0, #0
	moveq	r0, #1
	bl	ok
	mov	r0, r4
	bl	fclose
	ldr	r0, .L6+8
	bl	unlink
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	test_filbuf, .-test_filbuf
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
