// File: /workspace/github_c_makefile_star2_O1/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: transmaskwallscan
static void transmaskwallscan(int x1, int x2)
{
	int x;

	setgotpic(globalpicnum);
	if ((tilesizx[globalpicnum] <= 0) || (tilesizy[globalpicnum] <= 0)) return;

	if (waloff[globalpicnum] == 0) loadtile(globalpicnum);

	setuptvlineasm(globalshiftval);

	x = x1;
	while ((startumost[x+windowx1] > startdmost[x+windowx1]) && (x <= x2)) x++;
#ifndef USING_A_C
	if ((x <= x2) && (x&1)) transmaskvline(x), x++;
	while (x < x2) transmaskvline2(x), x += 2;
#endif
	while (x <= x2) transmaskvline(x), x++;
	faketimerhandler();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
movswq 0x3d0913(%rip), %rdi    # 0x40f010
leaq 0x3ef03c(%rip), %rax    # 0x42d740
cmpb $-0x39, (%rdi,%rax)
ja 0x3e70e
movb $-0x39, (%rdi,%rax)
movl %edi, %eax
andl $0x7, %eax
leaq 0x65086(%rip), %rcx     # 0xa37a0
movb (%rax,%rcx), %al
movl %edi, %ecx
sarl $0x3, %ecx
movslq %ecx, %rcx
leaq 0x3eeb84(%rip), %rdx    # 0x42d2b0
orb %al, (%rcx,%rdx)
movslq %edi, %rax
leaq 0x3d08e7(%rip), %rcx    # 0x40f020
cmpw $0x0, (%rcx,%rax,2)
jle 0x3e93b
leaq 0x3c2095(%rip), %rcx    # 0x4007e0
cmpw $0x0, (%rcx,%rax,2)
jle 0x3e93b
leaq 0x359b83(%rip), %rcx    # 0x3982e0
cmpq $0x0, (%rcx,%rax,8)
jne 0x3e769
callq 0x2f106
movswl 0x414378(%rip), %edi    # 0x452ae8
callq 0x6df1f
movslq 0x3925f4(%rip), %rax    # 0x3d0d70
movslq %ebp, %rcx
movslq %ebx, %rdx
leal -0x2(%rcx), %r13d
addq %rcx, %rax
addq %rax, %rax
leaq 0x3907dd(%rip), %rbp    # 0x3cef70
leaq 0x3925e6(%rip), %r12    # 0x3d0d80
incl %r13d
cmpq %rdx, %rcx
jg 0x3e7b7
movzwl (%rax,%r12), %esi
incq %rcx
leaq 0x2(%rax), %rdi
cmpw %si, (%rax,%rbp)
movq %rdi, %rax
jg 0x3e79a
leal 0x1(%r13), %eax
cmpl %ebx, %eax
jg 0x3e928
movslq %eax, %r15
leaq 0x564d53(%rip), %r14    # 0x5a3520
leaq 0x46973c(%rip), %r9     # 0x4a7f10
incl %r13d
js 0x3e91c
cmpl %r13d, 0x6504c(%rip)    # 0xa3830
jle 0x3e91c
movl %r13d, %edx
movswl (%r14,%rdx,2), %ecx
movslq 0x392577(%rip), %rsi    # 0x3d0d70
addq %r15, %rsi
movswl (%rbp,%rsi,2), %eax
movl 0x394379(%rip), %edi    # 0x3d2b80
subl %edi, %eax
cmpl %ecx, %eax
cmovll %ecx, %eax
movswl (%r9,%rdx,2), %ecx
movswl (%r12,%rsi,2), %r8d
subl %edi, %r8d
cmpl %ecx, %r8d
cmovgl %ecx, %r8d
decl %r8d
cmpw %ax, %r8w
jl 0x3e91c
movswl %ax, %r10d
movslq 0x3d07ca(%rip), %rax    # 0x40f004
leaq 0x46b4cf(%rip), %rcx    # 0x4a9d10
movslq (%rcx,%rdx,4), %rcx
movslq 0x3d4fe4(%rip), %rsi    # 0x413830
imulq %rcx, %rsi
shrq $0x10, %rsi
sarl $0x8, %esi
addl 0x3d4fcf(%rip), %esi    # 0x41382c
testl %esi, %esi
movl $0x0, %edi
cmovlel %edi, %esi
movswl 0x3d4fba(%rip), %edi    # 0x413828
decl %edi
cmpl %edi, %esi
cmovll %esi, %edi
shll $0x8, %edi
movslq %edi, %rsi
leaq 0x35925e(%rip), %rdi    # 0x397ae0
addq (%rdi,%rax,8), %rsi
movl 0x414264(%rip), %edi    # 0x452af0
imull %ecx, %edi
movl %r10d, %ecx
subl 0x23c204(%rip), %ecx    # 0x27aa9c
incl %ecx
imull %edi, %ecx
addl 0x414249(%rip), %ecx    # 0x452aec
movl 0x414237(%rip), %eax    # 0x452ae0
leaq 0x46f060(%rip), %r9     # 0x4ad910
addl (%r9,%rdx,4), %eax
movswq 0x3d0754(%rip), %r9     # 0x40f010
leaq 0x3d075d(%rip), %rdx    # 0x40f020
movswl (%rdx,%r9,2), %r11d
cmpl %r11d, %eax
jl 0x3e8d3
cltd
idivl %r11d
movl %edx, %eax
movswl %r8w, %edx
leaq 0x3c1f02(%rip), %r8     # 0x4007e0
movswq (%r8,%r9,2), %r11
movslq %eax, %r8
imulq %r11, %r8
leaq 0x3599ef(%rip), %rax    # 0x3982e0
addq (%rax,%r9,8), %r8
movslq %r10d, %rax
leaq 0x3d73a1(%rip), %r9     # 0x415ca0
movslq (%r9,%rax,4), %r9
addq 0x397e86(%rip), %r9     # 0x3d6790
addq %r15, %r9
subl %r10d, %edx
callq 0x6df26
leaq 0x4695f4(%rip), %r9     # 0x4a7f10
incq %r15
cmpl %ebx, %r13d
jl 0x3e7d4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xab51
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq