LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x163d
leal 0x7e(%rdi), %eax
jmp 0x1652
movl %edi, %eax
andl $0xe0, %eax
imull $0x2ab, %eax, %eax      # imm = 0x2AB
shrl $0x10, %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_O1/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 0x16e3
movzwl %ax, %esi
addl %esi, %esi
leal 0x1f(%rsi), %eax
movzbl %dil, %ecx
leal -0x40(%rcx), %edx
cmpw $0x5e, %dx
jbe 0x170c
movzwl %cx, %ecx
addl $0xffffff61, %ecx       # imm = 0xFFFFFF61
cmpw $0x5d, %cx
ja 0x1726
leal -0x7e(%rdi), %edx
addb $0x20, %sil
jmp 0x1740
movl %edi, %edx
andl $0xf000, %edx           # imm = 0xF000
movb $0x1, %cl
cmpl $0xe000, %edx           # imm = 0xE000
jne 0x1722
movzwl %ax, %esi
addl %esi, %esi
leal -0x61(%rsi), %eax
movzbl %dil, %edx
leal -0x40(%rdx), %r8d
cmpw $0x5e, %r8w
ja 0x172a
leal -0x1f(%rdi), %ecx
leal -0x20(%rdi), %edx
cmpb $0x60, %cl
movzbl %dl, %esi
movzbl %cl, %edx
cmovael %esi, %edx
xorl %ecx, %ecx
jmp 0x1748
xorl %eax, %eax
jmp 0x1746
movb $0x1, %cl
jmp 0x1746
movzwl %dx, %edx
addl $0xffffff61, %edx       # imm = 0xFFFFFF61
cmpw $0x5d, %dx
ja 0x1746
leal -0x7e(%rdi), %edx
addb $-0x60, %sil
xorl %ecx, %ecx
movl %esi, %eax
jmp 0x1748
xorl %edx, %edx
movzbl %al, %eax
shll $0x8, %eax
movzbl %dl, %edx
orl %eax, %edx
xorl %eax, %eax
testb %cl, %cl
cmovel %edx, %eax
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x276e
movb %dil, (%rsi)
movl $0x1, %eax
retq
movl %edi, %eax
cmpl $0x7ff, %edi            # imm = 0x7FF
jg 0x2791
shrl $0x6, %eax
addb $-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 0x2765
cmpl $0xffff, %edi           # imm = 0xFFFF
jg 0x27cc
movl %edi, %eax
shrl $0xc, %eax
addb $-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
jg 0x2765
movl %edi, %eax
shrl $0x12, %eax
addb $-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_O1/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 0x28ef
xorl %ebp, %ebp
xorl %r14d, %r14d
testl %r14d, %r14d
je 0x2886
movl %eax, %ecx
andl $0xc0, %ecx
cmpl $0x80, %ecx
jne 0x28f6
shll $0x6, %ebp
andl $0x3f, %eax
orl %eax, %ebp
decl %r14d
jne 0x28de
jmp 0x28ff
cmpl $0x80, %eax
jl 0x28fd
movl %eax, %ecx
andl $0xe0, %ecx
cmpl $0xc0, %ecx
jne 0x28a8
andl $0x1f, %eax
movl $0x1, %r14d
jmp 0x28dc
movl %eax, %ecx
andl $0xf0, %ecx
cmpl $0xe0, %ecx
jne 0x28c3
andl $0xf, %eax
movl $0x2, %r14d
jmp 0x28dc
movl %eax, %ecx
andl $0xf8, %ecx
cmpl $0xf0, %ecx
jne 0x28f6
andl $0x7, %eax
movl $0x3, %r14d
movl %eax, %ebp
movq %rbx, %rdi
callq 0x1080
cmpl $-0x1, %eax
jne 0x2862
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x28ff
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
jmp 0x28ff
movl %eax, %ebp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/joltikeq6464v13/ref/encrypt.c
// Function: crypto_aead_encrypt
int crypto_aead_encrypt(unsigned char *c, unsigned long long *clen,
                        const unsigned char *m, unsigned long long mlen,
                        const unsigned char *ad, unsigned long long adlen,
                        const unsigned char *nsec,
                        const unsigned char *npub,
                        const unsigned char *k
                        ) 
{
    
    size_t outlen = 0;
    joltik_aead_encrypt(ad, adlen, m, mlen, k, npub, c, &outlen);
    *clen = outlen;
    (void)nsec;
    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %r9, %r11
movq %r8, %r10
movq %rsi, %rbx
movq %rdi, %rax
movq 0x30(%rsp), %r8
movq 0x28(%rsp), %r9
movq %rsp, %r14
movq $0x0, (%r14)
movq %r10, %rdi
movq %r11, %rsi
pushq %r14
pushq %rax
callq 0x10e0
addq $0x10, %rsp
movq (%r14), %rax
movq %rax, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/mjosaarinen[P]brutus/crypto_aead/joltikeq6464v13/ref/joltik.c
// Function: get_block_number_from_tag
uint64_t get_block_number_from_tag(uint8_t *tag) {
    return
    ((uint64_t)(tag[ 0]&0x7f) << 56 ) ^
    ((uint64_t)tag[ 1] << 48 ) ^
    ((uint64_t)tag[ 2] << 40 ) ^
    ((uint64_t)tag[ 3] << 32 ) ^
    ((uint64_t)tag[ 4] << 24 ) ^
    ((uint64_t)tag[ 5] << 16 ) ^
    ((uint64_t)tag[ 6] <<  8 ) ^
    ((uint64_t)tag[ 7]       )
    ;
}

// Assembly:
movzbl (%rdi), %eax
andl $0x7f, %eax
shlq $0x38, %rax
movzbl 0x1(%rdi), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movzbl 0x2(%rdi), %eax
shlq $0x28, %rax
orq %rcx, %rax
movzbl 0x3(%rdi), %ecx
shlq $0x20, %rcx
orq %rax, %rcx
movzbl 0x4(%rdi), %eax
shll $0x18, %eax
orq %rcx, %rax
movzbl 0x5(%rdi), %ecx
shll $0x10, %ecx
orq %rax, %rcx
movzbl 0x6(%rdi), %edx
shll $0x8, %edx
orq %rcx, %rdx
movzbl 0x7(%rdi), %eax
xorq %rdx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1dfb(%rip), %ymm2 # 0x3100
vpmovsxbq 0x1df6(%rip), %ymm3 # 0x3104
vpmovsxbq 0x1df1(%rip), %ymm4 # 0x3108
vpmovsxbq 0x1dec(%rip), %ymm5 # 0x310c
vpmovsxbq 0x1de7(%rip), %ymm6 # 0x3110
vpmovsxbq 0x1de2(%rip), %ymm7 # 0x3114
vpmovsxbq 0x1ddd(%rip), %ymm8 # 0x3118
vpmovsxbq 0x1dd8(%rip), %ymm9 # 0x311c
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_O1/mjosaarinen[P]brutus/crypto_aead/joltikeq6464v13/ref/tweakableBC.c
// Function: G
uint64_t G (uint64_t tweakey, uint8_t alpha) {
  uint64_t i;
  uint64_t shift;
  uint8_t tmp;
  for(i=0; i<16; i++) {
    shift=4ULL*i;

    tmp=(tweakey>>shift)&0xf;
    tweakey&=0xffffffffffffffffULL^(0xfULL<<shift);

    tmp=multi(tmp, alpha);
    tweakey^=((uint64_t)tmp)<<shift;
  }

  return tweakey;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rax
xorl %r14d, %r14d
movl $0xf, %r15d
movzbl %sil, %ebx
shrxq %r14, %rax, %rdi
shlxq %r14, %r15, %rcx
andnq %rax, %rcx, %r12
andl $0xf, %edi
movl %ebx, %esi
callq 0x1090
movzbl %al, %eax
shlxq %r14, %rax, %rax
xorq %r12, %rax
addq $0x4, %r14
cmpq $0x40, %r14
jne 0x1c43
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1490(%rip), %ymm2 # 0x311c
vpxor %xmm0, %xmm0, %xmm0
vpbroadcastq 0x1587(%rip), %ymm3 # 0x3220
xorl %eax, %eax
leaq 0x15ce(%rip), %rcx      # 0x3270
vpbroadcastq 0x157d(%rip), %ymm4 # 0x3228
vpbroadcastq 0x157c(%rip), %ymm5 # 0x3230
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 0x1cb4
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_O1/ebiggers[P]xpack/lib/xpack_compress.c
// Function: record_litrunlen
static void
record_litrunlen(struct xpack_compressor *c, struct match *match, u32 litrunlen)
{
	unsigned litrunlen_sym;

	if (litrunlen >= LITRUNLEN_ALPHABET_SIZE - 1) {
		u32 v = litrunlen - (LITRUNLEN_ALPHABET_SIZE - 1);
		if (v < 0xFF) {
			c->extra_bytes[c->num_extra_bytes++] = v;
		} else {
			v -= 0xFF;
			c->extra_bytes[c->num_extra_bytes++] = 0xFF;
			c->extra_bytes[c->num_extra_bytes++] = (u8)(v >> 0);
			c->extra_bytes[c->num_extra_bytes++] = (u8)(v >> 8);
			c->extra_bytes[c->num_extra_bytes++] = (u8)(v >> 16);
		}
		litrunlen_sym = LITRUNLEN_ALPHABET_SIZE - 1;
	} else {
		litrunlen_sym = litrunlen;
	}

	match->litrunlen_sym = litrunlen_sym;
	c->freqs.litrunlen[litrunlen_sym]++;
}

// Assembly:
cmpl $0xf, %edx
jb 0x3d20
leal -0xf(%rdx), %r8d
movl 0x322c(%rdi), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x322c(%rdi)
cmpl $0xfe, %r8d
ja 0x3cd6
movb %r8b, 0x171798(%rdi,%rax)
movl $0xf, %edx
jmp 0x3d20
pushq %rbx
addl $0xfffffef2, %edx       # imm = 0xFFFFFEF2
movb $-0x1, 0x171798(%rdi,%rax)
leal 0x2(%rax), %ebx
movl %ebx, 0x322c(%rdi)
movl %ecx, %ecx
movb %dl, 0x171798(%rdi,%rcx)
leal 0x3(%rax), %ecx
movl %ecx, 0x322c(%rdi)
movb %dh, 0x171798(%rdi,%rbx)
shrl $0x10, %edx
addl $0x4, %eax
movl %eax, 0x322c(%rdi)
movb %dl, 0x171798(%rdi,%rcx)
movl $0xf, %edx
popq %rbx
movb %dl, (%rsi)
movl %edx, %eax
incl 0x428(%rdi,%rax,4)
retq
// File: /workspace/github_c_makefile_star2_O1/ebiggers[P]xpack/lib/xpack_compress.c
// Function: record_length
static void
record_length(struct xpack_compressor *c, struct match *match, u32 length)
{
	unsigned length_sym;

	length -= MIN_MATCH_LEN;

	if (length >= LENGTH_ALPHABET_SIZE - 1) {
		u32 v = length - (LENGTH_ALPHABET_SIZE - 1);
		if (v < 0xFF) {
			c->extra_bytes[c->num_extra_bytes++] = v;
		} else {
			v -= 0xFF;
			c->extra_bytes[c->num_extra_bytes++] = 0xFF;
			c->extra_bytes[c->num_extra_bytes++] = (u8)(v >> 0);
			c->extra_bytes[c->num_extra_bytes++] = (u8)(v >> 8);
			c->extra_bytes[c->num_extra_bytes++] = (u8)(v >> 16);
		}
		length_sym = LENGTH_ALPHABET_SIZE - 1;
	} else {
		length_sym = length;
	}

	match->length_sym = length_sym;
	c->freqs.length[length_sym]++;
}

// Assembly:
leal -0x2(%rdx), %eax
cmpl $0x3f, %eax
jb 0x3da9
leal -0x41(%rdx), %r8d
movl 0x322c(%rdi), %eax
leal 0x1(%rax), %ecx
movl %ecx, 0x322c(%rdi)
cmpl $0xfe, %r8d
ja 0x3d5f
movb %r8b, 0x171798(%rdi,%rax)
movl $0x3f, %eax
jmp 0x3da9
pushq %rbx
addl $0xfffffec0, %edx       # imm = 0xFFFFFEC0
movb $-0x1, 0x171798(%rdi,%rax)
leal 0x2(%rax), %ebx
movl %ebx, 0x322c(%rdi)
movl %ecx, %ecx
movb %dl, 0x171798(%rdi,%rcx)
leal 0x3(%rax), %ecx
movl %ecx, 0x322c(%rdi)
movb %dh, 0x171798(%rdi,%rbx)
shrl $0x10, %edx
addl $0x4, %eax
movl %eax, 0x322c(%rdi)
movb %dl, 0x171798(%rdi,%rcx)
movl $0x3f, %eax
popq %rbx
movb %al, 0x1(%rsi)
movl %eax, %eax
incl 0x468(%rdi,%rax,4)
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4b0c
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 0x4ace
shrl $0xc, %esi
imull %eax, %esi
addl %esi, %ecx
imull $0xc8, %eax, %edx
movb $0x1, %al
cmpl %edx, %ecx
jae 0x4b38
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 0x4b13
movl $0x0, 0x50(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x485b
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 0x986c(%rip), %xmm5     # 0xe004
movss 0x9868(%rip), %xmm6     # 0xe008
movss 0x9864(%rip), %xmm7     # 0xe00c
movss 0x985f(%rip), %xmm8     # 0xe010
movswl (%rdx), %edi
movswl 0x2(%rdx), %r8d
xorps %xmm10, %xmm10
cvtsi2ss %edi, %xmm10
xorps %xmm11, %xmm11
cvtsi2ss %r8d, %xmm11
addss %xmm1, %xmm10
addss %xmm0, %xmm11
movaps %xmm2, %xmm12
mulss %xmm11, %xmm12
mulss %xmm3, %xmm11
movaps %xmm10, %xmm9
mulss %xmm3, %xmm10
movswl 0x4(%rdx), %edi
mulss %xmm2, %xmm9
xorps %xmm13, %xmm13
cvtsi2ss %edi, %xmm13
addss %xmm11, %xmm9
subss %xmm10, %xmm12
movaps %xmm5, %xmm10
addss %xmm4, %xmm13
maxss %xmm12, %xmm10
divss %xmm10, %xmm9
mulss %xmm6, %xmm9
divss %xmm10, %xmm13
addss %xmm7, %xmm9
mulss %xmm6, %xmm13
movaps %xmm8, %xmm10
cvttss2si %xmm9, %edi
subss %xmm13, %xmm10
cvttss2si %xmm10, %r8d
movw %di, (%rcx,%rsi,4)
movw %r8w, 0x2(%rcx,%rsi,4)
addq $0x6, %rdx
incq %rsi
cmpl %esi, %eax
jne 0x47b1
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x49fa
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 0x96cd(%rip), %xmm5     # 0xe004
movss 0x96c9(%rip), %xmm6     # 0xe008
movss 0x96c5(%rip), %xmm7     # 0xe00c
movss 0x96c0(%rip), %xmm8     # 0xe010
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
divss %xmm10, %xmm9
mulss %xmm6, %xmm9
divss %xmm10, %xmm13
addss %xmm7, %xmm9
mulss %xmm6, %xmm13
movaps %xmm8, %xmm10
cvttss2si %xmm9, %edi
subss %xmm13, %xmm10
cvttss2si %xmm10, %r8d
movw %di, (%rcx,%rsi,4)
movw %r8w, 0x2(%rcx,%rsi,4)
addq $0x6, %rdx
incq %rsi
cmpl %esi, %eax
jne 0x4950
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4ba5
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 0x9522(%rip), %xmm5     # 0xe004
movss 0x951e(%rip), %xmm6     # 0xe008
movss 0x951a(%rip), %xmm7     # 0xe00c
movss 0x9515(%rip), %xmm8     # 0xe010
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
divss %xmm10, %xmm9
mulss %xmm6, %xmm9
divss %xmm10, %xmm13
addss %xmm7, %xmm9
mulss %xmm6, %xmm13
movaps %xmm8, %xmm10
cvttss2si %xmm9, %edi
subss %xmm13, %xmm10
cvttss2si %xmm10, %r8d
movw %di, (%rcx,%rsi,4)
movw %r8w, 0x2(%rcx,%rsi,4)
addq $0x6, %rdx
incq %rsi
cmpl %esi, %eax
jne 0x4afb
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq %rdi, %r14
leaq 0x10(%rdi), %rbx
movq (%rdi), %rax
movq 0x8(%rax), %r15
movl (%r15), %esi
testl %esi, %esi
je 0x4e2c
addq $0x4, %r15
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6dc3
movslq -0x4(%r15), %rax
leaq (%rbx,%rax,4), %rbx
movl (%r15), %esi
addq $0x4, %r15
testl %esi, %esi
jne 0x4e0f
movq (%r14), %rax
movq 0x10(%rax), %r14
movl (%r14), %esi
testl %esi, %esi
je 0x4e5d
addq $0x4, %r14
sarl %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x6e78
movslq -0x4(%r14), %rax
leaq (%rbx,%rax,4), %rbx
movl (%r14), %esi
addq $0x4, %r14
testl %esi, %esi
jne 0x4e3e
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xe82f(%rip), %rax      # 0x14648
movq %rax, 0xe830(%rip)      # 0x14650
movl $0x10, %edi
callq 0x4190
movq %rax, 0xe7ef(%rip)      # 0x14620
leaq 0xe758(%rip), %rcx      # 0x14590
movq (%rcx), %rcx
movl $0x0, 0xf0(%rcx)
movq 0xe80c(%rip), %rdx      # 0x14658
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
movl $0x1, 0xf8(%rcx,%rax,4)
incq %rax
cmpq $0x11, %rax
jne 0x5e6e
movl $0x2, %eax
movl %eax, 0xe7d3(%rip)      # 0x14660
movl %eax, 0xe7d1(%rip)      # 0x14664
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xe786(%rip), %rdi      # 0x14630
testq %rdi, %rdi
je 0x5eb4
callq 0x4250
movslq 0xe7ad(%rip), %rax      # 0x14668
leaq 0xe6ce(%rip), %r15      # 0x14590
movq (%r15), %rcx
movslq 0x148(%rcx), %rdi
imulq %rax, %rdi
leaq (%rdi,%rdi), %rax
shlq $0x4, %rdi
subq %rax, %rdi
callq 0x4190
movq %rax, 0xe749(%rip)      # 0x14630
movl $0x12, %r12d
leaq 0x8(%rsp), %r13
leaq 0x82bf(%rip), %r14      # 0xe1b8
xorl %ebp, %ebp
movq (%r15), %rax
movl 0xf0(%rax,%r12,4), %eax
cmpq %rax, %r12
jne 0x6030
movq 0xe722(%rip), %rdi      # 0x14638
movq 0xe72b(%rip), %rsi      # 0x14648
movq %r12, %rdx
shlq $0x4, %rdx
subq %r12, %rdx
subq %r12, %rdx
addq 0xe6f7(%rip), %rdx      # 0x14628
movq %r13, %rcx
callq 0x4480
movslq %ebp, %rbx
movq %rbx, %rdi
shlq $0x4, %rdi
subq %rbx, %rdi
subq %rbx, %rdi
addq 0xe6e0(%rip), %rdi      # 0x14630
movzwl 0x10(%rsp), %edx
movzwl 0x12(%rsp), %ecx
movzwl 0x14(%rsp), %r8d
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
incl %ebx
movq (%r15), %rax
movl 0x148(%rax), %eax
cmpl $0x2, %eax
jl 0x602e
movslq %ebx, %r13
leaq (,%r13,2), %rcx
shlq $0x4, %r13
subq %rcx, %r13
movl $0x1, %ebx
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
mulsd 0x813c(%rip), %xmm0     # 0xe0e0
decl %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
addsd 0x812f(%rip), %xmm0     # 0xe0e8
cvtsd2ss %xmm0, %xmm0
movzwl 0x10(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
mulss %xmm0, %xmm1
cvttss2si %xmm1, %edx
movzwl 0x12(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movq 0xe64c(%rip), %rdi      # 0x14630
mulss %xmm0, %xmm1
cvttss2si %xmm1, %ecx
movzwl 0x14(%rsp), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
addq %r13, %rdi
mulss %xmm0, %xmm1
cvttss2si %xmm1, %r8d
movq %r14, %rsi
xorl %eax, %eax
callq 0x42e0
incl %ebx
movq (%r15), %rax
movl 0x148(%rax), %eax
addq $0xe, %r13
cmpl %eax, %ebx
jl 0x5f95
addl %ebx, %ebp
leaq 0x8(%rsp), %r13
jmp 0x6030
movl %ebx, %ebp
leaq -0x1(%r12), %rax
cmpq $0xc, %r12
movq %rax, %r12
ja 0x5efb
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xe538(%rip), %rax      # 0x14590
movq (%rax), %rax
xorl %ecx, %ecx
xorl %edx, %edx
leaq 0x12(%rcx), %rsi
movl 0x138(%rax,%rcx,4), %edi
cmpq %rdi, %rsi
jne 0x6084
movl %edx, 0x138(%rax,%rcx,4)
cmpq $0xc, %rsi
jb 0x6097
addl 0x148(%rax), %edx
jmp 0x6099
movslq %edi, %rsi
movl 0xf0(%rax,%rsi,4), %esi
movl %esi, 0x138(%rax,%rcx,4)
jmp 0x6099
incl %edx
decq %rcx
cmpq $-0x13, %rcx
jne 0x605f
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xe56d(%rip), %rdi      # 0x14628
testq %rdi, %rdi
je 0x60c5
callq 0x4250
movl $0x10a, %edi            # imm = 0x10A
callq 0x4190
movq %rax, 0xe552(%rip)      # 0x14628
movl $0xb, %r12d
leaq 0xe4ad(%rip), %r13      # 0x14590
leaq 0x8(%rsp), %r14
leaq 0x80c9(%rip), %r15      # 0xe1b8
xorl %ebp, %ebp
movq 0xe540(%rip), %rdi      # 0x14638
movq 0xe549(%rip), %rsi      # 0x14648
movq (%r13), %rax
movq (%rax,%r12,8), %rdx
movq %r14, %rcx
callq 0x4480
cmpl $0x1, 0x10(%rbx)
ja 0x613d
movl 0x10(%rsp), %eax
movl 0x14(%rsp), %ecx
movzwl 0x12(%rsp), %edx
cmpw %dx, %ax
cmoval %eax, %edx
cmpw %cx, %dx
cmovbel %ecx, %edx
movw %dx, 0x14(%rsp)
movw %dx, 0x12(%rsp)
movw %dx, 0x10(%rsp)
movq 0xe4e4(%rip), %rdi      # 0x14628
addq %rbp, %rdi
movzwl 0x10(%rsp), %edx
movzwl 0x12(%rsp), %ecx
movzwl 0x14(%rsp), %r8d
movq %r15, %rsi
xorl %eax, %eax
callq 0x42e0
incq %r12
addq $0xe, %rbp
cmpq $0x1e, %r12
jne 0x60f1
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/jrrk[P]cbzone/c_gpr.c
// Function: writecolormap
int writecolormap(status)
     Bool* status;
{
  int i, j;
  XColor color;
  int ind = 0;
  int num = 0;

  *status = True;
  if (pixels != NULL)
    free(pixels);
  pixels = (Pixel*) calloc(cw, sizeof(Pixel));
  for (i=L_COLOR; *status && i>=0; i--)
    if (opt->cpi[i] == i)
      if (opt->fading_colors < 2 || i<FF_COLOR) {
        XParseColor(d, cmap, bases[i].name, &color);
        if (XAllocColor(d, cmap, &color))
          pixels[num++] = color.pixel;
        else
          *status = False;
      }
      else
        for (j=0; *status && j<opt->fading_colors; j++) {
          XParseColor(d, cmap, fcnames[ind++].name, &color);
          if (XAllocColor(d, cmap, &color))
            pixels[num++] = color.pixel;
          else
            *status = False;
        }
  return num;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1, (%rdi)
movq 0xe485(%rip), %rdi      # 0x14620
testq %rdi, %rdi
je 0x61a5
callq 0x4250
movslq 0xe4b8(%rip), %rdi      # 0x14664
movl $0x8, %esi
callq 0x44d0
movq %rax, 0xe463(%rip)      # 0x14620
cmpl $0x0, (%rbx)
je 0x6327
xorl %r14d, %r14d
movl $0x12, %r12d
leaq 0x8(%rsp), %r15
xorl %ebp, %ebp
leaq 0xe3b3(%rip), %rax      # 0x14590
movq (%rax), %rax
movl 0xf0(%rax,%r12,4), %ecx
cmpq %rcx, %r12
jne 0x6311
cmpl $0x2, 0x148(%rax)
setl %al
cmpq $0xc, %r12
setb %cl
orb %al, %cl
je 0x6269
movq 0xe42b(%rip), %rdi      # 0x14638
movq 0xe43c(%rip), %rsi      # 0x14650
movq %r12, %rdx
shlq $0x4, %rdx
subq %r12, %rdx
subq %r12, %rdx
addq 0xe400(%rip), %rdx      # 0x14628
movq %r15, %rcx
callq 0x4480
movq 0xe401(%rip), %rdi      # 0x14638
movq 0xe412(%rip), %rsi      # 0x14650
movq %r15, %rdx
callq 0x44f0
testl %eax, %eax
je 0x630b
movq 0x8(%rsp), %rax
movq 0xe3c6(%rip), %rcx      # 0x14620
movslq %r14d, %rdx
incl %r14d
movq %rax, (%rcx,%rdx,8)
jmp 0x6311
cmpl $0x0, (%rbx)
je 0x6311
movslq %ebp, %rbp
leaq (,%rbp,2), %rax
movq %rbp, (%rsp)
shlq $0x4, %rbp
subq %rax, %rbp
xorl %r13d, %r13d
leaq 0xe2fe(%rip), %rax      # 0x14590
movq (%rax), %rax
cmpl 0x148(%rax), %r13d
jge 0x6302
movq 0xe393(%rip), %rdi      # 0x14638
movq 0xe3a4(%rip), %rsi      # 0x14650
movq 0xe37d(%rip), %rdx      # 0x14630
addq %rbp, %rdx
movq %r15, %rcx
callq 0x4480
movq 0xe373(%rip), %rdi      # 0x14638
movq 0xe384(%rip), %rsi      # 0x14650
movq %r15, %rdx
callq 0x44f0
testl %eax, %eax
je 0x62f0
movq 0x8(%rsp), %rax
movq 0xe33c(%rip), %rcx      # 0x14620
movslq %r14d, %rdx
incl %r14d
movq %rax, (%rcx,%rdx,8)
jmp 0x62f6
movl $0x0, (%rbx)
incq %r13
addq $0xe, %rbp
cmpl $0x0, (%rbx)
jne 0x628b
movq (%rsp), %rbp
addq %r13, %rbp
jmp 0x6311
movl $0x0, (%rbx)
addq $-0x1, %r12
setb %al
cmpl $0x0, (%rbx)
je 0x632a
testb %al, %al
jne 0x61d6
jmp 0x632a
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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, 0xe31d(%rip)      # 0x1466c
movl %eax, 0xe313(%rip)      # 0x14668
leaq 0xe234(%rip), %rcx      # 0x14590
movq (%rcx), %r15
cmpl %eax, 0x13c(%r15)
je 0x6384
movl $0x2, %eax
movl %eax, 0xe2f9(%rip)      # 0x1466c
movl %eax, 0xe2eb(%rip)      # 0x14664
movl %eax, 0xe2e1(%rip)      # 0x14660
jmp 0x6432
movq 0xe29d(%rip), %r12      # 0x14628
leaq 0xfc(%r12), %rax
movq %rax, (%rsp)
movl $0x12, %r13d
movl $0x12, %ebp
cmpq $0x11, %r13
ja 0x63df
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 0x63df
decq %rbp
addq $-0xe, %r14
cmpq %r13, %rbp
ja 0x63c1
movq %r13, %rbp
movl %ebp, 0xf0(%r15,%r13,4)
movl %ebp, %eax
cmpq %rax, %r13
jne 0x6412
cmpl $0x1, 0x148(%r15)
leaq 0xe26b(%rip), %rax      # 0x14668
leaq 0xe268(%rip), %rcx      # 0x1466c
cmoveq %rcx, %rax
cmpq $0xc, %r13
cmovbq %rcx, %rax
incl (%rax)
subq $0x1, %r13
jae 0x639d
movl 0x148(%r15), %eax
imull 0xe242(%rip), %eax      # 0x14668
addl 0xe240(%rip), %eax      # 0x1466c
movl %eax, 0xe232(%rip)      # 0x14664
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xe219(%rip), %eax      # 0x14660
cmpl %eax, 0xe217(%rip)      # 0x14664
jle 0x6534
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movslq 0xe20b(%rip), %r14      # 0x14670
leaq 0x7d04(%rip), %rbx      # 0xe170
movq %r14, %rcx
incq %r14
movl %r14d, 0xe1f7(%rip)     # 0x14670
leal -0x1(%rcx), %edx
cmpl $0x9, %edx
jae 0x64dd
movslq (%rbx,%rcx,8), %r15
movslq 0x4(%rbx,%rcx,8), %rbp
cmpl %r15d, %ebp
jle 0x64c8
movq %rbp, %r13
shlq $0x4, %r13
subq %rbp, %r13
subq %rbp, %r13
movq %r15, %r12
shlq $0x4, %r12
subq %r15, %r12
subq %r15, %r12
movq 0xe178(%rip), %rsi      # 0x14628
leaq (%rsi,%r13), %rdi
addq %r12, %rsi
callq 0x4470
decq %rbp
addq $-0xe, %r13
cmpq %r15, %rbp
jg 0x64a9
callq 0x633c
movl 0xe18d(%rip), %eax      # 0x14660
cmpl %eax, 0xe18b(%rip)      # 0x14664
jg 0x646c
jmp 0x6526
cmpl $0xa, %ecx
je 0x6510
testl %ecx, %ecx
jne 0x64c8
subl 0xe180(%rip), %eax      # 0x1466c
cltd
idivl 0xe175(%rip)            # 0x14668
leaq 0xe096(%rip), %rcx      # 0x14590
movq (%rcx), %rcx
cmpl $0x2, %eax
movl $0x1, %edx
cmovll %edx, %eax
movl %eax, 0x148(%rcx)
jmp 0x64c8
leaq 0xe079(%rip), %rax      # 0x14590
movq (%rax), %rax
movl $0x1, 0x13c(%rax)
jmp 0x64c8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xdec1(%rip), %rdi      # 0x14638
movq 0xdec2(%rip), %rsi      # 0x14640
movl $0x2804d, %edx          # imm = 0x2804D
callq 0x43e0
movq 0xdea9(%rip), %rdi      # 0x14638
movq 0xdeaa(%rip), %rsi      # 0x14640
callq 0x4560
movq 0xde96(%rip), %rdi      # 0x14638
movq 0xde97(%rip), %rsi      # 0x14640
leaq 0x8(%rsp), %rcx
movl $0x20000, %edx          # imm = 0x20000
callq 0x4350
callq 0x5dc4
addq $0xc8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xce03(%rip), %r14      # 0x13840
leaq 0xdb4c(%rip), %r15      # 0x14590
movq 0xdbed(%rip), %rdi      # 0x14638
movq 0xdbee(%rip), %rsi      # 0x14640
movq 0x8(%rbx,%r14), %rdx
movl (%rbx,%r14), %ecx
movl 0x4(%rbx,%r14), %r8d
movq 0xdbb9(%rip), %rax      # 0x14620
movq (%r15), %r10
movl 0x18(%rbx,%r14), %r9d
movslq 0xf0(%r10,%r9,4), %r9
movq (%rax,%r9,8), %r9
movslq 0xf0(%r10), %r10
movl 0xdbeb(%rip), %r11d     # 0x14674
pushq %r11
pushq (%rax,%r10,8)
callq 0x42d0
addq $0x10, %rsp
movq %rax, 0x10(%rbx,%r14)
addq $0x20, %rbx
cmpq $0xa0, %rbx
jne 0x6a44
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/jrrk[P]cbzone/c_gpr.c
// Function: polyline
void polyline(points, number)
     XPoint *points;
     int number;
{
  int i;
  XPoint p[number]; // This is a GCC extension, use malloc otherwise
  for (i = 0; i < number; i++)
    {
      p[i].x = (points[i].x-XOFF)*XM/XD;
      p[i].y = (points[i].y-YOFF)*XM/XD;
    }
  XDrawLines(d, w, DrawGC, p, number, CoordModeOrigin);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %esi, %r8d
movl %esi, %eax
movq %rsp, %rcx
leaq 0xf(,%rax,4), %rdx
andq $-0x10, %rdx
subq %rdx, %rcx
movq %rcx, %rsp
testl %esi, %esi
jle 0x6e56
xorl %edx, %edx
movl $0xfffffea2, %esi       # imm = 0xFFFFFEA2
movswl (%rdi,%rdx,4), %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,4)
movswl 0x2(%rdi,%rdx,4), %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,4)
incq %rdx
cmpq %rdx, %rax
jne 0x6dec
movq 0xd7db(%rip), %rdi      # 0x14638
movq 0xd7dc(%rip), %rsi      # 0x14640
movq 0xd81d(%rip), %rdx      # 0x14688
xorl %r9d, %r9d
callq 0x4300
movq %rbp, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x6f77
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 0x6ea5
movq 0xd6ba(%rip), %rdi      # 0x14638
movq 0xd6bb(%rip), %rsi      # 0x14640
movq 0xd6fc(%rip), %rdx      # 0x14688
callq 0x4070
movq %rbp, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0xd472(%rip), %rdi      # 0x14638
movq 0xd4bb(%rip), %rsi      # 0x14688
testl %eax, %eax
je 0x721c
movl $0x3, %ebp
movl %ebp, (%rsp)
leaq 0xd4d0(%rip), %rbx      # 0x146b0
xorl %edx, %edx
xorl %ecx, %ecx
movq %rbx, %r8
movl $0x1, %r9d
callq 0x4520
movq 0xd43f(%rip), %rdi      # 0x14638
movq 0xd498(%rip), %rsi      # 0x14698
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 0xd40e(%rip), %rdi      # 0x14638
movq 0xd467(%rip), %rsi      # 0x14698
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4120
// File: /workspace/github_c_makefile_star2_O1/jrrk[P]cbzone/c_gpr.c
// Function: gprsetclipwindow
void gprsetclipwindow(window)
     Window_t *window;
{
  clipr.x = (window->base.x-XOFF)*XM/XD;
  clipr.y = (window->base.y-YOFF)*XM/XD;
  clipr.width = window->size.x*XM/XD;
  clipr.height =  window->size.y*YM/YD;
}

// Assembly:
movl (%rdi), %eax
leal (,%rax,8), %ecx
subl %eax, %ecx
movl $0xfffffea2, %eax       # imm = 0xFFFFFEA2
addl %eax, %ecx
movslq %ecx, %rcx
imulq $0x66666667, %rcx, %rcx # imm = 0x66666667
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x22, %rcx
addl %edx, %ecx
movw %cx, 0xceee(%rip)       # 0x146b0
movl 0x4(%rdi), %ecx
leal (,%rcx,8), %edx
subl %ecx, %edx
addl %eax, %edx
movslq %edx, %rax
imulq $0x66666667, %rax, %rax # imm = 0x66666667
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x22, %rax
addl %ecx, %eax
movw %ax, 0xcec4(%rip)       # 0x146b2
movl 0x8(%rdi), %eax
leal (,%rax,8), %ecx
subl %eax, %ecx
movl $0xcccccccd, %eax       # imm = 0xCCCCCCCD
imulq %rax, %rcx
shrq $0x23, %rcx
movw %cx, 0xcea6(%rip)       # 0x146b4
movl 0xc(%rdi), %ecx
leal (,%rcx,8), %edx
subl %ecx, %edx
imulq %rax, %rdx
shrq $0x23, %rdx
movw %dx, 0xce8d(%rip)       # 0x146b6
retq