// File: /workspace/github_c_makefile_star2_O0/return5[P]c_ish_one/./src/main.c
// Function: getFood
static void getFood(void) {
	wclear(prompt_win);
	wprintw(prompt_win,"you find some food\nwould you like to eat it to restore some health? (y/n)");
	wrefresh(prompt_win);
	if (getch() == 'y') {
		previous->obj->food = 0;
		PLAYER->health += 10;
		if(PLAYER->health > PLAYER->health_max) {
			PLAYER->health = PLAYER->health_max;
		}
	}
	else {
		wprintw(prompt_win,"\nwould you like to carry the food with you? (y/n)");
		wrefresh(prompt_win);
		if (getch() == 'y') {
			if(PLAYER->food < 5) {
				wprintw(prompt_win,"\nyou take the food with you to consume later");
				wrefresh(prompt_win);
				getch();
				PLAYER->food +=1;
				previous->obj->food = 0;
			}
			else {
				wprintw(prompt_win,"\nyou dont have enough space to take it with you");
				wrefresh(prompt_win);
				getch();
			}
		}
		else {
			wprintw(prompt_win,"\nyou decide to not take it with you");
			wrefresh(prompt_win);
			getch();
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xcc8d(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x1090
leaq 0xcc7e(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6e90(%rip), %rsi      # 0xb344
movb $0x0, %al
callq 0x11a0
leaq 0xcc66(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xcaff(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
cmpl $0x79, %eax
jne 0x453f
movq 0xcc6b(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
movl $0x0, 0x4(%rax)
movq 0xcc51(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl (%rax), %ecx
addl $0xa, %ecx
movl %ecx, (%rax)
movq 0xcc3f(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl (%rax), %eax
movq 0xcc32(%rip), %rcx      # 0x11148
movq 0x28(%rcx), %rcx
cmpl 0xc(%rcx), %eax
jle 0x453a
movq 0xcc22(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0xc(%rax), %ecx
movq 0xcc14(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl %ecx, (%rax)
jmp 0x465d
leaq 0xcbe2(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6e3e(%rip), %rsi      # 0xb38e
movb $0x0, %al
callq 0x11a0
leaq 0xcbca(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xca63(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
cmpl $0x79, %eax
jne 0x4625
movq 0xcbc3(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
cmpl $0x5, 0x2c(%rax)
jge 0x45ed
leaq 0xcb92(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6e20(%rip), %rsi      # 0xb3c0
movb $0x0, %al
callq 0x11a0
leaq 0xcb7a(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xca13(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
movq 0xcb7c(%rip), %rax      # 0x11148
movq 0x28(%rax), %rax
movl 0x2c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x2c(%rax)
movq 0xcb70(%rip), %rax      # 0x11150
movq 0x30(%rax), %rax
movl $0x0, 0x4(%rax)
jmp 0x4623
leaq 0xcb34(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6def(%rip), %rsi      # 0xb3ed
movb $0x0, %al
callq 0x11a0
leaq 0xcb1c(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xc9b5(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
jmp 0x465b
leaq 0xcafc(%rip), %rax      # 0x11128
movq (%rax), %rdi
leaq 0x6de7(%rip), %rsi      # 0xb41d
movb $0x0, %al
callq 0x11a0
leaq 0xcae4(%rip), %rax      # 0x11128
movq (%rax), %rdi
callq 0x10c0
movq 0xc97d(%rip), %rax      # 0x10fd0
movq (%rax), %rdi
callq 0x1080
jmp 0x465d
popq %rbp
retq
nop