	.file	"982424.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Pid %d Code BB: Creating file XYZ.txt and write data to the file\n"
.LC1:
	.string	"XYZ.txt"
.LC2:
	.string	"Create XYZ error!"
	.align 8
.LC3:
	.string	"Great!!! I'm learning process management...."
.LC4:
	.string	"Write XYZ error!"
	.align 8
.LC5:
	.string	"Pid %d Code BB: Done and terminating.\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	call	getpid@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 511
	lea	rdi, .LC1[rip]
	call	creat@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 45
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L3
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.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	"982424.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Pid %d Code BB: Creating file XYZ.txt and write dat"
	.ascii	"a to the file\012\000"
	.align	2
.LC1:
	.ascii	"XYZ.txt\000"
	.align	2
.LC2:
	.ascii	"Create XYZ error!\000"
	.align	2
.LC3:
	.ascii	"Great!!! I'm learning process management....\000"
	.align	2
.LC4:
	.ascii	"Write XYZ error!\000"
	.align	2
.LC5:
	.ascii	"Pid %d Code BB: Done and terminating.\012\000"
	.text
	.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]
	bl	getpid
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L4
	bl	printf
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	creat
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L4+12
	bl	printf
	mov	r0, #0
	bl	exit
.L2:
	mov	r2, #45
	ldr	r1, .L4+16
	ldr	r0, [fp, #-8]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L4+20
	bl	printf
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r1, [fp, #-12]
	ldr	r0, .L4+24
	bl	printf
	mov	r0, #0
	bl	exit
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	511
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
