// File: /workspace/github_c_makefile_star2_O0/been-jamming[P]MinimalCC/types.c
// Function: types_equal
unsigned char types_equal(type *t0, type *t1){
	unsigned char i;
	unsigned int t0_index;
	unsigned int t1_index;

	if(t0->d0 != t1->d0 || t0->d1 != t1->d1 || t0->d2 != t1->d2){
		return 0;
	}
	if(t0->current_index == 0 && t1->current_index != 0 && t1->list_indicies[t1->current_index - 1] != 0){
		return 0;
	}
	if(t1->current_index == 0 && t0->current_index != 0 && t0->list_indicies[t0->current_index - 1] != 0){
		return 0;
	}
	if(!t0->current_index || !t1->current_index){
		return 1;
	}
	t0_index = t0->current_index;
	t1_index = t1->current_index;
	for(i = 0; i < 8; i++){
		t0_index--;
		t1_index--;
		if(t0->list_indicies[t0_index] != t1->list_indicies[t1_index]){
			return 0;
		}
		if(t0_index == 0 && t1_index != 0 && t1->list_indicies[t1_index - 1] != 0){
			return 0;
		}
		if(t1_index == 0 && t0_index != 0 && t0->list_indicies[t0_index - 1] != 0){
			return 0;
		}
		if(!t0_index || !t1_index){
			break;
		}
	}

	return 1;
}

// Assembly:
movq %rdi, -0x10(%rsp)
movq %rsi, -0x18(%rsp)
movq -0x10(%rsp), %rax
movq (%rax), %rax
movq -0x18(%rsp), %rcx
cmpq (%rcx), %rax
jne 0xbf04
movq -0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq -0x18(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jne 0xbf04
movq -0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq -0x18(%rsp), %rcx
cmpq 0x10(%rcx), %rax
je 0xbf0e
movb $0x0, -0x1(%rsp)
jmp 0xc07e
movq -0x10(%rsp), %rax
cmpl $0x0, 0x38(%rax)
jne 0xbf47
movq -0x18(%rsp), %rax
cmpl $0x0, 0x38(%rax)
je 0xbf47
movq -0x18(%rsp), %rax
movq -0x18(%rsp), %rcx
movl 0x38(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
cmpl $0x0, 0x18(%rax,%rcx,4)
je 0xbf47
movb $0x0, -0x1(%rsp)
jmp 0xc07e
movq -0x18(%rsp), %rax
cmpl $0x0, 0x38(%rax)
jne 0xbf80
movq -0x10(%rsp), %rax
cmpl $0x0, 0x38(%rax)
je 0xbf80
movq -0x10(%rsp), %rax
movq -0x10(%rsp), %rcx
movl 0x38(%rcx), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
cmpl $0x0, 0x18(%rax,%rcx,4)
je 0xbf80
movb $0x0, -0x1(%rsp)
jmp 0xc07e
movq -0x10(%rsp), %rax
cmpl $0x0, 0x38(%rax)
je 0xbf96
movq -0x18(%rsp), %rax
cmpl $0x0, 0x38(%rax)
jne 0xbfa0
movb $0x1, -0x1(%rsp)
jmp 0xc07e
movq -0x10(%rsp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x20(%rsp)
movq -0x18(%rsp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x24(%rsp)
movb $0x0, -0x19(%rsp)
movzbl -0x19(%rsp), %eax
cmpl $0x8, %eax
jge 0xc079
movl -0x20(%rsp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rsp)
movl -0x24(%rsp), %eax
addl $-0x1, %eax
movl %eax, -0x24(%rsp)
movq -0x10(%rsp), %rax
movl -0x20(%rsp), %ecx
movl 0x18(%rax,%rcx,4), %eax
movq -0x18(%rsp), %rcx
movl -0x24(%rsp), %edx
cmpl 0x18(%rcx,%rdx,4), %eax
je 0xc004
movb $0x0, -0x1(%rsp)
jmp 0xc07e
cmpl $0x0, -0x20(%rsp)
jne 0xc02e
cmpl $0x0, -0x24(%rsp)
je 0xc02e
movq -0x18(%rsp), %rax
movl -0x24(%rsp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
cmpl $0x0, 0x18(%rax,%rcx,4)
je 0xc02e
movb $0x0, -0x1(%rsp)
jmp 0xc07e
cmpl $0x0, -0x24(%rsp)
jne 0xc058
cmpl $0x0, -0x20(%rsp)
je 0xc058
movq -0x10(%rsp), %rax
movl -0x20(%rsp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
cmpl $0x0, 0x18(%rax,%rcx,4)
je 0xc058
movb $0x0, -0x1(%rsp)
jmp 0xc07e
cmpl $0x0, -0x20(%rsp)
je 0xc066
cmpl $0x0, -0x24(%rsp)
jne 0xc068
jmp 0xc079
jmp 0xc06a
movb -0x19(%rsp), %al
addb $0x1, %al
movb %al, -0x19(%rsp)
jmp 0xbfbd
movb $0x1, -0x1(%rsp)
movb -0x1(%rsp), %al
retq
nopw %cs:(%rax,%rax)