// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/build.c
// Function: getpoint
void getpoint(int searchxe, int searchye, int *x, int *y)
{
	if (posx <= -editorgridextent) posx = -editorgridextent;
	if (posx >= editorgridextent) posx = editorgridextent;
	if (posy <= -editorgridextent) posy = -editorgridextent;
	if (posy >= editorgridextent) posy = editorgridextent;

	*x = posx + divscale14(searchxe-halfxdim16,zoom);
	*y = posy + divscale14(searchye-midydim16,zoom);

	if (*x <= -editorgridextent) *x = -editorgridextent;
	if (*x >= editorgridextent) *x = editorgridextent;
	if (*y <= -editorgridextent) *y = -editorgridextent;
	if (*y >= editorgridextent) *y = editorgridextent;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movq %rdx, -0x10(%rbp)
movq %rcx, -0x18(%rbp)
movl 0x144c84(%rip), %eax    # 0x16a4b0
xorl %ecx, %ecx
leaq 0xbb457(%rip), %rdx     # 0xe0c8c
subl (%rdx), %ecx
cmpl %ecx, %eax
jg 0x2584c
xorl %eax, %eax
leaq 0xbb448(%rip), %rcx     # 0xe0c8c
subl (%rcx), %eax
movl %eax, 0x144c64(%rip)    # 0x16a4b0
movl 0x144c5e(%rip), %eax    # 0x16a4b0
leaq 0xbb433(%rip), %rcx     # 0xe0c8c
cmpl (%rcx), %eax
jl 0x2586c
leaq 0xbb428(%rip), %rax     # 0xe0c8c
movl (%rax), %eax
movl %eax, 0x144c44(%rip)    # 0x16a4b0
movl 0x144c42(%rip), %eax    # 0x16a4b4
xorl %ecx, %ecx
leaq 0xbb411(%rip), %rdx     # 0xe0c8c
subl (%rdx), %ecx
cmpl %ecx, %eax
jg 0x25892
xorl %eax, %eax
leaq 0xbb402(%rip), %rcx     # 0xe0c8c
subl (%rcx), %eax
movl %eax, 0x144c22(%rip)    # 0x16a4b4
movl 0x144c1c(%rip), %eax    # 0x16a4b4
leaq 0xbb3ed(%rip), %rcx     # 0xe0c8c
cmpl (%rcx), %eax
jl 0x258b2
leaq 0xbb3e2(%rip), %rax     # 0xe0c8c
movl (%rax), %eax
movl %eax, 0x144c02(%rip)    # 0x16a4b4
movl 0x144bf8(%rip), %eax    # 0x16a4b0
movl %eax, -0x20(%rbp)
movl -0x4(%rbp), %edi
subl 0x191060(%rip), %edi    # 0x1b6924
movl 0xba6da(%rip), %esi     # 0xdffa4
callq 0x24880
movl -0x20(%rbp), %ecx
addl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl 0x144bd4(%rip), %eax    # 0x16a4b4
movl %eax, -0x1c(%rbp)
movl -0x8(%rbp), %edi
subl 0x19103c(%rip), %edi    # 0x1b6928
movl 0xba6b2(%rip), %esi     # 0xdffa4
callq 0x24880
movl -0x1c(%rbp), %ecx
addl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
xorl %ecx, %ecx
leaq 0xbb37b(%rip), %rdx     # 0xe0c8c
subl (%rdx), %ecx
cmpl %ecx, %eax
jg 0x25928
xorl %ecx, %ecx
leaq 0xbb36c(%rip), %rax     # 0xe0c8c
subl (%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
leaq 0xbb357(%rip), %rcx     # 0xe0c8c
cmpl (%rcx), %eax
jl 0x25948
leaq 0xbb34c(%rip), %rax     # 0xe0c8c
movl (%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
xorl %ecx, %ecx
leaq 0xbb335(%rip), %rdx     # 0xe0c8c
subl (%rdx), %ecx
cmpl %ecx, %eax
jg 0x2596e
xorl %ecx, %ecx
leaq 0xbb326(%rip), %rax     # 0xe0c8c
subl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
movq -0x18(%rbp), %rax
movl (%rax), %eax
leaq 0xbb311(%rip), %rcx     # 0xe0c8c
cmpl (%rcx), %eax
jl 0x2598e
leaq 0xbb306(%rip), %rax     # 0xe0c8c
movl (%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)