// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/attack.c
// Function: setPlayerStrings
static void setPlayerStrings(void) {
	char str1[150],str2[150],str3[150],str4[150],str5[150],str6[150];
	sprintf(str1,"you swing you sword and hit %s",ENEMY->name);
	strcat(str1," doing %d damage.");
	sprintf(str2,"you swung your sword but missed %s.",ENEMY->name);
	sprintf(str3,"you counter, inflicting 2 damage.");
	sprintf(str4,"you swing and make a critical hit on %s.\nyou",ENEMY->name);
	strcat(str4," do %d damage.");

	switch(PLAYER->special) { //string based on which special player got.
		case 0:
			sprintf(str5,"you throw %s to the ground.\nthey lose 2 turns and suffer 2 damage.",ENEMY->name);
			sprintf(str6,"you tried to throw %s to the ground but failed",ENEMY->name);			
			break;
		case 1:
			sprintf(str5,"you cast a spell against %s lowering their defense by 3.",ENEMY->name);
			sprintf(str6,"you tried, but failed to cast a spell against %s.",ENEMY->name);
			break;
		case 2:
			sprintf(str5,"you perform a power attack against %s",ENEMY->name);
			strcat(str5," causing %d damage.");
			sprintf(str6,"you tried to do a power attack against %s but you failed.",ENEMY->name);			
			break;
		default://do nothing
			break;
	}
	
	strcpy(PLAYER->regular_attack,str1);
	strcpy(PLAYER->regular_miss,str2);
	strcpy(PLAYER->counter_miss,str3);
	strcpy(PLAYER->critical_hit,str4);
	strcpy(PLAYER->special_attack,str5);
	strcpy(PLAYER->special_attack_miss,str6);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x3f0, %rsp            # imm = 0x3F0
leaq 0xfbfe(%rip), %rax      # 0x11150
movq %rax, -0x3e0(%rbp)
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x8d43(%rip), %rsi      # 0xa2ae
xorl %eax, %eax
movb %al, -0x3d1(%rbp)
leaq -0xa0(%rbp), %rdi
movq %rdi, -0x3e8(%rbp)
callq 0x1190
movq -0x3e8(%rbp), %rdi
leaq 0xb97b(%rip), %rsi      # 0xcf0f
callq 0x1180
movq -0x3e0(%rbp), %rcx
movb -0x3d1(%rbp), %al
movq (%rcx), %rcx
movq 0x28(%rcx), %rcx
movq 0x38(%rcx), %rdx
leaq 0x8d15(%rip), %rsi      # 0xa2cd
leaq -0x140(%rbp), %rdi
callq 0x1190
movb -0x3d1(%rbp), %al
leaq 0x8d20(%rip), %rsi      # 0xa2f1
leaq -0x1e0(%rbp), %rdi
callq 0x1190
movq -0x3e0(%rbp), %rcx
movb -0x3d1(%rbp), %al
movq (%rcx), %rcx
movq 0x28(%rcx), %rcx
movq 0x38(%rcx), %rdx
leaq 0x8d17(%rip), %rsi      # 0xa313
leaq -0x280(%rbp), %rdi
movq %rdi, -0x3d0(%rbp)
callq 0x1190
movq -0x3d0(%rbp), %rdi
leaq 0x8d23(%rip), %rsi      # 0xa340
callq 0x1180
leaq 0xfb1f(%rip), %rax      # 0x11148
movq (%rax), %rax
movq 0x28(%rax), %rax
movl 0x30(%rax), %eax
movl %eax, -0x3c4(%rbp)
testl %eax, %eax
je 0x1660
jmp 0x163f
movl -0x3c4(%rbp), %eax
subl $0x1, %eax
je 0x16b3
jmp 0x164c
movl -0x3c4(%rbp), %eax
subl $0x2, %eax
je 0x1703
jmp 0x1766
leaq -0x320(%rbp), %rdi
leaq 0xfae2(%rip), %rax      # 0x11150
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x8ccf(%rip), %rsi      # 0xa34f
movb $0x0, %al
callq 0x1190
leaq -0x3c0(%rbp), %rdi
leaq 0xfabb(%rip), %rax      # 0x11150
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x8ceb(%rip), %rsi      # 0xa392
movb $0x0, %al
callq 0x1190
jmp 0x1768
leaq -0x320(%rbp), %rdi
leaq 0xfa8f(%rip), %rax      # 0x11150
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x8cee(%rip), %rsi      # 0xa3c1
movb $0x0, %al
callq 0x1190
leaq -0x3c0(%rbp), %rdi
leaq 0xfa68(%rip), %rax      # 0x11150
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x8d00(%rip), %rsi      # 0xa3fa
movb $0x0, %al
callq 0x1190
jmp 0x1768
leaq -0x320(%rbp), %rdi
leaq 0xfa3f(%rip), %rax      # 0x11150
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x8d09(%rip), %rsi      # 0xa42c
movb $0x0, %al
callq 0x1190
leaq -0x320(%rbp), %rdi
leaq 0xbec3(%rip), %rsi      # 0xd5fb
callq 0x1180
leaq -0x3c0(%rbp), %rdi
leaq 0xfa05(%rip), %rax      # 0x11150
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x8cf5(%rip), %rsi      # 0xa452
movb $0x0, %al
callq 0x1190
jmp 0x1768
jmp 0x1768
leaq 0xf9d9(%rip), %rax      # 0x11148
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x48(%rax), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x1050
leaq 0xf9bb(%rip), %rax      # 0x11148
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x50(%rax), %rdi
leaq -0x140(%rbp), %rsi
callq 0x1050
leaq 0xf99d(%rip), %rax      # 0x11148
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x68(%rax), %rdi
leaq -0x1e0(%rbp), %rsi
callq 0x1050
leaq 0xf97f(%rip), %rax      # 0x11148
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x78(%rax), %rdi
leaq -0x280(%rbp), %rsi
callq 0x1050
leaq 0xf961(%rip), %rax      # 0x11148
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x88(%rax), %rdi
leaq -0x320(%rbp), %rsi
callq 0x1050
leaq 0xf940(%rip), %rax      # 0x11148
movq (%rax), %rax
movq 0x28(%rax), %rax
movq 0x90(%rax), %rdi
leaq -0x3c0(%rbp), %rsi
callq 0x1050
addq $0x3f0, %rsp            # imm = 0x3F0
popq %rbp
retq
nopl (%rax,%rax)