LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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
movq (%rbx,%r14,8), %rdi
callq 0x3390
testl %eax, %eax
je 0x474c
cmpl $0x3, %eax
jne 0x477f
incq %r14
cmpq $0x1, %r14
je 0x473a
xorl %r14d, %r14d
movq (%rbx,%r14,8), %rdi
xorl %esi, %esi
callq 0x3030
testl %eax, %eax
jne 0x478f
incq %r14
cmpq $0x1, %r14
je 0x4758
movl $0x1, %eax
movl %eax, 0x18(%rbx)
movl %eax, 0x10(%rbx)
xorl %eax, %eax
jmp 0x47b7
movl %eax, %edi
callq 0x32e0
leaq 0xba2c(%rip), %rdi      # 0x101b9
jmp 0x479d
movl %eax, %edi
callq 0x32e0
leaq 0xba0b(%rip), %rdi      # 0x101a8
movq %rax, %rsi
xorl %eax, %eax
callq 0x7887
callq 0x3400
movl $0x0, (%rax)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_c_makefile_star2_O1/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 0x3e2a(%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 0x3e1d(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movzwl (%rbx), %edx
leaq 0x1eae(%rip), %rsi      # 0x3096
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
jmp 0x10d0
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movzwl (%rdi), %r15d
cmpw %r15w, 0x2(%rdi)
jne 0x137b
imull $0xcccd, %r15d, %eax    # imm = 0xCCCD
shrl $0x12, %eax
addl %r15d, %eax
movw %ax, (%rbx)
movzwl %ax, %edi
callq 0x1100
movq %rax, %r14
movq 0x8(%rbx), %rdi
testq %r15, %r15
je 0x1372
xorl %eax, %eax
movb (%rdi,%rax), %cl
movb %cl, (%r14,%rax)
incq %rax
cmpq %rax, %r15
jne 0x1363
callq 0x1030
movq %r14, 0x8(%rbx)
movq 0x8(%rbx), %rax
movzwl 0x2(%rbx), %ecx
movb %bpl, (%rax,%rcx)
incw 0x2(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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)
movl $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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)
movl $0x0, 0x8(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq 0x8(%rbx), %rcx
movb (%rcx,%rax), %cl
shrb %cl
movb %cl, 0x10(%r14,%rax)
incq %rax
cmpq $0x7, %rax
jne 0x1521
movb $0x0, 0x17(%r14)
xorl %eax, %eax
movq 0x8(%rbx), %rcx
movb 0x7(%rcx,%rax), %cl
shrb %cl
movb %cl, 0x18(%r14,%rax)
incq %rax
cmpq $0x7, %rax
jne 0x153f
movw $0x0, 0x1f(%r14)
movl $0x40, %edi
callq 0x1100
movq %rax, 0x28(%r14)
movzwl (%rbx), %eax
cmpq $0x10, %rax
jb 0x15e4
movl $0xe, %r12d
movq %rax, (%rsp)
movq 0x8(%rbx), %r15
testb $0x1, -0x1(%r15,%r12)
jne 0x15e4
movzbl 0x20(%r14), %ebp
cmpq $0x7, %rbp
ja 0x15e4
leaq 0x7(%r12), %r13
cmpq %rax, %r13
jae 0x15e4
movl $0x8, %edi
callq 0x1100
addq %r12, %r15
xorl %ecx, %ecx
movb (%r15,%rcx), %dl
shrb %dl
movb %dl, (%rax,%rcx)
incq %rcx
cmpq $0x7, %rcx
jne 0x15af
movb $0x0, 0x7(%rax)
movq 0x28(%r14), %rcx
movq %rax, (%rcx,%rbp,8)
leal 0x1(%rbp), %eax
movb %al, 0x20(%r14)
addq $0x8, %r12
movq (%rsp), %rax
cmpq %rax, %r12
movq %r13, %r12
jb 0x157f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
cmpb $0x0, 0x20(%rdi)
je 0x1635
xorl %r14d, %r14d
movq 0x28(%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x1030
incq %r14
movzbl 0x20(%rbx), %eax
cmpq %rax, %r14
jb 0x161c
movq 0x28(%rbx), %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1030
nop
// File: /workspace/github_c_makefile_star2_O1/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
xorl %ebp, %ebp
movw %bp, 0x3c(%rdi)
movl 0x20(%rdi), %ecx
movzwl 0x24(%rdi), %esi
movl %ecx, %eax
xorl %edx, %edx
divl %esi
cvtsi2sd %rax, %xmm0
addsd 0x198d(%rip), %xmm0     # 0x3008
cvttsd2si %xmm0, %edx
movb %dl, 0x26(%rdi)
movb %al, 0x3e(%rdi)
movzbl %dl, %eax
xorps %xmm0, %xmm0
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
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divss %xmm2, %xmm3
movsd 0x194d(%rip), %xmm2     # 0x3010
divsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
mulsd %xmm2, %xmm0
cvtsd2ss %xmm0, %xmm0
xorps %xmm1, %xmm1
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)
xorps %xmm0, %xmm0
cvtss2sd 0xc(%rsp), %xmm0
callq 0x10b0
addsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x30(%rbx)
movw %bp, 0x58(%rbx)
cmpw %bp, 0xc(%rbx)
je 0x172e
movq %rbx, %rdi
callq 0x14f8
movzbl 0x26(%rbx), %esi
addl $0x2, %esi
movq %rbx, %rdi
callq 0x1458
leaq 0x10(%rbx), %r14
cmpw $0x0, 0x1c(%rbx)
je 0x1750
movq %r14, %rdi
callq 0x1450
movzbl 0x26(%rbx), %esi
addl $0x2, %esi
movq %r14, %rdi
callq 0x13ac
leaq 0x60(%rbx), %rdi
callq 0x139b
addq $0x40, %rbx
movq %rbx, %rdi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x14dc
// File: /workspace/github_c_makefile_star2_O1/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 0x17e4
movq %rbx, %rdi
callq 0x14f8
cmpw $0x0, 0x1c(%rbx)
je 0x17f4
leaq 0x10(%rbx), %rdi
callq 0x1450
cmpw $0x0, 0x4c(%rbx)
je 0x1804
leaq 0x40(%rbx), %rdi
callq 0x14f8
cmpw $0x0, 0x60(%rbx)
je 0x1818
addq $0x60, %rbx
movq %rbx, %rdi
popq %rbx
jmp 0x13a2
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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, %ebx
movl %esi, %ebp
movq %rdi, %r14
leaq 0x1737(%rip), %rdi      # 0x3344
callq 0x1060
movl %ebx, 0x4(%rsp)
cmpw %bx, %bp
je 0x1c2c
movzwl %bp, %esi
leaq 0x148c(%rip), %rdi      # 0x30b1
xorl %eax, %eax
callq 0x10a0
movzwl (%r14), %esi
leaq 0x14a8(%rip), %rdi      # 0x30df
xorl %eax, %eax
callq 0x10a0
leaq 0x10(%r14), %rsi
leaq 0x14a0(%rip), %rdi      # 0x30e9
xorl %eax, %eax
callq 0x10a0
leaq 0x18(%r14), %rsi
leaq 0x14a7(%rip), %rdi      # 0x3102
xorl %eax, %eax
callq 0x10a0
cmpb $0x0, 0x20(%r14)
je 0x1c95
leaq 0x14a6(%rip), %r15      # 0x3116
xorl %r12d, %r12d
movq 0x28(%r14), %rax
movq (%rax,%r12,8), %rdx
incq %r12
movq %r15, %rdi
movl %r12d, %esi
xorl %eax, %eax
callq 0x10a0
movzbl 0x20(%r14), %eax
cmpq %rax, %r12
jb 0x1c73
leaq 0x16b8(%rip), %rdi      # 0x3354
callq 0x1060
cmpw $0x0, (%r14)
je 0x1d4c
leaq 0x1474(%rip), %r15      # 0x3127
leaq 0x1473(%rip), %r12      # 0x312d
xorl %ebp, %ebp
movslq %ebp, %rbx
movl $0x14, %r13d
movzwl (%r14), %eax
cmpq %rax, %rbx
jge 0x1ced
callq 0x1170
movq (%rax), %rax
movq 0x8(%r14), %rcx
movsbq (%rcx,%rbx), %rdi
testb $0x40, 0x1(%rax,%rdi,2)
jne 0x1cf4
movl $0x2e, %edi
jmp 0x1cf4
movl $0x20, %edi
jmp 0x1cf4
callq 0x1040
incq %rbx
decl %r13d
jne 0x1cc5
subl %r13d, %ebp
movq %r15, %rdi
xorl %eax, %eax
callq 0x10a0
movl $0x14, %ebx
movzwl (%r14), %eax
cmpl %eax, %ebp
jge 0x1d32
movq 0x8(%r14), %rax
movslq %ebp, %rcx
movzbl (%rax,%rcx), %esi
movq %r12, %rdi
xorl %eax, %eax
callq 0x10a0
incl %ebp
decl %ebx
jne 0x1d13
movl $0xa, %edi
callq 0x1040
movzwl (%r14), %eax
cmpl %eax, %ebp
jl 0x1cbc
movzwl 0x4(%rsp), %esi
leaq 0x13db(%rip), %rdi      # 0x3133
xorl %eax, %eax
callq 0x10a0
movq 0x326a(%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_O1/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 0x15f3
movq 0x8(%rbx), %rcx
movzwl (%rbx), %edx
movzwl -0x2(%rcx,%rdx), %ecx
cmpw %cx, %ax
setne %dl
testb %r14b, %dl
jne 0x1dbf
testb %bpl, %bpl
jne 0x1dc4
movzwl %ax, %esi
movzwl %cx, %edx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1bf4
popq %rbx
popq %r14
popq %rbp
retq
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1190
// File: /workspace/github_c_makefile_star2_O1/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
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x64, %edi
jle 0x1f68
addl $-0x65, %edi
cmpl $0xe, %edi
ja 0x1fd6
leaq 0x10df(%rip), %rcx      # 0x3038
movslq (%rcx,%rdi,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
movb $0x1, 0x18(%rbx)
jmp 0x1fd4
cmpl $-0x2, %edi
je 0x1fbc
cmpl $-0x1, %edi
je 0x1fc9
cmpl $0x62, %edi
jne 0x1fd6
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x14(%rbx)
jmp 0x1fd4
movb $0x1, 0x19(%rbx)
jmp 0x1fd4
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x1c(%rbx)
jmp 0x1fd4
movq %rsi, %rdi
callq 0x1070
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x20(%rbx)
jmp 0x1fd4
movq %rsi, (%rbx)
jmp 0x1fd4
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x10(%rbx)
jmp 0x1fd4
movq %rsi, %rdi
callq 0x1140
movl %eax, 0xc(%rbx)
jmp 0x1fd4
movq %rsi, %rdi
callq 0x1140
movl %eax, 0x8(%rbx)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/DrYerzinia[P]C_DigiMode/src/crc/crcccitt.c
// Function: CRCCCITT
uint16_t CRCCCITT(uint8_t *data, uint16_t len, uint16_t polynomial){

	uint16_t crc = 0xFFFF;
	uint8_t i;

	while(len--){

		crc ^= *data++;

		for(i = 0; i < 8; i++){
			if(crc & 0x0001)
				crc = (crc >> 1) ^ polynomial;
			else
				crc >>= 1;
		}

	}

	crc ^= 0xFFFF;

	return crc;

}

// Assembly:
testl %esi, %esi
je 0x200d
movw $0xffff, %ax            # imm = 0xFFFF
decl %esi
movzbl (%rdi), %ecx
xorl %ecx, %eax
movb $0x8, %cl
movl %eax, %r8d
andl $0x1, %r8d
negl %r8d
andl %edx, %r8d
movzwl %ax, %eax
shrl %eax
xorl %r8d, %eax
decb %cl
jne 0x1fe9
incq %rdi
testw %si, %si
jne 0x1fe0
notl %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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
movb (%rdi,%rcx), %dl
testb %dl, %dl
jne 0x21b5
movzbl 0x2(%rsi,%rcx), %eax
testl %eax, %eax
je 0x21d4
cmpl $0x3d, %eax
je 0x21d4
testb %dl, %dl
je 0x21d7
movzbl 0x2(%rsi,%rcx), %r8d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %r8d, %r8d
je 0x21d3
cmpl $0x3d, %r8d
je 0x21d3
incq %rcx
cmpb %r8b, %dl
je 0x219c
retq
movl %ecx, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq 0x2ebb(%rip), %rbx      # 0x4058
testq %rbx, %rbx
je 0x11d1
leaq 0xe5b(%rip), %r14       # 0x2004
movq (%rbx), %rax
movq %rax, 0x2ea5(%rip)      # 0x4058
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq %rbx, %rdi
callq 0x1030
movq 0x2e8c(%rip), %rbx      # 0x4058
testq %rbx, %rbx
jne 0x11a9
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
movq %rax, %rdi
movl $0x1, %esi
callq 0x124a
leaq 0xe03(%rip), %r14       # 0x2004
xorl %ebp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x131a
movq %rbx, %rdi
callq 0x12ac
movq %r14, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0x1050
incl %ebp
cmpl $0xff, %ebp
jne 0x1203
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_O1/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)
movq $0x0, 0x8(%rdi)
movw $0x0, 0x40(%rdi)
movslq %esi, %rax
leaq (,%rax,4), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %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
nop
// File: /workspace/github_c_makefile_star2_O1/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
movl 0xc(%r14), %eax
cmpl %eax, 0x8(%r14)
jne 0x12e5
leaq 0x48(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10c0
movl 0xc(%r14), %eax
cmpl %eax, 0x8(%r14)
je 0x12d0
movq 0x10(%r14), %rcx
leal 0x1(%rax), %edx
movl %edx, 0xc(%r14)
andl 0x4(%r14), %eax
cltq
movl (%rcx,%rax,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
// File: /workspace/github_c_makefile_star2_O1/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
movl 0x8(%r14), %eax
movl %eax, %ecx
subl 0xc(%r14), %ecx
cmpl (%r14), %ecx
jl 0x135f
leaq 0x78(%r14), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x10c0
movl 0x8(%r14), %eax
movl %eax, %ecx
subl 0xc(%r14), %ecx
cmpl (%r14), %ecx
jge 0x1345
movq 0x10(%r14), %rcx
leal 0x1(%rax), %edx
movl %edx, 0x8(%r14)
andl 0x4(%r14), %eax
cltq
movl %ebp, (%rcx,%rax,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_O1/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 0x13c3
movq $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_O1/ramirezsebas[P]TP-LISTINGS/./src/capitulo_2/2.5/temp_file.c
// Function: write_temp_file
temp_file_handle write_temp_file (char* buffer, size_t length)
{
	/* Create the filename and file. The XXXXXX will be replaced with
	characters that make the filename unique. */
	char temp_filename[] = "/tmp/temp_file.XXXXXX";
	int fd = mkstemp (temp_filename);
	/* Unlink the file immediately, so that it will be removed when the
	file descriptor is closed. */
	unlink (temp_filename);
	/* Write the number of bytes to the file first. */
	write (fd, &length, sizeof (length));
	/* Now write the data itself. */
	write (fd, buffer, length);
	/* Use the file descriptor as the handle for the temporary file.*/
	return fd;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0x30(%rbp), %r15
movq %rsi, (%r15)
movaps 0xe3f(%rip), %xmm0      # 0x2010
leaq -0x50(%rbp), %r12
movaps %xmm0, (%r12)
movabsq $0x5858585858582e, %rax # imm = 0x5858585858582E
movq %rax, 0xe(%r12)
movq %r12, %rdi
callq 0x10a0
movl %eax, %r13d
movq %r12, %rdi
callq 0x1030
movl $0x8, %edx
movl %r13d, %edi
movq %r15, %rsi
callq 0x1040
movl %r13d, %edi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1040
movl %r13d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
movl $0x8, %edx
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_O1/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 0xd8b(%rip), %rdi       # 0x2026
movl $0x19, %esi
callq 0x11ac
movl %eax, %edi
movq %rbx, %rsi
callq 0x122c
leaq 0xd8a(%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_O1/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
movl $0x20, %edi
callq 0x10b0
testq %rax, %rax
je 0x1e0b
movq %rax, %rbx
leaq 0xefb(%rip), %rsi       # 0x2cce
leaq 0xf89(%rip), %rdx       # 0x2d63
leaq 0x10b6(%rip), %rcx      # 0x2e97
leaq 0x1257(%rip), %r8       # 0x303f
leaq 0x3002(%rip), %r9       # 0x4df1
movq %rax, %rdi
callq 0x32c4
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rbx)
movq $0x0, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
retq
leaq 0x2cf0(%rip), %rdi      # 0x4b02
leaq 0x27ff(%rip), %rsi      # 0x4618
leaq 0x2df4(%rip), %rcx      # 0x4c14
movl $0x200, %edx            # imm = 0x200
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/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 0x1eb1
movq %rdi, %rbx
callq 0x1db9
movq %rax, %r14
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
callq 0x20f4
testq %rax, %rax
je 0x1e89
movq %rax, %r15
cmpq %rbx, 0x8(%r15)
jne 0x1e92
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x1e68
movq 0x8(%rax), %rsi
jmp 0x1e6a
xorl %esi, %esi
movq %r14, %rdi
callq 0x1f7f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1ff7
testb %al, %al
jne 0x1e53
movq %r15, %rdi
callq 0x345a
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x28c6(%rip), %rdi      # 0x475f
leaq 0x2778(%rip), %rsi      # 0x4618
leaq 0x2b24(%rip), %rcx      # 0x49cb
movl $0x12a, %edx            # imm = 0x12A
callq 0x1050
leaq 0x2758(%rip), %rdi      # 0x4610
leaq 0x2759(%rip), %rsi      # 0x4618
leaq 0x2768(%rip), %rcx      # 0x462e
movl $0x18, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/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 0x1f22
testq %rsi, %rsi
je 0x1f41
cmpq %rdi, 0x8(%rsi)
jne 0x1f60
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0x1f1e
movq 0x8(%rax), %rax
jmp 0x1f20
xorl %eax, %eax
popq %rcx
retq
leaq 0x2843(%rip), %rdi      # 0x476c
leaq 0x26e8(%rip), %rsi      # 0x4618
leaq 0x2a94(%rip), %rcx      # 0x49cb
movl $0x128, %edx            # imm = 0x128
callq 0x1050
leaq 0x2814(%rip), %rdi      # 0x475c
leaq 0x26c9(%rip), %rsi      # 0x4618
leaq 0x2a75(%rip), %rcx      # 0x49cb
movl $0x129, %edx            # imm = 0x129
callq 0x1050
leaq 0x27f8(%rip), %rdi      # 0x475f
leaq 0x26aa(%rip), %rsi      # 0x4618
leaq 0x2a56(%rip), %rcx      # 0x49cb
movl $0x12a, %edx            # imm = 0x12A
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/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 0x1fb9
testq %rsi, %rsi
je 0x1fd8
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x22cb
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 0x27ac(%rip), %rdi      # 0x476c
leaq 0x2651(%rip), %rsi      # 0x4618
leaq 0x2818(%rip), %rcx      # 0x47e6
movl $0x92, %edx
callq 0x1050
leaq 0x2800(%rip), %rdi      # 0x47df
leaq 0x2632(%rip), %rsi      # 0x4618
leaq 0x27f9(%rip), %rcx      # 0x47e6
movl $0x93, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/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 0x203f
movq %rsi, %rbx
testq %rsi, %rsi
je 0x205e
cmpq %rdi, 0x8(%rbx)
jne 0x207d
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x203b
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0x203b
callq 0x348f
movq 0x10(%rbx), %rdi
callq 0x345a
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rbx)
movb $0x1, %al
jmp 0x203d
xorl %eax, %eax
popq %rbx
retq
leaq 0x2726(%rip), %rdi      # 0x476c
leaq 0x25cb(%rip), %rsi      # 0x4618
leaq 0x26c6(%rip), %rcx      # 0x471a
movl $0x4c, %edx
callq 0x1050
leaq 0x26f7(%rip), %rdi      # 0x475c
leaq 0x25ac(%rip), %rsi      # 0x4618
leaq 0x26a7(%rip), %rcx      # 0x471a
movl $0x4d, %edx
callq 0x1050
leaq 0x26db(%rip), %rdi      # 0x475f
leaq 0x258d(%rip), %rsi      # 0x4618
leaq 0x2688(%rip), %rcx      # 0x471a
movl $0x4e, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/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 0x2145
movq %rsi, %r14
movq %rdi, %rbx
movl $0x18, %edi
callq 0x10b0
testq %rax, %rax
je 0x2151
movq %rax, %r15
leaq 0xb50(%rip), %rsi       # 0x2c6d
leaq 0x2cbc(%rip), %r9       # 0x4de0
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x32c4
movq %r14, %rdi
callq 0x348f
movq %r14, 0x10(%r15)
movq %rbx, 0x8(%r15)
jmp 0x2148
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x29aa(%rip), %rdi      # 0x4b02
leaq 0x24b9(%rip), %rsi      # 0x4618
leaq 0x2a06(%rip), %rcx      # 0x4b6c
movl $0x1dc, %edx            # imm = 0x1DC
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/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 0x21f6
movq %rsi, %rbx
testq %rsi, %rsi
je 0x2215
cmpq %rdi, 0x8(%rbx)
jne 0x2234
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x21f2
movq 0x18(%rax), %rdi
testq %rdi, %rdi
je 0x21f2
callq 0x348f
movq 0x10(%rbx), %rdi
callq 0x345a
movq 0x10(%rbx), %rax
movq 0x18(%rax), %rax
movq %rax, 0x10(%rbx)
movb $0x1, %al
jmp 0x21f4
xorl %eax, %eax
popq %rbx
retq
leaq 0x256f(%rip), %rdi      # 0x476c
leaq 0x2414(%rip), %rsi      # 0x4618
leaq 0x2567(%rip), %rcx      # 0x4772
movl $0x61, %edx
callq 0x1050
leaq 0x2540(%rip), %rdi      # 0x475c
leaq 0x23f5(%rip), %rsi      # 0x4618
leaq 0x2548(%rip), %rcx      # 0x4772
movl $0x62, %edx
callq 0x1050
leaq 0x2524(%rip), %rdi      # 0x475f
leaq 0x23d6(%rip), %rsi      # 0x4618
leaq 0x2529(%rip), %rcx      # 0x4772
movl $0x63, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_add_at_head
void obdeque_add_at_head(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->next = deque->head;

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

  return;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x228d
testq %rsi, %rsi
je 0x22ac
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x22cb
movq 0x8(%rbx), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbx), %rdx
leaq 0x18(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rdx, %rsi
movq %rax, (%rsi)
movq %rax, 0x8(%rbx)
incq 0x18(%rbx)
popq %rbx
retq
leaq 0x24d8(%rip), %rdi      # 0x476c
leaq 0x237d(%rip), %rsi      # 0x4618
leaq 0x2512(%rip), %rcx      # 0x47b4
movl $0x78, %edx
callq 0x1050
leaq 0x252c(%rip), %rdi      # 0x47df
leaq 0x235e(%rip), %rsi      # 0x4618
leaq 0x24f3(%rip), %rcx      # 0x47b4
movl $0x79, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_new_node
obdeque_node * obdeque_new_node(obj *to_store){

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

  assert(to_store != NULL);

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

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

  ob_retain(to_store);
  new_instance->stored = to_store;
  new_instance->next = NULL;
  new_instance->prev = NULL;

  return new_instance;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x2325
movq %rdi, %rbx
movl $0x20, %edi
callq 0x10b0
testq %rax, %rax
je 0x2344
movq %rax, %r14
leaq 0x91c(%rip), %rsi       # 0x2c0c
leaq 0x2ad9(%rip), %r9       # 0x4dd0
movq %rax, %rdi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x32c4
movq %rbx, %rdi
callq 0x348f
movq %rbx, 0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x279f(%rip), %rdi      # 0x4acb
leaq 0x22e5(%rip), %rsi      # 0x4618
leaq 0x27a2(%rip), %rcx      # 0x4adc
movl $0x1b1, %edx            # imm = 0x1B1
callq 0x1050
leaq 0x27b7(%rip), %rdi      # 0x4b02
leaq 0x22c6(%rip), %rsi      # 0x4618
leaq 0x2783(%rip), %rcx      # 0x4adc
movl $0x1b4, %edx            # imm = 0x1B4
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_add_at_iterator
void obdeque_add_at_iterator(obdeque *deque, obdeque_iterator *it, obj *to_add){

  obdeque_node *new_node;

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

  if(!it->node){
    obdeque_add_at_head(deque, to_add);
    it->node = deque->head;
  }

  /* 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 = it->node->prev;
  new_node->next = it->node;
  if(it->node->prev) it->node->prev->next = new_node;
  it->node->prev = new_node;

  deque->length++;

  /* update deque data if the iterator is pointing at the head (added node
   * cannot be the new tail) */
  if(it->node == deque->head) deque->head = new_node;

  /* update iterator to newly inserted node */
  assert(obdeque_iterate_prev(deque, it));

  return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x241b
movq %rsi, %rbx
testq %rsi, %rsi
je 0x243a
movq %rdi, %r14
cmpq %rdi, 0x8(%rbx)
jne 0x2459
movq %rdx, %r15
testq %rdx, %rdx
je 0x2478
cmpq $0x0, 0x10(%rbx)
jne 0x23cb
movq %r15, %rdi
callq 0x22cb
movq 0x8(%r14), %rcx
movq %rcx, 0x10(%rax)
leaq 0x18(%rcx), %rdx
leaq 0x10(%r14), %rsi
testq %rcx, %rcx
cmoveq %rsi, %rdx
movq %rax, (%rdx)
movq %rax, 0x8(%r14)
incq 0x18(%r14)
movq %rax, 0x10(%rbx)
movq %r15, %rdi
callq 0x22cb
movq 0x10(%rbx), %rcx
movq 0x18(%rcx), %rdx
movq %rdx, 0x18(%rax)
movq %rcx, 0x10(%rax)
movq 0x18(%rcx), %rdx
testq %rdx, %rdx
je 0x23f0
movq %rax, 0x10(%rdx)
movq %rax, 0x18(%rcx)
incq 0x18(%r14)
cmpq 0x8(%r14), %rcx
jne 0x2402
movq %rax, 0x8(%r14)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x21ae
testb %al, %al
je 0x2497
popq %rbx
popq %r14
popq %r15
retq
leaq 0x234a(%rip), %rdi      # 0x476c
leaq 0x21ef(%rip), %rsi      # 0x4618
leaq 0x23e1(%rip), %rcx      # 0x4811
movl $0xac, %edx
callq 0x1050
leaq 0x231b(%rip), %rdi      # 0x475c
leaq 0x21d0(%rip), %rsi      # 0x4618
leaq 0x23c2(%rip), %rcx      # 0x4811
movl $0xad, %edx
callq 0x1050
leaq 0x22ff(%rip), %rdi      # 0x475f
leaq 0x21b1(%rip), %rsi      # 0x4618
leaq 0x23a3(%rip), %rcx      # 0x4811
movl $0xae, %edx
callq 0x1050
leaq 0x2360(%rip), %rdi      # 0x47df
leaq 0x2192(%rip), %rsi      # 0x4618
leaq 0x2384(%rip), %rcx      # 0x4811
movl $0xaf, %edx
callq 0x1050
leaq 0x23b6(%rip), %rdi      # 0x4854
leaq 0x2173(%rip), %rsi      # 0x4618
leaq 0x2365(%rip), %rcx      # 0x4811
movl $0xc7, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_join
obdeque * obdeque_join(const obdeque *d1, const obdeque *d2){

  obdeque *joined;
  obdeque_iterator *it;
  obj *element;

  assert(d1);
  assert(d2);

  joined = obdeque_copy(d1);

  it = obdeque_head_iterator(d2);

  if(!it) return joined; /* if the list is empty, return joined list */

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

  ob_release((obj *)it);

  return joined;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x254a
movq %rsi, %rbx
testq %rsi, %rsi
je 0x2569
callq 0x1e2a
movq %rax, %r14
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
callq 0x20f4
testq %rax, %rax
je 0x2522
movq %rax, %r15
cmpq %rbx, 0x8(%r15)
jne 0x252b
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x2501
movq 0x8(%rax), %rsi
jmp 0x2503
xorl %esi, %esi
movq %r14, %rdi
callq 0x1f7f
movq %rbx, %rdi
movq %r15, %rsi
callq 0x1ff7
testb %al, %al
jne 0x24ec
movq %r15, %rdi
callq 0x345a
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x222d(%rip), %rdi      # 0x475f
leaq 0x20df(%rip), %rsi      # 0x4618
leaq 0x248b(%rip), %rcx      # 0x49cb
movl $0x12a, %edx            # imm = 0x12A
callq 0x1050
leaq 0x2323(%rip), %rdi      # 0x4874
leaq 0x20c0(%rip), %rsi      # 0x4618
leaq 0x2318(%rip), %rcx      # 0x4877
movl $0xd3, %edx
callq 0x1050
leaq 0x233f(%rip), %rdi      # 0x48af
leaq 0x20a1(%rip), %rsi      # 0x4618
leaq 0x22f9(%rip), %rcx      # 0x4877
movl $0xd4, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_find_obj
uint8_t obdeque_find_obj(const obdeque *deque, const obj *to_find){

  obdeque_iterator *it;
  uint8_t retval = 0;

  assert(deque);
  assert(to_find);

  it = obdeque_head_iterator(deque);
  if(!it) return 0; /* obj is not in an empty list */

  do{
    if(ob_compare(obdeque_obj_at_iterator(deque, it), to_find) == OB_EQUAL_TO){
      retval = 1;
      break;
    }
  } while(obdeque_iterate_next(deque, it));

  ob_release((obj *)it);

  return retval;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x2621
movq %rsi, %rbx
testq %rsi, %rsi
je 0x2640
movq %rdi, %r14
movq 0x8(%rdi), %rsi
callq 0x20f4
testq %rax, %rax
je 0x25ec
movq %rax, %r15
cmpq %r14, 0x8(%r15)
jne 0x2602
movq 0x10(%r15), %rax
testq %rax, %rax
je 0x25cb
movq 0x8(%rax), %rdi
jmp 0x25cd
xorl %edi, %edi
movq %rbx, %rsi
callq 0x33d7
testb %al, %al
je 0x25f0
movq %r14, %rdi
movq %r15, %rsi
callq 0x1ff7
testb %al, %al
jne 0x25b6
xorl %ebx, %ebx
jmp 0x25f2
xorl %ebx, %ebx
jmp 0x25fa
movb $0x1, %bl
movq %r15, %rdi
callq 0x345a
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2156(%rip), %rdi      # 0x475f
leaq 0x2008(%rip), %rsi      # 0x4618
leaq 0x23b4(%rip), %rcx      # 0x49cb
movl $0x12a, %edx            # imm = 0x12A
callq 0x1050
leaq 0x2144(%rip), %rdi      # 0x476c
leaq 0x1fe9(%rip), %rsi      # 0x4618
leaq 0x227c(%rip), %rcx      # 0x48b2
movl $0xed, %edx
callq 0x1050
leaq 0x22a2(%rip), %rdi      # 0x48e9
leaq 0x1fca(%rip), %rsi      # 0x4618
leaq 0x225d(%rip), %rcx      # 0x48b2
movl $0xee, %edx
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_sort_with_funct
void obdeque_sort_with_funct(obdeque *deque, int8_t order, ob_compare_fptr funct){

  obdeque sorted; /* stack variable to remove internal memory management
                     burden */

  assert(deque);
  assert(order == OB_LEAST_TO_GREATEST || order == OB_GREATEST_TO_LEAST);
  assert(funct);

  sorted = obdeque_recursive_sort(*deque, order, funct);

  /* connect head and tail of newly sorted list to deque */
  deque->head = sorted.head;
  deque->tail = sorted.tail;

  return;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0x26bb
movq %rdi, %rbx
movsbl %sil, %esi
cmpl $-0x1, %esi
je 0x2688
cmpl $0x1, %esi
jne 0x26f9
testq %rdx, %rdx
je 0x26da
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x2718
movups 0x8(%r14), %xmm0
movups %xmm0, 0x8(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r14
retq
leaq 0x20aa(%rip), %rdi      # 0x476c
leaq 0x1f4f(%rip), %rsi      # 0x4618
leaq 0x2221(%rip), %rcx      # 0x48f1
movl $0x10a, %edx            # imm = 0x10A
callq 0x1050
leaq 0x2290(%rip), %rdi      # 0x4971
leaq 0x1f30(%rip), %rsi      # 0x4618
leaq 0x2202(%rip), %rcx      # 0x48f1
movl $0x10c, %edx            # imm = 0x10C
callq 0x1050
leaq 0x2232(%rip), %rdi      # 0x4932
leaq 0x1f11(%rip), %rsi      # 0x4618
leaq 0x21e3(%rip), %rcx      # 0x48f1
movl $0x10b, %edx            # imm = 0x10B
callq 0x1050
// File: /workspace/github_c_makefile_star2_O1/theck01[P]offbrand_lib/src/classes/obdeque.c
// Function: obdeque_remove_head
void obdeque_remove_head(obdeque *deque){

  obdeque_node *temp_node;

  assert(deque);

  /* return if the list is empty */
  if(!(temp_node = deque->head)) return;

  /* repair deque after removal */
  deque->head = deque->head->next;
  if(deque->head) deque->head->prev = NULL;
  else deque->tail = NULL;

  deque->length--;

  /* set temp_node next and prev to null, to separate the node completely from
   * the deque if it lives on through a reference in an iterator */
  temp_node->next = NULL;
  temp_node->prev = NULL;

  ob_release((obj *)temp_node);

  return;
}

// Assembly:
testq %rdi, %rdi
je 0x2a03
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x2a02
movq 0x10(%rax), %rcx
movq %rcx, 0x8(%rdi)
leaq 0x10(%rdi), %rdx
leaq 0x18(%rcx), %rsi
testq %rcx, %rcx
cmoveq %rdx, %rsi
movq $0x0, (%rsi)
decq 0x18(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movq %rax, %rdi
jmp 0x345a
retq
pushq %rax
leaq 0x1d61(%rip), %rdi      # 0x476c
leaq 0x1c06(%rip), %rsi      # 0x4618
leaq 0x1ffa(%rip), %rcx      # 0x4a13
movl $0x135, %edx            # imm = 0x135
callq 0x1050