LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: getPlayerMovement
static void getPlayerMovement(const int key) {
	int x,y;
	x = player->x;
	y = player->y;
	switch (key){
		case '8':	//can use either numpad or arrow keys
		case KEY_UP:
			x--;
			break;
		case '2':
		case KEY_DOWN:
			x++;
			break;
		case '4':
		case KEY_LEFT:
			y--;
			break;
		case '6':
		case KEY_RIGHT:
			y++;
			break;
		case 'q': quitGame();
			break;
		default: mvwprintw(prompt_win,0, half_x-15,"error, wrong key pressed.");
				 wrefresh(prompt_win);
				 getch();
			break;
	}
	movePlayer(x,y);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movq 0xd1c6(%rip), %rax      # 0x11148
movl (%rax), %eax
movl %eax, -0x8(%rbp)
movq 0xd1ba(%rip), %rax      # 0x11148
movl 0x4(%rax), %eax
movl %eax, -0xc(%rbp)
movl -0x4(%rbp), %eax
movl %eax, -0x10(%rbp)
subl $0x32, %eax
je 0x4004
jmp 0x3fa1
movl -0x10(%rbp), %eax
subl $0x34, %eax
je 0x400f
jmp 0x3fab
movl -0x10(%rbp), %eax
subl $0x36, %eax
je 0x401a
jmp 0x3fb5
movl -0x10(%rbp), %eax
subl $0x38, %eax
je 0x3ff9
jmp 0x3fbf
movl -0x10(%rbp), %eax
subl $0x71, %eax
je 0x4025
jmp 0x3fc9
movl -0x10(%rbp), %eax
subl $0x102, %eax            # imm = 0x102
je 0x4004
jmp 0x3fd5
movl -0x10(%rbp), %eax
subl $0x103, %eax            # imm = 0x103
je 0x3ff9
jmp 0x3fe1
movl -0x10(%rbp), %eax
subl $0x104, %eax            # imm = 0x104
je 0x400f
jmp 0x3fed
movl -0x10(%rbp), %eax
subl $0x105, %eax            # imm = 0x105
je 0x401a
jmp 0x402c
movl -0x8(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x406d
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
jmp 0x406d
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x406d
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x406d
callq 0x53c0
jmp 0x406d
leaq 0xd0f5(%rip), %rax      # 0x11128
movq (%rax), %rdi
movl 0xd0f8(%rip), %edx      # 0x11134
subl $0xf, %edx
xorl %esi, %esi
leaq 0x7797(%rip), %rcx      # 0xb7df
movb $0x0, %al
callq 0x10d0
leaq 0xd0d2(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xcf6b(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
movl -0x8(%rbp), %edi
movl -0xc(%rbp), %esi
callq 0x5430
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: foundEnemy
static void foundEnemy(void) {
	wclear(game_win);
	printHero();  									//printenemy.c
	printEnemies(previous->character->type);        //printenemy.c

	//if player doesnt run away from fight, call killorkilled
	if (!attackEnemy(&continue_game)) { //attack.c
		killOrKilled();		
	}
			
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xd085(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x1090
callq 0x7550
movq 0xd0a1(%rip), %rax      # 0x11150
movq 0x28(%rax), %rax
movl 0x1c(%rax), %edi
callq 0x7a40
leaq 0xd03e(%rip), %rdi      # 0x11100
callq 0x1480
cmpl $0x0, %eax
jne 0x40d1
callq 0x42c0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: foundObj
static void foundObj(void) {	
	wclear(game_win);
	printHeroPlaces();              //printobjects.c
	printPlaces(previous->obj->type);   //printobjects.c

	if (previous->visited != 1) { //if player hasn't previous explored location
		printOptionsPlaces(previous->obj->type);  //printobjects.c
		previous->tile_set = 'x';
		if(getch() == 'y') {
			previous->visited = 1;
		}
	}

	if (previous->visited == 1) {
		if (checkObjEnemy() == 0 && continue_game == 1 ){
			checkObjThings();
		}
	}

	if (previous->discovered == 0) {
		camp_discovered++;
		previous->discovered = 1;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xd035(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x1090
callq 0x9550
movq 0xd051(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
movl (%rax), %edi
callq 0x96b0
movq 0xd03f(%rip), %rax      # 0x11150
cmpl $0x1, 0x10(%rax)
je 0x4158
movq 0xd032(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
movl (%rax), %edi
callq 0x9c60
movq 0xd020(%rip), %rax      # 0x11150
movb $0x78, 0x20(%rax)
movq 0xce95(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
cmpl $0x79, %eax
jne 0x4156
movq 0xd001(%rip), %rax      # 0x11150
movl $0x1, 0x10(%rax)
jmp 0x4158
movq 0xcff1(%rip), %rax      # 0x11150
cmpl $0x1, 0x10(%rax)
jne 0x417f
callq 0x4360
cmpl $0x0, %eax
jne 0x417d
cmpl $0x1, 0xcf8a(%rip)      # 0x11100
jne 0x417d
callq 0x43f0
jmp 0x417f
movq 0xcfca(%rip), %rax      # 0x11150
cmpl $0x0, 0x1c(%rax)
jne 0x41a9
movl 0xcfce(%rip), %eax      # 0x11160
addl $0x1, %eax
movl %eax, 0xcfc5(%rip)      # 0x11160
movq 0xcfae(%rip), %rax      # 0x11150
movl $0x1, 0x1c(%rax)
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: foundWell
static void foundWell(void) {
	wclear(game_win);
	printHeroPlaces(); //printobjects.c
	printPlaces(6);   //printobjects.c
	(previous->well_full == 1) ? drinkFromWell() : (printOptionsPlaces(7), getch()); //printobjects.c
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xcf65(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x1090
callq 0x9550
movl $0x6, %edi
callq 0x96b0
movq 0xcf77(%rip), %rax      # 0x11150
cmpl $0x1, 0x8(%rax)
jne 0x41e6
callq 0x46c0
jmp 0x41ff
movl $0x7, %edi
callq 0x9c60
movq 0xcdd9(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: foundShrine
static void foundShrine(void) {
	if(previous->shrine_blessing != 10){  //if you havent already made an offering at this shrine
		printShrineAndPlayer();
		printOptionsPlaces(previous->type); //printobjects.c
		getShrineInput();
	}
	else {
		wclear(prompt_win);		
		printShrineAndPlayer();
		wprintw(prompt_win,"you have already visited this shrine.");
		wrefresh(prompt_win);
		getch();
	}
	if(previous->visited != 1) {
		shrine_found++;
		previous->visited = 1;
		previous->tile_set = 's';
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0xcf35(%rip), %rax      # 0x11150
cmpl $0xa, 0x14(%rax)
je 0x423c
callq 0x4760
movq 0xcf23(%rip), %rax      # 0x11150
movl 0xc(%rax), %edi
callq 0x9c60
callq 0x47a0
jmp 0x4286
leaq 0xcee5(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
callq 0x4760
leaq 0xced1(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x7230(%rip), %rsi      # 0xb491
movb $0x0, %al
callq 0x11a0
leaq 0xceb9(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xcd52(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
movq 0xcec3(%rip), %rax      # 0x11150
cmpl $0x1, 0x10(%rax)
je 0x42bb
movl 0xcecb(%rip), %eax      # 0x11164
addl $0x1, %eax
movl %eax, 0xcec2(%rip)      # 0x11164
movq 0xcea7(%rip), %rax      # 0x11150
movl $0x1, 0x10(%rax)
movq 0xce99(%rip), %rax      # 0x11150
movb $0x73, 0x20(%rax)
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: killOrKilled
static void killOrKilled(void) {
	enemy_killed += continue_game;   //if enemy is killed, add one to count
	wclear(prompt_win);
	(continue_game) ? wprintw(prompt_win,"you defeated %s, good job!.",previous->character->name) : wprintw(prompt_win,"%s killed you. game over!",previous->character->name);
	wrefresh(prompt_win);
	getch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl 0xce36(%rip), %eax      # 0x11100
addl 0xce8c(%rip), %eax      # 0x1115c
movl %eax, 0xce86(%rip)      # 0x1115c
leaq 0xce4b(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
cmpl $0x0, 0xce14(%rip)      # 0x11100
je 0x4317
leaq 0xce33(%rip), %rax      # 0x11128
movq (%rax), %rdi
movq 0xce51(%rip), %rax      # 0x11150
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x6fde(%rip), %rsi      # 0xb2ec
movb $0x0, %al
callq 0x11a0
jmp 0x433e
leaq 0xce0a(%rip), %rax      # 0x11128
movq (%rax), %rdi
movq 0xce28(%rip), %rax      # 0x11150
movq 0x28(%rax), %rax
movq 0x38(%rax), %rdx
leaq 0x6fd1(%rip), %rsi      # 0xb308
movb $0x0, %al
callq 0x11a0
leaq 0xcde3(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xcc7c(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: checkObjEnemy
static int checkObjEnemy(void) {
	if (previous->obj->enemy!=0){
		wclear(game_win);
		printPlaces(previous->obj->type);				  //printobjects.c
	    printHero();  									//printenemy.c
		printEnemies(previous->character->type);       //printenemy.c
		const int r = attackEnemy(&continue_game);  //attack.c
		if (!r) {
			killOrKilled();
		}
		return r;
	}
	else {
		return 0;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq 0xcde1(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
cmpl $0x0, 0xc(%rax)
je 0x43d4
leaq 0xcda0(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x1090
movq 0xcdc1(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
movl (%rax), %edi
callq 0x96b0
callq 0x7550
movq 0xcdaa(%rip), %rax      # 0x11150
movq 0x28(%rax), %rax
movl 0x1c(%rax), %edi
callq 0x7a40
leaq 0xcd47(%rip), %rdi      # 0x11100
callq 0x1480
movl %eax, -0x8(%rbp)
cmpl $0x0, -0x8(%rbp)
jne 0x43cc
callq 0x42c0
movl -0x8(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x43db
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: checkObjThings
static void checkObjThings(void) {
	int stuff = 0;
	if (previous->obj->food == 1) {
		getFood();
		stuff = 1;
	}
	if(previous->obj->loot == 1){
		getLoot();
		stuff = 1;
	}
	if(!stuff) {
		wclear(prompt_win);
		wprintw(prompt_win,"you didnt find anything of value.");
		wrefresh(prompt_win);
		getch();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, -0x4(%rbp)
movq 0xcd4a(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
cmpl $0x1, 0x4(%rax)
jne 0x441c
callq 0x4490
movl $0x1, -0x4(%rbp)
movq 0xcd2d(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
cmpl $0x1, 0x8(%rax)
jne 0x4439
callq 0x4660
movl $0x1, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jne 0x4484
leaq 0xcce2(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xccd3(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6ec3(%rip), %rsi      # 0xb322
movb $0x0, %al
callq 0x11a0
leaq 0xccbb(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xcb54(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: getLoot
static void getLoot(void) {
	wprintw(prompt_win,"\nyou found some valuable loot.");
	wrefresh(prompt_win);
	getch();
	score += 20;
	previous->obj->loot = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xcabd(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6dcc(%rip), %rsi      # 0xb441
movb $0x0, %al
callq 0x11a0
leaq 0xcaa5(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xc93e(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
movl 0xca90(%rip), %eax      # 0x11130
addl $0x14, %eax
movl %eax, 0xca87(%rip)      # 0x11130
movq 0xcaa0(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
movl $0x0, 0x8(%rax)
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: drinkFromWell
static void drinkFromWell(void) {
	printOptionsPlaces(6); //printobjects.c
	if(getch() == 'y') {
		wclear(prompt_win);
		wprintw(prompt_win,"you drink from the well, restoring health points");
		wrefresh(prompt_win);
		PLAYER->health = PLAYER->health_max;
		previous->well_full = 0;
		getch();
	}
	previous->visited = 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x6, %edi
callq 0x9c60
movq 0xc8fb(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
cmpl $0x79, %eax
jne 0x4750
leaq 0xca3f(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xca30(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6d5e(%rip), %rsi      # 0xb460
movb $0x0, %al
callq 0x11a0
leaq 0xca18(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xca29(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0xc(%rax), %ecx
movq 0xca1b(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl %ecx, (%rax)
movq 0xca16(%rip), %rax      # 0x11150
movl $0x0, 0x8(%rax)
movq 0xc888(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
movq 0xc9f9(%rip), %rax      # 0x11150
movl $0x1, 0x10(%rax)
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: printShrineAndPlayer
static void printShrineAndPlayer(void) {
	wclear(game_win);
	printHeroPlaces(); //printobjects.c
	printPlaces(previous->type); //printobjects.c
	wrefresh(game_win);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xc9b5(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x1090
callq 0x9550
movq 0xc9d1(%rip), %rax      # 0x11150
movl 0xc(%rax), %edi
callq 0x96b0
leaq 0xc992(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x10c0
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: getShrineInput
static void getShrineInput(void) {
	if(getch() == 'y') {
		switch(previous->shrine_blessing) {
			case 0: increasePlayerAttack();
				break;
			case 1: increasePlayerDefense();
				break;
			case 2: increasePlayerHealth();
				break;
			default: //nothing
				break;
		}
		previous->shrine_blessing = 10;  //sets to this value so you know it has been used
		score += 30;
	}
	else {
		wclear(prompt_win);
		wprintw(prompt_win,"you decided to not enter the shrine.perhaps later");
		wrefresh(prompt_win);
		getch();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq 0xc821(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
cmpl $0x79, %eax
jne 0x4819
movq 0xc98d(%rip), %rax      # 0x11150
movl 0x14(%rax), %eax
movl %eax, -0x4(%rbp)
testl %eax, %eax
je 0x47e3
jmp 0x47cf
movl -0x4(%rbp), %eax
subl $0x1, %eax
je 0x47ea
jmp 0x47d9
movl -0x4(%rbp), %eax
subl $0x2, %eax
je 0x47f1
jmp 0x47f8
callq 0x4870
jmp 0x47fa
callq 0x48d0
jmp 0x47fa
callq 0x4950
jmp 0x47fa
jmp 0x47fa
movq 0xc94f(%rip), %rax      # 0x11150
movl $0xa, 0x14(%rax)
movl 0xc922(%rip), %eax      # 0x11130
addl $0x1e, %eax
movl %eax, 0xc919(%rip)      # 0x11130
jmp 0x485e
leaq 0xc908(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xc8f9(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6c7e(%rip), %rsi      # 0xb4b7
movb $0x0, %al
callq 0x11a0
leaq 0xc8e1(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xc77a(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: increasePlayerAttack
static void increasePlayerAttack(void){
	PLAYER->attack += 2;
	wclear(prompt_win);
	wprintw(prompt_win,"you enter the shrine and make an offering to the gods.\nthey grant you a bonus to your attack.");
	wrefresh(prompt_win);
	getch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0xc8cd(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0x10(%rax), %ecx
addl $0x2, %ecx
movl %ecx, 0x10(%rax)
leaq 0xc899(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xc88a(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6c41(%rip), %rsi      # 0xb4e9
movb $0x0, %al
callq 0x11a0
leaq 0xc872(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xc70b(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: increasePlayerDefense
static void increasePlayerDefense(void){
	PLAYER->defense += 2;
	PLAYER->defense_value += 2;
	wclear(prompt_win);
	wprintw(prompt_win,"you enter the shrine and make an offering to the gods.\nthey grant you a bonus to your defense.");
	wrefresh(prompt_win);
	getch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0xc86d(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0x14(%rax), %ecx
addl $0x2, %ecx
movl %ecx, 0x14(%rax)
movq 0xc859(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0x28(%rax), %ecx
addl $0x2, %ecx
movl %ecx, 0x28(%rax)
leaq 0xc825(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xc816(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6c2b(%rip), %rsi      # 0xb547
movb $0x0, %al
callq 0x11a0
leaq 0xc7fe(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xc697(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: increasePlayerHealth
static void increasePlayerHealth(void){
	PLAYER->health_max += 10;
	PLAYER->health = PLAYER->health_max;
	wclear(prompt_win);
	wprintw(prompt_win,"you enter the shrine and make an offering to the gods.\nthey grant you a bonus to your health.");
	wrefresh(prompt_win);
	getch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq 0xc7ed(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0xc(%rax), %ecx
addl $0xa, %ecx
movl %ecx, 0xc(%rax)
movq 0xc7d9(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0xc(%rax), %ecx
movq 0xc7cb(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl %ecx, (%rax)
leaq 0xc79e(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xc78f(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6c03(%rip), %rsi      # 0xb5a6
movb $0x0, %al
callq 0x11a0
leaq 0xc777(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xc610(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: checkForThingsAbove
static void checkForThingsAbove(int *const detect_thing) {
	if(player->x > 0) {
		if(map[player->x-1][player->y]->type != 0 && map[player->x-1][player->y]->visited == 0 ) {
			*detect_thing = 1;
		}
		if (player->y > 0) {
			if(map[player->x-1][player->y-1]->type != 0 && map[player->x-1][player->y-1]->visited == 0) {
				*detect_thing = 1;
			}
		}
		if (player->y < WIDTH_CHECK) {
			if(map[player->x-1][player->y+1]->type != 0 && map[player->x-1][player->y+1]->visited == 0) {
				*detect_thing = 1;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq 0xc649(%rip), %rax      # 0x11148
cmpl $0x0, (%rax)
jle 0x4ca0
movq 0xc639(%rip), %rax      # 0x11148
movl (%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xc652(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc619(%rip), %rcx      # 0x11148
movslq 0x4(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0xc(%rax)
je 0x4b7c
movq 0xc604(%rip), %rax      # 0x11148
movl (%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xc61d(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc5e4(%rip), %rcx      # 0x11148
movslq 0x4(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x10(%rax)
jne 0x4b7c
movq -0x8(%rbp), %rax
movl $0x1, (%rax)
movq 0xc5c5(%rip), %rax      # 0x11148
cmpl $0x0, 0x4(%rax)
jle 0x4c0d
movq 0xc5b4(%rip), %rax      # 0x11148
movl (%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xc5cd(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc594(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0xc(%rax)
je 0x4c0b
movq 0xc57a(%rip), %rax      # 0x11148
movl (%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xc593(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc55a(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x10(%rax)
jne 0x4c0b
movq -0x8(%rbp), %rax
movl $0x1, (%rax)
jmp 0x4c0d
movq 0xc534(%rip), %rax      # 0x11148
cmpl $0x31, 0x4(%rax)
jge 0x4c9e
movq 0xc523(%rip), %rax      # 0x11148
movl (%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xc53c(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc503(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0xc(%rax)
je 0x4c9c
movq 0xc4e9(%rip), %rax      # 0x11148
movl (%rax), %eax
subl $0x1, %eax
movslq %eax, %rcx
leaq 0xc502(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc4c9(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x10(%rax)
jne 0x4c9c
movq -0x8(%rbp), %rax
movl $0x1, (%rax)
jmp 0x4c9e
jmp 0x4ca0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: checkForThingsBelow
static void checkForThingsBelow(int *const detect_thing) {
	if(player->x < HEIGHT_CHECK) {
		if (map[player->x+1][player->y]->type != 0 && map[player->x+1][player->y]->visited == 0) {
			*detect_thing = 1;
		}
		if (player->y > 0) {
			if(map[player->x+1][player->y-1]->type != 0 && map[player->x+1][player->y-1]->visited == 0) {
				*detect_thing = 1;
			}
		}
		if (player->y < WIDTH_CHECK) {
			if(map[player->x+1][player->y+1]->type != 0 && map[player->x+1][player->y+1]->visited == 0) {
				*detect_thing = 1;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq 0xc489(%rip), %rax      # 0x11148
cmpl $0x13, (%rax)
jge 0x4e60
movq 0xc479(%rip), %rax      # 0x11148
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0xc492(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc459(%rip), %rcx      # 0x11148
movslq 0x4(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0xc(%rax)
je 0x4d3c
movq 0xc444(%rip), %rax      # 0x11148
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0xc45d(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc424(%rip), %rcx      # 0x11148
movslq 0x4(%rcx), %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x10(%rax)
jne 0x4d3c
movq -0x8(%rbp), %rax
movl $0x1, (%rax)
movq 0xc405(%rip), %rax      # 0x11148
cmpl $0x0, 0x4(%rax)
jle 0x4dcd
movq 0xc3f4(%rip), %rax      # 0x11148
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0xc40d(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc3d4(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0xc(%rax)
je 0x4dcb
movq 0xc3ba(%rip), %rax      # 0x11148
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0xc3d3(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc39a(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x10(%rax)
jne 0x4dcb
movq -0x8(%rbp), %rax
movl $0x1, (%rax)
jmp 0x4dcd
movq 0xc374(%rip), %rax      # 0x11148
cmpl $0x31, 0x4(%rax)
jge 0x4e5e
movq 0xc363(%rip), %rax      # 0x11148
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0xc37c(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc343(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0xc(%rax)
je 0x4e5c
movq 0xc329(%rip), %rax      # 0x11148
movl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
leaq 0xc342(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xc309(%rip), %rcx      # 0x11148
movl 0x4(%rcx), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
cmpl $0x0, 0x10(%rax)
jne 0x4e5c
movq -0x8(%rbp), %rax
movl $0x1, (%rax)
jmp 0x4e5e
jmp 0x4e60
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: checkTeleport
static void checkTeleport(void) {
	if(!teleport) {
		//if player isnt in location where teleporter will be
		if(player->x != (WIDTH/2) || player->x != (WIDTH/2) + 1 || player->x != (WIDTH/2) - 1) {
			makeTeleporter();		
		}
		 else if(player->y != (HEIGHT/2) || player->y != (HEIGHT/2) + 1 || player->y != (HEIGHT/2) - 1) {
			makeTeleporter();
		 }
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
cmpl $0x0, 0xc2dd(%rip)      # 0x11158
jne 0x4ed8
movq 0xc2c4(%rip), %rax      # 0x11148
cmpl $0x19, (%rax)
jne 0x4ea1
movq 0xc2b8(%rip), %rax      # 0x11148
cmpl $0x1a, (%rax)
jne 0x4ea1
movq 0xc2ac(%rip), %rax      # 0x11148
cmpl $0x18, (%rax)
je 0x4ea8
callq 0x4ee0
jmp 0x4ed6
movq 0xc299(%rip), %rax      # 0x11148
cmpl $0xa, 0x4(%rax)
jne 0x4ecf
movq 0xc28c(%rip), %rax      # 0x11148
cmpl $0xb, 0x4(%rax)
jne 0x4ecf
movq 0xc27f(%rip), %rax      # 0x11148
cmpl $0x9, 0x4(%rax)
je 0x4ed4
callq 0x4ee0
jmp 0x4ed6
jmp 0x4ed8
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: makeTeleporter
static void makeTeleporter(void) {
	teleport = 1;
	map[(HEIGHT/2)][(WIDTH/2)]->tile_set = 'O';
	map[(HEIGHT/2)-1][(WIDTH/2)]->tile_set = '|';
	map[(HEIGHT/2)][(WIDTH/2)-1]->tile_set = '-';
	map[(HEIGHT/2)][(WIDTH/2)+1]->tile_set = '-';
	map[(HEIGHT/2)][(WIDTH/2)-2]->tile_set = '-';
	map[(HEIGHT/2)][(WIDTH/2)+2]->tile_set = '-';
	map[(HEIGHT/2)+1][(WIDTH/2)]->tile_set = '|';
	clearTile(map[(HEIGHT/2)][(WIDTH/2)]);
	clearTile(map[(HEIGHT/2)-1][(WIDTH/2)]);
	clearTile(map[(HEIGHT/2)+1][(WIDTH/2)]);
	clearTile(map[(HEIGHT/2)][(WIDTH/2)-1]);
	clearTile(map[(HEIGHT/2)][(WIDTH/2)+1]);
	clearTile(map[(HEIGHT/2)][(WIDTH/2)+2]);
	clearTile(map[(HEIGHT/2)][(WIDTH/2)-2]);
	printTeleportPrompt();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x1, 0xc26a(%rip)      # 0x11158
leaq 0xc27b(%rip), %rax      # 0x11170
movq 0x1068(%rax), %rax
movb $0x4f, 0x20(%rax)
leaq 0xc269(%rip), %rax      # 0x11170
movq 0xed8(%rax), %rax
movb $0x7c, 0x20(%rax)
leaq 0xc257(%rip), %rax      # 0x11170
movq 0x1060(%rax), %rax
movb $0x2d, 0x20(%rax)
leaq 0xc245(%rip), %rax      # 0x11170
movq 0x1070(%rax), %rax
movb $0x2d, 0x20(%rax)
leaq 0xc233(%rip), %rax      # 0x11170
movq 0x1058(%rax), %rax
movb $0x2d, 0x20(%rax)
leaq 0xc221(%rip), %rax      # 0x11170
movq 0x1078(%rax), %rax
movb $0x2d, 0x20(%rax)
leaq 0xc20f(%rip), %rax      # 0x11170
movq 0x11f8(%rax), %rax
movb $0x7c, 0x20(%rax)
leaq 0xc1fd(%rip), %rax      # 0x11170
movq 0x1068(%rax), %rdi
callq 0x5000
leaq 0xc1ea(%rip), %rax      # 0x11170
movq 0xed8(%rax), %rdi
callq 0x5000
leaq 0xc1d7(%rip), %rax      # 0x11170
movq 0x11f8(%rax), %rdi
callq 0x5000
leaq 0xc1c4(%rip), %rax      # 0x11170
movq 0x1060(%rax), %rdi
callq 0x5000
leaq 0xc1b1(%rip), %rax      # 0x11170
movq 0x1070(%rax), %rdi
callq 0x5000
leaq 0xc19e(%rip), %rax      # 0x11170
movq 0x1078(%rax), %rdi
callq 0x5000
leaq 0xc18b(%rip), %rax      # 0x11170
movq 0x1058(%rax), %rdi
callq 0x5000
callq 0x5060
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: clearTile
static void clearTile(tile *const t) {
	t->tile_temp = t->tile_set;
	t->character = NULL;
	t->obj = NULL;
	t->well_full = 0;
	t->type = 0;
	t->visited = 0;
	t->shrine_blessing = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movb 0x20(%rax), %cl
movq -0x8(%rbp), %rax
movb %cl, 0x21(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0xc(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x10(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x14(%rax)
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: printTeleportPrompt
static void printTeleportPrompt(void) {
	wclear(prompt_win);
	wprintw(prompt_win,"a teleportation device appears in the middle of the map.\nproceed towards it to advanced to next level.");
	wrefresh(prompt_win);
	getch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xc0bd(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xc0ae(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x65b7(%rip), %rsi      # 0xb63b
movb $0x0, %al
callq 0x11a0
leaq 0xc096(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xbf2f(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: BossFight
static void BossFight(void) {
	wclear(game_win);
	wclear(prompt_win);
	printHero();  //printenemy.c
	printEnemies(19); //printenemy.c
	setUpBoss(); //attack.c
	attackEnemy(&continue_game); //attack.c
	endOfGame();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xc065(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x1090
leaq 0xc05e(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
callq 0x7550
movl $0x13, %edi
callq 0x7a40
callq 0x12e0
leaq 0xc013(%rip), %rdi      # 0x11100
callq 0x1480
callq 0x5100
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: endOfGame
static void endOfGame(void) {
	wclear(game_win);
	wclear(prompt_win);
	continue_game = 0;
	if(PLAYER->health > 0) {
		score += 100;
		enemy_killed++;
		wprintw(game_win,"you defeated the monster. good job!\nyour final score was %d.",score);
	}
	else {
		wprintw(game_win,"the monster killed you,too bad. game over!\nyour final score was %d.",score);
	}
	wprintw(game_win,"\nyou discovered %d shrines\nyou found %d camps\nyou killed %d enemies.",shrine_found,camp_discovered,enemy_killed);
	wrefresh(prompt_win);
	wrefresh(game_win);
	getch();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xc015(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x1090
leaq 0xc00e(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
movl $0x0, 0xbfd4(%rip)      # 0x11100
movq 0xc015(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
cmpl $0x0, (%rax)
jle 0x517a
movl 0xbfee(%rip), %eax      # 0x11130
addl $0x64, %eax
movl %eax, 0xbfe5(%rip)      # 0x11130
movl 0xc00b(%rip), %eax      # 0x1115c
addl $0x1, %eax
movl %eax, 0xc002(%rip)      # 0x1115c
leaq 0xbfbf(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl 0xbfc6(%rip), %edx      # 0x11130
leaq 0x656d(%rip), %rsi      # 0xb6de
movb $0x0, %al
callq 0x11a0
jmp 0x5198
leaq 0xbf9f(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl 0xbfa6(%rip), %edx      # 0x11130
leaq 0x658a(%rip), %rsi      # 0xb71b
movb $0x0, %al
callq 0x11a0
leaq 0xbf81(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl 0xbfbc(%rip), %edx      # 0x11164
movl 0xbfb2(%rip), %ecx      # 0x11160
movl 0xbfa7(%rip), %r8d      # 0x1115c
leaq 0x65a3(%rip), %rsi      # 0xb75f
movb $0x0, %al
callq 0x11a0
leaq 0xbf5e(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
leaq 0xbf47(%rip), %rax      # 0x11120
movq (%rax), %rdi
callq 0x10c0
movq 0xbde8(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: setColorAttrOn
static void setColorAttrOn(const char tile) {
	switch (tile) {
		case ' ': wattron(game_win,BLACK);
			break;
		case '^': wattron(game_win,WHITE);
			break;
		case '/':  
		case ':': wattron(game_win,GREEN);
			break;
		case '&': wattron(game_win,YELLOW);
			break;
		case '@': wattron(game_win,CYAN);
			break;
		case 'x': wattron(game_win,RED);
			break;
		case 's': wattron(game_win,MAGENTA);
			break;
		case 'e': wattron(game_win,RED);
			break;
		case '|': 
		case '-': wattron(game_win,MAGENTA);
			break;
		case 'O': wattron(game_win,CYAN);
			break;
		case '~': wattron(game_win,BLUE);
			break;
		default:  //do nothing
			break;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movb %dil, %al
movb %al, -0x1(%rbp)
movsbl -0x1(%rbp), %eax
addl $-0x20, %eax
movl %eax, %ecx
movq %rcx, -0x10(%rbp)
subl $0x5e, %eax
ja 0x5368
movq -0x10(%rbp), %rax
leaq 0x5f41(%rip), %rcx      # 0xb170
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0xbee1(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbec4(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x200, %esi            # imm = 0x200
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbea7(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x300, %esi            # imm = 0x300
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbe8a(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x400, %esi            # imm = 0x400
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbe6d(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x500, %esi            # imm = 0x500
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbe50(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x600, %esi            # imm = 0x600
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbe33(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbe19(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x600, %esi            # imm = 0x600
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbdff(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x700, %esi            # imm = 0x700
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbde5(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x500, %esi            # imm = 0x500
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
leaq 0xbdcb(%rip), %rax      # 0x11120
movq (%rax), %rdi
movl $0x800, %esi            # imm = 0x800
xorl %eax, %eax
movl %eax, %edx
callq 0x1100
jmp 0x536a
jmp 0x536a
addq $0x10, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: quitGame
static void quitGame(void) {
	wclear(prompt_win);
	wprintw(prompt_win,"are you sure you wish to quit(y/n)");
	wrefresh(prompt_win);
	(getch() == 'y') ? continue_game = 0 : printPrompt();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xbd5d(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xbd4e(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6415(%rip), %rsi      # 0xb7f9
movb $0x0, %al
callq 0x11a0
leaq 0xbd36(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xbbcf(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
cmpl $0x79, %eax
jne 0x541a
movl $0x0, 0xbce8(%rip)      # 0x11100
jmp 0x541f
callq 0x3ee0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: movePlayer
static void movePlayer (const int  x, const int  y) {
	if (x < 0 || x >= HEIGHT) {
		mvwprintw(prompt_win,0, half_x-15,"cant go that way, already on edge of map.");
		wrefresh(prompt_win);
		getch();
	}
	else if ( y < 0 || y >= WIDTH ) {
		mvwprintw(prompt_win,0, half_x-15,"cant go that way, already on edge of map.");
		wrefresh(prompt_win);
		getch();
	}
	else{
		map[player->x][player->y] = previous;
		player->x = x;
		player->y = y;	
		previous = map[x][y];
		map[x][y] = player;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
cmpl $0x0, -0x4(%rbp)
jl 0x544a
cmpl $0x14, -0x4(%rbp)
jl 0x5490
leaq 0xbcd7(%rip), %rax      # 0x11128
movq (%rax), %rdi
movl 0xbcda(%rip), %edx      # 0x11134
subl $0xf, %edx
xorl %esi, %esi
leaq 0x63b6(%rip), %rcx      # 0xb81c
movb $0x0, %al
callq 0x10d0
leaq 0xbcb4(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xbb4d(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
jmp 0x5576
cmpl $0x0, -0x8(%rbp)
jl 0x549c
cmpl $0x32, -0x8(%rbp)
jl 0x54e2
leaq 0xbc85(%rip), %rax      # 0x11128
movq (%rax), %rdi
movl 0xbc88(%rip), %edx      # 0x11134
subl $0xf, %edx
xorl %esi, %esi
leaq 0x6364(%rip), %rcx      # 0xb81c
movb $0x0, %al
callq 0x10d0
leaq 0xbc62(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xbafb(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
jmp 0x5574
movq 0xbc67(%rip), %rdx      # 0x11150
movq 0xbc58(%rip), %rax      # 0x11148
movslq (%rax), %rcx
leaq 0xbc76(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movq 0xbc3d(%rip), %rcx      # 0x11148
movslq 0x4(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x4(%rbp), %ecx
movq 0xbc2b(%rip), %rax      # 0x11148
movl %ecx, (%rax)
movl -0x8(%rbp), %ecx
movq 0xbc1f(%rip), %rax      # 0x11148
movl %ecx, 0x4(%rax)
movslq -0x4(%rbp), %rcx
leaq 0xbc39(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0xbc00(%rip)      # 0x11150
movq 0xbbf1(%rip), %rdx      # 0x11148
movslq -0x4(%rbp), %rcx
leaq 0xbc0e(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x5576
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: initMap
void initMap(void) {
	setUpMap();
	seedRandomNumber();
	setUPtile(getTile);
	initPieces();
	placePieces();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x55b0
callq 0x5730
leaq 0x2eb(%rip), %rdi       # 0x5880
callq 0x5770
callq 0x58e0
callq 0x59d0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: setUpMap
static void setUpMap(void) {
	int i,j;
	fruit(i = 0; i < HEIGHT;i+= 2) {
		fruit(j = 0; j < WIDTH; j+= 10) {
			setUpPiece(i,j);
			setUpPiece(i,j+1);
			setUpPiece(i,j+2);
			setUpPiece(i,j+3);
			setUpPiece(i,j+4);
			setUpPiece(i,j+5);
			setUpPiece(i,j+6);
			setUpPiece(i,j+7);
			setUpPiece(i,j+8);
			setUpPiece(i,j+9);
			setUpPiece(i+1,j);
			setUpPiece(i+1,j+1);
			setUpPiece(i+1,j+2);
			setUpPiece(i+1,j+3);
			setUpPiece(i+1,j+4);
			setUpPiece(i+1,j+5);
			setUpPiece(i+1,j+6);
			setUpPiece(i+1,j+7);
			setUpPiece(i+1,j+8);
			setUpPiece(i+1,j+9);
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, -0x4(%rbp)
cmpl $0x14, -0x4(%rbp)
jge 0x5728
movl $0x0, -0x8(%rbp)
cmpl $0x32, -0x8(%rbp)
jge 0x5718
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x1, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x2, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x3, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x4, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x5, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x6, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x7, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x8, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
movl -0x8(%rbp), %esi
addl $0x9, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x1, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x2, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x3, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x4, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x5, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x6, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x7, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x8, %esi
callq 0x5e60
movl -0x4(%rbp), %edi
addl $0x1, %edi
movl -0x8(%rbp), %esi
addl $0x9, %esi
callq 0x5e60
movl -0x8(%rbp), %eax
addl $0xa, %eax
movl %eax, -0x8(%rbp)
jmp 0x55d0
jmp 0x571a
movl -0x4(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x4(%rbp)
jmp 0x55bf
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: setUPtile
static void setUPtile(char (*tileGet)(void)) {
	int i,j;
	int right = WIDTH - 1;
	int upper = HEIGHT - 1;
	fruit(i = 0; i<upper; i+=2) {
		fruit(j = 0; j <right; j+=2) {
			const char sets = tileGet();
			map[i][j] -> tile_set = sets;
			map[i][j+1] -> tile_set = sets;
			map[i+1][j] -> tile_set = sets;
			map[i+1][j+1] -> tile_set = sets;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x31, -0x14(%rbp)
movl $0x13, -0x18(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x5874
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
cmpl -0x14(%rbp), %eax
jge 0x5864
callq *-0x8(%rbp)
movb %al, -0x19(%rbp)
movb -0x19(%rbp), %cl
movslq -0xc(%rbp), %rdx
leaq 0xb9ac(%rip), %rax      # 0x11170
imulq $0x190, %rdx, %rdx      # imm = 0x190
addq %rdx, %rax
movslq -0x10(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movb %cl, 0x20(%rax)
movb -0x19(%rbp), %cl
movslq -0xc(%rbp), %rdx
leaq 0xb989(%rip), %rax      # 0x11170
imulq $0x190, %rdx, %rdx      # imm = 0x190
addq %rdx, %rax
movl -0x10(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movq (%rax,%rdx,8), %rax
movb %cl, 0x20(%rax)
movb -0x19(%rbp), %cl
movl -0xc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdx
leaq 0xb95c(%rip), %rax      # 0x11170
imulq $0x190, %rdx, %rdx      # imm = 0x190
addq %rdx, %rax
movslq -0x10(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movb %cl, 0x20(%rax)
movb -0x19(%rbp), %cl
movl -0xc(%rbp), %eax
addl $0x1, %eax
movslq %eax, %rdx
leaq 0xb934(%rip), %rax      # 0x11170
imulq $0x190, %rdx, %rdx      # imm = 0x190
addq %rdx, %rax
movl -0x10(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movq (%rax,%rdx,8), %rax
movb %cl, 0x20(%rax)
movl -0x10(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x10(%rbp)
jmp 0x57a4
jmp 0x5866
movl -0xc(%rbp), %eax
addl $0x2, %eax
movl %eax, -0xc(%rbp)
jmp 0x5791
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: getTile
static char getTile(void) {
	switch(getRand(6)) {
		case 0://
		case 1://
		case 2: return '^';
			break;
		case 3://
		case 4://
		case 5: return '/';
			break;
		case 6: return ' ';
			break;
		default : return ' ';
			break;
		}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x6, %edi
callq 0x5e20
movl %eax, %ecx
movl %ecx, -0x8(%rbp)
subl $0x3, %eax
jb 0x58b5
jmp 0x589e
movl -0x8(%rbp), %eax
addl $-0x3, %eax
subl $0x3, %eax
jb 0x58bb
jmp 0x58ab
movl -0x8(%rbp), %eax
subl $0x6, %eax
je 0x58c1
jmp 0x58c7
movb $0x5e, -0x1(%rbp)
jmp 0x58cb
movb $0x2f, -0x1(%rbp)
jmp 0x58cb
movb $0x20, -0x1(%rbp)
jmp 0x58cb
movb $0x20, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: initPieces
static void initPieces(void) {
	makeList(ENEMY_LIMIT,enemy_x,enemy_y); //make enemy list
	makeList(CAMP_LIMIT,camp_x,camp_y);  //make camp list
	checkLocation(ENEMY_LIMIT,enemy_x,enemy_y,ENEMY_LIMIT,enemy_x,enemy_y); //check if enemy is on another
	checkLocation(CAMP_LIMIT,camp_x,camp_y,CAMP_LIMIT,camp_x,camp_y);  //checks if camp is located at or near another
	makeList(SHRINE_LIMIT, shrine_x,shrine_y); //make shrine list
	makeList(WELL_LIMIT,well_x,well_y);  //make well list
	checkLocation(SHRINE_LIMIT,shrine_x,shrine_y,SHRINE_LIMIT,shrine_x,shrine_y); //checks if shrine is at or near another shrine
	checkLocation(WELL_LIMIT,well_x,well_y,WELL_LIMIT,well_x,well_y); //checks if well is located at or near another one
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl $0x3c, %edi
leaq 0xd7c0(%rip), %rsi      # 0x130b0
leaq 0xd8a9(%rip), %rdx      # 0x131a0
callq 0x5f50
movl $0x19, %edi
leaq 0xd988(%rip), %rsi      # 0x13290
leaq 0xd9f1(%rip), %rdx      # 0x13300
callq 0x5f50
movl $0x3c, %ecx
leaq 0xd790(%rip), %r8       # 0x130b0
leaq 0xd879(%rip), %r9       # 0x131a0
movl %ecx, %edi
movq %r8, %rsi
movq %r9, %rdx
callq 0x5fc0
movl $0x19, %ecx
leaq 0xd950(%rip), %r8       # 0x13290
leaq 0xd9b9(%rip), %r9       # 0x13300
movl %ecx, %edi
movq %r8, %rsi
movq %r9, %rdx
callq 0x5fc0
movl $0x3, %edi
leaq 0xda04(%rip), %rsi      # 0x13364
leaq 0xda09(%rip), %rdx      # 0x13370
callq 0x5f50
movl $0x5, %edi
leaq 0xda08(%rip), %rsi      # 0x13380
leaq 0xda21(%rip), %rdx      # 0x133a0
callq 0x5f50
movl $0x3, %ecx
leaq 0xd9d4(%rip), %r8       # 0x13364
leaq 0xd9d9(%rip), %r9       # 0x13370
movl %ecx, %edi
movq %r8, %rsi
movq %r9, %rdx
callq 0x5fc0
movl $0x5, %ecx
leaq 0xd9d0(%rip), %r8       # 0x13380
leaq 0xd9e9(%rip), %r9       # 0x133a0
movl %ecx, %edi
movq %r8, %rsi
movq %r9, %rdx
callq 0x5fc0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: placePieces
static void placePieces(void) {
	placeEnemies();
	placeCamp();
	placeShrine();
	placeWell();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x6160
callq 0x62e0
callq 0x6500
callq 0x65b0
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: initMap2
void initMap2(void) {
	freeMap();
	free(previous);
	setUpMap();
	setUPtile(getTile2);
	initPieces();
	placePieces();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
callq 0x5a30
leaq 0xb750(%rip), %rax      # 0x11150
movq (%rax), %rdi
callq 0x1030
callq 0x55b0
leaq 0x3ac(%rip), %rdi       # 0x5dc0
callq 0x5770
callq 0x58e0
callq 0x59d0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: getTile2
static char getTile2(void) {
	switch(getRand(6)) {
		case 0://
		case 1://
		case 2: return ':';
			break;
		case 3://
		case 4://
		case 5: return '~';
			break;
		case 6: return ' ';
			break;
		default : return ' ';
			break;
		}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x6, %edi
callq 0x5e20
movl %eax, %ecx
movl %ecx, -0x8(%rbp)
subl $0x3, %eax
jb 0x5df5
jmp 0x5dde
movl -0x8(%rbp), %eax
addl $-0x3, %eax
subl $0x3, %eax
jb 0x5dfb
jmp 0x5deb
movl -0x8(%rbp), %eax
subl $0x6, %eax
je 0x5e01
jmp 0x5e07
movb $0x3a, -0x1(%rbp)
jmp 0x5e0b
movb $0x7e, -0x1(%rbp)
jmp 0x5e0b
movb $0x20, -0x1(%rbp)
jmp 0x5e0b
movb $0x20, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/makemap.c
// Function: setUpPiece
static void setUpPiece(const int i, const int j) {
	map[i][j] = malloc(TILE_SIZE);
	map[i][j]->x = i;
	map[i][j]->y = j;
	map[i][j]->type = 0;
	map[i][j]->visited = 0;
	map[i][j]->discovered = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl $0x38, %edi
callq 0x1160
movq %rax, %rdx
movslq -0x4(%rbp), %rcx
leaq 0xb2ea(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x4(%rbp), %ecx
movslq -0x4(%rbp), %rdx
leaq 0xb2ca(%rip), %rax      # 0x11170
imulq $0x190, %rdx, %rdx      # imm = 0x190
addq %rdx, %rax
movslq -0x8(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movl %ecx, (%rax)
movl -0x8(%rbp), %ecx
movslq -0x4(%rbp), %rdx
leaq 0xb2a8(%rip), %rax      # 0x11170
imulq $0x190, %rdx, %rdx      # imm = 0x190
addq %rdx, %rax
movslq -0x8(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movl %ecx, 0x4(%rax)
movslq -0x4(%rbp), %rcx
leaq 0xb288(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl $0x0, 0xc(%rax)
movslq -0x4(%rbp), %rcx
leaq 0xb264(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl $0x0, 0x10(%rax)
movslq -0x4(%rbp), %rcx
leaq 0xb240(%rip), %rax      # 0x11170
imulq $0x190, %rcx, %rcx      # imm = 0x190
addq %rcx, %rax
movslq -0x8(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl $0x0, 0x1c(%rax)
addq $0x10, %rsp
popq %rbp
retq
nop