LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/lyda[P]tz/zic.c
// Function: stringoffset
static int
stringoffset(result, offset)
char *	result;
long	offset;
{
	register int	hours;
	register int	minutes;
	register int	seconds;

	result[0] = '\0';
	if (offset < 0) {
		(void) strcpy(result, "-");
		offset = -offset;
	}
	seconds = offset % SECSPERMIN;
	offset /= SECSPERMIN;
	minutes = offset % MINSPERHOUR;
	offset /= MINSPERHOUR;
	hours = offset;
	if (hours >= HOURSPERDAY) {
		result[0] = '\0';
		return -1;
	}
	(void) sprintf(end(result), "%d", hours);
	if (minutes != 0 || seconds != 0) {
		(void) sprintf(end(result), ":%02d", minutes);
		if (seconds != 0)
			(void) sprintf(end(result), ":%02d", seconds);
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movb $0x0, (%rdi)
testq %rsi, %rsi
jns 0x6636
movw $0x2d, (%rbx)
negq %rsi
pushq $0x3c
popq %rcx
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
movq %rdx, %r14
xorl %r15d, %r15d
xorl %edx, %edx
divq %rcx
movq %rdx, %r12
movl $0xe10, %ecx            # imm = 0xE10
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
movq %rax, %r13
cmpl $0x18, %r13d
jl 0x666e
movb $0x0, (%rbx)
pushq $-0x1
popq %r15
jmp 0x66da
movq %rbx, %rdi
callq 0x20e0
leaq (%rax,%rbx), %rdi
leaq 0x3486(%rip), %rsi      # 0x9b07
movl %r13d, %edx
xorl %eax, %eax
callq 0x2280
movq %r12, %rax
orq %r14, %rax
je 0x66da
movq %rbx, %rdi
callq 0x20e0
leaq (%rax,%rbx), %rdi
leaq 0x3450(%rip), %rsi      # 0x9af6
xorl %r15d, %r15d
movl %r12d, %edx
xorl %eax, %eax
callq 0x2280
testq %r14, %r14
je 0x66da
movq %rbx, %rdi
callq 0x20e0
addq %rax, %rbx
leaq 0x342c(%rip), %rsi      # 0x9af6
xorl %r15d, %r15d
movq %rbx, %rdi
movl %r14d, %edx
xorl %eax, %eax
callq 0x2280
movl %r15d, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/lyda[P]tz/zic.c
// Function: stringrule
static int
stringrule(result, rp, dstoff, gmtoff)
char *				result;
const struct rule * const	rp;
const long			dstoff;
const long			gmtoff;
{
	register long	tod;

	result = end(result);
	if (rp->r_dycode == DC_DOM) {
		register int	month, total;

		if (rp->r_dayofmonth == 29 && rp->r_month == TM_FEBRUARY)
			return -1;
		total = 0;
		for (month = 0; month < rp->r_month; ++month)
			total += len_months[0][month];
		(void) sprintf(result, "J%d", total + rp->r_dayofmonth);
	} else {
		register int	week;

		if (rp->r_dycode == DC_DOWGEQ) {
			if ((rp->r_dayofmonth % DAYSPERWEEK) != 1)
				return -1;
			week = 1 + rp->r_dayofmonth / DAYSPERWEEK;
		} else if (rp->r_dycode == DC_DOWLEQ) {
			if (rp->r_dayofmonth == len_months[1][rp->r_month])
				week = 5;
			else {
				if ((rp->r_dayofmonth % DAYSPERWEEK) != 0)
					return -1;
				week = rp->r_dayofmonth / DAYSPERWEEK;
			}
		} else	return -1;	/* "cannot happen" */
		(void) sprintf(result, "M%d.%d.%d",
			rp->r_month + 1, week, rp->r_wday);
	}
	tod = rp->r_tod;
	if (rp->r_todisgmt)
		tod += gmtoff;
	if (rp->r_todisstd && rp->r_stdoff == 0)
		tod += dstoff;
	if (tod < 0) {
		result[0] = '\0';
		return -1;
	}
	if (tod != 2 * SECSPERMIN * MINSPERHOUR) {
		(void) strcat(result, "/");
		if (stringoffset(end(result), tod) != 0)
			return -1;
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %rbx
callq 0x20e0
movq %rax, %r15
addq %rbx, %r15
movl 0x34(%r13), %eax
pushq $-0x1
popq %rbx
cmpl $0x2, %eax
je 0x6777
cmpl $0x1, %eax
je 0x675c
testl %eax, %eax
jne 0x6832
movl 0x30(%r13), %ecx
movl 0x38(%r13), %eax
movl %eax, %edx
xorl $0x1d, %edx
movl %ecx, %esi
xorl $0x1, %esi
orl %edx, %esi
je 0x6832
xorl %esi, %esi
testl %ecx, %ecx
cmovlel %esi, %ecx
shlq $0x2, %rcx
leaq 0x2924(%rip), %rdi      # 0x9070
xorl %edx, %edx
cmpq %rsi, %rcx
je 0x67bc
addl (%rsi,%rdi), %edx
addq $0x4, %rsi
jmp 0x674e
movl 0x38(%r13), %eax
pushq $0x7
popq %rcx
cltd
idivl %ecx
cmpl $0x1, %edx
jne 0x6832
incl %eax
movl 0x30(%r13), %ecx
jmp 0x679f
movl 0x38(%r13), %eax
movslq 0x30(%r13), %rcx
leaq 0x28ea(%rip), %rdx      # 0x9070
cmpl 0x30(%rdx,%rcx,4), %eax
jne 0x6791
pushq $0x5
popq %rax
jmp 0x679f
pushq $0x7
popq %rsi
cltd
idivl %esi
testl %edx, %edx
jne 0x6832
incl %ecx
movl 0x3c(%r13), %r8d
leaq 0x3354(%rip), %rsi      # 0x9b00
movq %r15, %rdi
movl %ecx, %edx
movl %eax, %ecx
xorl %eax, %eax
callq 0x2280
jmp 0x67cf
addl %eax, %edx
leaq 0x3337(%rip), %rsi      # 0x9afc
movq %r15, %rdi
xorl %eax, %eax
callq 0x2280
xorl %eax, %eax
cmpl $0x0, 0x4c(%r13)
cmoveq %rax, %r14
addq 0x40(%r13), %r14
cmpl $0x0, 0x48(%r13)
je 0x67f3
xorl %eax, %eax
cmpq $0x0, 0x50(%r13)
cmoveq %r12, %rax
addq %rax, %r14
testq %r14, %r14
js 0x682e
cmpq $0x1c20, %r14           # imm = 0x1C20
je 0x682a
movq %r15, %rdi
callq 0x20e0
movw $0x2f, (%r15,%rax)
movq %r15, %rdi
callq 0x20e0
addq %rax, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x661a
testl %eax, %eax
jne 0x6832
xorl %ebx, %ebx
jmp 0x6832
movb $0x0, (%r15)
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/mjosaarinen[P]brutus/crypto_aead/aegis256/aesni/encrypt.c
// Function: aegis256_tag_generation
void aegis256_tag_generation(unsigned long long msglen, unsigned long long adlen, unsigned char maclen, unsigned char *mac, __m128i *state)
{
       int i;

        __m128i  tmp;
        __m128i  msgtmp;
        unsigned char t[16], tt[16];

        for (i = 0; i < 16; i++) tt[i] = 0;
	((unsigned long long*)tt)[0] = adlen  << 3;
	((unsigned long long*)tt)[1] = msglen << 3;
	msgtmp = _mm_load_si128((__m128i*)tt);

        msgtmp = _mm_xor_si128(msgtmp, state[3]);

        for (i = 0; i < 7; i++) {  
             //state update function
             tmp = state[5];
             state[5] = _mm_aesenc_si128(state[4],state[5]);
             state[4] = _mm_aesenc_si128(state[3],state[4]);
             state[3] = _mm_aesenc_si128(state[2],state[3]);
             state[2] = _mm_aesenc_si128(state[1],state[2]);
             state[1] = _mm_aesenc_si128(state[0],state[1]);
             state[0] = _mm_aesenc_si128(tmp,state[0]);

            //xor "msg" with state[0]
             state[0] = _mm_xor_si128(state[0], msgtmp);
        }

        state[5] = _mm_xor_si128(state[5], state[4]);
        state[5] = _mm_xor_si128(state[5], state[3]);
        state[5] = _mm_xor_si128(state[5], state[2]);
        state[5] = _mm_xor_si128(state[5], state[1]);
        state[5] = _mm_xor_si128(state[5], state[0]);

        _mm_store_si128((__m128i*)t, state[5]);
        //in this program, the mac length is assumed to be multiple of bytes
        memcpy(mac,t,maclen);
}

// Assembly:
subq $0x28, %rsp
xorl %eax, %eax
cmpq $0x10, %rax
je 0x125f
movb $0x0, (%rsp,%rax)
incq %rax
jmp 0x1250
shlq $0x3, %rsi
movq %rsi, (%rsp)
shlq $0x3, %rdi
movq %rdi, 0x8(%rsp)
vmovdqa (%rsp), %xmm4
vmovdqa (%r8), %xmm0
vmovdqa 0x10(%r8), %xmm1
vmovdqa 0x20(%r8), %xmm2
vmovdqa 0x30(%r8), %xmm6
vmovdqa 0x50(%r8), %xmm7
vmovdqa 0x40(%r8), %xmm3
pushq $0x7
popq %rax
vmovdqa %xmm6, %xmm5
subl $0x1, %eax
jb 0x12cf
vaesenc %xmm7, %xmm3, %xmm8
vaesenc %xmm3, %xmm5, %xmm3
vaesenc %xmm5, %xmm2, %xmm5
vaesenc %xmm2, %xmm1, %xmm2
vaesenc %xmm1, %xmm0, %xmm1
vaesenc %xmm0, %xmm7, %xmm0
vpternlogq $0x96, %xmm6, %xmm4, %xmm0
vmovdqa %xmm8, %xmm7
jmp 0x129f
vmovdqa %xmm3, 0x40(%r8)
vmovdqa %xmm5, 0x30(%r8)
vmovdqa %xmm2, 0x20(%r8)
vmovdqa %xmm1, 0x10(%r8)
vmovdqa %xmm0, (%r8)
vpxor %xmm7, %xmm3, %xmm3
vpternlogq $0x96, %xmm2, %xmm5, %xmm3
vpternlogq $0x96, %xmm0, %xmm1, %xmm3
vmovdqa %xmm3, 0x50(%r8)
leaq 0x10(%rsp), %rsi
vmovdqa %xmm3, (%rsi)
movzbl %dl, %edx
movq %rcx, %rdi
callq 0x10a0
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/timocramer[P]thinklight-fun/tl-morsestrobo.c
// Function: morse_char
static void morse_char(char c) {
	const char *p = morse_code(c);
	
	if(p != NULL) {
		while(*p != 0) {
			tl_toggle();
			if(*p == '.')
				usleep(DIT);
			else
				usleep(DAH);
			
			tl_toggle();
			usleep(AFTER_SYMBOL);
			
			++p;
		}
	}
	else if(c == ' ')
		usleep(AFTER_WORD);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
leal -0x61(%rdi), %eax
movl %edi, %ecx
andb $0x5f, %cl
cmpb $0x1a, %al
movzbl %cl, %eax
cmovael %edi, %eax
addb $-0x27, %al
cmpb $0x38, %al
ja 0x141a
movzbl %al, %eax
movabsq $0x10fffffff5ffff7, %rcx # imm = 0x10FFFFFFF5FFFF7
btq %rax, %rcx
jae 0x141a
leaq 0xd84(%rip), %rcx       # 0x2164
movslq (%rcx,%rax,4), %rbx
addq %rcx, %rbx
movl $0x29810, %ebp          # imm = 0x29810
cmpb $0x0, (%rbx)
je 0x1430
callq 0x1558
cmpb $0x2e, (%rbx)
movl $0x7c830, %edi          # imm = 0x7C830
cmovel %ebp, %edi
callq 0x10f0
callq 0x1558
movl $0x29810, %edi          # imm = 0x29810
callq 0x10f0
incq %rbx
jmp 0x13ec
cmpb $0x20, %dil
jne 0x1430
movl $0xa6040, %edi          # imm = 0xA6040
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x10f0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/timocramer[P]thinklight-fun/tl-morsestrobo.c
// Function: restore_status_and_exit
static void restore_status_and_exit(int s) {
	(void) s;
	
	if(initial_status == TL_ON)
		tl_on();
	else
		tl_off();
	
	tl_deinit();
	unlock();
	exit(0);
}

// Assembly:
pushq %rax
cmpb $0x1, 0x2c38(%rip)      # 0x4098
jne 0x1469
callq 0x14b8
jmp 0x146e
callq 0x14e4
callq 0x14a0
callq 0x1437
xorl %edi, %edi
callq 0x10e0
nop
// File: /workspace/github_c_makefile_star2_O2/Tarsnap[P]spiped/spipe/main.c
// Function: callback_graceful_shutdown
static int
callback_graceful_shutdown(void * cookie)
{
	struct events_threads * ET = cookie;
	int rc;
	int i;

	/* Cancel the threads. */
	for (i = 0; i < 2; i++) {
		if ((rc = pthread_cancel(ET->threads[i])) != 0) {
			/*
			 * According to the POSIX standard, a Thread ID should
			 * still be valid after pthread_exit has been invoked
			 * by the thread if pthread_join() has not yet been
			 * called.  However, many platforms return ESRCH in
			 * this situation.
			 */
			if (rc != ESRCH) {
				warn0("pthread_cancel: %s", strerror(rc));
				goto err0;
			}
		}
	}

	/* Wait for the threads to finish. */
	for (i = 0; i < 2; i++) {
		if ((rc = pthread_join(ET->threads[i], NULL)) != 0) {
			warn0("pthread_join: %s", strerror(rc));
			goto err0;
		}
	}

	/* We've stopped the threads. */
	ET->stopped = 1;

	/* Shut down the main event loop. */
	ET->conndone = 1;

	/* Success! */
	return (0);

err0:
	/* Failure! */
	return (-1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
cmpq $0x2, %r14
je 0x420a
movq (%rbx,%r14,8), %rdi
callq 0x3390
testl %eax, %eax
je 0x4205
cmpl $0x3, %eax
jne 0x4242
incq %r14
jmp 0x41ed
xorl %r14d, %r14d
cmpq $0x2, %r14
je 0x4235
movq (%rbx,%r14,8), %rdi
xorl %esi, %esi
callq 0x3030
incq %r14
testl %eax, %eax
je 0x420d
movl %eax, %edi
callq 0x32e0
leaq 0xaf75(%rip), %rdi      # 0xf1a8
jmp 0x4250
pushq $0x1
popq %rax
movl %eax, 0x18(%rbx)
movl %eax, 0x10(%rbx)
xorl %eax, %eax
jmp 0x4265
movl %eax, %edi
callq 0x32e0
leaq 0xaf69(%rip), %rdi      # 0xf1b9
movq %rax, %rsi
xorl %eax, %eax
callq 0x7198
callq 0x3400
andl $0x0, (%rax)
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/char_array_expandable.c
// Function: char_array_expandable_put
void char_array_expandable_put(char_array_expandable *self, int8_t c){

	if(self->length == self->capacity){

		uint16_t old_capacity = self->capacity;

		self->capacity += self->capacity/5;

		int8_t *new_data = (int8_t*) malloc(sizeof(int8_t) * self->capacity);
		int8_t *old_data = self->data;

		uint16_t i;
		for(i = 0; i < old_capacity; i++)
			new_data[i] = old_data[i];

		free(old_data);

		self->data = new_data;

	}

	self->data[self->length] =  c;

	self->length++;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movzwl 0x2(%rdi), %ecx
cmpw (%rdi), %cx
jne 0x12e3
movzwl %cx, %r15d
xorl %r12d, %r12d
movw $0x5, %si
movl %ecx, %eax
xorl %edx, %edx
divw %si
addl %eax, %ecx
movw %cx, (%rbx)
movzwl %cx, %edi
callq 0x1100
movq %rax, %r14
movq 0x8(%rbx), %rdi
cmpq %r12, %r15
je 0x12e9
movb (%rdi,%r12), %al
movb %al, (%r14,%r12)
incq %r12
jmp 0x12d1
movq 0x8(%rbx), %r14
jmp 0x12f6
callq 0x1030
movq %r14, 0x8(%rbx)
movzwl 0x2(%rbx), %ecx
movzwl %cx, %eax
movb %bpl, (%r14,%rax)
incw 0x2(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/float_ring_buffer.c
// Function: float_ring_buffer_init
void float_ring_buffer_init(float_ring_buffer *self, unsigned short capacity){

	self->size = capacity;
	self->data = (float*) malloc(sizeof(float) * capacity);

	self->read_position = 0;
	self->write_position = 0;

}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movw %si, 0xc(%rdi)
leal (,%rsi,4), %edi
callq 0x1100
movq %rax, (%rbx)
andl $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/char_ring_buffer.c
// Function: char_ring_buffer_init
void char_ring_buffer_init(char_ring_buffer *self, unsigned short capacity){

	self->size = capacity;
	self->data = (signed char*) malloc(sizeof(char) * capacity);

	self->read_position = 0;
	self->write_position = 0;

}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movw %si, 0xc(%rdi)
movl %esi, %edi
callq 0x1100
movq %rax, (%rbx)
andl $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/APRSPacket.c
// Function: APRSPacket_from_data
void APRSPacket_from_data(APRSPacket *packet, char_array *data){

	int i;

	packet->data.len = data->len;
	packet->data.data = data->data;

	for(i = 0; i < 7; i++) packet->destination_address[i] = (signed char)((unsigned char)(data->data[i])>>1);
	packet->destination_address[7] = '\0';

	for(i = 7; i < 14; i++) packet->source_address[i-7] = (signed char)((unsigned char)(data->data[i])>>1);
	packet->source_address[7] = '\0';

	packet->repeaters = 0;
	packet->repeater_addresses = (signed char**) malloc(sizeof(void*)*8);

	int n = 14;
	while(true){

		if(n+1 >= data->len) break;

		// Check for 0 bit set on end of last address character indicating that there are no more repeater addresses
		if((data->data[n-1] & 0x01) != 0) break;

		if(packet->repeaters > 7) break;

		if(n+7 >= data->len) break;

		signed char* new_address = (signed char*) malloc(sizeof(char)*8);
		for(i = n; i < n+7; i++) new_address[i-n] = (signed char)((unsigned char)(data->data[i])>>1);
		new_address[7] = '\0';
		n+=7;

		packet->repeater_addresses[packet->repeaters] = new_address;
		packet->repeaters++;

	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movzwl (%rsi), %eax
movw %ax, (%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdi)
xorl %eax, %eax
cmpq $0x7, %rax
je 0x14a6
movq 0x8(%rbx), %rcx
movb (%rcx,%rax), %cl
shrb %cl
movb %cl, 0x10(%r14,%rax)
incq %rax
jmp 0x148d
movb $0x0, 0x17(%r14)
xorl %eax, %eax
cmpq $0x7, %rax
je 0x14c7
movq 0x8(%rbx), %rcx
movb 0x7(%rcx,%rax), %cl
shrb %cl
movb %cl, 0x18(%r14,%rax)
incq %rax
jmp 0x14ad
andw $0x0, 0x1f(%r14)
pushq $0x40
popq %rdi
callq 0x1100
movq %rax, 0x28(%r14)
movzwl (%rbx), %ecx
pushq $0xe
popq %rbp
xorl %r13d, %r13d
movq %rcx, (%rsp)
leaq 0x1(%rbp), %rax
cmpq %rcx, %rax
jae 0x154b
movq 0x8(%rbx), %r15
testb $0x1, -0x1(%r15,%rbp)
jne 0x154b
cmpb $0x7, %r13b
ja 0x154b
leaq 0x7(%rbp), %r12
cmpq %rcx, %r12
jae 0x154b
pushq $0x8
popq %rdi
callq 0x1100
addq %rbp, %r15
xorl %ecx, %ecx
cmpq $0x7, %rcx
je 0x152b
movb (%r15,%rcx), %dl
shrb %dl
movb %dl, (%rax,%rcx)
incq %rcx
jmp 0x1517
movb $0x0, 0x7(%rax)
movq 0x28(%r14), %rcx
movzbl %r13b, %edx
movq %rax, (%rcx,%rdx,8)
incb %r13b
movb %r13b, 0x20(%r14)
movq %r12, %rbp
movq (%rsp), %rcx
jmp 0x14e6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/APRSPacket.c
// Function: APRSPacket_destroy
void APRSPacket_destroy(APRSPacket *packet){

	int i;
	for(i = 0; i < packet->repeaters; i++)
		free(packet->repeater_addresses[i]);
	free(packet->repeater_addresses);

	free(packet->data.data);

}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r14d, %r14d
movzbl 0x20(%rbx), %eax
movq 0x28(%rbx), %rdi
cmpq %rax, %r14
jae 0x1598
movq (%rdi,%r14,8), %rdi
callq 0x1030
incq %r14
jmp 0x157d
callq 0x1030
movq 0x8(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1030
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/AFSK_Demodulator.c
// Function: AFSK_Demodulator_reset
void AFSK_Demodulator_reset(AFSK_Demodulator *self){

	self->count_last = 0;

	self->window = (int)(self->sample_rate/self->bit_rate+0.5);

	self->bitwidth = self->sample_rate/self->bit_rate;

	/*
	 * Calculate Goertzel coefficents for calculating frequency magnitudes
	 */
	float k0 = ((float)self->window*self->frequency_0/self->sample_rate);
	float k1 = ((float)self->window*self->frequency_1/self->sample_rate);
	float w0 = (2*PI/self->window)*k0;
	float w1 = (2*PI/self->window)*k1;

	self->coeff0 = 2*cos(w0);
	self->coeff1 = 2*cos(w1);

	self->last_bit = 0;

	self->bit_stuffing = false;

	if(self->input_buffer.size != 0)
		char_ring_buffer_destory(&self->input_buffer);
	char_ring_buffer_init(&self->input_buffer, self->window+2);

	if(self->fcd_buffer.size != 0)
		float_ring_buffer_destory(&self->fcd_buffer);
	float_ring_buffer_init(&self->fcd_buffer, self->window+2);

	char_array_expandable_clear(&self->byte_sequence);
	char_ring_buffer_clear(&self->bit_sequence);

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
andw $0x0, 0x3c(%rdi)
movl 0x20(%rdi), %ecx
movzwl 0x24(%rdi), %esi
xorl %ebp, %ebp
movl %ecx, %eax
xorl %edx, %edx
divl %esi
cvtsi2sd %rax, %xmm0
addsd 0x1a2c(%rip), %xmm0     # 0x3008
cvttsd2si %xmm0, %edx
movb %dl, 0x26(%rdi)
movb %al, 0x3e(%rdi)
movzbl %dl, %eax
cvtsi2ss %eax, %xmm0
movzwl 0x28(%rdi), %edx
cvtsi2ss %edx, %xmm1
mulss %xmm0, %xmm1
cvtsi2ss %rcx, %xmm2
movzwl 0x2a(%rdi), %ecx
cvtsi2ss %ecx, %xmm3
divss %xmm2, %xmm1
mulss %xmm0, %xmm3
cvtsi2sd %eax, %xmm0
divss %xmm2, %xmm3
movsd 0x19f2(%rip), %xmm2     # 0x3010
divsd %xmm0, %xmm2
cvtss2sd %xmm1, %xmm0
mulsd %xmm2, %xmm0
cvtsd2ss %xmm0, %xmm0
cvtss2sd %xmm3, %xmm1
mulsd %xmm2, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, 0xc(%rsp)
cvtss2sd %xmm0, %xmm0
callq 0x10b0
addsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x2c(%rbx)
cvtss2sd 0xc(%rsp), %xmm0
callq 0x10b0
addsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x30(%rbx)
andw $0x0, 0x58(%rbx)
cmpw %bp, 0xc(%rbx)
je 0x1681
movq %rbx, %rdi
callq 0x1461
movzbl 0x26(%rbx), %esi
addl $0x2, %esi
movq %rbx, %rdi
callq 0x13c8
leaq 0x10(%rbx), %r14
cmpw $0x0, 0x1c(%rbx)
je 0x16a3
movq %r14, %rdi
callq 0x13bd
movzbl 0x26(%rbx), %esi
addl $0x2, %esi
movq %r14, %rdi
callq 0x1320
leaq 0x60(%rbx), %rdi
callq 0x130f
addq $0x40, %rbx
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x1448
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/AFSK_Demodulator.c
// Function: AFSK_Demodulator_destroy
void AFSK_Demodulator_destroy(AFSK_Demodulator *self){

	if(self->input_buffer.size != 0)
		char_ring_buffer_destory(&self->input_buffer);
	if(self->fcd_buffer.size != 0)
		float_ring_buffer_destory(&self->fcd_buffer);

	if(self->bit_sequence.size != 0)
		char_ring_buffer_destory(&self->bit_sequence);

	if(self->byte_sequence.capacity != 0)
		char_array_expandable_destroy(&self->byte_sequence);

}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpw $0x0, 0xc(%rdi)
je 0x1732
movq %rbx, %rdi
callq 0x1461
cmpw $0x0, 0x1c(%rbx)
je 0x1742
leaq 0x10(%rbx), %rdi
callq 0x13bd
cmpw $0x0, 0x4c(%rbx)
je 0x1752
leaq 0x40(%rbx), %rdi
callq 0x1461
cmpw $0x0, 0x60(%rbx)
je 0x1766
addq $0x60, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x1315
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/packet_main.c
// Function: print_raw_packet
void print_raw_packet(APRSPacket *packet){

	unsigned short length = packet->data.len;

	fputc((length>>8) & 0xFF, stdout);
	fputc( length     & 0xFF, stdout);

	fwrite(packet->data.data, sizeof(char), packet->data.len, stdout);
	fflush(stdout);

	fprintf(stderr, "packet: Packet Length: %d\n", packet->data.len);

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movzwl (%rdi), %ebp
movl %ebp, %edi
shrl $0x8, %edi
movq 0x34ca(%rip), %r14      # 0x4fd0
movq (%r14), %rsi
callq 0x10c0
movzbl %bpl, %edi
movq (%r14), %rsi
callq 0x10c0
movq 0x8(%rbx), %rdi
movzwl (%rbx), %edx
movq (%r14), %rcx
pushq $0x1
popq %rsi
callq 0x1150
movq (%r14), %rdi
callq 0x1110
movq 0x34bd(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movzwl (%rbx), %edx
leaq 0x1566(%rip), %rsi      # 0x30ae
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x10d0
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/packet_main.c
// Function: print_detailed_packet
void print_detailed_packet(APRSPacket *packet, unsigned short calculated_checksum, unsigned short checksum){

	int i;

	printf("Packet Received\n");

	if(calculated_checksum != checksum)
		printf("Checksum Error!\nCaluclated checksum is: %04X\n", calculated_checksum);

	printf("Size: %d\n", packet->data.len);
	printf("Destination Address: %s\n", packet->destination_address);
	printf("Source Address: %s\n", packet->source_address);
	for(i = 0; i < packet->repeaters; i++)
		printf("Repeater-%d: %s\n", i+1, packet->repeater_addresses[i]);

	printf("\nData: \n");

	i = 0;
	while(i < packet->data.len){
		int j;
		for(j = 0; j < 20; j++){
			if(i < packet->data.len){
				if(isprint(packet->data.data[i])) putchar(packet->data.data[i]);
				else printf(".");
			} else putchar(' ');
			i++;
		}
		i -= 20;
		printf("  |  ");
		for(j = 0; j < 20; j++){
			if(i < packet->data.len){
				unsigned char val = packet->data.data[i];
				printf(" %02X", (int)val);
				i++;
			}
		}
		putchar('\n');
	}

	printf("\nChecksum: %04X\n", checksum);
	fflush(stdout);

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x17f0(%rip), %rdi      # 0x335c
callq 0x1060
movl %ebp, 0x4(%rsp)
cmpw %bp, %bx
je 0x1b8b
movzwl %bx, %esi
leaq 0x1545(%rip), %rdi      # 0x30c9
xorl %eax, %eax
callq 0x10a0
movzwl (%r14), %esi
leaq 0x1561(%rip), %rdi      # 0x30f7
xorl %eax, %eax
callq 0x10a0
leaq 0x10(%r14), %rsi
leaq 0x1559(%rip), %rdi      # 0x3101
xorl %eax, %eax
callq 0x10a0
leaq 0x18(%r14), %rsi
leaq 0x1560(%rip), %rdi      # 0x311a
xorl %eax, %eax
callq 0x10a0
leaq 0x1566(%rip), %rbx      # 0x312e
xorl %r15d, %r15d
movzbl 0x20(%r14), %eax
cmpq %rax, %r15
jae 0x1bef
movq 0x28(%r14), %rax
movq (%rax,%r15,8), %rdx
incq %r15
movq %rbx, %rdi
movl %r15d, %esi
xorl %eax, %eax
callq 0x10a0
jmp 0x1bcb
leaq 0x1776(%rip), %rdi      # 0x336c
callq 0x1060
pushq $0x14
popq %r13
leaq 0x153f(%rip), %r12      # 0x3145
pushq $0x20
popq %rbx
xorl %ebp, %ebp
movzwl (%r14), %eax
cmpl %eax, %ebp
jge 0x1ca2
movslq %ebp, %r15
movl %r13d, %eax
subl $0x1, %r13d
jb 0x1c57
movzwl (%r14), %eax
cmpq %rax, %r15
jge 0x1c49
callq 0x1170
movq (%rax), %rax
movq 0x8(%r14), %rcx
movsbq (%rcx,%r15), %rdi
testb $0x40, 0x1(%rax,%rdi,2)
jne 0x1c4d
pushq $0x2e
popq %rdi
jmp 0x1c4d
movl %ebx, %edi
jmp 0x1c4d
callq 0x1040
incq %r15
jmp 0x1c1a
subl %eax, %ebp
leaq 0x14df(%rip), %rdi      # 0x313f
xorl %eax, %eax
callq 0x10a0
pushq $0x14
popq %r13
movl %r13d, %r15d
subl $0x1, %r15d
jb 0x1c95
movzwl (%r14), %eax
cmpl %eax, %ebp
jge 0x1c6e
movq 0x8(%r14), %rax
movslq %ebp, %rcx
movzbl (%rax,%rcx), %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0x10a0
incl %ebp
jmp 0x1c6e
pushq $0xa
popq %rdi
callq 0x1040
jmp 0x1c0b
movzwl 0x4(%rsp), %esi
leaq 0x149d(%rip), %rdi      # 0x314b
xorl %eax, %eax
callq 0x10a0
movq 0x3314(%rip), %rax      # 0x4fd0
movq (%rax), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1110
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/packet_main.c
// Function: print_packet
void print_packet(APRSPacket *packet, bool show_errors_bool, bool raw){

	uint16_t fsc = APRSPacket_crc(packet);

	/* CRC is added to packet with bytes reversed
	 */
	uint16_t fsc2 = packet->data.data[packet->data.len-1];
	fsc2 <<= 8;
	fsc2 |= packet->data.data[packet->data.len-2] & 0xFF;

	if(fsc != fsc2 && !show_errors_bool) return;

	if(raw)
		print_raw_packet(packet);

	else
		print_detailed_packet(packet, fsc, fsc2);

}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
xorb $0x1, %r14b
callq 0x155a
movq 0x8(%rbx), %rcx
movzwl (%rbx), %edx
movzwl -0x2(%rcx,%rdx), %ecx
cmpw %cx, %ax
setne %dl
testb %r14b, %dl
jne 0x1d0f
testb %bpl, %bpl
je 0x1d14
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1af0
popq %rbx
popq %r14
popq %rbp
retq
movzwl %ax, %esi
movzwl %cx, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1b53
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/packet/packet_main.c
// Function: parse_opt
static error_t parse_opt(int key, char *arg, struct argp_state *state){

	// remove cast in full C
	struct arguments *arguments = ((struct arguments*)(state->input));

	switch(key){
		case 'i':
			arguments->filename = arg;
			break;
		case 's':
			arguments->sample_rate = atoi(arg);
			break;
		case 'b':
			arguments->bit_rate = atoi(arg);
			break;
		case 'e':
			arguments->show_errors = true;
			break;
		case 'r':
			arguments->raw = true;
			break;
		case 'n':
			arguments->noise_floor = atoi(arg);
			break;
		case 'o':
			arguments->offset = atof(arg);
			break;
		case -1:
			arguments->frequency_0 = atoi(arg);
			break;
		case -2:
			arguments->frequency_1 = atoi(arg);
			break;
		default:
			return ARGP_ERR_UNKNOWN;
	}
	return 0;
}

// Assembly:
pushq %rbx
movq 0x28(%rdx), %rbx
pushq $-0x1
popq %rax
leal -0x65(%rdi), %ecx
cmpl $0xe, %ecx
ja 0x1ea0
leaq 0x11bf(%rip), %rdx      # 0x3050
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movb $0x1, 0x18(%rbx)
jmp 0x1f0c
cmpl $-0x2, %edi
je 0x1f01
cmpl $-0x1, %edi
je 0x1ef4
cmpl $0x62, %edi
jne 0x1f0e
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x14(%rbx)
jmp 0x1f0c
movb $0x1, 0x19(%rbx)
jmp 0x1f0c
movq %rsi, %rdi
callq 0x1070
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x20(%rbx)
jmp 0x1f0c
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x1c(%rbx)
jmp 0x1f0c
movq %rsi, (%rbx)
jmp 0x1f0c
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x10(%rbx)
jmp 0x1f0c
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x8(%rbx)
jmp 0x1f0c
movq %rsi, %rdi
callq 0x1140
movl %eax, 0xc(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/util/argp.c
// Function: argp_parse
error_t argp_parse(struct argp *argp, int argc, char **argv, unsigned flags, int *arg_index,  void *input){

	struct argp_state state;

	state.input = input;

	int i;

	for(i = 1; i < argc; i++){

		if(argv[i][0] == '-'){

			if(argv[i][1] == '-'){

				struct argp_option *op = argp->options;

				int c = -1;

				while(*(uint8_t*)op != 0){

					c = argp_parse_argument(op->name, argv[i]);

					// If we found the option match the parameter
					if(c >= 0)
						break;

					op++;

				}

				if(c >= 0)
					argp->parser(op->key, &argv[i][c+3], &state);

				else {
					// Check if it is help
					c = argp_parse_argument("help", argv[i]);
					if(c >= 0){
						argp_print_help(argv[0], argp->options);
						return ARGP_ERR_HELP;
					} else {
						// Invalid Option
						fprintf(stderr, "%s: unrecognized option '%s'\nTry '%s --help' for more information.\n", argv[0], argv[i], argv[0]);
						return ARGP_ERR_UNKNOWN;
					}
				}

			} else {

				// single character option
				struct argp_option *op = argp->options;

				while(op->arg[0] != 0){

					if(op->key == argv[i][1] && argv[i][2] == '\0'){
						argp->parser(op->key, NULL, &state);
						break;
					}

					op++;

				}

			}

		}

		// Invalid Option
		else {
			return -1;
		}

	}

	return 0;

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %rbp
movq %rdi, %r15
leaq 0x8(%rsp), %rax
movq %r9, 0x28(%rax)
movslq %esi, %r12
pushq $0x1
popq %rbx
movq %r12, (%rsp)
cmpq %r12, %rbx
jge 0x2039
movq (%rbp,%rbx,8), %r13
cmpb $0x2d, (%r13)
jne 0x205f
movsbl 0x1(%r13), %edi
movq (%r15), %r14
cmpl $0x2d, %edi
jne 0x1fb7
movq %rbp, %r12
movq %r14, %rbp
cmpb $0x0, (%rbp)
je 0x2008
movq (%rbp), %rdi
movq %r13, %rsi
callq 0x2063
testl %eax, %eax
jns 0x1fd6
addq $0x30, %rbp
jmp 0x1f9b
addq $0x10, %r14
movq (%r14), %rax
cmpb $0x0, (%rax)
je 0x2000
cmpl %edi, -0x8(%r14)
jne 0x1fd0
cmpb $0x0, 0x2(%r13)
je 0x1ff5
addq $0x30, %r14
jmp 0x1fbb
movl 0x8(%rbp), %edi
movl %eax, %eax
leaq (%rax,%r13), %rsi
addq $0x3, %rsi
leaq 0x8(%rsp), %rdx
callq *0x8(%r15)
movq %r12, %rbp
movq (%rsp), %r12
jmp 0x2000
xorl %esi, %esi
leaq 0x8(%rsp), %rdx
callq *0x8(%r15)
incq %rbx
jmp 0x1f6f
leaq 0x1365(%rip), %rdi      # 0x3374
movq %r13, %rsi
callq 0x2063
testl %eax, %eax
js 0x203d
movq (%r12), %rdi
movq %r14, %rsi
callq 0x209b
pushq $-0x2
popq %rax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x202a
movq 0x2fb4(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movq (%r12), %rdx
leaq 0x1327(%rip), %rsi      # 0x3379
movq %r13, %rcx
movq %rdx, %r8
xorl %eax, %eax
callq 0x10d0
pushq $-0x1
jmp 0x2029
// File: /workspace/github_c_makefile_star2_O2/DrYerzinia[P]C_DigiMode/src/util/argp.c
// Function: argp_parse_argument
static int argp_parse_argument(const char *name, const char *arg){

	int c = 0;

	while(true){

		// They are equal!
		if(name[c] == '\0' && (arg[c+2] == '\0' || arg[c+2] == '='))
			return c;

		// Finish if one string is a different length or if they have different values
		else if(name[c] == '\0' || arg[c+2] == '\0' || arg[c+2] == '=' || name[c] != arg[c+2])
			return -1;

		c++;

	}

	return -1;

}

// Assembly:
xorl %ecx, %ecx
pushq $-0x1
popq %rax
movb (%rdi,%rcx), %dl
testb %dl, %dl
je 0x208a
movzbl 0x2(%rsi,%rcx), %r8d
testl %r8d, %r8d
je 0x209a
cmpl $0x3d, %r8d
je 0x209a
cmpb %r8b, %dl
jne 0x209a
incq %rcx
jmp 0x2068
movzbl 0x2(%rsi,%rcx), %edx
cmpl $0x3d, %edx
je 0x2098
testl %edx, %edx
jne 0x209a
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/ramirezsebas[P]TP-LISTINGS/./src/capitulo_4/4.10/job-queue1.c
// Function: thread_function
void* thread_function (void* arg)
{
  while (job_queue != NULL) {
    /* Get the next available job.  */
    struct job* next_job = job_queue;
    /* Remove this job from the list.  */
    job_queue = job_queue->next;
    /* Carry out the work.  */
    process_job (next_job);
    /* Clean up.  */
    free (next_job);
  }
  return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0xe67(%rip), %rbx       # 0x2004
movq 0x2eb4(%rip), %r14      # 0x4058
testq %r14, %r14
je 0x11c7
movq (%r14), %rax
movq %rax, 0x2ea5(%rip)      # 0x4058
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1040
movq %r14, %rdi
callq 0x1030
jmp 0x119d
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/hasindu2008[P]f5p/f5pl_test.c
// Function: main
int main(int argc, char* argv[]) {
    //argument check check
    if (argc != 3) {
        ERROR("Not enough arguments. Usage  %s <ip_address> <file>\n", argv[0]);
        exit(EXIT_FAILURE);
    }

    char buffer[BUFF_SIZE];

    char* filepath = argv[2];
    int length = strlen(filepath);
    if (length > BUFF_SIZE) {
        ERROR("The file path is longer than the maximum allowed size %d\n",
              BUFF_SIZE);
        exit(EXIT_FAILURE);
    }

    //Connect to the server given as argument on port
    int socketfd = TCP_client_connect(argv[1], PORT);

    //send the message
    send_full_msg(socketfd, filepath, length);

    //receive the message
    int received = recv_full_msg(socketfd, buffer, BUFF_SIZE);

    //print the message
    buffer[received] = '\0'; //null character before printing the string
    fprintf(stderr, "Recieved : %s\n", buffer);

    //close the connection
    TCP_client_disconnect(socketfd);

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movq %rsi, %rbx
cmpl $0x3, %edi
jne 0x1cd6
movq 0x10(%rbx), %r14
movq %r14, %rdi
callq 0x1080
movq %rax, %r15
cmpl $0x1001, %r15d          # imm = 0x1001
jge 0x1cfa
movq 0x8(%rbx), %rdi
movl $0x4e36, %esi           # imm = 0x4E36
callq 0x1859
movl %eax, %ebx
movslq %r15d, %rdx
movl %eax, %edi
movq %r14, %rsi
callq 0x125c
movq %rsp, %r14
movl $0x1000, %edx           # imm = 0x1000
movl %ebx, %edi
movq %r14, %rsi
callq 0x1318
cltq
movb $0x0, (%rsp,%rax)
movq 0x234c(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x836(%rip), %rsi       # 0x24ec
movq %r14, %rdx
xorl %eax, %eax
callq 0x10c0
movl %ebx, %edi
callq 0x1c0b
xorl %eax, %eax
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %r15
retq
movq 0x231b(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
movq (%rbx), %rcx
leaq 0x75e(%rip), %rsi       # 0x2448
leaq 0x7a4(%rip), %rdx       # 0x2495
xorl %eax, %eax
callq 0x10c0
jmp 0x1d1e
movq 0x22f7(%rip), %rax      # 0x3ff8
movq (%rax), %rdi
leaq 0x78f(%rip), %rsi       # 0x249a
leaq 0x783(%rip), %rdx       # 0x2495
movl $0x1000, %ecx           # imm = 0x1000
xorl %eax, %eax
callq 0x10c0
pushq $0x1
popq %rdi
callq 0x1110
nop
// File: /workspace/github_c_makefile_star2_O2/randyrossi[P]fisher-modem/test/testBitBuffer.C
// Function: main
int main(int argc, char** argv) {
  BitBuffer* b = new BitBuffer(1);
  unsigned char t = 0;
  while (t < 255) {
    b->putBit(t);
    int d = b->getBit();
    printf("%d\n", d);
    t++;
  }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl $0xa8, %edi
callq 0x1070
movq %rax, %rbx
pushq $0x1
popq %rsi
movq %rax, %rdi
callq 0x124a
leaq 0xe05(%rip), %r14       # 0x2004
xorl %ebp, %ebp
cmpl $0xff, %ebp
je 0x122b
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1308
movq %rbx, %rdi
callq 0x12a0
movq %r14, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0x1050
incl %ebp
jmp 0x1201
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movl $0xa8, %esi
movq %rbx, %rdi
callq 0x1080
movq %r14, %rdi
callq 0x10d0
// File: /workspace/github_c_makefile_star2_O2/randyrossi[P]fisher-modem/test/./../slow/src/BitBuffer.h
// Function: BitBuffer::BitBuffer(int)
BitBuffer(int capacity) {
    this->capacity = capacity;
    this->capacityMask = capacity - 1;
    head = 0;
    tail = 0;
    waitingfornotfull = false;
    waitingfornotempty = false;
    buf = new int[capacity];
    pthread_mutex_init(&bufferlock, NULL);
    pthread_cond_init(&notempty, NULL);
    pthread_cond_init(&notfull, NULL);
  }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl %esi, (%rdi)
leal -0x1(%rsi), %eax
movl %eax, 0x4(%rdi)
andq $0x0, 0x8(%rdi)
andw $0x0, 0x40(%rdi)
movl %esi, %eax
shlq $0x2, %rax
testl %esi, %esi
pushq $-0x1
popq %rdi
cmovnsq %rax, %rdi
callq 0x1040
movq %rax, 0x10(%rbx)
leaq 0x18(%rbx), %rdi
xorl %esi, %esi
callq 0x10b0
leaq 0x48(%rbx), %rdi
xorl %esi, %esi
callq 0x1090
addq $0x78, %rbx
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
jmp 0x1090
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/randyrossi[P]fisher-modem/slow/src/BitBuffer.C
// Function: BitBuffer::getBit()
int BitBuffer::getBit() {
  int c;
  pthread_mutex_lock(&bufferlock);
  while (head - tail == 0) {
    pthread_cond_wait(&notempty, &bufferlock);
  }

  c = buf[tail++ & capacityMask];

  pthread_cond_signal(&notfull);

  pthread_mutex_unlock(&bufferlock);
  return c;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x10a0
leaq 0x48(%r14), %r15
movslq 0xc(%r14), %rax
cmpl %eax, 0x8(%r14)
jne 0x12d1
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10c0
jmp 0x12ba
movq 0x10(%r14), %rcx
leal 0x1(%rax), %edx
movl %edx, 0xc(%r14)
movslq 0x4(%r14), %rdx
andq %rax, %rdx
movl (%rcx,%rdx,4), %ebp
addq $0x78, %r14
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1060
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/randyrossi[P]fisher-modem/slow/src/BitBuffer.C
// Function: BitBuffer::putBit(int)
void BitBuffer::putBit(int ch) {
  pthread_mutex_lock(&bufferlock);

  while ((head - tail) >= capacity) {
    pthread_cond_wait(&notfull, &bufferlock);
  }

  buf[head++ & capacityMask] = ch;

  pthread_cond_signal(&notempty);

  pthread_mutex_unlock(&bufferlock);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x10a0
leaq 0x78(%r14), %r15
movslq 0x8(%r14), %rax
movl 0xc(%r14), %ecx
movl %eax, %edx
subl %ecx, %edx
cmpl (%r14), %edx
jl 0x1342
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10c0
jmp 0x1324
movq 0x10(%r14), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x8(%r14)
movslq 0x4(%r14), %rdx
andq %rax, %rdx
movl %ebp, (%rcx,%rdx,4)
addq $0x48, %r14
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1060
nop
// File: /workspace/github_c_makefile_star2_O2/randyrossi[P]fisher-modem/slow/src/BitBuffer.C
// Function: BitBuffer::clear()
void BitBuffer::clear() {
  pthread_mutex_lock(&bufferlock);
  if (head - tail == 0) {
    pthread_mutex_unlock(&bufferlock);
    return;
  }

  head = 0;
  tail = 0;

  pthread_cond_signal(&notfull);

  pthread_mutex_unlock(&bufferlock);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x10a0
movl 0x8(%r14), %eax
cmpl 0xc(%r14), %eax
je 0x13a4
andq $0x0, 0x8(%r14)
addq $0x78, %r14
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1060
// File: /workspace/github_c_makefile_star2_O2/ramirezsebas[P]TP-LISTINGS/./src/capitulo_2/2.5/temp_file.c
// Function: read_temp_file
char* read_temp_file (temp_file_handle temp_file, size_t* length)
{
	char* buffer;
	/* The TEMP_FILE handle is a file descriptor to the temporary file. */
	int fd = temp_file;
	/* Rewind to the beginning of the file. */
	lseek (fd, 0, SEEK_SET);
	/* Read the size of the data in the temporary file. */
	read (fd, length, sizeof (*length));
	/* Allocate a buffer and read the data. */
	buffer = (char*) malloc (*length);
	read (fd, buffer, *length);
	/* Close the file descriptor, which will cause the temporary file to go away. */
	close (fd);
	return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebx
xorl %esi, %esi
xorl %edx, %edx
callq 0x1060
pushq $0x8
popq %rdx
movl %ebx, %edi
movq %r14, %rsi
callq 0x1080
movq (%r14), %r14
movq %r14, %rdi
callq 0x1090
movq %rax, %r15
movl %ebx, %edi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1080
movl %ebx, %edi
callq 0x1070
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/ramirezsebas[P]TP-LISTINGS/./src/capitulo_2/2.5/temp_file.c
// Function: main
int main(){
	char* text = "Prueba de write_temp_file";
	temp_file_handle temp;
	size_t length = strlen(text);
	size_t* pointer = &length;
	temp = write_temp_file(text, length);
	printf("el texto en el temp_file:\n%s", read_temp_file(temp,pointer));
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq -0x10(%rbp), %rbx
movq $0x19, (%rbx)
leaq 0xd8f(%rip), %rdi       # 0x2026
pushq $0x19
popq %rsi
callq 0x11ac
movl %eax, %edi
movq %rbx, %rsi
callq 0x122a
leaq 0xd90(%rip), %rdi       # 0x2040
movq %rax, %rsi
xorl %eax, %eax
callq 0x1050
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_create_default
obdeque * obdeque_create_default(void){

  static const char classname[] = "obdeque";
  obdeque *new_instance = malloc(sizeof(obdeque));
  assert(new_instance != NULL);

  /* initialize base class data */
  ob_init_base((obj *)new_instance, &obdeque_destroy, &obdeque_hash,
               &obdeque_compare, &obdeque_display, classname);

  new_instance->head = NULL;
  new_instance->tail = NULL;
  new_instance->length = 0;

  return new_instance;
}

// Assembly:
pushq %rbx
pushq $0x20
popq %rdi
callq 0x10b0
testq %rax, %rax
je 0x1c56
movq %rax, %rbx
leaq 0xd9a(%rip), %rsi       # 0x29bb
leaq 0xdf3(%rip), %rdx       # 0x2a1b
leaq 0xef1(%rip), %rcx       # 0x2b20
leaq 0x1063(%rip), %r8       # 0x2c99
leaq 0x31b4(%rip), %r9       # 0x4df1
movq %rax, %rdi
callq 0x2f98
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
andq $0x0, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
retq
leaq 0x2ea5(%rip), %rdi      # 0x4b02
leaq 0x29b4(%rip), %rsi      # 0x4618
leaq 0x2fa9(%rip), %rcx      # 0x4c14
movl $0x200, %edx            # imm = 0x200
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_copy
obdeque * obdeque_copy(const obdeque *to_copy){

  obj *element;
  obdeque_iterator *iter;
  obdeque *copy;

  assert(to_copy);

  copy = obdeque_create_default();

  iter = obdeque_head_iterator(to_copy);

  if(!iter) return copy; /* if the list is empty, return empty copy */

  /* while there are elements in the deque to copy add to the tail of the
   * deque */
  do{
    element = obdeque_obj_at_iterator(to_copy, iter);
    obdeque_add_at_tail(copy, element);
  } while(obdeque_iterate_next(to_copy, iter));

  ob_release((obj *)iter);

  return copy;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x1cd0
movq %rdi, %rbx
callq 0x1c09
movq %rax, %r14
movq %rbx, %rdi
callq 0x1ced
testq %rax, %rax
je 0x1cc7
movq %rax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1d19
movq %r14, %rdi
movq %rax, %rsi
callq 0x1d9a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1e12
testb %al, %al
jne 0x1c9a
movq %r15, %rdi
callq 0x316a
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2939(%rip), %rdi      # 0x4610
leaq 0x293a(%rip), %rsi      # 0x4618
leaq 0x2949(%rip), %rcx      # 0x462e
pushq $0x18
popq %rdx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_obj_at_iterator
obj * obdeque_obj_at_iterator(const obdeque *deque, const obdeque_iterator *it){

  assert(deque);
  assert(it);
  assert(it->deque == deque); /* assert that iterator belongs to provided
                                 deque */
  if(!it->node) return NULL; /* if the iterator is empty return NULL */
  return it->node->stored;
}

// Assembly:
pushq %rax
testq %rdi, %rdi
je 0x1d3d
testq %rsi, %rsi
je 0x1d5c
cmpq %rdi, 0x8(%rsi)
jne 0x1d7b
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x1d39
movq 0x8(%rax), %rax
jmp 0x1d3b
xorl %eax, %eax
popq %rcx
retq
leaq 0x2a28(%rip), %rdi      # 0x476c
leaq 0x28cd(%rip), %rsi      # 0x4618
leaq 0x2c79(%rip), %rcx      # 0x49cb
movl $0x128, %edx            # imm = 0x128
callq 0x1050
leaq 0x29f9(%rip), %rdi      # 0x475c
leaq 0x28ae(%rip), %rsi      # 0x4618
leaq 0x2c5a(%rip), %rcx      # 0x49cb
movl $0x129, %edx            # imm = 0x129
callq 0x1050
leaq 0x29dd(%rip), %rdi      # 0x475f
leaq 0x288f(%rip), %rsi      # 0x4618
leaq 0x2c3b(%rip), %rcx      # 0x49cb
movl $0x12a, %edx            # imm = 0x12A
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_add_at_tail
void obdeque_add_at_tail(obdeque *deque, obj *to_add){

  obdeque_node *new_node;

  assert(deque);
  assert(to_add);

  /* creating deque node with to_add ob_retains to account for the deque's
   * reference */
  new_node = obdeque_new_node(to_add);

  /* set node data */
  new_node->prev = deque->tail;

  /* update deque data */
  /* if a tail aleady exists update tail next */
  if(deque->tail) deque->tail->next = new_node;
  else deque->head = new_node; /* else set head, which should not be NULL
                                 anymore */
  deque->tail = new_node;
  deque->length++;

  return;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1dd4
testq %rsi, %rsi
je 0x1df3
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x20ba
movq 0x10(%rbx), %rcx
movq %rcx, 0x18(%rax)
leaq 0x8(%rbx), %rdx
leaq 0x10(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rdx, %rsi
movq %rax, (%rsi)
movq %rax, 0x10(%rbx)
incq 0x18(%rbx)
popq %rbx
retq
leaq 0x2991(%rip), %rdi      # 0x476c
leaq 0x2836(%rip), %rsi      # 0x4618
leaq 0x29fd(%rip), %rcx      # 0x47e6
movl $0x92, %edx
callq 0x1050
leaq 0x29e5(%rip), %rdi      # 0x47df
leaq 0x2817(%rip), %rsi      # 0x4618
leaq 0x29de(%rip), %rcx      # 0x47e6
movl $0x93, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_iterate_next
uint8_t obdeque_iterate_next(const obdeque *deque, obdeque_iterator *it){

  assert(deque);
  assert(it);
  assert(it->deque == deque);

  if(!it->node) return 0;

  /* update the iterator if the next node exists, and return 1 */
  if(it->node->next){
    ob_retain((obj *)it->node->next);
    ob_release((obj *)it->node);
    it->node = it->node->next;
    return 1;
  }

  /* else the iterator is at the end of the list, return 0 */
  return 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1e5a
movq %rsi, %rbx
testq %rsi, %rsi
je 0x1e73
cmpq %rdi, 0x8(%rbx)
jne 0x1e8c
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1e56
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0x1e56
callq 0x319f
movq 0x10(%rbx), %rdi
callq 0x316a
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbx)
movb $0x1, %al
jmp 0x1e58
xorl %eax, %eax
popq %rbx
retq
leaq 0x290b(%rip), %rdi      # 0x476c
leaq 0x27b0(%rip), %rsi      # 0x4618
leaq 0x28ab(%rip), %rcx      # 0x471a
pushq $0x4c
jmp 0x1ea3
leaq 0x28e2(%rip), %rdi      # 0x475c
leaq 0x2797(%rip), %rsi      # 0x4618
leaq 0x2892(%rip), %rcx      # 0x471a
pushq $0x4d
jmp 0x1ea3
leaq 0x28cc(%rip), %rdi      # 0x475f
leaq 0x277e(%rip), %rsi      # 0x4618
leaq 0x2879(%rip), %rcx      # 0x471a
pushq $0x4e
popq %rdx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_new_iterator
obdeque_iterator * obdeque_new_iterator(const obdeque *deque, obdeque_node *node){

  static const char classname[] = "obdeque_iterator";
  obdeque_iterator *new_instance;

  if(!node) return NULL; /* return nothing when iterating from an empty
                            deque */

  new_instance = malloc(sizeof(obdeque_iterator));
  assert(new_instance != NULL);

  /* initialize base class data */
  ob_init_base((obj *)new_instance, &obdeque_destroy_iterator, NULL, NULL, NULL,
               classname);

  ob_retain((obj *)node);
  new_instance->node = node;
  new_instance->deque = deque;

  return new_instance;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0x1f4c
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x18
popq %rdi
callq 0x10b0
testq %rax, %rax
je 0x1f58
movq %rax, %r15
leaq 0xa36(%rip), %rsi       # 0x295a
leaq 0x2eb5(%rip), %r9       # 0x4de0
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x2f98
movq %r14, %rdi
callq 0x319f
movq %r14, 0x10(%r15)
movq %rbx, 0x8(%r15)
jmp 0x1f4f
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2ba3(%rip), %rdi      # 0x4b02
leaq 0x26b2(%rip), %rsi      # 0x4618
leaq 0x2bff(%rip), %rcx      # 0x4b6c
movl $0x1dc, %edx            # imm = 0x1DC
callq 0x1050
// File: /workspace/github_c_makefile_star2_O2/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_iterate_prev
uint8_t obdeque_iterate_prev(const obdeque *deque, obdeque_iterator *it){

  assert(deque);
  assert(it);
  assert(it->deque == deque);

  if(!it->node) return 0;

  /* update the iterator if the prev node exists, and return 1 */
  if(it->node->prev){
    ob_retain((obj *)it->node->prev);
    ob_release((obj *)it->node);
    it->node = it->node->prev;
    return 1;
  }

  /* else the iterator is at the end of the list, return 0 */
  return 0;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1ffb
movq %rsi, %rbx
testq %rsi, %rsi
je 0x2014
cmpq %rdi, 0x8(%rbx)
jne 0x202d
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x1ff7
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x1ff7
callq 0x319f
movq 0x10(%rbx), %rdi
callq 0x316a
movq 0x10(%rbx), %rax
movq 0x18(%rax), %rax
movq %rax, 0x10(%rbx)
movb $0x1, %al
jmp 0x1ff9
xorl %eax, %eax
popq %rbx
retq
leaq 0x276a(%rip), %rdi      # 0x476c
leaq 0x260f(%rip), %rsi      # 0x4618
leaq 0x2762(%rip), %rcx      # 0x4772
pushq $0x61
jmp 0x2044
leaq 0x2741(%rip), %rdi      # 0x475c
leaq 0x25f6(%rip), %rsi      # 0x4618
leaq 0x2749(%rip), %rcx      # 0x4772
pushq $0x62
jmp 0x2044
leaq 0x272b(%rip), %rdi      # 0x475f
leaq 0x25dd(%rip), %rsi      # 0x4618
leaq 0x2730(%rip), %rcx      # 0x4772
pushq $0x63
popq %rdx
callq 0x1050