// File: /workspace/github_c_makefile_star2_O1/return5[P]c_ish_one/./src/attack.c
// Function: attackEnemy
int attackEnemy(int *const continue_game) {
	int run_away = 0;
	int ran_away = 0; //returned value of run_away before it is reset. needed for running away from a building.
	int play = 1;
	setPlayerStrings();
	wclear(prompt_win);
	wprintw(prompt_win,"%s",ENEMY->prompt);
	refreshPrompt();
	while (play == 1) {
		playerTurn(&play,&run_away);
		if (play == 1) {
			computerTurn(&play);
		}
	}
	(PLAYER->health > 0) ? (playerAliveReset(&run_away,&ran_away)) : (*continue_game = 0);
	return ran_away;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3c8, %rsp            # imm = 0x3C8
movq %rdi, 0x8(%rsp)
movl $0x0, 0x4(%rsp)
movl $0x1, (%rsp)
leaq 0xbd92(%rip), %rbp      # 0xd140
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x5f19(%rip), %rsi      # 0x72da
leaq 0x1f0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x1180
movq %r14, %rdi
callq 0x10a0
movw $0x2e, %bx
movw %bx, 0x200(%rsp,%rax)
movups 0x8a15(%rip), %xmm0     # 0x9e03
movups %xmm0, 0x1f0(%rsp,%rax)
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x5ef0(%rip), %rsi      # 0x72f9
leaq 0x330(%rsp), %rdi
xorl %eax, %eax
callq 0x1180
movw %bx, 0x170(%rsp)
movaps 0x6cf9(%rip), %xmm0     # 0x8120
movaps %xmm0, 0x150(%rsp)
movaps 0x6cfa(%rip), %xmm0     # 0x8130
movaps %xmm0, 0x160(%rsp)
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x5ecc(%rip), %rsi      # 0x731d
leaq 0xb0(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x1180
movq %r14, %rdi
callq 0x10a0
movabsq $0x64206425206f6420, %rcx # imm = 0x64206425206F6420
movq %rcx, 0xb0(%rsp,%rax)
movabsq $0x2e6567616d6164, %rcx # imm = 0x2E6567616D6164
movq %rcx, 0xb7(%rsp,%rax)
leaq 0xbca2(%rip), %rbx      # 0xd138
movq (%rbx), %rax
movq 0x28(%rax), %rax
movl 0x30(%rax), %eax
cmpl $0x2, %eax
je 0x1502
cmpl $0x1, %eax
je 0x14da
testl %eax, %eax
jne 0x1562
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x5e94(%rip), %rsi      # 0x7359
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x1180
leaq 0x5ec4(%rip), %rsi      # 0x739c
jmp 0x1547
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x5ede(%rip), %rsi      # 0x73cb
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x1180
leaq 0x5f04(%rip), %rsi      # 0x7404
jmp 0x1547
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x5f21(%rip), %rsi      # 0x7436
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x1180
movq %r14, %rdi
callq 0x10a0
movups 0x8fbc(%rip), %xmm0     # 0xa4ef
movups %xmm0, 0x10(%rsp,%rax)
movl $0x2e6567, 0x20(%rsp,%rax) # imm = 0x2E6567
leaq 0x5f15(%rip), %rsi      # 0x745c
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x290(%rsp), %rdi
xorl %eax, %eax
callq 0x1180
movq (%rbx), %rax
movq 0x28(%rax), %rax
movq 0x48(%rax), %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x1050
movq (%rbx), %rax
movq 0x28(%rax), %rax
movq 0x50(%rax), %rdi
leaq 0x330(%rsp), %rsi
callq 0x1050
movq (%rbx), %rax
movq 0x28(%rax), %rax
movq 0x68(%rax), %rdi
leaq 0x150(%rsp), %rsi
callq 0x1050
movq (%rbx), %rax
movq 0x28(%rax), %rax
movq 0x78(%rax), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x1050
movq (%rbx), %rax
movq 0x28(%rax), %rax
movq 0x88(%rax), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1050
movq (%rbx), %rax
movq 0x28(%rax), %rax
movq 0x90(%rax), %rdi
leaq 0x290(%rsp), %rsi
callq 0x1050
leaq 0xbb1c(%rip), %r12      # 0xd118
movq (%r12), %rdi
callq 0x1090
movq (%r12), %rdi
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0xa0(%rax), %rdx
leaq 0x5cd7(%rip), %rsi      # 0x72f6
xorl %eax, %eax
callq 0x1190
movq (%r12), %rdi
callq 0x10d0
movq 0xb99a(%rip), %r14      # 0xcfd0
movq (%r14), %rdi
callq 0x1080
cmpl $0x1, (%rsp)
jne 0x1710
movq %rsp, %r15
leaq 0x5e44(%rip), %r13      # 0x7496
movq (%rbx), %rax
movq 0x28(%rax), %rax
cmpl $0x0, 0x4(%rax)
je 0x1693
movq (%r12), %rdi
callq 0x1090
movq (%r12), %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1190
movq (%rbx), %rax
movq 0x28(%rax), %rax
decl 0x4(%rax)
movq (%r12), %rdi
callq 0x10d0
movq (%r14), %rdi
callq 0x1080
jmp 0x16a5
callq 0x1a03
leaq 0x4(%rsp), %rdi
movq %r15, %rsi
callq 0x17ba
cmpl $0x1, (%rsp)
jne 0x1706
movq (%rbp), %rax
movq 0x28(%rax), %rax
cmpl $0x0, 0x4(%rax)
je 0x16fe
movq (%r12), %rdi
callq 0x1090
movq (%r12), %rdi
movq (%rbp), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x6a26(%rip), %rsi      # 0x80ff
xorl %eax, %eax
callq 0x1190
movq (%rbp), %rax
movq 0x28(%rax), %rax
decl 0x4(%rax)
movq (%r12), %rdi
callq 0x10d0
movq (%r14), %rdi
callq 0x1080
jmp 0x1706
movq %r15, %rdi
callq 0x28a1
cmpl $0x1, (%rsp)
je 0x1652
movq (%rbx), %rax
movq 0x28(%rax), %rax
cmpl $0x0, (%rax)
jle 0x1751
movl 0x28(%rax), %ecx
movl %ecx, 0x14(%rax)
movl $0x0, 0x24(%rax)
movq $0x0, 0x4(%rax)
movl 0x4(%rsp), %eax
movq (%rbp), %rcx
testl %eax, %eax
je 0x1760
movb 0x20(%rcx), %dl
movb %dl, 0x21(%rcx)
movb $0x65, 0x20(%rcx)
movl $0x0, 0x4(%rsp)
jmp 0x17a0
movq 0x8(%rsp), %rax
movl $0x0, (%rax)
xorl %eax, %eax
jmp 0x17a0
leaq 0xc(%rcx), %rdx
cmpl $0x1, 0xc(%rcx)
movq %rdx, %rsi
je 0x1775
movq 0x30(%rcx), %rsi
addq $0xc, %rsi
movl $0x0, (%rsi)
leaq 0xb99e(%rip), %rsi      # 0xd120
addl $0xa, (%rsi)
cmpb $0x65, 0x20(%rcx)
jne 0x17a0
movl (%rdx), %edx
cmpl $0x5, %edx
ja 0x17b2
movl $0x2e, %esi
btl %edx, %esi
jae 0x17b2
movb $0x78, 0x20(%rcx)
addq $0x3c8, %rsp            # imm = 0x3C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb 0x21(%rcx), %dl
movb %dl, 0x20(%rcx)
jmp 0x17a0