// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: transmaskvline
static void transmaskvline(int x)
{
	int vplc, vinc, i;
	intptr_t p, palookupoffs, bufplc;
	short y1v, y2v;

	if ((x < 0) || (x >= xdimen)) return;

	y1v = max(uwall[x],startumost[x+windowx1]-windowy1);
	y2v = min(dwall[x],startdmost[x+windowx1]-windowy1);
	y2v--;
	if (y2v < y1v) return;

	palookupoffs = (intptr_t)palookup[globalpal] + (getpalookup((int)mulscale16(swall[x],globvis),globalshade)<<8);

	vinc = swall[x]*globalyscale;
	vplc = globalzd + vinc*(y1v-globalhoriz+1);

	i = lwall[x]+globalxpanning;
	if (i >= tilesizx[globalpicnum]) i %= tilesizx[globalpicnum];
	bufplc = waloff[globalpicnum]+i*tilesizy[globalpicnum];

	p = ylookup[y1v]+x+frameoffset;

	tvlineasm1(vinc,(void *)palookupoffs,y2v-y1v,vplc,(void *)bufplc,(void *)p);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
jl 0x60a8c
movl -0x4(%rbp), %eax
cmpl 0x80296(%rip), %eax     # 0xe0d20
jl 0x60a91
jmp 0x60ccc
movslq -0x4(%rbp), %rcx
leaq 0x539644(%rip), %rax    # 0x59a0e0
movswl (%rax,%rcx,2), %eax
movl -0x4(%rbp), %ecx
addl 0x3ad6a7(%rip), %ecx    # 0x40e150
movslq %ecx, %rdx
leaq 0x3ac01d(%rip), %rcx    # 0x40cad0
movswl (%rcx,%rdx,2), %ecx
subl 0x3aed23(%rip), %ecx    # 0x40f7e0
cmpl %ecx, %eax
jle 0x60ad5
movslq -0x4(%rbp), %rcx
leaq 0x539614(%rip), %rax    # 0x59a0e0
movswl (%rax,%rcx,2), %eax
movl %eax, -0x30(%rbp)
jmp 0x60af5
movl -0x4(%rbp), %eax
addl 0x3ad672(%rip), %eax    # 0x40e150
movslq %eax, %rcx
leaq 0x3abfe8(%rip), %rax    # 0x40cad0
movswl (%rax,%rcx,2), %eax
subl 0x3aecee(%rip), %eax    # 0x40f7e0
movl %eax, -0x30(%rbp)
movl -0x30(%rbp), %eax
movw %ax, -0x2a(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x47c549(%rip), %rax    # 0x4dd050
movswl (%rax,%rcx,2), %eax
movl -0x4(%rbp), %ecx
addl 0x3ad63c(%rip), %ecx    # 0x40e150
movslq %ecx, %rdx
leaq 0x3ad642(%rip), %rcx    # 0x40e160
movswl (%rcx,%rdx,2), %ecx
subl 0x3aecb8(%rip), %ecx    # 0x40f7e0
cmpl %ecx, %eax
jge 0x60b40
movslq -0x4(%rbp), %rcx
leaq 0x47c519(%rip), %rax    # 0x4dd050
movswl (%rax,%rcx,2), %eax
movl %eax, -0x34(%rbp)
jmp 0x60b60
movl -0x4(%rbp), %eax
addl 0x3ad607(%rip), %eax    # 0x40e150
movslq %eax, %rcx
leaq 0x3ad60d(%rip), %rax    # 0x40e160
movswl (%rax,%rcx,2), %eax
subl 0x3aec83(%rip), %eax    # 0x40f7e0
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movw %ax, -0x2c(%rbp)
movw -0x2c(%rbp), %ax
addw $-0x1, %ax
movw %ax, -0x2c(%rbp)
movswl -0x2c(%rbp), %eax
movswl -0x2a(%rbp), %ecx
cmpl %ecx, %eax
jge 0x60b84
jmp 0x60ccc
movslq 0x3ea1d9(%rip), %rcx    # 0x44ad64
leaq 0x374aae(%rip), %rax    # 0x3d5640
movq (%rax,%rcx,8), %rax
movq %rax, -0x40(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x47db2b(%rip), %rax    # 0x4de6d0
movl (%rax,%rcx,4), %edi
movl 0x3ee9e2(%rip), %esi    # 0x44f590
callq 0x39010
movl %eax, %edi
movl 0x3ee9d1(%rip), %esi    # 0x44f58c
callq 0x5ec70
movl %eax, %ecx
movq -0x40(%rbp), %rax
shll $0x8, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x47daf2(%rip), %rax    # 0x4de6d0
movl (%rax,%rcx,4), %eax
imull 0x427d68(%rip), %eax    # 0x488950
movl %eax, -0xc(%rbp)
movl 0x427d5b(%rip), %eax    # 0x48894c
movl -0xc(%rbp), %ecx
movswl -0x2a(%rbp), %edx
subl 0x2579fe(%rip), %edx    # 0x2b85fc
addl $0x1, %edx
imull %edx, %ecx
addl %ecx, %eax
movl %eax, -0x8(%rbp)
movslq -0x4(%rbp), %rcx
leaq 0x4807bc(%rip), %rax    # 0x4e13d0
movl (%rax,%rcx,4), %eax
addl 0x427d23(%rip), %eax    # 0x488940
movl %eax, -0x10(%rbp)
movl -0x10(%rbp), %eax
movswq 0x3ea145(%rip), %rdx    # 0x44ad70
leaq 0x3ea14e(%rip), %rcx    # 0x44ad80
movswl (%rcx,%rdx,2), %ecx
cmpl %ecx, %eax
jl 0x60c56
movswq 0x3ea12e(%rip), %rcx    # 0x44ad70
leaq 0x3ea137(%rip), %rax    # 0x44ad80
movswl (%rax,%rcx,2), %ecx
movl -0x10(%rbp), %eax
cltd
idivl %ecx
movl %edx, -0x10(%rbp)
movswq 0x3ea112(%rip), %rcx    # 0x44ad70
leaq 0x3751db(%rip), %rax    # 0x3d5e40
movq (%rax,%rcx,8), %rax
movl -0x10(%rbp), %ecx
movswq 0x3ea0fc(%rip), %rsi    # 0x44ad70
leaq 0x3db8c5(%rip), %rdx    # 0x43c540
movswl (%rdx,%rsi,2), %edx
imull %edx, %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, -0x28(%rbp)
movswq -0x2a(%rbp), %rcx
leaq 0x3f0de8(%rip), %rax    # 0x451a80
movl (%rax,%rcx,4), %eax
addl -0x4(%rbp), %eax
cltq
addq 0x3b1849(%rip), %rax    # 0x4124f0
movq %rax, -0x18(%rbp)
movl -0xc(%rbp), %edi
movq -0x20(%rbp), %rsi
movswl -0x2c(%rbp), %edx
movswl -0x2a(%rbp), %eax
subl %eax, %edx
movl -0x8(%rbp), %ecx
movq -0x28(%rbp), %r8
movq -0x18(%rbp), %r9
callq 0xa7a20
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)