	.file	"448116.c"
	.intel_syntax noprefix
	.text
	.globl	screen
	.bss
	.align 32
	.type	screen, @object
	.size	screen, 960
screen:
	.zero	960
	.text
	.globl	place_enemy
	.type	place_enemy, @function
place_enemy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	DWORD PTR -16[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	place_enemy, .-place_enemy
	.globl	set_entities
	.type	set_entities, @function
set_entities:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	lea	esi, 1[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 4
	mov	edi, edx
	sar	edi, 31
	sub	eax, edi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	sal	eax, 3
	mov	ecx, edx
	sub	ecx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, esi
	mov	esi, ecx
	mov	rdi, rax
	call	place_enemy
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 99
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 12[rax], 2
	add	DWORD PTR -12[rbp], 1
.L3:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 29
	jbe	.L4
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 488[rax], 99
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 480[rax], 20
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 492[rax], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	set_entities, .-set_entities
	.globl	get_entity_tile
	.type	get_entity_tile, @function
get_entity_tile:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 1
	je	.L6
	cmp	DWORD PTR -4[rbp], 2
	je	.L7
	jmp	.L10
.L6:
	mov	eax, 112
	jmp	.L9
.L7:
	mov	eax, 101
	jmp	.L9
.L10:
	mov	eax, 120
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	get_entity_tile, .-get_entity_tile
	.globl	draw_entity
	.type	draw_entity, @function
draw_entity:
.LFB3:
	.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	DWORD PTR -12[rbp], 16
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	edi, eax
	call	get_entity_tile
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -12[rbp]
	add	QWORD PTR -8[rbp], 1
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 8[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	edx, ecx
	mov	eax, DWORD PTR -12[rbp]
	add	QWORD PTR -8[rbp], 1
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	draw_entity, .-draw_entity
	.globl	damage_enemy
	.type	damage_enemy, @function
damage_enemy:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jle	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], edx
.L14:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	damage_enemy, .-damage_enemy
	.globl	one_frame
	.type	one_frame, @function
one_frame:
.LFB5:
	.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	DWORD PTR -12[rbp], 0
	jmp	.L16
.L17:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	damage_enemy
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	draw_entity
	add	DWORD PTR -12[rbp], 1
.L16:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 29
	jbe	.L17
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 480[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	draw_entity
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	one_frame, .-one_frame
	.globl	v
	.bss
	.type	v, @object
	.size	v, 1
v:
	.zero	1
	.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, 528
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, screen[rip]
	mov	QWORD PTR -520[rbp], rax
	lea	rax, -512[rbp]
	mov	rdi, rax
	call	set_entities
	mov	DWORD PTR -524[rbp], 0
	jmp	.L19
.L20:
	mov	rdx, QWORD PTR -520[rbp]
	lea	rax, -512[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	one_frame
	lea	rax, -512[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR v[rip], al
	mov	rax, QWORD PTR -520[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR v[rip], al
	add	DWORD PTR -524[rbp], 1
.L19:
	cmp	DWORD PTR -524[rbp], 99
	jbe	.L20
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.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	"448116.c"
	.text
	.comm	screen,960,4
	.align	2
	.global	place_enemy
	.syntax unified
	.arm
	.fpu softvfp
	.type	place_enemy, %function
place_enemy:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	place_enemy, .-place_enemy
	.align	2
	.global	set_entities
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_entities, %function
set_entities:
	@ 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]
	b	.L3
.L4:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r2, r3, r2
	ldr	r3, .L5
	smull	r1, r3, r2, r3
	asr	r1, r3, #4
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r1, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r2, .L5
	smull	r0, r2, r3, r2
	asr	r2, r2, #1
	asr	r3, r3, #31
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	place_enemy
	ldr	r3, [fp, #-8]
	mov	r2, #99
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #2
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	bls	.L4
	ldr	r3, [fp, #-16]
	mov	r2, #99
	str	r2, [r3, #488]
	ldr	r3, [fp, #-16]
	mov	r2, #20
	str	r2, [r3, #480]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #492]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	1717986919
	.size	set_entities, .-set_entities
	.align	2
	.global	get_entity_tile
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_entity_tile, %function
get_entity_tile:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L9
	b	.L12
.L8:
	mov	r3, #112
	b	.L11
.L9:
	mov	r3, #101
	b	.L11
.L12:
	mov	r3, #120
.L11:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	get_entity_tile, .-get_entity_tile
	.align	2
	.global	draw_entity
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw_entity, %function
draw_entity:
	@ 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]
	mov	r3, #16
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	get_entity_tile
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r2, .L14
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	add	r1, r1, #1
	str	r1, [fp, #-8]
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #8]
	ldr	r3, .L14
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r2, r2, #255
	ldr	r3, [fp, #-12]
	and	r3, r3, #255
	ldr	r1, [fp, #-8]
	add	r1, r1, #1
	str	r1, [fp, #-8]
	add	r3, r2, r3
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	1717986919
	.size	draw_entity, .-draw_entity
	.align	2
	.global	damage_enemy
	.syntax unified
	.arm
	.fpu softvfp
	.type	damage_enemy, %function
damage_enemy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	ble	.L18
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
.L18:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	damage_enemy, .-damage_enemy
	.align	2
	.global	one_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	one_frame, %function
one_frame:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L21:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	damage_enemy
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	draw_entity
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L20:
	ldr	r3, [fp, #-12]
	cmp	r3, #29
	bls	.L21
	ldr	r3, [fp, #-16]
	add	r3, r3, #480
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	draw_entity
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	one_frame, .-one_frame
	.comm	v,1,1
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 512
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #512
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L27+4
	str	r3, [fp, #-512]
	sub	r3, fp, #508
	mov	r0, r3
	bl	set_entities
	mov	r3, #0
	str	r3, [fp, #-516]
	b	.L23
.L24:
	sub	r3, fp, #508
	ldr	r1, [fp, #-512]
	mov	r0, r3
	bl	one_frame
	sub	r3, fp, #508
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L27+8
	strb	r2, [r3]
	ldr	r3, [fp, #-512]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L27+8
	strb	r2, [r3]
	ldr	r3, [fp, #-516]
	add	r3, r3, #1
	str	r3, [fp, #-516]
.L23:
	ldr	r3, [fp, #-516]
	cmp	r3, #99
	bls	.L24
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	screen
	.word	v
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
