// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/engine.c
// Function: convertv6sectv7
static void convertv6sectv7(struct sectortypev6 *from, sectortype *to)
{
	to->ceilingz = from->ceilingz;
	to->floorz = from->floorz;
	to->wallptr = from->wallptr;
	to->wallnum = from->wallnum;
	to->ceilingpicnum = from->ceilingpicnum;
	to->ceilingheinum = max(min(((int)from->ceilingheinum)<<5,32767),-32768);
	if ((from->ceilingstat&2) == 0) to->ceilingheinum = 0;
	to->ceilingshade = from->ceilingshade;
	to->ceilingpal = from->ceilingpal;
	to->ceilingxpanning = from->ceilingxpanning;
	to->ceilingypanning = from->ceilingypanning;
	to->floorpicnum = from->floorpicnum;
	to->floorheinum = max(min(((int)from->floorheinum)<<5,32767),-32768);
	if ((from->floorstat&2) == 0) to->floorheinum = 0;
	to->floorshade = from->floorshade;
	to->floorpal = from->floorpal;
	to->floorxpanning = from->floorxpanning;
	to->floorypanning = from->floorypanning;
	to->ceilingstat = from->ceilingstat;
	to->floorstat = from->floorstat;
	to->visibility = from->visibility;
	to->filler = 0;
	to->lotag = from->lotag;
	to->hitag = from->hitag;
	to->extra = from->extra;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
movl 0x10(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x8(%rbp), %rax
movw (%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, (%rax)
movq -0x8(%rbp), %rax
movw 0x2(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x2(%rax)
movq -0x8(%rbp), %rax
movw 0x4(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x10(%rax)
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
shll $0x5, %eax
cmpl $0x7fff, %eax           # imm = 0x7FFF
jge 0x47148
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
shll $0x5, %eax
movl %eax, -0x14(%rbp)
jmp 0x47152
movl $0x7fff, %eax           # imm = 0x7FFF
movl %eax, -0x14(%rbp)
jmp 0x47152
movl -0x14(%rbp), %eax
cmpl $0xffff8000, %eax       # imm = 0xFFFF8000
jle 0x47190
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
shll $0x5, %eax
cmpl $0x7fff, %eax           # imm = 0x7FFF
jge 0x4717e
movq -0x8(%rbp), %rax
movswl 0x8(%rax), %eax
shll $0x5, %eax
movl %eax, -0x18(%rbp)
jmp 0x47188
movl $0x7fff, %eax           # imm = 0x7FFF
movl %eax, -0x18(%rbp)
jmp 0x47188
movl -0x18(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0x4719a
movl $0xffff8000, %eax       # imm = 0xFFFF8000
movl %eax, -0x1c(%rbp)
jmp 0x4719a
movl -0x1c(%rbp), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x12(%rax)
movq -0x8(%rbp), %rax
movzbl 0x1a(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x471c2
movq -0x10(%rbp), %rax
movw $0x0, 0x12(%rax)
movq -0x8(%rbp), %rax
movb 0x14(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x14(%rax)
movq -0x8(%rbp), %rax
movb 0x1c(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x15(%rax)
movq -0x8(%rbp), %rax
movb 0x16(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x16(%rax)
movq -0x8(%rbp), %rax
movb 0x18(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x17(%rax)
movq -0x8(%rbp), %rax
movw 0x6(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x18(%rax)
movq -0x8(%rbp), %rax
movswl 0xa(%rax), %eax
shll $0x5, %eax
cmpl $0x7fff, %eax           # imm = 0x7FFF
jge 0x4722c
movq -0x8(%rbp), %rax
movswl 0xa(%rax), %eax
shll $0x5, %eax
movl %eax, -0x20(%rbp)
jmp 0x47236
movl $0x7fff, %eax           # imm = 0x7FFF
movl %eax, -0x20(%rbp)
jmp 0x47236
movl -0x20(%rbp), %eax
cmpl $0xffff8000, %eax       # imm = 0xFFFF8000
jle 0x47274
movq -0x8(%rbp), %rax
movswl 0xa(%rax), %eax
shll $0x5, %eax
cmpl $0x7fff, %eax           # imm = 0x7FFF
jge 0x47262
movq -0x8(%rbp), %rax
movswl 0xa(%rax), %eax
shll $0x5, %eax
movl %eax, -0x24(%rbp)
jmp 0x4726c
movl $0x7fff, %eax           # imm = 0x7FFF
movl %eax, -0x24(%rbp)
jmp 0x4726c
movl -0x24(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x4727e
movl $0xffff8000, %eax       # imm = 0xFFFF8000
movl %eax, -0x28(%rbp)
jmp 0x4727e
movl -0x28(%rbp), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0x1a(%rax)
movq -0x8(%rbp), %rax
movzbl 0x1b(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x472a6
movq -0x10(%rbp), %rax
movw $0x0, 0x1a(%rax)
movq -0x8(%rbp), %rax
movb 0x15(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1c(%rax)
movq -0x8(%rbp), %rax
movb 0x1d(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1d(%rax)
movq -0x8(%rbp), %rax
movb 0x17(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1e(%rax)
movq -0x8(%rbp), %rax
movb 0x19(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x1f(%rax)
movq -0x8(%rbp), %rax
movzbl 0x1a(%rax), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xc(%rax)
movq -0x8(%rbp), %rax
movzbl 0x1b(%rax), %eax
movw %ax, %cx
movq -0x10(%rbp), %rax
movw %cx, 0xe(%rax)
movq -0x8(%rbp), %rax
movb 0x1e(%rax), %cl
movq -0x10(%rbp), %rax
movb %cl, 0x20(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x21(%rax)
movq -0x8(%rbp), %rax
movw 0x20(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x22(%rax)
movq -0x8(%rbp), %rax
movw 0x22(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x24(%rax)
movq -0x8(%rbp), %rax
movw 0x24(%rax), %cx
movq -0x10(%rbp), %rax
movw %cx, 0x26(%rax)
popq %rbp
retq
nopl (%rax)