// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/build.c
// Function: keytimerstuff
void keytimerstuff(void)
{
	static int ltotalclock=0;
	if (totalclock == ltotalclock) return;
	ltotalclock=totalclock;

	if (keystatus[buildkeys[5]] == 0)
	{
		if (keystatus[buildkeys[2]] > 0) angvel = max(angvel-16,-128);
		if (keystatus[buildkeys[3]] > 0) angvel = min(angvel+16,127);
	}
	else
	{
		if (keystatus[buildkeys[2]] > 0) svel = min(svel+8,127);
		if (keystatus[buildkeys[3]] > 0) svel = max(svel-8,-128);
	}
	if (keystatus[buildkeys[0]] > 0) vel = min(vel+8,127);
	if (keystatus[buildkeys[1]] > 0) vel = max(vel-8,-128);
	if (keystatus[buildkeys[12]] > 0) svel = min(svel+8,127);
	if (keystatus[buildkeys[13]] > 0) svel = max(svel-8,-128);

	if (angvel < 0) angvel = min(angvel+12,0);
	if (angvel > 0) angvel = max(angvel-12,0);
	if (svel < 0) svel = min(svel+2,0);
	if (svel > 0) svel = max(svel-2,0);
	if (vel < 0) vel = min(vel+2,0);
	if (vel > 0) vel = max(vel-2,0);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x3dbf4d(%rip), %rax    # 0x3e9048
movl (%rax), %eax
cmpl 0x1aa65d(%rip), %eax    # 0x1b7760
jne 0xd10a
jmp 0xd4a9
leaq 0x3dbf37(%rip), %rax    # 0x3e9048
movl (%rax), %eax
movl %eax, 0x1aa647(%rip)    # 0x1b7760
movslq 0xd2e14(%rip), %rcx     # 0xdff34
leaq 0x1adcc9(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0xd1c5
movslq 0xd2ded(%rip), %rcx     # 0xdff28
leaq 0x1adcae(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd17a
movl 0x15d37f(%rip), %eax    # 0x16a4d0
subl $0x10, %eax
cmpl $-0x80, %eax
jle 0xd167
movl 0x15d371(%rip), %eax    # 0x16a4d0
subl $0x10, %eax
movl %eax, -0x4(%rbp)
jmp 0xd171
movl $0xffffff80, %eax       # imm = 0xFFFFFF80
movl %eax, -0x4(%rbp)
jmp 0xd171
movl -0x4(%rbp), %eax
movl %eax, 0x15d356(%rip)    # 0x16a4d0
movslq 0xd2dab(%rip), %rcx     # 0xdff2c
leaq 0x1adc68(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd1c0
movl 0x15d339(%rip), %eax    # 0x16a4d0
addl $0x10, %eax
cmpl $0x7f, %eax
jge 0xd1ad
movl 0x15d32b(%rip), %eax    # 0x16a4d0
addl $0x10, %eax
movl %eax, -0x8(%rbp)
jmp 0xd1b7
movl $0x7f, %eax
movl %eax, -0x8(%rbp)
jmp 0xd1b7
movl -0x8(%rbp), %eax
movl %eax, 0x15d310(%rip)    # 0x16a4d0
jmp 0xd253
movslq 0xd2d5c(%rip), %rcx     # 0xdff28
leaq 0x1adc1d(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd20b
movl 0x15d2f6(%rip), %eax    # 0x16a4d8
addl $0x8, %eax
cmpl $0x7f, %eax
jge 0xd1f8
movl 0x15d2e8(%rip), %eax    # 0x16a4d8
addl $0x8, %eax
movl %eax, -0xc(%rbp)
jmp 0xd202
movl $0x7f, %eax
movl %eax, -0xc(%rbp)
jmp 0xd202
movl -0xc(%rbp), %eax
movl %eax, 0x15d2cd(%rip)    # 0x16a4d8
movslq 0xd2d1a(%rip), %rcx     # 0xdff2c
leaq 0x1adbd7(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd251
movl 0x15d2b0(%rip), %eax    # 0x16a4d8
subl $0x8, %eax
cmpl $-0x80, %eax
jle 0xd23e
movl 0x15d2a2(%rip), %eax    # 0x16a4d8
subl $0x8, %eax
movl %eax, -0x10(%rbp)
jmp 0xd248
movl $0xffffff80, %eax       # imm = 0xFFFFFF80
movl %eax, -0x10(%rbp)
jmp 0xd248
movl -0x10(%rbp), %eax
movl %eax, 0x15d287(%rip)    # 0x16a4d8
jmp 0xd253
movslq 0xd2cc6(%rip), %rcx     # 0xdff20
leaq 0x1adb8f(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd299
movl 0x15d264(%rip), %eax    # 0x16a4d4
addl $0x8, %eax
cmpl $0x7f, %eax
jge 0xd286
movl 0x15d256(%rip), %eax    # 0x16a4d4
addl $0x8, %eax
movl %eax, -0x14(%rbp)
jmp 0xd290
movl $0x7f, %eax
movl %eax, -0x14(%rbp)
jmp 0xd290
movl -0x14(%rbp), %eax
movl %eax, 0x15d23b(%rip)    # 0x16a4d4
movslq 0xd2c84(%rip), %rcx     # 0xdff24
leaq 0x1adb49(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd2df
movl 0x15d21e(%rip), %eax    # 0x16a4d4
subl $0x8, %eax
cmpl $-0x80, %eax
jle 0xd2cc
movl 0x15d210(%rip), %eax    # 0x16a4d4
subl $0x8, %eax
movl %eax, -0x18(%rbp)
jmp 0xd2d6
movl $0xffffff80, %eax       # imm = 0xFFFFFF80
movl %eax, -0x18(%rbp)
jmp 0xd2d6
movl -0x18(%rbp), %eax
movl %eax, 0x15d1f5(%rip)    # 0x16a4d4
movslq 0xd2c6a(%rip), %rcx     # 0xdff50
leaq 0x1adb03(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd325
movl 0x15d1dc(%rip), %eax    # 0x16a4d8
addl $0x8, %eax
cmpl $0x7f, %eax
jge 0xd312
movl 0x15d1ce(%rip), %eax    # 0x16a4d8
addl $0x8, %eax
movl %eax, -0x1c(%rbp)
jmp 0xd31c
movl $0x7f, %eax
movl %eax, -0x1c(%rbp)
jmp 0xd31c
movl -0x1c(%rbp), %eax
movl %eax, 0x15d1b3(%rip)    # 0x16a4d8
movslq 0xd2c28(%rip), %rcx     # 0xdff54
leaq 0x1adabd(%rip), %rax    # 0x1badf0
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jle 0xd36b
movl 0x15d196(%rip), %eax    # 0x16a4d8
subl $0x8, %eax
cmpl $-0x80, %eax
jle 0xd358
movl 0x15d188(%rip), %eax    # 0x16a4d8
subl $0x8, %eax
movl %eax, -0x20(%rbp)
jmp 0xd362
movl $0xffffff80, %eax       # imm = 0xFFFFFF80
movl %eax, -0x20(%rbp)
jmp 0xd362
movl -0x20(%rbp), %eax
movl %eax, 0x15d16d(%rip)    # 0x16a4d8
cmpl $0x0, 0x15d15e(%rip)    # 0x16a4d0
jge 0xd3a0
movl 0x15d156(%rip), %eax    # 0x16a4d0
addl $0xc, %eax
cmpl $0x0, %eax
jge 0xd390
movl 0x15d148(%rip), %eax    # 0x16a4d0
addl $0xc, %eax
movl %eax, -0x24(%rbp)
jmp 0xd397
xorl %eax, %eax
movl %eax, -0x24(%rbp)
jmp 0xd397
movl -0x24(%rbp), %eax
movl %eax, 0x15d130(%rip)    # 0x16a4d0
cmpl $0x0, 0x15d129(%rip)    # 0x16a4d0
jle 0xd3d5
movl 0x15d121(%rip), %eax    # 0x16a4d0
subl $0xc, %eax
cmpl $0x0, %eax
jle 0xd3c5
movl 0x15d113(%rip), %eax    # 0x16a4d0
subl $0xc, %eax
movl %eax, -0x28(%rbp)
jmp 0xd3cc
xorl %eax, %eax
movl %eax, -0x28(%rbp)
jmp 0xd3cc
movl -0x28(%rbp), %eax
movl %eax, 0x15d0fb(%rip)    # 0x16a4d0
cmpl $0x0, 0x15d0fc(%rip)    # 0x16a4d8
jge 0xd40a
movl 0x15d0f4(%rip), %eax    # 0x16a4d8
addl $0x2, %eax
cmpl $0x0, %eax
jge 0xd3fa
movl 0x15d0e6(%rip), %eax    # 0x16a4d8
addl $0x2, %eax
movl %eax, -0x2c(%rbp)
jmp 0xd401
xorl %eax, %eax
movl %eax, -0x2c(%rbp)
jmp 0xd401
movl -0x2c(%rbp), %eax
movl %eax, 0x15d0ce(%rip)    # 0x16a4d8
cmpl $0x0, 0x15d0c7(%rip)    # 0x16a4d8
jle 0xd43f
movl 0x15d0bf(%rip), %eax    # 0x16a4d8
subl $0x2, %eax
cmpl $0x0, %eax
jle 0xd42f
movl 0x15d0b1(%rip), %eax    # 0x16a4d8
subl $0x2, %eax
movl %eax, -0x30(%rbp)
jmp 0xd436
xorl %eax, %eax
movl %eax, -0x30(%rbp)
jmp 0xd436
movl -0x30(%rbp), %eax
movl %eax, 0x15d099(%rip)    # 0x16a4d8
cmpl $0x0, 0x15d08e(%rip)    # 0x16a4d4
jge 0xd474
movl 0x15d086(%rip), %eax    # 0x16a4d4
addl $0x2, %eax
cmpl $0x0, %eax
jge 0xd464
movl 0x15d078(%rip), %eax    # 0x16a4d4
addl $0x2, %eax
movl %eax, -0x34(%rbp)
jmp 0xd46b
xorl %eax, %eax
movl %eax, -0x34(%rbp)
jmp 0xd46b
movl -0x34(%rbp), %eax
movl %eax, 0x15d060(%rip)    # 0x16a4d4
cmpl $0x0, 0x15d059(%rip)    # 0x16a4d4
jle 0xd4a9
movl 0x15d051(%rip), %eax    # 0x16a4d4
subl $0x2, %eax
cmpl $0x0, %eax
jle 0xd499
movl 0x15d043(%rip), %eax    # 0x16a4d4
subl $0x2, %eax
movl %eax, -0x38(%rbp)
jmp 0xd4a0
xorl %eax, %eax
movl %eax, -0x38(%rbp)
jmp 0xd4a0
movl -0x38(%rbp), %eax
movl %eax, 0x15d02b(%rip)    # 0x16a4d4
popq %rbp
retq
nopl (%rax,%rax)