	.file	"103121.c"
	.intel_syntax noprefix
	.text
	.globl	TCID
	.section	.rodata
.LC0:
	.string	"syscall.197"
	.section	.data.rel.local,"aw"
	.align 8
	.type	TCID, @object
	.size	TCID, 8
TCID:
	.quad	.LC0
	.globl	TST_TOTAL
	.data
	.align 4
	.type	TST_TOTAL, @object
	.size	TST_TOTAL, 4
TST_TOTAL:
	.long	1
	.globl	fname
	.bss
	.align 32
	.type	fname, @object
	.size	fname, 255
fname:
	.zero	255
	.globl	fd
	.align 4
	.type	fd, @object
	.size	fd, 4
fd:
	.zero	4
	.globl	statter
	.align 32
	.type	statter, @object
	.size	statter, 144
statter:
	.zero	144
	.section	.rodata
.LC1:
	.string	"tfile_%d"
	.text
	.globl	setup
	.type	setup, @function
setup:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	getpid@PLT
	mov	edx, eax
	lea	rsi, .LC1[rip]
	lea	rdi, fname[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	edx, 438
	mov	esi, 66
	lea	rdi, fname[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR fd[rip], eax
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	setup, .-setup
	.section	.rodata
	.align 8
.LC2:
	.string	"fstat64 succeeded unexpectantly"
.LC3:
	.string	"Expected EBADF"
	.text
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	eax, 0
	call	setup
	mov	eax, DWORD PTR fd[rip]
	lea	rsi, statter[rip]
	mov	edi, eax
	call	fstat64@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L3
	lea	rsi, .LC2[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L3:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L4
	lea	rsi, .LC3[rip]
	mov	edi, 1
	mov	eax, 0
	call	err@PLT
.L4:
	mov	eax, DWORD PTR fd[rip]
	mov	edi, eax
	call	close@PLT
	lea	rdi, fname[rip]
	call	unlink@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"103121.c"
	.text
	.global	TCID
	.section	.rodata
	.align	2
.LC0:
	.ascii	"syscall.197\000"
	.data
	.align	2
	.type	TCID, %object
	.size	TCID, 4
TCID:
	.word	.LC0
	.global	TST_TOTAL
	.align	2
	.type	TST_TOTAL, %object
	.size	TST_TOTAL, 4
TST_TOTAL:
	.word	1
	.comm	fname,255,4
	.comm	fd,4,4
	.comm	statter,104,8
	.section	.rodata
	.align	2
.LC1:
	.ascii	"tfile_%d\000"
	.text
	.align	2
	.global	setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup, %function
setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	getpid
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L2
	ldr	r0, .L2+4
	bl	sprintf
	ldr	r2, .L2+8
	mov	r1, #66
	ldr	r0, .L2+4
	bl	open
	mov	r3, r0
	ldr	r2, .L2+12
	str	r3, [r2]
	ldr	r3, .L2+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC1
	.word	fname
	.word	438
	.word	fd
	.size	setup, .-setup
	.section	.rodata
	.align	2
.LC2:
	.ascii	"fstat64 succeeded unexpectantly\000"
	.align	2
.LC3:
	.ascii	"Expected EBADF\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	setup
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r1, .L8+4
	mov	r0, r3
	bl	fstat64
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L5
	ldr	r1, .L8+8
	mov	r0, #1
	bl	err
.L5:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L6
	ldr	r1, .L8+12
	mov	r0, #1
	bl	err
.L6:
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r0, .L8+16
	bl	unlink
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	fd
	.word	statter
	.word	.LC2
	.word	.LC3
	.word	fname
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
