LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/svpv[P]rpmset/./base64pack.h
// Function: pack27x4c18
static inline void pack27x4c18(const uint32_t *v, char *s, unsigned e)
{
    // 66663|36666
    s[ 0] = base64[ v[0] & Mask( 6)];
    s[ 1] = base64[(v[0] & Mask(12)) >>  6];
    s[ 2] = base64[(v[0] & Mask(18)) >> 12];
    s[ 3] = base64[(v[0] & Mask(24)) >> 18];
    s[ 4] = base64[(v[0] & Mask(27)) >> 24 |
		   (v[1] & Mask( 3)) <<  3];
    s[ 5] = base64[(v[1] & Mask( 9)) >>  3];
    s[ 6] = base64[(v[1] & Mask(15)) >>  9];
    s[ 7] = base64[(v[1] & Mask(21)) >> 15];
    s[ 8] = base64[(v[1] & Mask(27)) >> 21];
    s[ 9] = base64[ v[2] & Mask( 6)];
    s[10] = base64[(v[2] & Mask(12)) >>  6];
    s[11] = base64[(v[2] & Mask(18)) >> 12];
    s[12] = base64[(v[2] & Mask(24)) >> 18];
    // The last number is skewed, low 12 bits in the last two bytes.
    s[13] = base64[(v[2] & Mask(27)) >> 24 |
		   (v[3] & Mask(15)) >> 12 << 3];
    s[14] = base64[(v[3] & Mask(21)) >> 15];
    s[15] = base64[(v[3] & Mask(27)) >> 21];
    s[16] = base64[ v[3] & Mask(6)];
    s[17] = base64[(v[3] & Mask(12)) >>  6];
    (void) e;
}

// Assembly:
movl (%rdi), %ecx
andl $0x3f, %ecx
leaq 0x11a7(%rip), %rax      # 0x9010
movb (%rcx,%rax), %cl
movb %cl, (%rsi)
movl (%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x1(%rsi)
movl (%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x2(%rsi)
movl (%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x3(%rsi)
movzbl 0x3(%rdi), %ecx
andl $0x7, %ecx
movl 0x4(%rdi), %edx
andl $0x7, %edx
leaq (%rcx,%rdx,8), %rcx
movb (%rax,%rcx), %cl
movb %cl, 0x4(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x3, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x5(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x9, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x6(%rsi)
movl 0x4(%rdi), %ecx
shrl $0xf, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x7(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x15, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x8(%rsi)
movl 0x8(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x9(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xa(%rsi)
movl 0x8(%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xb(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xc(%rsi)
movzbl 0xb(%rdi), %ecx
andl $0x7, %ecx
movl 0xc(%rdi), %edx
shrl $0x9, %edx
andl $0x38, %edx
orq %rcx, %rdx
movb (%rax,%rdx), %cl
movb %cl, 0xd(%rsi)
movl 0xc(%rdi), %ecx
shrl $0xf, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xe(%rsi)
movl 0xc(%rdi), %ecx
shrl $0x15, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xf(%rsi)
movl 0xc(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x10(%rsi)
movl 0xc(%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %al
movb %al, 0x11(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/svpv[P]rpmset/./base64pack.h
// Function: pack28x3c14
static inline void pack28x3c14(const uint32_t *v, char *s, unsigned e)
{
    s[ 0] = base64[ v[0] & Mask( 6)];
    s[ 1] = base64[(v[0] & Mask(12)) >>  6];
    s[ 2] = base64[(v[0] & Mask(18)) >> 12];
    s[ 3] = base64[(v[0] & Mask(24)) >> 18];
    s[ 4] = base64[(v[0] & Mask(28)) >> 24 |
	           (v[1] & Mask( 2)) <<  4];
    s[ 5] = base64[(v[1] & Mask( 8)) >>  2];
    s[ 6] = base64[(v[1] & Mask(14)) >>  8];
    s[ 7] = base64[(v[1] & Mask(20)) >> 14];
    s[ 8] = base64[(v[1] & Mask(26)) >> 20];
    s[ 9] = base64[(v[1] & Mask(28)) >> 26 |
	           (v[2] & Mask( 4)) <<  2];
    s[10] = base64[(v[2] & Mask(10)) >>  4];
    s[11] = base64[(v[2] & Mask(16)) >> 10];
    s[12] = base64[(v[2] & Mask(22)) >> 16];
    s[13] = base64[(v[2] & Mask(28)) >> 22];
    (void) e;
}

// Assembly:
movl (%rdi), %ecx
andl $0x3f, %ecx
leaq 0x108d(%rip), %rax      # 0x9010
movb (%rcx,%rax), %cl
movb %cl, (%rsi)
movl (%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x1(%rsi)
movl (%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x2(%rsi)
movl (%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x3(%rsi)
movzbl 0x3(%rdi), %ecx
andl $0xf, %ecx
movl 0x4(%rdi), %edx
shll $0x4, %edx
andl $0x30, %edx
orq %rcx, %rdx
movb (%rax,%rdx), %cl
movb %cl, 0x4(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x2, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x5(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x8, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x6(%rsi)
movl 0x4(%rdi), %ecx
shrl $0xe, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x7(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x14, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x8(%rsi)
movl 0x4(%rdi), %ecx
movl 0x8(%rdi), %edx
shrl $0x1a, %ecx
andl $0x3, %ecx
andl $0xf, %edx
leal (%rcx,%rdx,4), %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x9(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x4, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xa(%rsi)
movl 0x8(%rdi), %ecx
shrl $0xa, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xb(%rsi)
movzwl 0xa(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xc(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x16, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %al
movb %al, 0xd(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/svpv[P]rpmset/./base64pack.h
// Function: pack29x3c15e3
static inline void pack29x3c15e3(const uint32_t *v, char *s, unsigned e)
{
    s[ 0] = base64[ v[0] & Mask(6)];
    s[ 1] = base64[(v[0] & Mask(12)) >> 6];
    s[ 2] = base64[(v[0] & Mask(18)) >> 12];
    s[ 3] = base64[(v[0] & Mask(24)) >> 18];
    s[ 4] = base64[ v[1] & Mask(6)];
    s[ 5] = base64[(v[1] & Mask(12)) >> 6];
    s[ 6] = base64[(v[1] & Mask(18)) >> 12];
    s[ 7] = base64[(v[1] & Mask(24)) >> 18];
    s[ 8] = base64[ v[2] & Mask(6)];
    s[ 9] = base64[(v[2] & Mask(12)) >> 6];
    s[10] = base64[(v[2] & Mask(18)) >> 12];
    s[11] = base64[(v[2] & Mask(24)) >> 18];
    s[12] = base64[(v[0] & Mask(29)) >> 24 | (e & 1) << 5];
    s[13] = base64[(v[1] & Mask(29)) >> 24 | (e & 2) << 4];
    s[14] = base64[(v[2] & Mask(29)) >> 24 | (e & 4) << 3];
}

// Assembly:
movl (%rdi), %ecx
andl $0x3f, %ecx
leaq 0xfaa(%rip), %rax       # 0x9010
movb (%rcx,%rax), %cl
movb %cl, (%rsi)
movl (%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x1(%rsi)
movl (%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x2(%rsi)
movl (%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x3(%rsi)
movl 0x4(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x4(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x5(%rsi)
movl 0x4(%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x6(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x7(%rsi)
movl 0x8(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x8(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x9(%rsi)
movl 0x8(%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xa(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xb(%rsi)
movzbl 0x3(%rdi), %ecx
andl $0x1f, %ecx
movl %edx, %r8d
shll $0x5, %r8d
andl $0x20, %r8d
orq %rcx, %r8
movb (%rax,%r8), %cl
movb %cl, 0xc(%rsi)
movzbl 0x7(%rdi), %ecx
andl $0x1f, %ecx
movl %edx, %r8d
shll $0x4, %r8d
andl $0x20, %r8d
orq %rcx, %r8
movb (%rax,%r8), %cl
movb %cl, 0xd(%rsi)
movzbl 0xb(%rdi), %ecx
andl $0x1f, %ecx
andl $0x4, %edx
leaq (%rcx,%rdx,8), %rcx
movb (%rax,%rcx), %al
movb %al, 0xe(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/svpv[P]rpmset/./base64pack.h
// Function: pack30x3c15
static inline void pack30x3c15(const uint32_t *v, char *s, unsigned e)
{
    s[ 0] = base64[ v[0] & Mask(6)];
    s[ 1] = base64[(v[0] & Mask(12)) >> 6];
    s[ 2] = base64[(v[0] & Mask(18)) >> 12];
    s[ 3] = base64[(v[0] & Mask(24)) >> 18];
    s[ 4] = base64[ v[1] & Mask(6)];
    s[ 5] = base64[(v[1] & Mask(12)) >> 6];
    s[ 6] = base64[(v[1] & Mask(18)) >> 12];
    s[ 7] = base64[(v[1] & Mask(24)) >> 18];
    s[ 8] = base64[ v[2] & Mask(6)];
    s[ 9] = base64[(v[2] & Mask(12)) >> 6];
    s[10] = base64[(v[2] & Mask(18)) >> 12];
    s[11] = base64[(v[2] & Mask(24)) >> 18];
    s[12] = base64[(v[0] & Mask(30)) >> 24];
    s[13] = base64[(v[1] & Mask(30)) >> 24];
    s[14] = base64[(v[2] & Mask(30)) >> 24];
    (void) e;
}

// Assembly:
movl (%rdi), %ecx
andl $0x3f, %ecx
leaq 0xeb0(%rip), %rax       # 0x9010
movb (%rcx,%rax), %cl
movb %cl, (%rsi)
movl (%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x1(%rsi)
movl (%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x2(%rsi)
movl (%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x3(%rsi)
movl 0x4(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x4(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x5(%rsi)
movl 0x4(%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x6(%rsi)
movl 0x4(%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x7(%rsi)
movl 0x8(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x8(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x6, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0x9(%rsi)
movl 0x8(%rdi), %ecx
shrl $0xc, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xa(%rsi)
movl 0x8(%rdi), %ecx
shrl $0x12, %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xb(%rsi)
movzbl 0x3(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xc(%rsi)
movzbl 0x7(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %cl
movb %cl, 0xd(%rsi)
movzbl 0xb(%rdi), %ecx
andl $0x3f, %ecx
movb (%rcx,%rax), %al
movb %al, 0xe(%rsi)
retq
// File: /workspace/github_c_makefile_star2_O1/dcat[P]mdphat/mdphat.c
// Function: i2c_set
__u8
i2c_set(__u8 reg, __u8 arg) {
	__u8 buf[2];

	buf[0] = reg;
	buf[1] = arg;

	return write(d, buf, 2) == 2;
}

// Assembly:
pushq %rax
leaq 0x6(%rsp), %rax
movb %dil, (%rax)
movb %sil, 0x1(%rax)
movl 0x139945(%rip), %edi    # 0x53b050
movl $0x2, %edx
movq %rax, %rsi
callq 0x448f20
cmpq $0x2, %rax
sete %al
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/dcat[P]mdphat/mdphat.c
// Function: i2c_get
__u8
i2c_get(__u8 reg, __u8 *ret, size_t n) {
	__u8 r;

	r = reg | 0xFF;

	if (write(d, &r, 1) <= 0)
		return 0;

	return read(d, ret, n) == n;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x7(%rsp), %rsi
movb $-0x1, (%rsi)
movl 0x139917(%rip), %edi    # 0x53b050
movl $0x1, %edx
callq 0x448f20
testq %rax, %rax
jle 0x401761
movl 0x139902(%rip), %edi    # 0x53b050
movq %r14, %rsi
movq %rbx, %rdx
callq 0x448e80
cmpq %rbx, %rax
sete %al
jmp 0x401763
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/dcat[P]mdphat/mdphat.c
// Function: printchar
void
printchar(int x, int chr) {
	int i, y, z;
	char buf[7], reg;

	reg = x % 2 ? CMD_MATRIX2 : CMD_MATRIX1;

	i2c_adr(MDH_ADR + x / 2);

	switch (chr) {
	case '\0':
	case '\n':
	case '\r':
		return;
	}

	if (x % 2) {
		/* flip */
		for (i = 0, y = 7; i < 7; i++, y--)
			buf[i] = 0;

		for (i = 0; i < 8; i++)
			for (y = 0; y < 7; y++)
				buf[i] |= font[chr][y] & (1 << i) ? 1 << y : 0;

		for (i = 0; i < 7; i++)
			i2c_set(reg + i, buf[i]);
	} else
		for (i = 0; i < 7; i++)
			i2c_set(reg + i, font[chr][i]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edi, %ebp
testb $0x1, %bpl
movl $0x1, %eax
movl $0xe, %r14d
cmovel %eax, %r14d
movl %esi, %ebx
movl %edi, %eax
shrl $0x1f, %eax
addl %edi, %eax
shrl %eax
addl $0x61, %eax
movl 0x139897(%rip), %edi    # 0x53b050
movzbl %al, %edx
movl $0x703, %esi            # imm = 0x703
xorl %eax, %eax
callq 0x449b30
cmpl $0xd, %ebx
ja 0x4017e6
movl $0x2401, %eax           # imm = 0x2401
btl %ebx, %eax
jae 0x4017e6
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x1, %bpl
jne 0x401840
movslq %ebx, %rax
movzbl %r14b, %r14d
leaq (,%rax,8), %r15
subq %rax, %r15
xorl %r12d, %r12d
leaq 0xc78e8(%rip), %r13     # 0x4c90f0
leaq 0xe(%rsp), %rbx
leal (%r14,%r12), %eax
leaq (%r15,%r12), %rcx
movb (%r13,%rcx), %cl
movb %al, 0xe(%rsp)
movb %cl, 0xf(%rsp)
movl 0x139828(%rip), %edi    # 0x53b050
movl $0x2, %edx
movq %rbx, %rsi
callq 0x448f20
incq %r12
cmpq $0x7, %r12
jne 0x40180d
jmp 0x4017d7
xorl %eax, %eax
movl %eax, 0x13(%rsp)
movl %eax, 0x10(%rsp)
movslq %ebx, %rcx
leaq (,%rcx,8), %rdx
subq %rcx, %rdx
leaq 0xc7891(%rip), %rsi     # 0x4c90f0
movl $0x1, %edi
movl %eax, %ecx
shll %cl, %edi
movb 0x10(%rsp,%rax), %r8b
xorl %ecx, %ecx
leaq (%rdx,%rcx), %r9
movsbl (%rsi,%r9), %r9d
movl $0x1, %r10d
shll %cl, %r10d
andl %edi, %r9d
testl %r9d, %r9d
cmovel %r9d, %r10d
orb %r10b, %r8b
incq %rcx
cmpq $0x7, %rcx
jne 0x40186f
movb %r8b, 0x10(%rsp,%rax)
incq %rax
cmpq $0x8, %rax
jne 0x40185f
movzbl %r14b, %r14d
xorl %r15d, %r15d
leaq 0xc(%rsp), %rbx
leal (%r14,%r15), %eax
movb 0x10(%rsp,%r15), %cl
movb %al, 0xc(%rsp)
movb %cl, 0xd(%rsp)
movl 0x139788(%rip), %edi    # 0x53b050
movl $0x2, %edx
movq %rbx, %rsi
callq 0x448f20
incq %r15
cmpq $0x7, %r15
jne 0x4018b1
jmp 0x4017d7
// File: /workspace/github_c_makefile_star2_O1/dcat[P]mdphat/mdphat.c
// Function: printstring
void
printstring(char *str) {
	int x = 0;
	char *p = str;

	while (*p) {
		printchar(x++, *p++);

		if (x > 5)
			return;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movsbl (%rbx,%r14), %esi
testl %esi, %esi
je 0x401907
movl %r14d, %edi
callq 0x401782
incq %r14
cmpl $0x6, %r14d
jne 0x4018ed
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/dcat[P]mdphat/mdphat.c
// Function: i2c_set_all
void
i2c_set_all(__u8 reg, __u8 val) {
	int i;

	for (i = 0; i < 3; i++) {
		i2c_adr(MDH_ADR + i);
		i2c_set(reg, val);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %ebp
movl $0x61, %r14d
leaq 0x6(%rsp), %r15
movl 0x139725(%rip), %edi    # 0x53b050
movl $0x703, %esi            # imm = 0x703
movl %r14d, %edx
xorl %eax, %eax
callq 0x449b30
movb %bpl, 0x6(%rsp)
movb %bl, 0x7(%rsp)
movl 0x139707(%rip), %edi    # 0x53b050
movl $0x2, %edx
movq %r15, %rsi
callq 0x448f20
incl %r14d
cmpl $0x64, %r14d
jne 0x401925
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/giometti[P]mastering_UNIX_programming/chapter_09/setjmp2.c
// Function: func1
int func1(char *s, jmp_buf env)
{
	int ret;

	ret = setjmp(env);
	printf("func1: setjmp() returned %d\n", ret);

	printf("func1: &s=%p\n", s);
	printf("func1: s=%s\n", s);

	return ret;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1050
movl %eax, %ebp
leaq 0xe80(%rip), %rdi       # 0x2004
xorl %eax, %eax
movl %eax, %r14d
movl %ebp, %esi
callq 0x1040
leaq 0xe8a(%rip), %rdi       # 0x2021
movq %rbx, %rsi
movl %r14d, %eax
callq 0x1040
leaq 0xe86(%rip), %rdi       # 0x202f
movq %rbx, %rsi
movl %r14d, %eax
callq 0x1040
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/giometti[P]mastering_UNIX_programming/chapter_09/setjmp2.c
// Function: main
int main(int argc, char *argv[])
{
	jmp_buf env;
	int ret;

	ret = func1("foo", env);
	if (ret)
		return -1;

	func2(3, env);

	return 0;
}

// Assembly:
subq $0xc8, %rsp
leaq 0xe52(%rip), %rdi       # 0x2049
movq %rsp, %rsi
callq 0x116c
testl %eax, %eax
je 0x1210
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0xc8, %rsp
retq
movq %rsp, %rsi
movl $0x3, %edi
callq 0x11bb
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: openOutput
void
openOutput(char *fn,int sr,int bps)
    {
    if (closed == 0)
        Fatal("attempt to open output wave when "
                "previous has not yet been closed\n");

    if (sr > 0) SampleRate = sr;
    if (bps > 0) bitsPerSample = bps;

    fprintf(stderr,"sampleRate is %d\n",SampleRate);
    fprintf(stderr,"bits per sample is %d\n",bitsPerSample);

    outputName = fn;
    output = newRRA(SampleRate,bitsPerSample,1,OUTPUT_LENGTH);

    clearRRAData(output);

    location = 0;
    maxLocation = 0;

    closed = 0;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0x0, 0xd0f1(%rip)      # 0xf434
jne 0x2353
leaq 0x7fde(%rip), %rdi      # 0xa32a
xorl %eax, %eax
callq 0x6b88
testl %r14d, %r14d
jle 0x235f
movl %r14d, 0xd0d1(%rip)     # 0xf430
testl %ebp, %ebp
jle 0x2369
movl %ebp, 0xd0cf(%rip)      # 0xf438
movq 0xcc88(%rip), %r14      # 0xeff8
movq (%r14), %rdi
movl 0xd0b7(%rip), %edx      # 0xf430
leaq 0x7fed(%rip), %rsi      # 0xa36d
xorl %eax, %eax
callq 0x21d0
movq (%r14), %rdi
movl 0xd0a8(%rip), %edx      # 0xf438
leaq 0x7fe8(%rip), %rsi      # 0xa37f
xorl %eax, %eax
callq 0x21d0
movq %rbx, 0x1c953(%rip)     # 0x1ecf8
movl 0xd085(%rip), %edi      # 0xf430
movl 0xd087(%rip), %esi      # 0xf438
pushq $0x1
popq %rdx
movl $0x186a0, %ecx          # imm = 0x186A0
callq 0x6e00
movq %rax, 0x1c93b(%rip)     # 0x1ed00
movq %rax, %rdi
callq 0x6ec7
andq $0x0, 0x1c933(%rip)     # 0x1ed08
andl $0x0, 0x1c934(%rip)     # 0x1ed10
andl $0x0, 0xd051(%rip)      # 0xf434
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: interp2
int
interp2(int *data,int length,double t)
    {
    int x;
    double mu;
    double mu2;

    if (t >= length) return data[length - 1];

    x = (int) t;
    mu = t - x;
    mu2 = (1-cos(mu*3.14159))/2;
    return(data[x]*(1-mu2)+data[x+1]*mu2);
    }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
cvtsi2sd %esi, %xmm1
ucomisd %xmm1, %xmm0
jae 0x2c26
cvttsd2si %xmm0, %ebp
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
subsd %xmm1, %xmm0
mulsd 0x7679(%rip), %xmm0     # 0xa258
callq 0x2170
movsd 0x7674(%rip), %xmm1     # 0xa260
movapd %xmm1, %xmm2
subsd %xmm0, %xmm2
mulsd 0x766c(%rip), %xmm2     # 0xa268
movslq %ebp, %rax
xorps %xmm0, %xmm0
cvtsi2sdl (%rbx,%rax,4), %xmm0
subsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsi2sdl 0x4(%rbx,%rax,4), %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
cvttsd2si %xmm0, %eax
jmp 0x2c2d
movslq %esi, %rax
movl -0x4(%rbx,%rax,4), %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: readScale
int
readScale(char *dirName,char *baseName)
    {
    int inst = InstrumentCount;

    ++InstrumentCount;

    if (InstrumentCount >= INSTRUMENTS)
        Fatal("readScale: too many instruments, the max is %d\n",INSTRUMENTS);

    InstrumentDir[inst] = strdup(dirName);
    InstrumentBase[inst] = strdup(baseName);

    pitchShift[inst] = 0;

    return inst;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
movslq 0x1c0ce(%rip), %rbx     # 0x1ed14
leal 0x1(%rbx), %eax
movl %eax, 0x1c0c5(%rip)     # 0x1ed14
cmpq $0x27, %rbx
jl 0x2c68
leaq 0x773a(%rip), %rdi      # 0xa396
movl $0x28, %esi
xorl %eax, %eax
callq 0x6b88
movq %r15, %rdi
callq 0x22e0
leaq 0x1c0a9(%rip), %rcx     # 0x1ed20
movq %rax, (%rcx,%rbx,8)
movq %r14, %rdi
callq 0x22e0
leaq 0x1c1d6(%rip), %rcx     # 0x1ee60
movq %rax, (%rcx,%rbx,8)
leaq 0x1c30b(%rip), %rax     # 0x1efa0
movl $0x0, (%rax,%rbx,4)
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: readStrings
int *
readStrings(char *dirName, char *baseName, int strings)
    {
    int i = 0;
    int *result = malloc((strings+1)*sizeof(int));
    if (result == 0)
        {
        fprintf(stderr, "Out of memory\n");
        exit(1);
        }
    for (i = 0; i < (strings + 1); ++i)
        {
        char newBase[512];
        snprintf(newBase, sizeof(newBase), "%s%d_", baseName, i);
        result[i] = readScale(dirName, newBase);
        }
    return result;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movslq %edx, %rax
leaq 0x4(,%rax,4), %rdi
callq 0x2230
testq %rax, %rax
je 0x2d29
movq %rax, %r12
testl %ebx, %ebx
js 0x2d14
incl %ebx
movq %rsp, %rbp
xorl %r13d, %r13d
movl $0x200, %esi            # imm = 0x200
movq %rbp, %rdi
leaq 0x76e5(%rip), %rdx      # 0xa3d5
movq %r14, %rcx
movl %r13d, %r8d
xorl %eax, %eax
callq 0x2100
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2c34
movl %eax, (%r12,%r13,4)
incq %r13
cmpq %r13, %rbx
jne 0x2ce1
movq %r12, %rax
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x23e8
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: rdrone
void
rdrone(double beats,RRA *h,double length)
    {
    dTrace("entering\n");

    while (beats > 1.5 * length)
        {
        dplay(1.5 * length,h->data[0],h->samples,h->bitsPerSample);
        //attack = 1 - sustain;
        backwards(length / 2);
        beats = beats - length;
        }

    dplay(beats,h->data[0],h->samples,h->bitsPerSample);
    }

// Assembly:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movsd 0x74cc(%rip), %xmm2     # 0xa270
movsd %xmm1, (%rsp)
mulsd %xmm1, %xmm2
ucomisd %xmm2, %xmm0
jbe 0x2e0a
movsd 0x74bd(%rip), %xmm1     # 0xa278
mulsd (%rsp), %xmm1
movsd %xmm1, 0x8(%rsp)
movsd %xmm2, 0x10(%rsp)
movsd %xmm0, 0x18(%rsp)
movq 0x18(%rbx), %rax
movq (%rax), %rdi
movl 0x8(%rbx), %edx
movl 0xc(%rbx), %esi
movapd %xmm2, %xmm0
callq 0x3175
movsd 0x8(%rsp), %xmm0
callq 0x5359
movsd 0x10(%rsp), %xmm2
movsd 0x18(%rsp), %xmm0
subsd (%rsp), %xmm0
ucomisd %xmm2, %xmm0
ja 0x2dcc
movq 0x18(%rbx), %rax
movq (%rax), %rdi
movl 0x8(%rbx), %edx
movl 0xc(%rbx), %esi
addq $0x20, %rsp
popq %rbx
jmp 0x3175
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: snplay
void
snplay(double beats,int inst,int offset)
    {
    RRA *h;
    int spot;

    dTrace("entering\n");

    h = getNumberedNote(inst,offset);

    spot = getLocation();
    dplay(samplesToBeats(h->samples),h->data[0],h->samples,h->bitsPerSample);
    setLocation(spot + beatsToSamples(beats));
    }

// Assembly:
subq $0x28, %rsp
movsd %xmm0, 0x8(%rsp)
callq 0x2f35
movl 0xc(%rax), %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
cvtsi2sdl 0xc5d8(%rip), %xmm1 # 0xf430
divsd %xmm1, %xmm0
divsd 0x741c(%rip), %xmm0     # 0xa280
mulsd 0xc644(%rip), %xmm0     # 0xf4b0
movl 0x8(%rax), %edx
movq 0x18(%rax), %rax
movq (%rax), %rdi
movsd 0x1be8a(%rip), %xmm1    # 0x1ed08
movaps %xmm1, 0x10(%rsp)
callq 0x3175
cvttpd2dq 0x10(%rsp), %xmm0
cvtdq2pd %xmm0, %xmm0
movsd 0x8(%rsp), %xmm1
mulsd 0x73e0(%rip), %xmm1     # 0xa280
divsd 0xc608(%rip), %xmm1     # 0xf4b0
movapd %xmm1, %xmm2
xorps %xmm1, %xmm1
cvtsi2sdl 0xc579(%rip), %xmm1 # 0xf430
mulsd %xmm2, %xmm1
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %edi
addq $0x28, %rsp
jmp 0x36fb
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: nplay
void
_nplay(double beats,int inst,int offset)
    {
    RRA *h;
 
    dTrace("entering\n");

    // if style is SWING,
    //swing beats are pulled longer and shorter, alternately

    if (style == SWING && swingBeat == beats)
        {
        if (swingDown) beats = beats * 4 / 3;
        else beats = beats *2 / 3;
        swingDown = !swingDown;
        }

    h = getNumberedNote(inst,offset);
    dplay(beats,h->data[0],h->samples,h->bitsPerSample);
    }

// Assembly:
pushq %rax
cmpl $0x1, 0xc670(%rip)      # 0xf544
jne 0x2f13
movsd 0xc532(%rip), %xmm1     # 0xf410
ucomisd %xmm0, %xmm1
jne 0x2f13
jp 0x2f13
xorl %eax, %eax
cmpl $0x0, 0xc529(%rip)      # 0xf418
sete %al
leaq 0x73e7(%rip), %rcx      # 0xa2e0
mulsd (%rcx,%rax,8), %xmm0
divsd 0x7382(%rip), %xmm0     # 0xa288
movsd %xmm0, (%rsp)
movl %eax, 0xc507(%rip)      # 0xf418
jmp 0x2f18
movsd %xmm0, (%rsp)
callq 0x2f35
movq 0x18(%rax), %rcx
movq (%rcx), %rdi
movl 0x8(%rax), %edx
movl 0xc(%rax), %esi
movsd (%rsp), %xmm0
popq %rax
jmp 0x3175
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: setLocation
int
setLocation(int future)
    {
    int old = location;

    location = future;

    if (location > maxLocation)
        {
        while (location >= output->samples)
            growOutput();
        maxLocation = location;
        }

    if (location < 0)
        {
        //printf("attempt to rewind to a negative index, "
        //       "setting index to zero\n");
        location = 0;
        }

    return old;
    }

// Assembly:
movsd 0x1b605(%rip), %xmm2    # 0x1ed08
cvtsi2sd %edi, %xmm0
movsd %xmm0, 0x1b5f9(%rip)    # 0x1ed08
cvtsi2sdl 0x1b5f9(%rip), %xmm1 # 0x1ed10
ucomisd %xmm1, %xmm0
jbe 0x375a
pushq %rax
movsd %xmm2, (%rsp)
movsd 0x1b5dd(%rip), %xmm0    # 0x1ed08
movq 0x1b5ce(%rip), %rax     # 0x1ed00
xorps %xmm1, %xmm1
cvtsi2sdl 0xc(%rax), %xmm1
ucomisd %xmm1, %xmm0
jb 0x3747
callq 0x3905
jmp 0x3723
cvttsd2si %xmm0, %eax
movl %eax, 0x1b5bf(%rip)     # 0x1ed10
movsd (%rsp), %xmm2
addq $0x8, %rsp
xorpd %xmm0, %xmm0
ucomisd 0x1b5a2(%rip), %xmm0    # 0x1ed08
jbe 0x3773
movq $0x0, 0x1b595(%rip) # 0x1ed08
cvttsd2si %xmm2, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: oneshot
void
oneshot(int *data,int length, int bps)
    {
    int i;
    double  bpsFactor;

    dTrace("entering\n");
    //printf("playing oneshot note at %f\n",location - spaces);

    bpsFactor = pow(2,bitsPerSample) / pow(2,bps);

    if (length <= 0) return;

    while (location + length >= output->samples)
        growOutput();

    /* write out all the data */

    for (i = 0; i < length; ++i)
        {
        output->data[0][(int)location] +=
            data[i] * amplitude * bpsFactor;
        location += 1;
        }

    if (location > maxLocation) maxLocation = location;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %edx, %r14d
movl %esi, %ebp
movq %rdi, %rbx
cvtsi2sdl 0xbc76(%rip), %xmm0 # 0xf438
callq 0x2030
movsd %xmm0, 0x10(%rsp)
movsd 0x6a8b(%rip), %xmm0     # 0xa260
movl %r14d, %edi
callq 0x2060
testl %ebp, %ebp
jle 0x38d0
movsd %xmm0, 0x8(%rsp)
cvtsi2sd %ebp, %xmm2
movsd 0x1b511(%rip), %xmm0    # 0x1ed08
addsd %xmm2, %xmm0
movq 0x1b4fe(%rip), %rax     # 0x1ed00
cvtsi2sdl 0xc(%rax), %xmm1
ucomisd %xmm1, %xmm0
jb 0x383f
movsd %xmm2, 0x18(%rsp)
callq 0x3905
movsd 0x18(%rsp), %xmm2
movsd 0x1b4e2(%rip), %xmm0    # 0x1ed08
addsd %xmm2, %xmm0
movq 0x1b4cf(%rip), %rax     # 0x1ed00
xorps %xmm1, %xmm1
cvtsi2sdl 0xc(%rax), %xmm1
ucomisd %xmm1, %xmm0
jae 0x3813
movsd 0x10(%rsp), %xmm4
divsd 0x8(%rsp), %xmm4
movsd 0x1b4b5(%rip), %xmm0    # 0x1ed08
movsd 0xbc0d(%rip), %xmm1     # 0xf468
movq 0x18(%rax), %rax
movq (%rax), %rax
cmpl $0x2, %ebp
movl $0x1, %ecx
cmovgel %ebp, %ecx
xorl %edx, %edx
movsd 0x69e9(%rip), %xmm5     # 0xa260
xorps %xmm2, %xmm2
cvtsi2sdl (%rbx,%rdx,4), %xmm2
cvttsd2si %xmm0, %esi
mulsd %xmm1, %xmm2
movslq %esi, %rsi
xorps %xmm3, %xmm3
cvtsi2sdl (%rax,%rsi,4), %xmm3
mulsd %xmm4, %xmm2
addsd %xmm2, %xmm3
cvttsd2si %xmm3, %edi
movl %edi, (%rax,%rsi,4)
addsd %xmm5, %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0x3877
movsd %xmm0, 0x1b453(%rip)    # 0x1ed08
xorps %xmm1, %xmm1
cvtsi2sdl 0x1b450(%rip), %xmm1 # 0x1ed10
ucomisd %xmm1, %xmm0
jbe 0x38d0
cvttsd2si %xmm0, %eax
movl %eax, 0x1b440(%rip)     # 0x1ed10
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: samplesToMeasures
double
samplesToBeats(double samples)
    {
    return samples
           / (double) SampleRate
           / 60.0
           * beatsPerMinute;
    }

// Assembly:
cvtsi2sdl 0xbb4f(%rip), %xmm1 # 0xf430
divsd %xmm1, %xmm0
divsd 0x6993(%rip), %xmm0     # 0xa280
mulsd 0xbbbb(%rip), %xmm0     # 0xf4b0
xorps %xmm1, %xmm1
cvtsi2sdl 0xbb50(%rip), %xmm1 # 0xf450
divsd %xmm1, %xmm0
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: growOutput
static void
growOutput()
    {
    int i;
    int samples = output->samples;

    growRRA(output);

    for (i = samples; i < output->samples; ++i)
        output->data[0][i] = 0;
    }

// Assembly:
pushq %rbx
movq 0x1b3f3(%rip), %rdi     # 0x1ed00
movslq 0xc(%rdi), %rbx
callq 0x7c1f
movq 0x1b3e3(%rip), %rax     # 0x1ed00
cmpl 0xc(%rax), %ebx
jge 0x393c
movq 0x18(%rax), %rcx
movq (%rcx), %rcx
movl $0x0, (%rcx,%rbx,4)
incq %rbx
movslq 0xc(%rax), %rdx
cmpq %rdx, %rbx
jl 0x3929
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: chord
void
chord(double beats,int inst,int octave,int pitch,...)
    {
    int offset;
    int noteCount = 0;
    int notes[CHORD_LENGTH];
    va_list ap;

    dTrace("entering\n");;
    /* store the first absolute note */

    notes[noteCount++] = octave * 12 + pitch;

    /* extract the following pitch deltas */

    va_start(ap, pitch);

    offset = va_arg(ap,int);
    while (offset != 0)
        {
        if (offset < - OCTAVES * NOTES || offset >= OCTAVES * NOTES)
            Fatal("chord: bad offset: %d (missing zero terminator?)\n",offset);
        if (noteCount >= sizeof(notes) / sizeof(int))
            Fatal("chord: too many notes\n");
        notes[noteCount++] = notes[0]+offset;
        offset = va_arg(ap,int);
        }
    va_end(ap);

    anchord(beats,inst,notes,noteCount);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x8d8, %rsp            # imm = 0x8D8
movl %edi, %ebx
movsd %xmm0, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x39c0
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
leal (%rsi,%rsi,2), %eax
leal (%rdx,%rax,4), %ebp
movl %ebp, 0xd0(%rsp)
movabsq $0x4000000018, %rax     # imm = 0x4000000018
movq %rax, (%rsp)
leaq 0x910(%rsp), %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movl $0x18, %ecx
cmpq $0x28, %rcx
ja 0x3a0a
movl $0x18, %eax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x3a18
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %r13d
testl %r13d, %r13d
je 0x3aa5
movl $0x1, %r14d
leaq 0x69aa(%rip), %r15      # 0xa3db
leaq 0x69d6(%rip), %r12      # 0xa40e
leal -0x84(%r13), %eax
cmpl $0xfffffef7, %eax       # imm = 0xFFFFFEF7
ja 0x3a53
movq %r15, %rdi
movl %r13d, %esi
xorl %eax, %eax
callq 0x6b88
cmpq $0x200, %r14            # imm = 0x200
jb 0x3a66
movq %r12, %rdi
xorl %eax, %eax
callq 0x6b88
addl %ebp, %r13d
movl %r13d, 0xd0(%rsp,%r14,4)
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x3a8a
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x3a98
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %r13d
incq %r14
testl %r13d, %r13d
jne 0x3a38
jmp 0x3aab
movl $0x1, %r14d
leaq 0xd0(%rsp), %rsi
movsd 0x18(%rsp), %xmm0
movl %ebx, %edi
movl %r14d, %edx
callq 0x3ad5
addq $0x8d8, %rsp            # imm = 0x8D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: achord
void
achord(double beats,int inst,int octave,int pitch,int *offsets,int length)
    {
    int i;
    int notes[CHORD_LENGTH];

    for (i = 0; i < length; ++i)
        {
        if (i >= sizeof(notes) / sizeof(int))
            Fatal("achord: too many notes\n");
        notes[i] = octave * 12 + pitch + offsets[i];
        }

    anchord(beats,inst,notes,length);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x818, %rsp            # imm = 0x818
movl %r8d, %ebx
movl %edi, 0x4(%rsp)
movsd %xmm0, 0x8(%rsp)
testl %r8d, %r8d
jle 0x4042
movq %rcx, %r14
leal (%rsi,%rsi,2), %eax
leal (%rdx,%rax,4), %r12d
movl %ebx, %r13d
leaq 0x63f3(%rip), %r15      # 0xa40d
xorl %ebp, %ebp
cmpq $0x200, %rbp            # imm = 0x200
jb 0x402f
movq %r15, %rdi
xorl %eax, %eax
callq 0x6b88
movl (%r14,%rbp,4), %eax
addl %r12d, %eax
movl %eax, 0x10(%rsp,%rbp,4)
incq %rbp
cmpq %rbp, %r13
jne 0x401c
leaq 0x10(%rsp), %rsi
movsd 0x8(%rsp), %xmm0
movl 0x4(%rsp), %edi
movl %ebx, %edx
callq 0x3ad5
addq $0x818, %rsp            # imm = 0x818
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: rchord
void
rchord(double beats,...)
    {
    int noteCount;
    RRA *note;
    va_list ap;

    if (style == SWING && swingBeat == beats)
        {
        if (swingDown) beats = beats * 4 / 3;
        else beats = beats * 2 / 3;
        swingDown = !swingDown;
        }

    /* extract the arguments */

    va_start(ap, beats);

    noteCount = 0;
    note = va_arg(ap,RRA *);
    while (note != 0)
        {
        if (noteCount > 0) backwards(beats-stride);

        dplay(beats,note->data[0],note->samples,note->bitsPerSample);

        note = va_arg(ap,RRA *);

        ++noteCount;
        }

    va_end(ap);

    backwards((noteCount - 1) * stride);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x48(%rsp)
testb %al, %al
je 0x40c9
movapd %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
cmpl $0x1, 0xb474(%rip)      # 0xf544
jne 0x4108
movsd 0xb336(%rip), %xmm1     # 0xf410
ucomisd %xmm0, %xmm1
jne 0x4108
jp 0x4108
xorl %eax, %eax
cmpl $0x0, 0xb32d(%rip)      # 0xf418
sete %al
leaq 0x61eb(%rip), %rcx      # 0xa2e0
mulsd (%rcx,%rax,8), %xmm0
divsd 0x6186(%rip), %xmm0     # 0xa288
movl %eax, 0xb310(%rip)      # 0xf418
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x4000000000, %rax     # imm = 0x4000000000
movq %rax, (%rsp)
movl $0x28, %eax
negq %rax
ja 0x4145
movq 0x10(%rsp), %rax
movl $0x8, (%rsp)
jmp 0x4153
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %r14
testq %r14, %r14
je 0x41e0
movl $0x1, %ebx
movsd %xmm0, 0x18(%rsp)
cmpl $0x1, %ebx
je 0x418a
subsd 0xb3e1(%rip), %xmm0     # 0xf558
xorpd 0x6171(%rip), %xmm0     # 0xa2f0
callq 0x5359
movsd 0x18(%rsp), %xmm0
movq 0x18(%r14), %rax
movq (%rax), %rdi
movl 0x8(%r14), %edx
movl 0xc(%r14), %esi
callq 0x3175
movl (%rsp), %ecx
cmpq $0x28, %rcx
ja 0x41b7
movq %rcx, %rax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x41c5
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %r14
decl %ebx
testq %r14, %r14
movsd 0x18(%rsp), %xmm0
jne 0x416a
negl %ebx
xorps %xmm1, %xmm1
cvtsi2sd %ebx, %xmm1
jmp 0x41e8
movsd 0x60c8(%rip), %xmm1     # 0xa2b0
movsd 0xb368(%rip), %xmm0     # 0xf558
xorpd 0x60f8(%rip), %xmm0     # 0xa2f0
mulsd %xmm1, %xmm0
callq 0x5359
addq $0xd8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: softer
void
softer(double factor)
    {
    if (factor == 0.0)
        {
        setAmplitude(getAmplitude() * softLoud);
        softLoud = popAmplitudeFactor();
        }
    else
        {
        setAmplitude(getAmplitude() / factor);
        softLoud = factor;
        pushAmplitudeFactor(factor);
        }
    }

// Assembly:
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
movsd 0xaba1(%rip), %xmm1     # 0xf468
jne 0x48fb
jp 0x48fb
mulsd 0xab4d(%rip), %xmm1     # 0xf420
movsd %xmm1, 0xab8d(%rip)     # 0xf468
movl 0x1afef(%rip), %eax     # 0x1f8d0
testl %eax, %eax
jle 0x4933
decl %eax
movl %eax, 0x1afe3(%rip)     # 0x1f8d0
leaq 0x1afec(%rip), %rcx     # 0x1f8e0
movsd (%rcx,%rax,8), %xmm0
jmp 0x494a
divsd %xmm0, %xmm1
movsd %xmm1, 0xab61(%rip)     # 0xf468
movsd %xmm0, 0xab11(%rip)     # 0xf420
movl 0x1afbb(%rip), %eax     # 0x1f8d0
cmpq $0x1fe, %rax            # imm = 0x1FE
ja 0x4932
leal 0x1(%rax), %ecx
movl %ecx, 0x1afaa(%rip)     # 0x1f8d0
leaq 0x1afb3(%rip), %rcx     # 0x1f8e0
movsd %xmm0, (%rcx,%rax,8)
retq
pushq %rax
leaq 0x5c5c(%rip), %rdi      # 0xa597
xorl %eax, %eax
callq 0x6b88
xorpd %xmm0, %xmm0
addq $0x8, %rsp
movsd %xmm0, 0xaace(%rip)     # 0xf420
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: draw
void
draw(double beats,int inst,int octave,int pitch,double length,...)
    {
    int i;
    int octaves[CHORD_LENGTH],pitches[CHORD_LENGTH];
    double lengths[CHORD_LENGTH];

    dTrace("entering\n");;

    octaves[0] = octave;
    pitches[0] = pitch;
    lengths[0] = length;

    /* extract the remaining arguments */

    va_list ap;

    va_start(ap, length);

    octave = va_arg(ap,int);
    i = 1;
    while (octave != (int) 0 && i < sizeof(octaves)/sizeof(int))
        {
        pitch = va_arg(ap,int);
        length = va_arg(ap,double);

        octaves[i] = octave;
        pitches[i] = pitch;
        lengths[i] = length;

        ++i;

        octave = va_arg(ap,int);
        }

    va_end(ap);

    adraw(beats,inst,i,octaves,pitches,lengths);
    }

// Assembly:
subq $0x20d8, %rsp           # imm = 0x20D8
leaq 0x20(%rsp), %r10
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x4a38
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movl %esi, 0x8d0(%rsp)
movl %edx, 0xd0(%rsp)
movsd %xmm1, 0x10d0(%rsp)
movq %r10, 0x10(%rsp)
leaq 0x20e0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x5000000018, %rax     # imm = 0x5000000018
movq %rax, (%rsp)
movl $0x18, %ecx
cmpq $0x28, %rcx
ja 0x4a8c
movl $0x18, %eax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x4a9a
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %r9d
testl %r9d, %r9d
je 0x4b5d
movl (%rsp), %eax
movl 0x4(%rsp), %ecx
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %r10
movl $0x1, %r8d
cmpl $0x28, %eax
ja 0x4ad3
movq %r10, %r11
movl %eax, %r10d
addq %rdx, %r10
addl $0x8, %eax
movl %eax, (%rsp)
jmp 0x4adc
leaq 0x8(%r10), %r11
movq %r11, 0x8(%rsp)
movl (%r10), %r10d
cmpl $0xa0, %ecx
ja 0x4af9
movq %r11, %rsi
movl %ecx, %r11d
addq %rdx, %r11
addl $0x10, %ecx
movl %ecx, 0x4(%rsp)
jmp 0x4b02
leaq 0x8(%r11), %rsi
movq %rsi, 0x8(%rsp)
movsd (%r11), %xmm1
movl %r9d, 0x8d0(%rsp,%r8,4)
movl %r10d, 0xd0(%rsp,%r8,4)
movsd %xmm1, 0x10d0(%rsp,%r8,8)
cmpl $0x28, %eax
ja 0x4b36
movq %rsi, %r10
movl %eax, %esi
addq %rdx, %rsi
addl $0x8, %eax
movl %eax, (%rsp)
jmp 0x4b3f
leaq 0x8(%rsi), %r10
movq %r10, 0x8(%rsp)
movl (%rsi), %r9d
leaq 0x1(%r8), %rsi
testl %r9d, %r9d
je 0x4b62
cmpq $0x1ff, %r8             # imm = 0x1FF
movq %rsi, %r8
jb 0x4abd
jmp 0x4b62
movl $0x1, %esi
leaq 0x8d0(%rsp), %rdx
leaq 0xd0(%rsp), %rcx
leaq 0x10d0(%rsp), %r8
callq 0x420c
addq $0x20d8, %rsp           # imm = 0x20D8
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: ndraw
void
ndraw(double beats,int inst,int note,double length,...)
    {
    int i;
    int octaves[CHORD_LENGTH],pitches[CHORD_LENGTH];
    double lengths[CHORD_LENGTH];

    dTrace("entering\n");;

    octaves[0] = note / NOTES;
    pitches[0] = note % NOTES;
    lengths[0] = length;

    /* extract the remaining arguments */

    va_list ap;

    va_start(ap, length);

    note = va_arg(ap,int);
    i = 1;
    while (note != (int) 0 && i < sizeof(octaves)/sizeof(int))
        {
        length = va_arg(ap,double);

        octaves[i] = note / NOTES;
        pitches[i] = note % NOTES;
        lengths[i] = length;

        ++i;

        note = va_arg(ap,int);
        }

    va_end(ap);

    adraw(beats,inst,i,octaves,pitches,lengths);
    }

// Assembly:
subq $0x20d8, %rsp           # imm = 0x20D8
leaq 0x20(%rsp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x4bd4
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movslq %esi, %rax
imulq $0x2aaaaaab, %rax, %rcx # imm = 0x2AAAAAAB
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x21, %rcx
addl %edx, %ecx
movl %ecx, 0x8d0(%rsp)
shll $0x2, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
movl %eax, 0xd0(%rsp)
movsd %xmm1, 0x10d0(%rsp)
movq %r10, 0x10(%rsp)
leaq 0x20e0(%rsp), %rax
movq %rax, 0x8(%rsp)
movabsq $0x5000000010, %rax     # imm = 0x5000000010
movq %rax, (%rsp)
movl $0x10, %ecx
cmpq $0x28, %rcx
ja 0x4c47
movl $0x10, %eax
addq 0x10(%rsp), %rax
addl $0x8, %ecx
movl %ecx, (%rsp)
jmp 0x4c55
movq 0x8(%rsp), %rax
leaq 0x8(%rax), %rcx
movq %rcx, 0x8(%rsp)
movl (%rax), %r10d
testl %r10d, %r10d
je 0x4d19
movl (%rsp), %eax
movl 0x4(%rsp), %ecx
movq 0x10(%rsp), %rdx
movl $0x1, %r8d
movq 0x8(%rsp), %r9
cmpl $0xa0, %ecx
ja 0x4c92
movq %r9, %rsi
movl %ecx, %r9d
addq %rdx, %r9
addl $0x10, %ecx
movl %ecx, 0x4(%rsp)
jmp 0x4c9b
leaq 0x8(%r9), %rsi
movq %rsi, 0x8(%rsp)
movsd (%r9), %xmm1
movslq %r10d, %r9
imulq $0x2aaaaaab, %r9, %r10  # imm = 0x2AAAAAAB
movq %r10, %r11
shrq $0x3f, %r11
sarq $0x21, %r10
addl %r11d, %r10d
movl %r10d, 0x8d0(%rsp,%r8,4)
shll $0x2, %r10d
leal (%r10,%r10,2), %r10d
subl %r10d, %r9d
movl %r9d, 0xd0(%rsp,%r8,4)
movsd %xmm1, 0x10d0(%rsp,%r8,8)
cmpl $0x28, %eax
ja 0x4cf2
movq %rsi, %r9
movl %eax, %esi
addq %rdx, %rsi
addl $0x8, %eax
movl %eax, (%rsp)
jmp 0x4cfb
leaq 0x8(%rsi), %r9
movq %r9, 0x8(%rsp)
movl (%rsi), %r10d
leaq 0x1(%r8), %rsi
testl %r10d, %r10d
je 0x4d1e
cmpq $0x1ff, %r8             # imm = 0x1FF
movq %rsi, %r8
jb 0x4c78
jmp 0x4d1e
movl $0x1, %esi
leaq 0x8d0(%rsp), %rdx
leaq 0xd0(%rsp), %rcx
leaq 0x10d0(%rsp), %r8
callq 0x420c
addq $0x20d8, %rsp           # imm = 0x20D8
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: bend
void
bend(double beats,int inst,int octave,int pitch,int offset,
    double bendLength)
    {
    setDrawRamp(getDrawRamp() * bendLength);
    resolve(beats,inst,octave,pitch+offset,0,octave,pitch);
    //rbend(beats,getNote(inst,octave,pitch),start,startLength,bendLength);
    setDrawRamp(-1); // reset to previous draw ramp
    }

// Assembly:
movsd 0xa401(%rip), %xmm2     # 0xf490
mulsd %xmm2, %xmm1
xorpd %xmm3, %xmm3
ucomisd %xmm1, %xmm3
jbe 0x50a7
movsd 0x19feb(%rip), %xmm1    # 0x1f090
jmp 0x50af
movsd %xmm2, 0x19fe1(%rip)    # 0x1f090
pushq %rax
movsd %xmm1, 0xa3d8(%rip)     # 0xf490
addl %edx, %ecx
xorps %xmm2, %xmm2
cvtsi2sd %ecx, %xmm2
xorps %xmm3, %xmm3
cvtsi2sd %edx, %xmm3
cvttpd2dq %xmm0, %xmm0
cvtdq2pd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %edi, %xmm1
movl $0x0, (%rsp)
xorl %edi, %edi
xorl %edx, %edx
movl %esi, %ecx
xorl %r8d, %r8d
movl %esi, %r9d
movb $0x4, %al
callq 0x49ef
movsd 0x19f97(%rip), %xmm0    # 0x1f090
movsd %xmm0, 0xa38f(%rip)     # 0xf490
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: dbend
void
dbend(double beats,int *data,int length,double start,
    double startLength,double bendLength,int bps)
    {
    int i;
    int* bentNote;
    int maxSamples,startSamples,bendSamples;
    double t;
    double adjust,delta;
    
    maxSamples = 4 * length;

    bentNote = (int *) New(sizeof(int) * maxSamples);

    /* resample */

    bendSamples = beatsToSamples(bendLength);
    startSamples = beatsToSamples(startLength);
    delta = (1.0 - start) / bendSamples;

    i = 0;
    t = 0;
    adjust = start;
    while (i < maxSamples && i < length)
        {
        bentNote[i] = interp(data,length,t);

        if (i >= startSamples + bendSamples)
            adjust = 1.0;
        else if (i > startSamples)
            adjust += delta;

        /* update the new time */

        t += adjust;
        ++i;
        }

    dplay(beats,bentNote,i,bps);

    free(bentNote);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %edx, %ebx
movapd %xmm3, 0x20(%rsp)
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
movl %esi, %r15d
movq %rdi, %r12
movsd %xmm0, 0x38(%rsp)
leal (,%r15,4), %ebp
movl %esi, %edi
shll $0x4, %edi
callq 0x6cb5
movq %rax, %r14
cmpl %r15d, %ebp
cmovgel %r15d, %ebp
testl %ebp, %ebp
jle 0x52e0
movl %ebx, 0x1c(%rsp)
movapd 0x20(%rsp), %xmm4
mulsd 0x5077(%rip), %xmm4     # 0xa280
movsd 0xa29f(%rip), %xmm0     # 0xf4b0
xorps %xmm1, %xmm1
cvtsi2sdl 0xa214(%rip), %xmm1 # 0xf430
divsd %xmm0, %xmm4
mulsd %xmm1, %xmm4
cvttsd2si %xmm4, %eax
movsd 0x5030(%rip), %xmm3     # 0xa260
cvttpd2dq %xmm4, %xmm2
movsd 0x8(%rsp), %xmm4
subsd %xmm4, %xmm3
cvtdq2pd %xmm2, %xmm2
divsd %xmm2, %xmm3
movsd %xmm3, 0x40(%rsp)
movsd 0x10(%rsp), %xmm2
mulsd 0x5026(%rip), %xmm2     # 0xa280
divsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
cvttsd2si %xmm2, %ecx
addl %ecx, %eax
movslq %ecx, %rcx
movq %rcx, 0x20(%rsp)
movslq %eax, %rbx
movl %ebp, %ebp
xorpd %xmm1, %xmm1
xorl %r13d, %r13d
movapd %xmm4, %xmm0
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
movl %r15d, %esi
movsd %xmm1, 0x10(%rsp)
movapd %xmm1, %xmm0
callq *0x19a54(%rip)          # 0x1ecf0
movl %eax, (%r14,%r13,4)
movsd 0x4fb8(%rip), %xmm0     # 0xa260
cmpq %rbx, %r13
jge 0x52c8
cmpq 0x20(%rsp), %r13
jle 0x52c2
movsd 0x8(%rsp), %xmm0
addsd 0x40(%rsp), %xmm0
jmp 0x52c8
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
addsd %xmm0, %xmm1
incq %r13
cmpq %r13, %rbp
jne 0x5280
movl 0x1c(%rsp), %ebx
jmp 0x52e3
xorl %r13d, %r13d
movsd 0x38(%rsp), %xmm0
movq %r14, %rdi
movl %r13d, %esi
movl %ebx, %edx
callq 0x3175
movq %r14, %rdi
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2040
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: rest
void
rest(double beats)
    {
    if (style == SWING && swingBeat == beats)
        {
        if (swingDown) beats = beats * 4 / 3;
        else beats = beats *2 / 3;
        swingDown = !swingDown;
        }

    forwards(beats);
    }

// Assembly:
cmpl $0x1, 0xa22c(%rip)      # 0xf544
jne 0x5359
movsd 0xa0ea(%rip), %xmm1     # 0xf410
ucomisd %xmm0, %xmm1
jne 0x5354
jp 0x5354
xorl %eax, %eax
cmpl $0x0, 0xa0e1(%rip)      # 0xf418
sete %al
leaq 0x4f9f(%rip), %rcx      # 0xa2e0
mulsd (%rcx,%rax,8), %xmm0
divsd 0x4f3a(%rip), %xmm0     # 0xa288
movl %eax, 0xa0c4(%rip)      # 0xf418
jmp 0x5359
// File: /workspace/github_c_makefile_star2_O1/pipde[P]deos-songlib/lib/songlib.c
// Function: endCrescendo
void
endCrescendo()
    {
    int i = 0;
    double amp,delta;

    if (crescendoStart < 0 || crescendoStart == sustainedLocation)
        Fatal ("Rewound before crescendo");

    if (crescendoMode == EXPONENTIAL)
        delta = pow(crescendoFactor,1.0 / (sustainedLocation - crescendoStart));
    else
        delta = (crescendoFactor - 1.0) / (sustainedLocation - crescendoStart);

    amp = getAmplitude();

    for (i = crescendoStart; i < sustainedLocation; ++i)
        {
        output->data[0][i] *= amp;
        if (crescendoMode == EXPONENTIAL)
            amp *= delta;
        else
            amp += delta;
        }

    crescendoStart = -1;
    amplitude = getAmplitude() * crescendoFactor;
    crescendoFactor = 1;
    }

// Assembly:
pushq %rax
movl 0xa03f(%rip), %eax      # 0xf4a0
testl %eax, %eax
js 0x546d
cmpl 0x19bfd(%rip), %eax     # 0x1f068
jne 0x547b
leaq 0x502c(%rip), %rdi      # 0xa4a0
xorl %eax, %eax
callq 0x6b88
cmpl $0x1, 0x19bee(%rip)     # 0x1f070
movsd 0x9ff6(%rip), %xmm0     # 0xf480
jne 0x54af
movl 0x19bd6(%rip), %eax     # 0x1f068
subl 0xa008(%rip), %eax      # 0xf4a0
cvtsi2sd %eax, %xmm2
movsd 0x4dbc(%rip), %xmm1     # 0xa260
divsd %xmm2, %xmm1
callq 0x20b0
jmp 0x54cb
addsd 0x4df9(%rip), %xmm0     # 0xa2b0
movl 0x19bab(%rip), %eax     # 0x1f068
subl 0x9fdd(%rip), %eax      # 0xf4a0
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
movsd 0x9f95(%rip), %xmm1     # 0xf468
movslq 0x9fc6(%rip), %rax      # 0xf4a0
movslq 0x19b87(%rip), %rcx     # 0x1f068
cmpl %ecx, %eax
jge 0x5527
movq 0x19814(%rip), %rdx     # 0x1ed00
movq 0x18(%rdx), %rdx
movq (%rdx), %rdx
movl 0x19b77(%rip), %esi     # 0x1f070
movapd %xmm1, %xmm2
xorps %xmm3, %xmm3
cvtsi2sdl (%rdx,%rax,4), %xmm3
mulsd %xmm2, %xmm3
cvttsd2si %xmm3, %edi
movl %edi, (%rdx,%rax,4)
cmpl $0x1, %esi
je 0x551b
addsd %xmm0, %xmm2
jmp 0x551f
mulsd %xmm0, %xmm2
incq %rax
cmpq %rax, %rcx
jne 0x54fd
mulsd 0x9f51(%rip), %xmm1     # 0xf480
movl $0xffffffff, 0x9f67(%rip) # imm = 0xFFFFFFFF
movsd %xmm1, 0x9f27(%rip)     # 0xf468
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x9f2e(%rip)      # 0xf480
popq %rax
retq