	.file	"893798.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Creating new window\n"
.LC1:
	.string	"Unable to create window\n"
.LC2:
	.string	"This program was\n"
.LC3:
	.string	"created by\n"
.LC4:
	.string	"Dan Gookin\n"
.LC5:
	.string	"w"
.LC6:
	.string	"window.dat"
.LC7:
	.string	"Error creating file\n"
.LC8:
	.string	"Error putting window to disk\n"
.LC9:
	.string	"Window put to disk\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
	call	initscr@PLT
	call	start_color@PLT
	mov	edx, 4
	mov	esi, 7
	mov	edi, 1
	call	init_pair@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	waddnstr@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	ecx, 30
	mov	edx, 7
	mov	esi, 20
	mov	edi, 5
	call	newwin@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	lea	rdi, .LC1[rip]
	call	bomb
.L2:
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	wbkgd@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 1
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, -1
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L4:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 5
	mov	esi, 2
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, -1
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L6:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 5
	mov	esi, 3
	mov	rdi, rax
	call	wmove@PLT
	cmp	eax, -1
	je	.L8
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, -1
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L8:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	lea	rdi, .LC7[rip]
	call	bomb
.L9:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	putwin@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L10
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	waddnstr@PLT
	jmp	.L11
.L10:
	mov	rax, QWORD PTR stdscr[rip]
	mov	edx, -1
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	waddnstr@PLT
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	call	endwin@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	bomb
	.type	bomb, @function
bomb:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stdscr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	waddnstr@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wrefresh@PLT
	mov	rax, QWORD PTR stdscr[rip]
	mov	rdi, rax
	call	wgetch@PLT
	call	endwin@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	bomb, .-bomb
	.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	"893798.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Creating new window\012\000"
	.align	2
.LC1:
	.ascii	"Unable to create window\012\000"
	.align	2
.LC2:
	.ascii	"This program was\012\000"
	.align	2
.LC3:
	.ascii	"created by\012\000"
	.align	2
.LC4:
	.ascii	"Dan Gookin\012\000"
	.align	2
.LC5:
	.ascii	"w\000"
	.align	2
.LC6:
	.ascii	"window.dat\000"
	.align	2
.LC7:
	.ascii	"Error creating file\012\000"
	.align	2
.LC8:
	.ascii	"Error putting window to disk\012\000"
	.align	2
.LC9:
	.ascii	"Window put to disk\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
	bl	initscr
	bl	start_color
	mov	r2, #4
	mov	r1, #7
	mov	r0, #1
	bl	init_pair
	ldr	r3, .L13
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L13+4
	mov	r0, r3
	bl	waddnstr
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	mov	r3, #30
	mov	r2, #7
	mov	r1, #20
	mov	r0, #5
	bl	newwin
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L13+8
	bl	bomb
.L2:
	mov	r1, #256
	ldr	r0, [fp, #-16]
	bl	wbkgd
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L4
	mvn	r2, #0
	ldr	r1, .L13+12
	ldr	r0, [fp, #-16]
	bl	waddnstr
.L4:
	mov	r2, #5
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L6
	mvn	r2, #0
	ldr	r1, .L13+16
	ldr	r0, [fp, #-16]
	bl	waddnstr
.L6:
	mov	r2, #5
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	wmove
	mov	r3, r0
	cmn	r3, #1
	beq	.L8
	mvn	r2, #0
	ldr	r1, .L13+20
	ldr	r0, [fp, #-16]
	bl	waddnstr
.L8:
	ldr	r0, [fp, #-16]
	bl	wrefresh
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	ldr	r1, .L13+24
	ldr	r0, .L13+28
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L13+32
	bl	bomb
.L9:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	putwin
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L10
	ldr	r3, .L13
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L13+36
	mov	r0, r3
	bl	waddnstr
	b	.L11
.L10:
	ldr	r3, .L13
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, .L13+40
	mov	r0, r3
	bl	waddnstr
.L11:
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	bl	endwin
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	stdscr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.align	2
	.global	bomb
	.syntax unified
	.arm
	.fpu softvfp
	.type	bomb, %function
bomb:
	@ 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, .L16
	ldr	r3, [r3]
	mvn	r2, #0
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	waddnstr
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	wrefresh
	ldr	r3, .L16
	ldr	r3, [r3]
	mov	r0, r3
	bl	wgetch
	bl	endwin
	mov	r0, #1
	bl	exit
.L17:
	.align	2
.L16:
	.word	stdscr
	.size	bomb, .-bomb
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
