// File: /workspace/github_cpp_makefile_star2_O3/FFY00[P]uicc/include/uicc.h
// Function: UICC::send_check(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool send_check( string in, string out) {
        Assert( write(in) == (int)in.size(), "");
        string answer=read(out.size());

        if (answer.size() != out.size()) {
            printf("ret is not right size\n");
            dump_hex("expect", out);
            dump_hex("answer", answer);
            return false;
        }

        if ( answer != out) {
            printf("BAD return code\n");
            string answer2=read(255);
            dump_hex("Expected: ", out);
            dump_hex("got answer: ", answer+answer2);
            return false;
        }

        return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x168, %rsp            # imm = 0x168
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq -0x178(%rbp), %r13
movq %r13, -0x10(%r13)
movq (%rsi), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x188(%rbp), %r12
movq %r12, %rdi
callq 0x1394e
movq %r14, %rdi
movq %r12, %rsi
callq 0xe93c
movl %eax, %r12d
movl 0x8(%r15), %r15d
movq -0x188(%rbp), %rdi
cmpq %r13, %rdi
je 0xeb96
callq 0x2220
cmpl %r15d, %r12d
jne 0xef23
movq 0x8(%rbx), %rdx
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xe17e
movq 0x8(%r15), %rdx
cmpq 0x8(%rbx), %rdx
jne 0xed7b
movb $0x1, %r15b
testq %rdx, %rdx
je 0xeefc
movq (%rbx), %rsi
movq -0x48(%rbp), %rdi
callq 0x2260
testl %eax, %eax
je 0xeefc
leaq 0xa43f(%rip), %rdi      # 0x19026
callq 0x23c0
leaq -0x168(%rbp), %rdi
movl $0xff, %edx
movq %r14, %rsi
callq 0xe17e
leaq -0xf8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x9b72(%rip), %rsi      # 0x18784
leaq 0x9b75(%rip), %rdx      # 0x1878e
leaq -0x108(%rbp), %rdi
callq 0x139ec
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x1394e
movq -0x108(%rbp), %rsi
leaq 0xa18a(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0x60(%rbp)
je 0xec82
leaq 0x9317(%rip), %rbx      # 0x17f7a
xorl %r12d, %r12d
movq -0x68(%rbp), %rax
movsbl (%rax,%r12), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2060
incq %r12
cmpq -0x60(%rbp), %r12
jb 0xec66
movl $0xa, %edi
callq 0x2340
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0xec9a
callq 0x2220
movq -0x108(%rbp), %rdi
cmpq %r14, %rdi
je 0xecab
callq 0x2220
leaq -0xd8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x9ad2(%rip), %rsi      # 0x1878f
leaq 0x9ad7(%rip), %rdx      # 0x1879b
leaq -0xe8(%rbp), %rdi
callq 0x139ec
leaq -0xc8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x168(%rbp), %rdx
callq 0xefb5
movq -0xe8(%rbp), %rsi
leaq 0xa0e3(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0xc0(%rbp)
je 0xed32
leaq 0x926d(%rip), %rbx      # 0x17f7a
xorl %r15d, %r15d
movq -0xc8(%rbp), %rax
movsbl (%rax,%r15), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2060
incq %r15
cmpq -0xc0(%rbp), %r15
jb 0xed10
movl $0xa, %edi
callq 0x2340
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xed51
callq 0x2220
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0xed62
callq 0x2220
leaq -0x158(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xeef4
jmp 0xeef9
leaq 0xa2b4(%rip), %rdi      # 0x19036
callq 0x23c0
leaq -0x138(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x99e4(%rip), %rsi      # 0x1877d
leaq 0x99e3(%rip), %rdx      # 0x18783
leaq -0x148(%rbp), %rdi
callq 0x139ec
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x1394e
movq -0x148(%rbp), %rsi
leaq 0x9ffd(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0xa0(%rbp)
je 0xee18
leaq 0x9187(%rip), %rbx      # 0x17f7a
xorl %r12d, %r12d
movq -0xa8(%rbp), %rax
movsbl (%rax,%r12), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2060
incq %r12
cmpq -0xa0(%rbp), %r12
jb 0xedf6
movl $0xa, %edi
callq 0x2340
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0xee33
callq 0x2220
movq -0x148(%rbp), %rdi
cmpq %r14, %rdi
je 0xee44
callq 0x2220
leaq -0x118(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x91ec(%rip), %rsi      # 0x18042
leaq 0x91eb(%rip), %rdx      # 0x18048
leaq -0x128(%rbp), %rdi
callq 0x139ec
leaq -0x78(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x1394e
movq -0x128(%rbp), %rsi
leaq 0x9f42(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0x80(%rbp)
je 0xeecd
leaq 0x90cf(%rip), %rbx      # 0x17f7a
xorl %r12d, %r12d
movq -0x88(%rbp), %rax
movsbl (%rax,%r12), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2060
incq %r12
cmpq -0x80(%rbp), %r12
jb 0xeeae
movl $0xa, %edi
callq 0x2340
movq -0x88(%rbp), %rdi
cmpq %r15, %rdi
je 0xeee8
callq 0x2220
movq -0x128(%rbp), %rdi
cmpq %r14, %rdi
je 0xeef9
callq 0x2220
xorl %r15d, %r15d
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xef0e
callq 0x2220
movl %r15d, %eax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3cf1
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
jmp 0xef40
jmp 0xef4c
movq %rax, %rbx
movq -0x108(%rbp), %rdi
cmpq %r14, %rdi
je 0xef4f
callq 0x2220
jmp 0xef4f
movq %rax, %rbx
leaq -0x158(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xef80
jmp 0xef8a
jmp 0xef87
movq %rax, %rbx
movq -0x128(%rbp), %rdi
jmp 0xef7b
jmp 0xef87
movq %rax, %rbx
movq -0x148(%rbp), %rdi
cmpq %r14, %rdi
je 0xef8a
callq 0x2220
jmp 0xef8a
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xef9c
callq 0x2220
movq %rbx, %rdi
callq 0x2400
movq %rax, %rbx
movq -0x188(%rbp), %rdi
cmpq %r13, %rdi
jne 0xef97
jmp 0xef9c