// File: /workspace/github_cpp_makefile_star2_O1/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 0x1372a
movq %r14, %rdi
movq %r12, %rsi
callq 0xe6b2
movl %eax, %r12d
movl 0x8(%r15), %r15d
movq -0x188(%rbp), %rdi
cmpq %r13, %rdi
je 0xe90a
callq 0x2220
cmpl %r15d, %r12d
jne 0xec97
movq 0x8(%rbx), %rdx
leaq -0x48(%rbp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xde7c
movq 0x8(%r15), %rdx
cmpq 0x8(%rbx), %rdx
jne 0xeaef
movb $0x1, %r15b
testq %rdx, %rdx
je 0xec70
movq (%rbx), %rsi
movq -0x48(%rbp), %rdi
callq 0x2260
testl %eax, %eax
je 0xec70
leaq 0xa6cb(%rip), %rdi      # 0x19026
callq 0x23c0
leaq -0x168(%rbp), %rdi
movl $0xff, %edx
movq %r14, %rsi
callq 0xde7c
leaq -0xf8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x9dfe(%rip), %rsi      # 0x18784
leaq 0x9e01(%rip), %rdx      # 0x1878e
leaq -0x108(%rbp), %rdi
callq 0x137c4
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x1372a
movq -0x108(%rbp), %rsi
leaq 0xa416(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0x60(%rbp)
je 0xe9f6
leaq 0x95a3(%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 0xe9da
movl $0xa, %edi
callq 0x2340
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0xea0e
callq 0x2220
movq -0x108(%rbp), %rdi
cmpq %r14, %rdi
je 0xea1f
callq 0x2220
leaq -0xd8(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x9d5e(%rip), %rsi      # 0x1878f
leaq 0x9d63(%rip), %rdx      # 0x1879b
leaq -0xe8(%rbp), %rdi
callq 0x137c4
leaq -0xc8(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0x168(%rbp), %rdx
callq 0xed29
movq -0xe8(%rbp), %rsi
leaq 0xa36f(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0xc0(%rbp)
je 0xeaa6
leaq 0x94f9(%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 0xea84
movl $0xa, %edi
callq 0x2340
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xeac5
callq 0x2220
movq -0xe8(%rbp), %rdi
cmpq %r14, %rdi
je 0xead6
callq 0x2220
leaq -0x158(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xec68
jmp 0xec6d
leaq 0xa540(%rip), %rdi      # 0x19036
callq 0x23c0
leaq -0x138(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x9c70(%rip), %rsi      # 0x1877d
leaq 0x9c6f(%rip), %rdx      # 0x18783
leaq -0x148(%rbp), %rdi
callq 0x137c4
leaq -0x98(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq -0xa8(%rbp), %rdi
callq 0x1372a
movq -0x148(%rbp), %rsi
leaq 0xa289(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0xa0(%rbp)
je 0xeb8c
leaq 0x9413(%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 0xeb6a
movl $0xa, %edi
callq 0x2340
movq -0xa8(%rbp), %rdi
cmpq %r15, %rdi
je 0xeba7
callq 0x2220
movq -0x148(%rbp), %rdi
cmpq %r14, %rdi
je 0xebb8
callq 0x2220
leaq -0x118(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x9478(%rip), %rsi      # 0x18042
leaq 0x9477(%rip), %rdx      # 0x18048
leaq -0x128(%rbp), %rdi
callq 0x137c4
leaq -0x78(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %rdi
callq 0x1372a
movq -0x128(%rbp), %rsi
leaq 0xa1ce(%rip), %rdi      # 0x18dd8
xorl %eax, %eax
callq 0x2060
cmpq $0x0, -0x80(%rbp)
je 0xec41
leaq 0x935b(%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 0xec22
movl $0xa, %edi
callq 0x2340
movq -0x88(%rbp), %rdi
cmpq %r15, %rdi
je 0xec5c
callq 0x2220
movq -0x128(%rbp), %rdi
cmpq %r14, %rdi
je 0xec6d
callq 0x2220
xorl %r15d, %r15d
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xec82
callq 0x2220
movl %r15d, %eax
addq $0x168, %rsp            # imm = 0x168
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3ce4
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
jmp 0xecb4
jmp 0xecc0
movq %rax, %rbx
movq -0x108(%rbp), %rdi
cmpq %r14, %rdi
je 0xecc3
callq 0x2220
jmp 0xecc3
movq %rax, %rbx
leaq -0x158(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xecf4
jmp 0xecfe
jmp 0xecfb
movq %rax, %rbx
movq -0x128(%rbp), %rdi
jmp 0xecef
jmp 0xecfb
movq %rax, %rbx
movq -0x148(%rbp), %rdi
cmpq %r14, %rdi
je 0xecfe
callq 0x2220
jmp 0xecfe
movq %rax, %rbx
leaq -0x38(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xed10
callq 0x2220
movq %rbx, %rdi
callq 0x2400
movq %rax, %rbx
movq -0x188(%rbp), %rdi
cmpq %r13, %rdi
jne 0xed0b
jmp 0xed10