// File: /workspace/github_c_makefile_star2_O0/janet-lang[P]janet/src/core/value.c
// Function: janet_equals
int janet_equals(Janet x, Janet y) {
    janet_vm.traversal = janet_vm.traversal_base;
    do {
        if (janet_type(x) != janet_type(y)) return 0;
        switch (janet_type(x)) {
            case JANET_NIL:
                break;
            case JANET_BOOLEAN:
                if (janet_unwrap_boolean(x) != janet_unwrap_boolean(y)) return 0;
                break;
            case JANET_NUMBER:
                if (janet_unwrap_number(x) != janet_unwrap_number(y)) return 0;
                break;
            case JANET_STRING:
                if (!janet_string_equal(janet_unwrap_string(x), janet_unwrap_string(y))) return 0;
                break;
            case JANET_ABSTRACT:
                if (janet_compare_abstract(janet_unwrap_abstract(x), janet_unwrap_abstract(y))) return 0;
                break;
            default:
                if (janet_unwrap_pointer(x) != janet_unwrap_pointer(y)) return 0;
                break;
            case JANET_TUPLE: {
                const Janet *t1 = janet_unwrap_tuple(x);
                const Janet *t2 = janet_unwrap_tuple(y);
                if (t1 == t2) break;
                if (JANET_TUPLE_FLAG_BRACKETCTOR & (janet_tuple_flag(t1) ^ janet_tuple_flag(t2))) return 0;
                if (janet_tuple_hash(t1) != janet_tuple_hash(t2)) return 0;
                if (janet_tuple_length(t1) != janet_tuple_length(t2)) return 0;
                push_traversal_node(janet_tuple_head(t1), janet_tuple_head(t2), 0);
                break;
            }
            break;
            case JANET_STRUCT: {
                const JanetKV *s1 = janet_unwrap_struct(x);
                const JanetKV *s2 = janet_unwrap_struct(y);
                if (s1 == s2) break;
                if (janet_struct_hash(s1) != janet_struct_hash(s2)) return 0;
                if (janet_struct_length(s1) != janet_struct_length(s2)) return 0;
                if (janet_struct_proto(s1) && !janet_struct_proto(s2)) return 0;
                if (!janet_struct_proto(s1) && janet_struct_proto(s2)) return 0;
                push_traversal_node(janet_struct_head(s1), janet_struct_head(s2), 0);
                break;
            }
            break;
        }
    } while (!traversal_next(&x, &y));
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
movq 0x118(%rax), %rax
movq %rax, -0x40(%rbp)
movq %fs:0x0, %rax
leaq -0x348(%rax), %rax
movq -0x40(%rbp), %rcx
movq %rcx, 0x108(%rax)
movsd -0x10(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x6e5b8
jmp 0x6e5c9
movq -0x10(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
movl %eax, -0x44(%rbp)
jmp 0x6e5d0
xorl %eax, %eax
movl %eax, -0x44(%rbp)
jmp 0x6e5d0
movl -0x44(%rbp), %eax
movl %eax, -0x48(%rbp)
movsd -0x18(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x6e5e8
jmp 0x6e5f9
movq -0x18(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
movl %eax, -0x4c(%rbp)
jmp 0x6e600
xorl %eax, %eax
movl %eax, -0x4c(%rbp)
jmp 0x6e600
movl -0x48(%rbp), %eax
movl -0x4c(%rbp), %ecx
cmpl %ecx, %eax
je 0x6e616
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movsd -0x10(%rbp), %xmm0
ucomisd %xmm0, %xmm0
setp %al
testb $0x1, %al
jne 0x6e628
jmp 0x6e639
movq -0x10(%rbp), %rax
shrq $0x2f, %rax
andq $0xf, %rax
movl %eax, -0x50(%rbp)
jmp 0x6e640
xorl %eax, %eax
movl %eax, -0x50(%rbp)
jmp 0x6e640
movl -0x50(%rbp), %eax
movl %eax, %ecx
movq %rcx, -0x58(%rbp)
subl $0xe, %eax
ja 0x6e722
movq -0x58(%rbp), %rax
leaq 0x2a463(%rip), %rcx     # 0x98ac0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x6e8a9
movq -0x10(%rbp), %rax
andq $0x1, %rax
movq -0x18(%rbp), %rcx
andq $0x1, %rcx
cmpq %rcx, %rax
je 0x6e68c
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
jmp 0x6e8a9
movsd -0x10(%rbp), %xmm0
ucomisd -0x18(%rbp), %xmm0
jne 0x6e6a1
jp 0x6e6a1
jmp 0x6e6ad
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
jmp 0x6e8a9
movq -0x10(%rbp), %rdi
callq 0x7b260
movq %rax, -0x60(%rbp)
movq -0x18(%rbp), %rdi
callq 0x7b260
movq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x64a30
cmpl $0x0, %eax
jne 0x6e6e5
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
jmp 0x6e8a9
movq -0x10(%rbp), %rdi
callq 0x7b260
movq %rax, -0x68(%rbp)
movq -0x18(%rbp), %rdi
callq 0x7b260
movq -0x68(%rbp), %rdi
movq %rax, %rsi
callq 0x6e8e0
cmpl $0x0, %eax
je 0x6e71d
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
jmp 0x6e8a9
movq -0x10(%rbp), %rdi
callq 0x7b260
movq %rax, -0x70(%rbp)
movq -0x18(%rbp), %rdi
callq 0x7b260
movq %rax, %rcx
movq -0x70(%rbp), %rax
cmpq %rcx, %rax
je 0x6e750
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
jmp 0x6e8a9
movq -0x10(%rbp), %rdi
callq 0x7b260
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0x7b260
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jne 0x6e77e
jmp 0x6e8a9
movq -0x20(%rbp), %rax
movl -0x20(%rax), %eax
movq -0x28(%rbp), %rcx
xorl -0x20(%rcx), %eax
andl $0x10000, %eax          # imm = 0x10000
cmpl $0x0, %eax
je 0x6e7a2
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movq -0x20(%rbp), %rax
movl -0xc(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl -0xc(%rcx), %eax
je 0x6e7be
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movq -0x20(%rbp), %rax
movl -0x10(%rax), %eax
movq -0x28(%rbp), %rcx
cmpl -0x10(%rcx), %eax
je 0x6e7da
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movq -0x20(%rbp), %rdi
addq $-0x20, %rdi
movq -0x28(%rbp), %rsi
addq $-0x20, %rsi
xorl %edx, %edx
callq 0x6e990
jmp 0x6e8a9
movq -0x10(%rbp), %rdi
callq 0x7b260
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
callq 0x7b260
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jne 0x6e81f
jmp 0x6e8a9
movq -0x30(%rbp), %rax
movl -0x14(%rax), %eax
movq -0x38(%rbp), %rcx
cmpl -0x14(%rcx), %eax
je 0x6e83b
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movq -0x30(%rbp), %rax
movl -0x18(%rax), %eax
movq -0x38(%rbp), %rcx
cmpl -0x18(%rcx), %eax
je 0x6e854
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movq -0x30(%rbp), %rax
cmpq $0x0, -0x8(%rax)
je 0x6e873
movq -0x38(%rbp), %rax
cmpq $0x0, -0x8(%rax)
jne 0x6e873
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movq -0x30(%rbp), %rax
cmpq $0x0, -0x8(%rax)
jne 0x6e892
movq -0x38(%rbp), %rax
cmpq $0x0, -0x8(%rax)
je 0x6e892
movl $0x0, -0x4(%rbp)
jmp 0x6e8cf
movq -0x30(%rbp), %rdi
addq $-0x28, %rdi
movq -0x38(%rbp), %rsi
addq $-0x28, %rsi
xorl %edx, %edx
callq 0x6e990
jmp 0x6e8ab
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x6ec00
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x6e5a6
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)