LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/sjis.c
// Function: sjis_to_utf8
int sjis_to_utf8(uint8_t *sjis_data, int sjis_len, uint8_t *utf8_data, int utf8_len) {
	if(sjis_len < 1) return 0;
	if(utf8_len < 1) return -1;

	int j = 0, last_byte = 0;
	for(int i = 0; i < sjis_len; i++) {
		uint8_t b = sjis_data[i];
		if(last_byte == 0 && SJIS_FIRST_CHAR(b)) {
			last_byte = b;
		} else {
			char buf[4];
			int l = utf8_encode(sjis_char_to_unicode((last_byte << 8) | b), buf);
			if(j + l >= utf8_len - 1)
				return j;
			strcpy((char *)utf8_data + j, buf);
			j += l;
			last_byte = 0;
		}
	}
	return j;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, (%rsp)
testl %esi, %esi
jle 0x146b
movl %ecx, %ebx
testl %ecx, %ecx
jle 0x146f
movq %rdi, %r15
decl %ebx
movl %esi, %eax
movq %rax, 0x8(%rsp)
xorl %r14d, %r14d
leaq 0x14(%rsp), %r13
xorl %r12d, %r12d
xorl %ecx, %ecx
movzbl (%r15,%r14), %eax
testl %ecx, %ecx
jne 0x1425
cmpb $-0x7b, %al
setl %dl
leal 0x78(%rax), %esi
cmpb $0x18, %sil
setb %sil
leal 0x20(%rax), %edi
cmpb $0xc, %dil
setb %dil
orb %sil, %dil
movl %eax, %esi
andb $-0x4, %sil
cmpb $-0x10, %sil
sete %sil
orb %dl, %sil
orb %dil, %sil
je 0x1425
movl %r12d, %ebp
jmp 0x1459
shll $0x8, %ecx
orl %eax, %ecx
movzwl %cx, %edi
callq 0x1728
movl %eax, %edi
movq %r13, %rsi
callq 0x272c
movl %eax, %ebp
addl %r12d, %ebp
cmpl %ebx, %ebp
jge 0x1476
movslq %r12d, %rdi
addq (%rsp), %rdi
movq %r13, %rsi
callq 0x1030
xorl %eax, %eax
movl %ebp, %r12d
incq %r14
movl %eax, %ecx
cmpq %r14, 0x8(%rsp)
jne 0x13e3
jmp 0x1479
xorl %ebp, %ebp
jmp 0x1479
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x1479
movl %r12d, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/sjis.c
// Function: sjis_write_utf8
int sjis_write_utf8(FILE *f, uint8_t *sjis_data, int sjis_len) {
	if(sjis_len < 1) return 0;

	int j = 0, last_byte = 0;
	for(int i = 0; i < sjis_len; i++) {
		uint8_t b = sjis_data[i];
		if(last_byte == 0 && SJIS_FIRST_CHAR(b)) {
			last_byte = b;
		} else {
			char buf[4];
			int l = utf8_encode(sjis_char_to_unicode((last_byte << 8) | b), buf);
			if(l) fwrite(buf, l, 1, f);
			j += l;
			last_byte = 0;
		}
	}

	return j;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, 0x8(%rsp)
testl %edx, %edx
jle 0x154c
movq %rsi, %rbx
movl %edx, %r13d
xorl %r14d, %r14d
leaq 0x14(%rsp), %r15
xorl %ebp, %ebp
xorl %ecx, %ecx
movzbl (%rbx,%r14), %eax
testl %ecx, %ecx
jne 0x1508
cmpb $-0x7b, %al
setl %dl
leal 0x78(%rax), %esi
cmpb $0x18, %sil
setb %sil
leal 0x20(%rax), %edi
cmpb $0xc, %dil
setb %dil
orb %sil, %dil
movl %eax, %esi
andb $-0x4, %sil
cmpb $-0x10, %sil
sete %sil
orb %dl, %sil
orb %dil, %sil
jne 0x1540
shll $0x8, %ecx
orl %eax, %ecx
movzwl %cx, %edi
callq 0x1728
movl %eax, %edi
movq %r15, %rsi
callq 0x272c
movl %eax, %r12d
testl %eax, %eax
je 0x153b
movslq %r12d, %rsi
movl $0x1, %edx
movq %r15, %rdi
movq 0x8(%rsp), %rcx
callq 0x10a0
addl %r12d, %ebp
xorl %eax, %eax
incq %r14
movl %eax, %ecx
cmpq %r14, %r13
jne 0x14cb
jmp 0x154e
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/sjis.c
// Function: sjis_fputc
int sjis_fputc(int sjis, FILE *f) {
	uint8_t b = (sjis >> 8) & 0xff;
	if(SJIS_FIRST_CHAR(b))
		fputc(b, f); // TODO: error check
	return fputc(sjis & 0xff, f);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
movzbl %bh, %edi
movl %ebx, %eax
andl $0xfc00, %eax           # imm = 0xFC00
cmpl $0xf000, %eax           # imm = 0xF000
je 0x1597
leal -0x80(%rdi), %eax
cmpl $0x5, %eax
jb 0x1597
leal -0x88(%rdi), %eax
cmpl $0x18, %eax
jb 0x1597
leal -0xe0(%rdi), %eax
cmpl $0xb, %eax
ja 0x159f
movq %r14, %rsi
callq 0x1090
movzbl %bl, %edi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1090
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/sjis.c
// Function: sjis_fgetc
int sjis_fgetc(FILE *f) {
	int b = fgetc(f);
	if(b == EOF) return EOF;
	if(!SJIS_FIRST_CHAR(b))
		return b;

	int b2 = fgetc(f);
	if(b2 == EOF) return EOF;
	return b << 8 | b2;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x1080
cmpl $-0x1, %eax
je 0x15fb
movl %eax, %ebx
andl $-0x4, %eax
cmpl $0xf0, %eax
je 0x15ec
leal -0xe0(%rbx), %eax
cmpl $0xc, %eax
jb 0x15ec
leal -0x80(%rbx), %eax
cmpl $0x5, %eax
jb 0x15ec
leal -0x88(%rbx), %eax
cmpl $0x17, %eax
ja 0x1600
movq %r14, %rdi
callq 0x1080
shll $0x8, %ebx
orl %eax, %ebx
jmp 0x1600
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/sjis.c
// Function: jis_to_sjis
uint16_t jis_to_sjis(uint16_t val) {
	uint8_t j2 = val & 0xff;
	uint8_t j1 = val >> 8;
	uint8_t s1, s2;
	if(33 <= j1 && j1 <= 94)
		s1 = (j1 + 1) / 2 + 112;
	else
		s1 = (j1 + 1) / 2 + 176;
	if(j1 & 1)
		s2 = j2 + 31 + (j2 / 96);
	else
		s2 = j2 + 126;

	return (s1 << 8) | s2;
}

// Assembly:
btl $0x8, %edi
jb 0x1615
leal 0x7e(%rdi), %eax
jmp 0x1627
movzbl %dil, %eax
imull $0xab, %eax, %eax
shrl $0xe, %eax
addl %edi, %eax
addl $0x1f, %eax
movzwl %di, %ecx
shrl $0x8, %ecx
incl %ecx
shrl %ecx
leal -0x2100(%rdi), %edx
movzwl %dx, %edx
xorl %esi, %esi
cmpl $0x3e00, %edx           # imm = 0x3E00
setae %sil
shll $0x6, %esi
addl %ecx, %esi
shll $0x8, %esi
movzbl %al, %eax
addl %esi, %eax
addl $0x7000, %eax           # imm = 0x7000
retq
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/sjis.c
// Function: jis_from_sjis
uint16_t jis_from_sjis(uint16_t val) {
	int status = 0;
	uint8_t j1 = 0;
	uint8_t j2 = 0;
	uint8_t b1 = val >> 8;
	uint8_t b2 = val & 0xff;
	if((b1 >= 0x81 && b1 <= 0x84) || (b1 >= 0x87 && b1 <= 0x9f)) {
		j1 = 2 * (b1 - 0x70) - 1;
		if (b2 >= 0x40 && b2 <= 0x9e) {
			j2 = b2 - 31;
			if (j2 > 95)
				j2 -= 1;
			status = 1;
		} else if (b2 >= 0x9f && b2 <= 0xfc) {
			j2 = b2 - 126;
			j1 += 1;
			status = 1;
		}
	} else if (b1 >= 0xe0 && b1 <= 0xef) {
		j1 = 2 * (b1 - 0xb0) - 1;
		if (b2 >= 0x40 && b2 <= 0x9e) {
			j2 = b2 - 31;
			if (j2 > 95)
				j2 -= 1;
			status = 1;
		} else if (b2 >= 0x9f && b2 <= 0xfc) {
			j2 = b2 - 126;
			j1 += 1;
			status = 1;
		}
	}

	if(status == 0) return 0;
	return (j1 << 8) | j2;
}

// Assembly:
movl %edi, %eax
shrl $0x8, %eax
leal 0x7f00(%rdi), %ecx
movl $0xffff, %edx           # imm = 0xFFFF
andl %edx, %ecx
cmpl $0x400, %ecx            # imm = 0x400
setae %cl
movl %edi, %esi
addl $0x7900, %esi           # imm = 0x7900
andl %edx, %esi
cmpl $0x1900, %esi           # imm = 0x1900
setae %dl
testb %dl, %cl
jne 0x16a5
movzwl %ax, %eax
addl %eax, %eax
movzbl %dil, %ecx
leal -0x40(%rcx), %edx
cmpw $0x5e, %dx
ja 0x16e3
movzwl %ax, %eax
addl $0x1f, %eax
jmp 0x16cf
movl %edi, %ecx
andl $0xf000, %ecx           # imm = 0xF000
cmpl $0xe000, %ecx           # imm = 0xE000
jne 0x1723
movzwl %ax, %eax
addl %eax, %eax
movzbl %dil, %ecx
leal -0x40(%rcx), %edx
cmpw $0x5e, %dx
ja 0x16fd
movzwl %ax, %eax
addl $0x9f, %eax
leal -0x1f(%rdi), %ecx
leal -0x20(%rdi), %edx
cmpb $0x60, %cl
movzbl %dl, %edx
movzbl %cl, %ecx
cmovael %edx, %ecx
jmp 0x1717
movzwl %cx, %ecx
addl $0xffffff61, %ecx       # imm = 0xFFFFFF61
cmpw $0x5d, %cx
ja 0x1723
leal -0x7e(%rdi), %ecx
movzwl %ax, %eax
addl $0x20, %eax
jmp 0x1717
movzwl %cx, %ecx
addl $0xffffff61, %ecx       # imm = 0xFFFFFF61
cmpw $0x5d, %cx
ja 0x1723
leal -0x7e(%rdi), %ecx
movzwl %ax, %eax
addl $0xa0, %eax
movzwl %ax, %edx
shll $0x8, %edx
movzbl %cl, %eax
orl %edx, %eax
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/utf8.c
// Function: utf8_encode
int utf8_encode(int c, char *buf) {
	if(c < 0x80) {
		buf[0] = c;
		return 1;
	} else if(c < 0x800) {
		buf[0] = 192 + c / 64;
		buf[1] = 128 + c % 64;
		return 2;
	} else if(c - 0xd800u < 0x800) {
	} else if(c < 0x10000) {
		buf[0] = 224 + c / 4096;
		buf[1] = 128 + c / 64 % 64;
		buf[2] = 128 + c % 64;
		return 3;
	} else if (c<0x110000) {
		buf[0] = 240+c/262144;
		buf[1] = 128+c/4096%64;
		buf[2] = 128+c/64%64;
		buf[3] = 128+c%64;
		return 4;
	}

	buf[0] = c;
	return 1;
}

// Assembly:
cmpl $0x7f, %edi
jg 0x273a
movb %dil, (%rsi)
movl $0x1, %eax
retq
movl %edi, %eax
cmpl $0x7ff, %edi            # imm = 0x7FF
ja 0x275d
shrl $0x6, %eax
orb $-0x40, %al
movb %al, (%rsi)
andb $0x3f, %dil
orb $-0x80, %dil
movb %dil, 0x1(%rsi)
movl $0x2, %eax
retq
andl $0x7ffff800, %eax       # imm = 0x7FFFF800
cmpl $0xd800, %eax           # imm = 0xD800
je 0x2731
cmpl $0xffff, %edi           # imm = 0xFFFF
ja 0x2798
movl %edi, %eax
shrl $0xc, %eax
orb $-0x20, %al
movb %al, (%rsi)
movl %edi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsi)
andb $0x3f, %dil
orb $-0x80, %dil
movb %dil, 0x2(%rsi)
movl $0x3, %eax
retq
cmpl $0x10ffff, %edi         # imm = 0x10FFFF
ja 0x2731
movl %edi, %eax
shrl $0x12, %eax
orb $-0x10, %al
movb %al, (%rsi)
movl %edi, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rsi)
movl %edi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x2(%rsi)
andb $0x3f, %dil
orb $-0x80, %dil
movb %dil, 0x3(%rsi)
movl $0x4, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/vampirefrog[P]x68ksjis/utf8.c
// Function: utf8_fgetc
int utf8_fgetc(FILE *f) {
	int state = 0;
	int codepoint = 0;
	int b = 0;
	while((b = fgetc(f)) != EOF) {
		if(state == 0) {
			if (b < 0x80) {  // Single-byte (ASCII)
				return b;
			} else if ((b & 0xE0) == 0xC0) {  // Start of 2-byte sequence
				codepoint = b & 0x1F;
				state = 1;
			} else if ((b & 0xF0) == 0xE0) {  // Start of 3-byte sequence
				codepoint = b & 0x0F;
				state = 2;
			} else if ((b & 0xF8) == 0xF0) {  // Start of 4-byte sequence
				codepoint = b & 0x07;
				state = 3;
			} else {
				return -2;
			}
		} else {
			if((b & 0xC0) == 0x80) {  // Valid continuation byte
				codepoint = (codepoint << 6) | (b & 0x3F);
				state--;  // Move to the next expected byte or finish
				if(state == 0)
					return codepoint;
			} else {
				return -2;
			}
		}
	}
	return EOF;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x1080
cmpl $-0x1, %eax
je 0x28bb
xorl %ebp, %ebp
xorl %r14d, %r14d
testl %r14d, %r14d
je 0x2852
movl %eax, %ecx
andl $0xc0, %ecx
cmpl $0x80, %ecx
jne 0x28c2
shll $0x6, %ebp
andl $0x3f, %eax
orl %eax, %ebp
decl %r14d
jne 0x28aa
jmp 0x28cb
cmpl $0x80, %eax
jl 0x28c9
movl %eax, %ecx
andl $0xe0, %ecx
cmpl $0xc0, %ecx
jne 0x2874
andl $0x1f, %eax
movl $0x1, %r14d
jmp 0x28a8
movl %eax, %ecx
andl $0xf0, %ecx
cmpl $0xe0, %ecx
jne 0x288f
andl $0xf, %eax
movl $0x2, %r14d
jmp 0x28a8
movl %eax, %ecx
andl $0xf8, %ecx
cmpl $0xf0, %ecx
jne 0x28c2
andl $0x7, %eax
movl $0x3, %r14d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x1080
cmpl $-0x1, %eax
jne 0x282e
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x28cb
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
jmp 0x28cb
movl %eax, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/joltikeq6464v13/ref/joltik.c
// Function: memcmp_const
int memcmp_const(const void * a, const void *b, const size_t size)  {

  size_t i;
  unsigned char result = 0;
  const unsigned char *_a = (const unsigned char *) a;
  const unsigned char *_b = (const unsigned char *) b;

  for (i = 0; i < size; i++) {
    result |= _a[i] ^ _b[i];
  }

  /* returns 0 if equal, nonzero otherwise */
  return result; 
}

// Assembly:
testq %rdx, %rdx
je 0x143f
leaq 0x1f(%rdx), %rax
andq $-0x20, %rax
decq %rdx
vpbroadcastq %rdx, %ymm1
vpxor %xmm0, %xmm0, %xmm0
xorl %ecx, %ecx
vpmovsxbq 0x1e3b(%rip), %ymm2 # 0x3140
vpmovsxbq 0x1e36(%rip), %ymm3 # 0x3144
vpmovsxbq 0x1e31(%rip), %ymm4 # 0x3148
vpmovsxbq 0x1e2c(%rip), %ymm5 # 0x314c
vpmovsxbq 0x1e27(%rip), %ymm6 # 0x3150
vpmovsxbq 0x1e22(%rip), %ymm7 # 0x3154
vpmovsxbq 0x1e1d(%rip), %ymm8 # 0x3158
vpmovsxbq 0x1e18(%rip), %ymm9 # 0x315c
vpbroadcastq %rcx, %ymm10
vpor %ymm2, %ymm10, %ymm11
vpor %ymm3, %ymm10, %ymm12
vpor %ymm4, %ymm10, %ymm13
vpor %ymm5, %ymm10, %ymm14
vpor %ymm6, %ymm10, %ymm15
vporq %ymm7, %ymm10, %ymm16
vporq %ymm8, %ymm10, %ymm17
vpor %ymm9, %ymm10, %ymm10
vpcmpleuq %ymm1, %ymm10, %k0
vpcmpleuq %ymm1, %ymm17, %k1
kshiftlb $0x4, %k1, %k1
korb %k1, %k0, %k0
vpcmpleuq %ymm1, %ymm16, %k1
vpcmpleuq %ymm1, %ymm15, %k2
kshiftlb $0x4, %k2, %k2
korb %k2, %k1, %k1
kunpckbw %k0, %k1, %k0
vpcmpleuq %ymm1, %ymm14, %k1
vpcmpleuq %ymm1, %ymm13, %k2
kshiftlb $0x4, %k2, %k2
korb %k2, %k1, %k1
vpcmpleuq %ymm1, %ymm12, %k2
vpcmpleuq %ymm1, %ymm11, %k3
kshiftlb $0x4, %k3, %k3
korb %k3, %k2, %k2
kunpckbw %k1, %k2, %k1
kunpckwd %k0, %k1, %k1
vmovdqu8 (%rdi,%rcx), %ymm11 {%k1} {z}
vmovdqa %ymm0, %ymm10
vmovdqu8 (%rsi,%rcx), %ymm0 {%k1} {z}
vpternlogq $0xde, %ymm11, %ymm10, %ymm0
addq $0x20, %rcx
cmpq %rcx, %rax
jne 0x1344
vmovdqu8 %ymm0, %ymm10 {%k1}
vextracti128 $0x1, %ymm10, %xmm0
vpor %xmm0, %xmm10, %xmm0
vpshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
vpor %xmm1, %xmm0, %xmm0
vpsrlq $0x20, %xmm0, %xmm1
vpor %xmm1, %xmm0, %xmm0
vpsrld $0x10, %xmm0, %xmm1
vpor %xmm1, %xmm0, %xmm0
vpsrlw $0x8, %xmm0, %xmm1
vpor %xmm1, %xmm0, %xmm0
vpextrb $0x0, %xmm0, %eax
vzeroupper
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/joltikeq6464v13/ref/tweakableBC.c
// Function: H
uint64_t H(uint64_t tweakey) {

  uint64_t i;
  uint64_t shiftIn;
  uint64_t shiftOut;
  uint64_t res=0;
  for (i=0; i<16; i++) {
    shiftIn=60ULL-4ULL*i;
    shiftOut=60ULL-4ULL*perm[i];
    res^=((tweakey>>shiftIn)&0xf)<<shiftOut;
  }
 return res;
}

// Assembly:
vpbroadcastq %rdi, %ymm1
vpmovsxbq 0x14dc(%rip), %ymm2 # 0x315c
vpxor %xmm0, %xmm0, %xmm0
vpbroadcastq 0x15d3(%rip), %ymm3 # 0x3260
xorl %eax, %eax
leaq 0x161a(%rip), %rcx      # 0x32b0
vpbroadcastq 0x15c9(%rip), %ymm4 # 0x3268
vpbroadcastq 0x15c8(%rip), %ymm5 # 0x3270
vpsllq $0x2, %ymm2, %ymm6
vpsubq %ymm6, %ymm3, %ymm6
vpsrlvq %ymm6, %ymm1, %ymm6
vpand %ymm4, %ymm6, %ymm6
vpmovzxbq (%rax,%rcx), %ymm7
vpsllq $0x2, %ymm7, %ymm7
vpsubq %ymm7, %ymm3, %ymm7
vpsllvq %ymm7, %ymm6, %ymm6
vpxor %ymm0, %ymm6, %ymm0
addq $0x4, %rax
vpaddq %ymm5, %ymm2, %ymm2
cmpq $0x10, %rax
jne 0x1ca8
vextracti128 $0x1, %ymm0, %xmm1
vpxor %xmm1, %xmm0, %xmm0
vpshufd $0xee, %xmm0, %xmm1     # xmm1 = xmm0[2,3,2,3]
vpxor %xmm1, %xmm0, %xmm0
vmovq %xmm0, %rax
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O3/ebiggers[P]xpack/lib/xpack_compress.c
// Function: do_end_block_check
static bool
do_end_block_check(struct block_split_stats *stats, u32 block_size)
{
	int i;

	if (stats->num_observations > 0) {

		/* Note: to avoid slow divisions, we do not divide by
		 * 'num_observations', but rather do all math with the numbers
		 * multiplied by 'num_observations'.  */
		u32 total_delta = 0;
		for (i = 0; i < NUM_OBSERVATION_TYPES; i++) {
			u32 expected = stats->observations[i] * stats->num_new_observations;
			u32 actual = stats->new_observations[i] * stats->num_observations;
			u32 delta = (actual > expected) ? actual - expected :
							  expected - actual;
			total_delta += delta;
		}

		/* Ready to end the block? */
		if (total_delta + (block_size >> 12) * stats->num_observations >=
		    200 * stats->num_observations)
			return true;
	}

	for (i = 0; i < NUM_OBSERVATION_TYPES; i++) {
		stats->num_observations += stats->new_observations[i];
		stats->observations[i] += stats->new_observations[i];
		stats->new_observations[i] = 0;
	}
	stats->num_new_observations = 0;
	return false;
}

// Assembly:
movl 0x54(%rdi), %eax
testl %eax, %eax
je 0x4b49
movl 0x50(%rdi), %edx
xorl %ecx, %ecx
movq $-0xa, %r8
movl 0x50(%rdi,%r8,4), %r9d
imull %edx, %r9d
movl 0x28(%rdi,%r8,4), %r10d
imull %eax, %r10d
movl %r9d, %r11d
subl %r10d, %r11d
negl %r11d
subl %r10d, %r9d
cmovbl %r11d, %r9d
addl %r9d, %ecx
incq %r8
jne 0x4b0b
shrl $0xc, %esi
imull %eax, %esi
addl %esi, %ecx
imull $0xc8, %eax, %edx
movb $0x1, %al
cmpl %edx, %ecx
jae 0x4b75
movq $-0xa, %rax
movl 0x28(%rdi,%rax,4), %ecx
addl %ecx, 0x54(%rdi)
movl 0x28(%rdi,%rax,4), %ecx
addl %ecx, 0x50(%rdi,%rax,4)
movl $0x0, 0x28(%rdi,%rax,4)
incq %rax
jne 0x4b50
movl $0x0, 0x50(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/ebiggers[P]xpack/lib/xpack_compress.c
// Function: header_ostream_write_bits
static void
header_ostream_write_bits(struct header_ostream *os,
			  machine_word_t bits, unsigned num_bits)
{
	/*
	 * We only flush 'bitbuf' when it completely fills up.  This improves
	 * performance.
	 */
	os->bitbuf |= bits << os->bitcount;
	os->bitcount += num_bits;
	if (os->bitcount >= WORDBITS) {
		if (os->end - os->next >= WORDBYTES) {
			put_unaligned_leword(os->bitbuf, os->next);
			os->next += WORDBYTES;
		} else {
			os->next = os->end;
		}
		os->bitcount -= WORDBITS;
		os->bitbuf = bits >> (num_bits - os->bitcount);
	}
}

// Assembly:
movl 0x8(%rdi), %ecx
movq %rsi, %rax
shlq %cl, %rax
orq (%rdi), %rax
movq %rax, (%rdi)
addl %edx, %ecx
movl %ecx, 0x8(%rdi)
cmpl $0x40, %ecx
jb 0x4bc1
movq 0x18(%rdi), %r8
movq 0x20(%rdi), %r9
movq %r9, %r10
subq %r8, %r10
cmpq $0x8, %r10
jl 0x4bad
movq %rax, (%r8)
addq $0x8, %r8
movq %r8, %r9
movq %r9, 0x18(%rdi)
addl $-0x40, %ecx
movl %ecx, 0x8(%rdi)
subl %ecx, %edx
movl %edx, %ecx
shrq %cl, %rsi
movq %rsi, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/ebiggers[P]xpack/lib/xpack_compress.c
// Function: choose_state_counts
static unsigned
choose_state_counts(const u32 freqs[], unsigned alphabet_size,
		    unsigned max_log2_num_states, u16 state_counts[])
{
	u32 total_freq = 0;
	unsigned num_used_syms = 0;
	unsigned log2_num_states;
	unsigned sym;

	/* Compute the total frequency and the number of used symbols. */
	for (sym = 0; sym < alphabet_size; sym++) {
		if (freqs[sym] != 0) {
			num_used_syms++;
			total_freq += freqs[sym];
		}
	}

	/*
	 * If no symbols from this alphabet were used, then output a code that
	 * contains an arbitrary unused symbol.
	 */
	if (total_freq == 0) {
		state_counts[0] = 1;
		for (sym = 1; sym < alphabet_size; sym++)
			state_counts[sym] = 0;
		return 0;
	}

	/* Select the number of states to use. */
	log2_num_states = select_log2_num_states(total_freq, num_used_syms,
						 max_log2_num_states);

	/* Decide how many states to assign to each symbol. */
	compute_state_counts(freqs, total_freq, state_counts,
			     alphabet_size, log2_num_states);

	return log2_num_states;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r8
testl %esi, %esi
je 0x4cac
movl %esi, %r9d
movl %esi, %esi
xorl %ecx, %ecx
xorl %eax, %eax
xorl %ebp, %ebp
movl (%rdi,%rcx,4), %r10d
addl %r10d, %ebp
cmpl $0x1, %r10d
sbbl $-0x1, %eax
incq %rcx
cmpq %rcx, %rsi
jne 0x4be3
testl %ebp, %ebp
je 0x4cb9
movl $0x1, %r11d
movl %edx, %ecx
shll %cl, %r11d
movl $0x1, %r10d
movl %ebp, %ecx
shrl $0x2, %ecx
cmpl %ecx, %r11d
cmovbl %r11d, %ecx
cmpl %eax, %ecx
cmovbel %eax, %ecx
leal -0x1(%rcx), %eax
bsrl %eax, %ebx
xorl $-0x20, %ebx
addl $0x21, %ebx
xorl %r11d, %r11d
cmpl $0x2, %ecx
cmovbl %r11d, %ebx
movl %ebx, %ecx
shll %cl, %r10d
movl $0x80000000, %eax       # imm = 0x80000000
xorl %edx, %edx
divl %ebp
testl %r9d, %r9d
je 0x4ce2
movl $0x1e, %ecx
subl %ebx, %ecx
xorl %edx, %edx
xorl %r11d, %r11d
xorl %ebp, %ebp
movl (%rdi,%rdx,4), %r14d
movl %r14d, %r15d
imull %eax, %r15d
shrl %cl, %r15d
movl %r11d, %r12d
incl %r15d
movl %r15d, %r13d
shrl %r13d
xorl %r11d, %r11d
testl %r14d, %r14d
setne %r11b
cmpl $0x2, %r15d
cmovael %r13d, %r11d
subl %r11d, %r10d
cmpl %r12d, %r11d
cmoval %edx, %ebp
movw %r11w, (%r8,%rdx,2)
cmovbel %r12d, %r11d
incq %rdx
cmpq %rdx, %rsi
jne 0x4c5e
shrl $0x2, %r11d
movl %ebp, %ecx
jmp 0x4ce4
movw $0x1, (%r8)
xorl %ebx, %ebx
jmp 0x4d39
movw $0x1, (%r8)
xorl %ebx, %ebx
cmpl $0x1, %r9d
je 0x4d39
addq $0x2, %r8
decl %r9d
addq %r9, %r9
xorl %ebx, %ebx
movq %r8, %rdi
xorl %esi, %esi
movq %r9, %rdx
callq 0x1040
jmp 0x4d39
xorl %ecx, %ecx
movl %r10d, %eax
negl %eax
cmpl %eax, %r11d
jle 0x4cf5
addw %r10w, (%r8,%rcx,2)
jmp 0x4d39
testl %r10d, %r10d
je 0x4d39
movl $0x3, %ecx
testl %r9d, %r9d
je 0x4d33
xorl %edx, %edx
movzwl (%r8,%rdx,2), %edi
cmpl $0x2, %edi
jb 0x4d2b
leal -0x1(%rdi), %r10d
shrl %cl, %r10d
cmpl %eax, %r10d
cmovael %eax, %r10d
subl %r10d, %edi
movw %di, (%r8,%rdx,2)
subl %r10d, %eax
je 0x4d39
incq %rdx
cmpq %rdx, %rsi
jne 0x4d06
decl %ecx
testl %eax, %eax
jne 0x4cff
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/ebiggers[P]xpack/lib/xpack_compress.c
// Function: write_state_counts
static void
write_state_counts(struct header_ostream *os,
		   const u16 state_counts[], unsigned num_state_counts)
{
	unsigned sym = 0;

	while (sym < num_state_counts) {
		unsigned count = state_counts[sym++];
		unsigned bits;
		unsigned num_bits;

		if (count == 0) {
			unsigned start = sym - 1;
			unsigned num_zeroes;

			while (sym < num_state_counts && state_counts[sym] == 0)
				sym++;
			num_zeroes = sym - start;

			while (num_zeroes >= ZEROCODE2_MIN) {
				unsigned count = MIN(num_zeroes, ZEROCODE2_MAX);
				bits = ((count - ZEROCODE2_MIN) << CODEBITS) | ZEROCODE2;
				num_bits = ZEROCODE2_NBITS + CODEBITS;
				header_ostream_write_bits(os, bits, num_bits);
				num_zeroes -= count;
			}

			if (num_zeroes < ZEROCODE1_MIN)
				continue;

			bits = ((num_zeroes - ZEROCODE1_MIN) << CODEBITS) | ZEROCODE1;
			num_bits = ZEROCODE1_NBITS + CODEBITS;
		} else {
			unsigned order = bsr32(count);
			bits = ((count ^ (1 << order)) << CODEBITS) | order;
			num_bits = order + CODEBITS;
		}
		header_ostream_write_bits(os, bits, num_bits);
	}
}

// Assembly:
testl %edx, %edx
je 0x4e29
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
movl %edx, %r12d
xorl %eax, %eax
movl $0x84, %edx
movl %ebp, 0x4(%rsp)
leal 0x1(%rax), %r13d
movl %eax, %ecx
movzwl (%r14,%rcx,2), %ebx
testl %ebx, %ebx
je 0x4d95
bsrl %ebx, %edx
btcl %edx, %ebx
shll $0x4, %ebx
orl %edx, %ebx
xorl $-0x20, %edx
addl $0x24, %edx
jmp 0x4df8
cmpl %ebp, %r13d
jae 0x4db0
movl %r13d, %r13d
cmpw $0x0, (%r14,%r13,2)
jne 0x4db0
incq %r13
cmpq %r13, %r12
jne 0x4d9d
movl %r12d, %r13d
movl %r13d, %ebx
subl %eax, %ebx
cmpl $0x5, %ebx
jb 0x4de5
cmpl %edx, %ebx
movl $0x84, %ebp
cmovbl %ebx, %ebp
movl %ebp, %esi
shll $0x4, %esi
addl $-0x41, %esi
movq %r15, %rdi
movl $0xb, %edx
callq 0x4b76
movl $0x84, %edx
subl %ebp, %ebx
cmpl $0x4, %ebx
ja 0x4dba
testl %ebx, %ebx
je 0x4e15
shll $0x4, %ebx
addl $-0x2, %ebx
movl $0x6, %edx
movl 0x4(%rsp), %ebp
movl %ebx, %esi
movq %r15, %rdi
callq 0x4b76
movl $0x84, %edx
movl %r13d, %eax
cmpl %ebp, %r13d
jb 0x4d73
jmp 0x4e1b
movl 0x4(%rsp), %ebp
jmp 0x4e07
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_draw.c
// Function: calcpointsI
void calcpointsI(dc, method, index, g, pl)
     DCp dc;
     Methodp method;
     int index;
     Genericp g, pl;
{
  int i;
  float xpoff, ypoff, prx, pry, prz, dx, dy;
  Coord2dp new;
  Coord3dp old;

  old = dc->s->object+index;
  new = dc->points+index;
  dx = pl->x - dc->pos.x;
  dy = pl->y - dc->pos.y;
  for (i=0; i<method->num; i++, old++, new++) {
      xpoff = old->x - dx;
      ypoff = old->y - dy;
      prx =  xpoff * pl->ca + ypoff * pl->sa;
      pry = -xpoff * pl->sa + ypoff * pl->ca;
      if (pry < 10.0)
        pry = 10.0;
      prz = old->z + dc->pos.z;
      new->x = 500 + prx / pry * 450;
      new->y = 260 - prz / pry * 450;
    }
}

// Assembly:
movl (%rsi), %eax
testl %eax, %eax
jle 0x483d
movss 0x104(%rdi), %xmm0
movss 0x100(%rdi), %xmm1
movslq %edx, %rdx
leaq (%rdi,%rdx,4), %rcx
addq $0x10, %rcx
movq (%rdi), %rsi
leaq (%rdx,%rdx,2), %rdx
addq %rdx, %rdx
addq (%rsi), %rdx
subss 0xc(%r8), %xmm1
subss 0x10(%r8), %xmm0
movss 0x24(%r8), %xmm2
movss 0x28(%r8), %xmm3
movss 0x108(%rdi), %xmm4
xorl %esi, %esi
movss 0x987c(%rip), %xmm5     # 0xe004
movaps 0x9881(%rip), %xmm6     # 0xe010
movaps 0x988a(%rip), %xmm7     # 0xe020
movsd 0x9891(%rip), %xmm8     # 0xe030
movswl (%rdx), %edi
movswl 0x2(%rdx), %r8d
xorps %xmm9, %xmm9
cvtsi2ss %edi, %xmm9
xorps %xmm10, %xmm10
cvtsi2ss %r8d, %xmm10
addss %xmm1, %xmm9
addss %xmm0, %xmm10
movaps %xmm2, %xmm11
mulss %xmm10, %xmm11
mulss %xmm3, %xmm10
movaps %xmm9, %xmm12
mulss %xmm3, %xmm9
movswl 0x4(%rdx), %edi
mulss %xmm2, %xmm12
xorps %xmm13, %xmm13
cvtsi2ss %edi, %xmm13
addss %xmm10, %xmm12
subss %xmm9, %xmm11
movaps %xmm5, %xmm9
addss %xmm4, %xmm13
maxss %xmm11, %xmm9
xorps %xmm6, %xmm13
unpcklps %xmm13, %xmm12          # xmm12 = xmm12[0],xmm13[0],xmm12[1],xmm13[1]
shufps $0x0, %xmm9, %xmm9      # xmm9 = xmm9[0,0,0,0]
divps %xmm9, %xmm12
mulps %xmm7, %xmm12
addps %xmm8, %xmm12
cvttps2dq %xmm12, %xmm9
pshuflw $0xe8, %xmm9, %xmm9     # xmm9 = xmm9[0,2,2,3,4,5,6,7]
movd %xmm9, (%rcx,%rsi,4)
addq $0x6, %rdx
incq %rsi
cmpl %esi, %eax
jne 0x479f
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_draw.c
// Function: calcpointsII
void calcpointsII(dc, method, index, g, pl)
     DCp dc;
     Methodp method;
     int index;
     Genericp g, pl;
{
  int i;
  float csa, ssa, dx, dy, xn, yn, cn, sn, prx, pry, prz, rx, ry;
  Coord2dp new;
  Coord3dp old;

  old = dc->s->object+index;
  new = dc->points+index;

  csa = cos(g->azm);
  ssa = sin(g->azm);
  dx = pl->x - dc->pos.x;
  dy = pl->y - dc->pos.y;
  xn =  dx * csa + dy * ssa;
  yn = -dx * ssa + dy * csa;
  cn = pl->ca * csa + pl->sa * ssa;
  sn = pl->sa * csa - ssa * pl->ca;
  for (i=0; i<method->num; i++, old++, new++) {
    rx =  old->x - xn;
    ry =  old->y - yn;
    prx =  rx * cn + ry * sn;
    pry = -rx * sn + ry * cn;
    if (pry < 10.0)
      pry = 10.0;
    prz = old->z + dc->pos.z;
    new->x = 500 + prx / pry * 450;
    new->y = 260 - prz / pry * 450;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %rbx
movq (%rdi), %rax
movq (%rax), %r13
cvtss2sd 0x20(%rcx), %xmm0
callq 0x41e0
movsd %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtss2sd 0x20(%r15), %xmm0
callq 0x4590
movl (%r12), %eax
testl %eax, %eax
jle 0x49ce
cvtsd2ss (%rsp), %xmm4
cvtsd2ss %xmm0, %xmm5
movss 0xc(%r14), %xmm2
movss 0x10(%r14), %xmm0
subss 0x100(%rbx), %xmm2
subss 0x104(%rbx), %xmm0
movaps %xmm0, %xmm3
mulss %xmm5, %xmm3
movaps %xmm2, %xmm1
mulss %xmm4, %xmm1
addss %xmm3, %xmm1
mulss %xmm4, %xmm0
mulss %xmm5, %xmm2
subss %xmm2, %xmm0
movss 0x24(%r14), %xmm2
movss 0x28(%r14), %xmm3
movaps %xmm3, %xmm6
mulss %xmm5, %xmm6
mulss %xmm2, %xmm5
mulss %xmm4, %xmm2
addss %xmm6, %xmm2
mulss %xmm4, %xmm3
subss %xmm5, %xmm3
movslq %ebp, %rdx
leaq 0x10(%rbx,%rdx,4), %rcx
leaq (%rdx,%rdx,2), %rdx
leaq (,%rdx,2), %rdx
addq %r13, %rdx
movss 0x108(%rbx), %xmm4
xorl %esi, %esi
movss 0x96eb(%rip), %xmm5     # 0xe004
movaps 0x96f0(%rip), %xmm6     # 0xe010
movaps 0x96f9(%rip), %xmm7     # 0xe020
movsd 0x9700(%rip), %xmm8     # 0xe030
movswl (%rdx), %edi
movswl 0x2(%rdx), %r8d
xorps %xmm10, %xmm10
cvtsi2ss %edi, %xmm10
xorps %xmm11, %xmm11
cvtsi2ss %r8d, %xmm11
subss %xmm1, %xmm10
subss %xmm0, %xmm11
movaps %xmm3, %xmm12
mulss %xmm11, %xmm12
movaps %xmm10, %xmm9
mulss %xmm2, %xmm11
mulss %xmm3, %xmm10
movswl 0x4(%rdx), %edi
mulss %xmm2, %xmm9
xorps %xmm13, %xmm13
cvtsi2ss %edi, %xmm13
addss %xmm12, %xmm9
subss %xmm10, %xmm11
movaps %xmm5, %xmm10
addss %xmm4, %xmm13
maxss %xmm11, %xmm10
xorps %xmm6, %xmm13
unpcklps %xmm13, %xmm9           # xmm9 = xmm9[0],xmm13[0],xmm9[1],xmm13[1]
shufps $0x0, %xmm10, %xmm10    # xmm10 = xmm10[0,0,0,0]
divps %xmm10, %xmm9
mulps %xmm7, %xmm9
addps %xmm8, %xmm9
cvttps2dq %xmm9, %xmm9
pshuflw $0xe8, %xmm9, %xmm9     # xmm9 = xmm9[0,2,2,3,4,5,6,7]
movd %xmm9, (%rcx,%rsi,4)
addq $0x6, %rdx
incq %rsi
cmpl %esi, %eax
jne 0x4930
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_draw.c
// Function: calcpointsIII
void calcpointsIII(dc, method, index, g, pl)
     DCp dc;
     Methodp method;
     int index;
     Genericp g, pl;
{
  int i;
  float temp, dx, dy, xn, yn, cn, sn, prx, pry, prz, rx, ry;
  Coord2dp new;
  Coord3dp old;

  old = dc->s->object+index;
  new = dc->points+index;
  temp = dc->cta;
  dc->cta = dc->cta * method->vars[0] - dc->sta * method->vars[1];
  dc->sta = dc->sta * method->vars[0] + temp * method->vars[1];
  dx = pl->x - dc->pos.x;
  dy = pl->y - dc->pos.y;
  xn =  dx * dc->cta + dy * dc->sta;
  yn = -dx * dc->sta + dy * dc->cta;
  cn = pl->ca * dc->cta + pl->sa * dc->sta;
  sn = pl->sa * dc->cta - pl->ca * dc->sta;
  for (i=0; i<method->num; i++, old++, new++) {
    rx =  old->x - xn;
    ry =  old->y - yn;
    prx =  rx * cn + ry * sn;
    pry = -rx * sn + ry * cn;
    if (pry < 10.0)
      pry = 10.0;
    prz = old->z + dc->pos.z;
    new->x = 500 + prx / pry * 450;
    new->y = 260 - prz / pry * 450;
  }
}

// Assembly:
movq (%rdi), %rax
movq (%rax), %r9
movss 0x118(%rdi), %xmm0
movq 0x10(%rsi), %rax
movss 0x11c(%rdi), %xmm4
movss 0x4(%rax), %xmm1
mulss %xmm4, %xmm1
movss (%rax), %xmm5
mulss %xmm0, %xmm5
subss %xmm1, %xmm5
movss %xmm5, 0x118(%rdi)
mulss 0x4(%rax), %xmm0
mulss (%rax), %xmm4
addss %xmm0, %xmm4
movss %xmm4, 0x11c(%rdi)
movl (%rsi), %eax
testl %eax, %eax
jle 0x4b6b
movss 0xc(%r8), %xmm2
movss 0x10(%r8), %xmm0
subss 0x100(%rdi), %xmm2
subss 0x104(%rdi), %xmm0
movaps %xmm4, %xmm3
mulss %xmm0, %xmm3
movaps %xmm2, %xmm1
mulss %xmm5, %xmm1
addss %xmm3, %xmm1
mulss %xmm5, %xmm0
mulss %xmm4, %xmm2
subss %xmm2, %xmm0
movss 0x24(%r8), %xmm2
movss 0x28(%r8), %xmm3
movaps %xmm4, %xmm6
mulss %xmm3, %xmm6
mulss %xmm2, %xmm4
mulss %xmm5, %xmm2
addss %xmm6, %xmm2
mulss %xmm5, %xmm3
subss %xmm4, %xmm3
movslq %edx, %rdx
leaq 0x10(%rdi,%rdx,4), %rcx
leaq (%rdx,%rdx,2), %rdx
leaq (%r9,%rdx,2), %rdx
movss 0x108(%rdi), %xmm4
xorl %esi, %esi
movss 0x954e(%rip), %xmm5     # 0xe004
movaps 0x9553(%rip), %xmm6     # 0xe010
movaps 0x955c(%rip), %xmm7     # 0xe020
movsd 0x9563(%rip), %xmm8     # 0xe030
movswl (%rdx), %edi
movswl 0x2(%rdx), %r8d
xorps %xmm10, %xmm10
cvtsi2ss %edi, %xmm10
xorps %xmm11, %xmm11
cvtsi2ss %r8d, %xmm11
subss %xmm1, %xmm10
subss %xmm0, %xmm11
movaps %xmm3, %xmm12
mulss %xmm11, %xmm12
movaps %xmm10, %xmm9
mulss %xmm2, %xmm11
mulss %xmm3, %xmm10
movswl 0x4(%rdx), %edi
mulss %xmm2, %xmm9
xorps %xmm13, %xmm13
cvtsi2ss %edi, %xmm13
addss %xmm12, %xmm9
subss %xmm10, %xmm11
movaps %xmm5, %xmm10
addss %xmm4, %xmm13
maxss %xmm11, %xmm10
xorps %xmm6, %xmm13
unpcklps %xmm13, %xmm9           # xmm9 = xmm9[0],xmm13[0],xmm9[1],xmm13[1]
shufps $0x0, %xmm10, %xmm10    # xmm10 = xmm10[0,0,0,0]
divps %xmm10, %xmm9
mulps %xmm7, %xmm9
addps %xmm8, %xmm9
cvttps2dq %xmm9, %xmm9
pshuflw $0xe8, %xmm9, %xmm9     # xmm9 = xmm9[0,2,2,3,4,5,6,7]
movd %xmm9, (%rcx,%rsi,4)
addq $0x6, %rdx
incq %rsi
cmpl %esi, %eax
jne 0x4acd
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_draw.c
// Function: displayobject
void displayobject(dc)
     DCp dc;
{
  Coord2dp point;
  int *i;

  point=dc->points;
  for (i=dc->s->pnum; *i; i++) {
    polyline(point, *i);
    point += *i;
  }
  for (i=dc->s->mnum; *i; i++) {
    multiline(point, *i>>1);
    point += *i;
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x10(%rdi), %rbx
movq (%rdi), %rax
movq 0x8(%rax), %r15
movl (%r15), %esi
testl %esi, %esi
je 0x4de7
movq %rdi, %r14
addq $0x4, %r15
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6e1b
movslq -0x4(%r15), %rax
leaq (%rbx,%rax,4), %rbx
movl (%r15), %esi
addq $0x4, %r15
testl %esi, %esi
jne 0x4dc7
movq (%r14), %rax
movq 0x10(%rax), %r14
movl (%r14), %esi
testl %esi, %esi
je 0x4e15
addq $0x4, %r14
sarl %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6ed0
movslq -0x4(%r14), %rax
leaq (%rbx,%rax,4), %rbx
movl (%r14), %esi
addq $0x4, %r14
testl %esi, %esi
jne 0x4df6
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: setmonomap
void setmonomap()
{
  int i;

  cmap = dcmap;
  pixels = (Pixel*) malloc(2 * sizeof(Pixel));
  opt->cpi[COLOR_BG] = 0;
  pixels[0] = BlackPixelOfScreen(screen);
  opt->cpi[COLOR_FG] = 1;
  pixels[1] = WhitePixelOfScreen(screen);
  opt->fading_colors = 1;
  for (i=2; i<MAX_COLORS; i++)
    opt->cpi[i] = 1;
  cw = cr = 2;
}

// Assembly:
pushq %rax
movq 0xe8df(%rip), %rax      # 0x14638
movq %rax, 0xe8e0(%rip)      # 0x14640
movl $0x10, %edi
callq 0x4190
movq %rax, 0xe89f(%rip)      # 0x14610
leaq 0xe808(%rip), %rcx      # 0x14580
movq (%rcx), %rcx
movl $0x0, 0xf0(%rcx)
movq 0xe8bc(%rip), %rdx      # 0x14648
movq 0x60(%rdx), %rsi
movq %rsi, (%rax)
movl $0x1, %esi
movl %esi, 0xf4(%rcx)
movq 0x58(%rdx), %rdx
movq %rdx, 0x8(%rax)
movl %esi, 0x148(%rcx)
xorl %eax, %eax
movdqa 0x833a(%rip), %xmm0     # 0xe0f0
movdqa 0x8342(%rip), %xmm1     # 0xe100
movdqa 0x824a(%rip), %xmm2     # 0xe010
movdqa 0x8342(%rip), %xmm3     # 0xe110
pshufd $0xf5, %xmm3, %xmm4     # xmm4 = xmm3[1,1,3,3]
movq %rax, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm1, %xmm6
pxor %xmm2, %xmm6
movdqa %xmm3, %xmm7
pcmpgtd %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm6     # xmm6 = xmm6[1,1,3,3]
pcmpeqd %xmm4, %xmm6
pand %xmm7, %xmm6
movd %xmm6, %edx
testb $0x1, %dl
je 0x5e12
movl $0x1, 0xf8(%rcx,%rax,4)
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x5e27
movl $0x1, 0xfc(%rcx,%rax,4)
por %xmm0, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm3, %xmm6
pcmpgtd %xmm5, %xmm6
pshufd $0xf5, %xmm5, %xmm5     # xmm5 = xmm5[1,1,3,3]
pcmpeqd %xmm4, %xmm5
pand %xmm6, %xmm5
pextrw $0x0, %xmm5, %edx
testb $0x1, %dl
je 0x5e59
movl $0x1, 0x100(%rcx,%rax,4)
pextrw $0x4, %xmm5, %edx
testb $0x1, %dl
je 0x5e6e
movl $0x1, 0x104(%rcx,%rax,4)
addq $0x4, %rax
cmpq $0x14, %rax
jne 0x5dd3
movl $0x2, %eax
movl %eax, 0xe7c9(%rip)      # 0x14650
movl %eax, 0xe7c7(%rip)      # 0x14654
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: createfadedcolors
void createfadedcolors()
{
  XColor color;
  int i, j;
  float factor;
  int num = 0;

  if (fcnames != NULL)
    free(fcnames);
  fcnames =
    (Colorname *) malloc(ufc*opt->fading_colors*sizeof(Colorname));
  for (i=LF_COLOR; i>LN_COLOR; i--)
    if (opt->cpi[i] == i) {
      XParseColor(d, dcmap, bases[i].name, &color);
      sprintf(fcnames[num++].name, "#%04x%04x%04x",
              color.red, color.green, color.blue);
      for (j=1; j<opt->fading_colors; j++) {
        factor = 1.0 - 0.5*j/(opt->fading_colors-1);
        sprintf(fcnames[num++].name, "#%04x%04x%04x",
                (int) (factor*color.red), (int) (factor*color.green),
                (int) (factor*color.blue));
      }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq 0xe77c(%rip), %rdi      # 0x14620
testq %rdi, %rdi
je 0x5eae
callq 0x4250
movslq 0xe7a3(%rip), %rax      # 0x14658
leaq 0xe6c4(%rip), %r15      # 0x14580
movq (%r15), %r13
movslq 0x148(%r13), %rdi
imulq %rax, %rdi
leaq (%rdi,%rdi), %rax
shlq $0x4, %rdi
subq %rax, %rdi
callq 0x4190
movq %rax, 0xe73f(%rip)      # 0x14620
movl $0x12, %r12d
movq %rsp, %rbp
leaq 0x8307(%rip), %r14      # 0xe1f8
xorl %ebx, %ebx
movl 0xf0(%r13,%r12,4), %eax
cmpq %rax, %r12
jne 0x6027
movq 0xe71d(%rip), %rdi      # 0x14628
movq 0xe726(%rip), %rsi      # 0x14638
movq %r12, %rdx
shlq $0x4, %rdx
subq %r12, %rdx
subq %r12, %rdx
addq 0xe6f2(%rip), %rdx      # 0x14618
movq %rbp, %rcx
callq 0x4480
movl %ebx, 0x14(%rsp)
movslq %ebx, %rbx
movq %rbx, %rdi
shlq $0x4, %rdi
subq %rbx, %rdi
subq %rbx, %rdi
addq 0xe6d7(%rip), %rdi      # 0x14620
movzwl 0x8(%rsp), %edx
movzwl 0xa(%rsp), %ecx
movzwl 0xc(%rsp), %r8d
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
incl %ebx
movq (%r15), %r13
movl 0x148(%r13), %eax
cmpl $0x2, %eax
jl 0x6027
movslq %ebx, %rbx
leaq (%rbx,%rbx), %rcx
shlq $0x4, %rbx
subq %rcx, %rbx
movl $0x1, %ebp
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
mulsd 0x8186(%rip), %xmm0     # 0xe120
decl %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
addsd 0x8179(%rip), %xmm0     # 0xe128
cvtsd2ss %xmm0, %xmm0
movzwl 0x8(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
cvttss2si %xmm1, %edx
movzwl 0xa(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movq 0xe646(%rip), %rdi      # 0x14620
mulss %xmm0, %xmm1
cvttss2si %xmm1, %ecx
movzwl 0xc(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
addq %rbx, %rdi
mulss %xmm0, %xmm1
cvttss2si %xmm1, %r8d
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
incl %ebp
movq (%r15), %r13
movl 0x148(%r13), %eax
addq $0xe, %rbx
cmpl %eax, %ebp
jl 0x5f8b
movl 0x14(%rsp), %ebx
addl %ebp, %ebx
movq %rsp, %rbp
jmp 0x6027
leaq -0x1(%r12), %rax
cmpq $0xc, %r12
movq %rax, %r12
ja 0x5ef3
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: setcoloroptvalues
void setcoloroptvalues()
{
  int i;
  int num = 0;

  for (i=L_COLOR; i>=0; i--)
    if (opt->cpi[i] == i) {
      opt->cpi[i] = num;
      if (i>LN_COLOR)
        num += opt->fading_colors;
      else
        num++;
    }
    else
      opt->cpi[i] = opt->cpi[opt->cpi[i]];
}

// Assembly:
leaq 0xe531(%rip), %rax      # 0x14580
movq (%rax), %rax
xorl %ecx, %ecx
xorl %edx, %edx
leaq 0x12(%rcx), %rsi
movl 0x138(%rax,%rcx,4), %edi
cmpq %rdi, %rsi
jne 0x607b
movl %edx, 0x138(%rax,%rcx,4)
cmpq $0xc, %rsi
jb 0x608e
addl 0x148(%rax), %edx
jmp 0x6090
movslq %edi, %rsi
movl 0xf0(%rax,%rsi,4), %esi
movl %esi, 0x138(%rax,%rcx,4)
jmp 0x6090
incl %edx
decq %rcx
cmpq $-0x13, %rcx
jne 0x6056
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: standardizecolors
void standardizecolors(v)
     Visual* v;
{
  XColor color;
  int i;
  int num = 0;

  if (bases != NULL)
    free(bases);
  bases = (Colorname *) malloc(MAX_COLORS*sizeof(Colorname));
  for (i=0; i<MAX_COLORS; i++) {
    XParseColor(d, dcmap, opt->cname[i], &color);
    if (v->class == StaticGray || v->class == GrayScale)
      color.red = color.green = color.blue = color.red > color.green ?
        (color.red > color.blue ? color.red : color.blue) :
          (color.green > color.blue ? color.green : color.blue);
    sprintf(bases[num++].name,
            "#%04x%04x%04x", color.red, color.green, color.blue);
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0xe566(%rip), %rdi      # 0x14618
testq %rdi, %rdi
je 0x60bc
callq 0x4250
movl $0x10a, %edi            # imm = 0x10A
callq 0x4190
movq %rax, 0xe54b(%rip)      # 0x14618
movl $0xb, %r12d
leaq 0xe4a6(%rip), %r13      # 0x14580
leaq 0x8(%rsp), %r14
leaq 0x8112(%rip), %r15      # 0xe1f8
xorl %ebp, %ebp
movq 0xe539(%rip), %rdi      # 0x14628
movq 0xe542(%rip), %rsi      # 0x14638
movq (%r13), %rax
movq (%rax,%r12,8), %rdx
movq %r14, %rcx
callq 0x4480
cmpl $0x1, 0x10(%rbx)
movzwl 0x10(%rsp), %ecx
movzwl 0x12(%rsp), %eax
movzwl 0x14(%rsp), %esi
ja 0x613a
cmpw %ax, %cx
cmoval %ecx, %eax
cmpw %si, %ax
cmovbel %esi, %eax
movw %ax, 0x14(%rsp)
movw %ax, 0x12(%rsp)
movw %ax, 0x10(%rsp)
movl %eax, %esi
movl %eax, %ecx
movq 0xe4d7(%rip), %rdi      # 0x14618
addq %rbp, %rdi
movzwl %cx, %edx
movzwl %ax, %ecx
movzwl %si, %r8d
movq %r15, %rsi
xorl %eax, %eax
callq 0x42e0
incq %r12
addq $0xe, %rbp
cmpq $0x1e, %r12
jne 0x60e8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: countcolors
void countcolors()
{
  int i, j;

  ufc = unfc = 0;
  if (opt->mono) {
    cr = cw = unfc = 2;
    return;
  }
  for (i=L_COLOR; i>=0; i--) {
    for (j=L_COLOR; j>i && strcmp(bases[i].name,bases[j].name); j--);
    opt->cpi[i] = j;
    if (i == j)
      if (opt->fading_colors==1 || i<FF_COLOR)
        unfc++;
      else
        ufc++;
  }
  cw = unfc+ufc*opt->fading_colors;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
xorl %eax, %eax
movl %eax, 0xe2c8(%rip)      # 0x1465c
movl %eax, 0xe2be(%rip)      # 0x14658
leaq 0xe1df(%rip), %rcx      # 0x14580
movq (%rcx), %r15
cmpl %eax, 0x13c(%r15)
je 0x63c9
movl $0x2, %eax
movl %eax, 0xe2a4(%rip)      # 0x1465c
movl %eax, 0xe296(%rip)      # 0x14654
movl %eax, 0xe28c(%rip)      # 0x14650
jmp 0x6477
movq 0xe248(%rip), %r12      # 0x14618
leaq 0xfc(%r12), %rax
movq %rax, (%rsp)
movl $0x12, %r13d
movl $0x12, %ebp
cmpq $0x11, %r13
ja 0x6424
movq %r13, %rbx
shlq $0x4, %rbx
subq %r13, %rbx
subq %r13, %rbx
addq %r12, %rbx
movl $0x12, %ebp
movq (%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4440
testl %eax, %eax
je 0x6424
decq %rbp
addq $-0xe, %r14
cmpq %r13, %rbp
ja 0x6406
movq %r13, %rbp
movl %ebp, 0xf0(%r15,%r13,4)
movl %ebp, %eax
cmpq %rax, %r13
jne 0x6457
cmpl $0x1, 0x148(%r15)
leaq 0xe216(%rip), %rax      # 0x14658
leaq 0xe213(%rip), %rcx      # 0x1465c
cmoveq %rcx, %rax
cmpq $0xc, %r13
cmovbq %rcx, %rax
incl (%rax)
subq $0x1, %r13
jae 0x63e2
movl 0x148(%r15), %eax
imull 0xe1ed(%rip), %eax      # 0x14658
addl 0xe1eb(%rip), %eax      # 0x1465c
movl %eax, 0xe1dd(%rip)      # 0x14654
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: reducecolors
void reducecolors()
{
  int i, firstcolor, lastcolor;
  static int attempt = 0;
  static int groupings[][2] = {
    F1_COLOR, L1_COLOR, F2_COLOR, L2_COLOR, F3_COLOR, L3_COLOR,
    F4_COLOR, L4_COLOR, F5_COLOR, L5_COLOR, F6_COLOR, L6_COLOR,
    F7_COLOR, L7_COLOR, F8_COLOR, L8_COLOR, F9_COLOR, L9_COLOR };

  while (cw > cr) {
    switch(attempt++) {
    case 0:                     /* reduce # of fading colors */
      opt->fading_colors = (cr-unfc)/ufc;
      if (opt->fading_colors < 1)
        opt->fading_colors = 1;
      break;
    case 1: case 2: case 3: case 4: case 5: case 6: case 7: case 8: case 9:
      /* now start combining color groups */
      firstcolor = groupings[attempt-1][0];
      lastcolor = groupings[attempt-1][1];
      for (i=lastcolor; i>firstcolor; i--)
        strcpy(bases[i].name, bases[firstcolor].name);
      break;
    case 10:
      opt->mono = True;
      break;
    }
    countcolors();
  }
}

// Assembly:
movl 0xe1c4(%rip), %eax      # 0x14650
cmpl %eax, 0xe1c2(%rip)      # 0x14654
jle 0x657c
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0xe1b6(%rip), %r15d     # 0x14660
leaq 0x7cff(%rip), %rbx      # 0xe1b0
movl %r15d, %ecx
leal 0x1(%rcx), %r15d
movl %r15d, 0xe1a1(%rip)     # 0x14660
leal -0x1(%rcx), %edx
cmpl $0x9, %edx
jae 0x6525
movl %ecx, %eax
movslq (%rbx,%rax,8), %r14
movslq 0x4(%rbx,%rax,8), %rbp
cmpl %r14d, %ebp
jle 0x6510
movq %rbp, %r13
shlq $0x4, %r13
subq %rbp, %r13
subq %rbp, %r13
movq %r14, %r12
shlq $0x4, %r12
subq %r14, %r12
subq %r14, %r12
movq 0xe120(%rip), %rsi      # 0x14618
leaq (%rsi,%r13), %rdi
addq %r12, %rsi
callq 0x4470
decq %rbp
addq $-0xe, %r13
cmpq %r14, %rbp
jg 0x64f1
callq 0x6381
movl 0xe135(%rip), %eax      # 0x14650
cmpl %eax, 0xe133(%rip)      # 0x14654
jg 0x64b1
jmp 0x656e
cmpl $0xa, %ecx
je 0x6558
testl %ecx, %ecx
jne 0x6510
subl 0xe128(%rip), %eax      # 0x1465c
cltd
idivl 0xe11d(%rip)            # 0x14658
leaq 0xe03e(%rip), %rcx      # 0x14580
movq (%rcx), %rcx
cmpl $0x2, %eax
movl $0x1, %edx
cmovll %edx, %eax
movl %eax, 0x148(%rcx)
jmp 0x6510
leaq 0xe021(%rip), %rax      # 0x14580
movq (%rax), %rax
movl $0x1, 0x13c(%rax)
jmp 0x6510
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: gprinit
void gprinit ()
{
  XEvent ev;

  XSelectInput(d, w, ExposureMask|PointerMotionMask|ButtonPressMask
               |ButtonReleaseMask|KeyPressMask|StructureNotifyMask);
  XMapRaised(d, w);
  XWindowEvent(d, w, StructureNotifyMask, &ev);
  grabpointer();
}

// Assembly:
subq $0xc8, %rsp
movq 0xde51(%rip), %rdi      # 0x14628
movq 0xde52(%rip), %rsi      # 0x14630
movl $0x2804d, %edx          # imm = 0x2804D
callq 0x43e0
movq 0xde39(%rip), %rdi      # 0x14628
movq 0xde3a(%rip), %rsi      # 0x14630
callq 0x4560
movq 0xde26(%rip), %rdi      # 0x14628
movq 0xde27(%rip), %rsi      # 0x14630
leaq 0x8(%rsp), %rcx
movl $0x20000, %edx          # imm = 0x20000
callq 0x4350
callq 0x5d04
addq $0xc8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: buildpixmaps
void buildpixmaps()
{
  int i;

  for (i=0; i<NUMPIXMAPS; i++)
    bmaps[i].p =
      XCreatePixmapFromBitmapData(d, w, bmaps[i].bits,
                                  bmaps[i].width, bmaps[i].height,
                                  pixels[opt->cpi[bmaps[i].color]],
                                  pixels[opt->cpi[COLOR_BG]],
                                  depth);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
xorl %ebx, %ebx
leaq 0xcd93(%rip), %r14      # 0x13830
leaq 0xdadc(%rip), %r15      # 0x14580
movq 0xdb7d(%rip), %rdi      # 0x14628
movq 0xdb7e(%rip), %rsi      # 0x14630
movq 0x8(%rbx,%r14), %rdx
movl (%rbx,%r14), %ecx
movl 0x4(%rbx,%r14), %r8d
movq 0xdb49(%rip), %rax      # 0x14610
movq (%r15), %r10
movl 0x18(%rbx,%r14), %r9d
movslq 0xf0(%r10,%r9,4), %r9
movq (%rax,%r9,8), %r9
movslq 0xf0(%r10), %r10
movl 0xdb7b(%rip), %r11d     # 0x14664
pushq %r11
pushq (%rax,%r10,8)
callq 0x42d0
addq $0x10, %rsp
movq %rax, 0x10(%rbx,%r14)
addq $0x20, %rbx
cmpq $0xa0, %rbx
jne 0x6aa4
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: multiline
void multiline(segments, number)
     XSegment *segments;
     int number;
{
  int i;
  XSegment seg[number]; // This is a GCC extension, use malloc otherwise
  for (i = 0; i < number; i++)
    {
      seg[i].x1 = (segments[i].x1-XOFF)*XM/XD;
      seg[i].x2 = (segments[i].x2-XOFF)*XM/XD;
      seg[i].y1 = (segments[i].y1-YOFF)*XM/XD;
      seg[i].y2 = (segments[i].y2-YOFF)*XM/XD;
    }
  XDrawSegments (d, w, DrawGC, seg, number);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, %r8d
movl %esi, %eax
movq %rsp, %rcx
leaq 0xf(,%rax,8), %rdx
andq $-0x10, %rdx
subq %rdx, %rcx
movq %rcx, %rsp
testl %esi, %esi
jle 0x6fcf
xorl %edx, %edx
movl $0xfffffea2, %esi       # imm = 0xFFFFFEA2
movswl (%rdi,%rdx,8), %r9d
leal (,%r9,8), %r10d
subl %r9d, %r10d
addl %esi, %r10d
movslq %r10d, %r9
imulq $0x66666667, %r9, %r9   # imm = 0x66666667
movq %r9, %r10
shrq $0x3f, %r10
shrq $0x22, %r9
addl %r10d, %r9d
movw %r9w, (%rcx,%rdx,8)
movswl 0x4(%rdi,%rdx,8), %r9d
leal (,%r9,8), %r10d
subl %r9d, %r10d
addl %esi, %r10d
movslq %r10d, %r9
imulq $0x66666667, %r9, %r9   # imm = 0x66666667
movq %r9, %r10
shrq $0x3f, %r10
shrq $0x22, %r9
addl %r10d, %r9d
movw %r9w, 0x4(%rcx,%rdx,8)
movswl 0x2(%rdi,%rdx,8), %r9d
leal (,%r9,8), %r10d
subl %r9d, %r10d
addl %esi, %r10d
movslq %r10d, %r9
imulq $0x66666667, %r9, %r9   # imm = 0x66666667
movq %r9, %r10
shrq $0x3f, %r10
shrq $0x22, %r9
addl %r10d, %r9d
movw %r9w, 0x2(%rcx,%rdx,8)
movswl 0x6(%rdi,%rdx,8), %r9d
leal (,%r9,8), %r10d
subl %r9d, %r10d
addl %esi, %r10d
movslq %r10d, %r9
imulq $0x66666667, %r9, %r9   # imm = 0x66666667
movq %r9, %r10
shrq $0x3f, %r10
shrq $0x22, %r9
addl %r10d, %r9d
movw %r9w, 0x6(%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x6efd
movq 0xd652(%rip), %rdi      # 0x14628
movq 0xd653(%rip), %rsi      # 0x14630
movq 0xd694(%rip), %rdx      # 0x14678
callq 0x4070
movq %rbp, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/jrrk[P]cbzone/c_gpr.c
// Function: gprsetclippingactive
void gprsetclippingactive(flag)
     Bool flag;
{
  if (flag) {
    XSetClipRectangles (d, DrawGC, 0, 0, &clipr, 1, YXBanded);
    XSetClipRectangles (d, EraseGC, 0, 0, &clipr, 1, YXBanded);
  } else {
    XSetClipMask (d, DrawGC, None);
    XSetClipMask (d, EraseGC, None);
  }
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edi, %eax
movq 0xd40a(%rip), %rdi      # 0x14628
movq 0xd453(%rip), %rsi      # 0x14678
testl %eax, %eax
je 0x7274
movl $0x3, %ebp
movl %ebp, (%rsp)
leaq 0xd468(%rip), %rbx      # 0x146a0
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
movl $0x1, %r9d
callq 0x4520
movq 0xd3d7(%rip), %rdi      # 0x14628
movq 0xd430(%rip), %rsi      # 0x14688
movl %ebp, (%rsp)
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
movl $0x1, %r9d
callq 0x4520
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
xorl %edx, %edx
callq 0x4120
movq 0xd3a6(%rip), %rdi      # 0x14628
movq 0xd3ff(%rip), %rsi      # 0x14688
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4120