// File: /workspace/github_cpp_makefile_star2_O1/FFY00[P]uicc/include/uicc.h
// Function: USIM::readFileInfo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool readFileInfo(string size) {
        string order(u8"\x00\xc0\x00\x00",4);
        order+=size;
        string good(u8"\x90\x00",2);
        write(order);
        string values=read(size[0] +good.size());

        if ( values[0] != '\x62' || values.substr(values.size()-2) != good)
            return false;

        fileInfo=extractTLV(values, "FCP Template");
        fileDesc=extractTLV(fileInfo, "File Descriptor");
        string fileSizeString=extractTLV(fileInfo, "File Size - Data");
        fileSize=0;

        for (size_t i=0; i<fileSizeString.size(); i++)
            fileSize=fileSize*256+(unsigned char)fileSizeString[i];

        return true;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x188, %rsp            # imm = 0x188
movq %rsi, %r14
movq %rdi, %rbx
leaq -0x78(%rbp), %r12
movq %r12, -0x10(%r12)
movl $0xc000, (%r12)         # imm = 0xC000
movq $0x4, -0x8(%r12)
movb $0x0, 0x4(%r12)
movq (%rsi), %rsi
movq 0x8(%r14), %rdx
leaq -0x88(%rbp), %rdi
callq 0x20d0
leaq -0x58(%rbp), %r13
movq %r13, -0x10(%r13)
movw $0x90, (%r13)
movq $0x2, -0x8(%r13)
movb $0x0, 0x2(%r13)
leaq -0x178(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
addq %rsi, %rdx
leaq -0x188(%rbp), %rdi
callq 0x1372a
leaq -0x188(%rbp), %rsi
movq %rbx, %rdi
callq 0xe6b2
movq -0x188(%rbp), %rdi
cmpq %r15, %rdi
je 0x126b4
callq 0x2220
movq (%r14), %rax
movsbq (%rax), %rdx
addq -0x60(%rbp), %rdx
leaq -0xa8(%rbp), %rdi
movq %rbx, %rsi
callq 0xde7c
movq -0xa8(%rbp), %rax
movb (%rax), %r15b
movb $0x1, %r14b
cmpb $0x62, %r15b
jne 0x12730
leaq -0xa8(%rbp), %rsi
movq 0x8(%rsi), %rdx
addq $-0x2, %rdx
leaq -0x1a8(%rbp), %rdi
movq $-0x1, %rcx
callq 0x2270
movq -0x1a0(%rbp), %rdx
cmpq -0x60(%rbp), %rdx
jne 0x12730
testq %rdx, %rdx
je 0x1272d
movq -0x68(%rbp), %rsi
movq -0x1a8(%rbp), %rdi
callq 0x2260
testl %eax, %eax
setne %r14b
jmp 0x12730
xorl %r14d, %r14d
cmpb $0x62, %r15b
jne 0x1274b
leaq -0x198(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1274b
callq 0x2220
testb %r14b, %r14b
jne 0x12962
leaq -0x158(%rbp), %r12
movq %r12, -0x10(%r12)
movq -0xa8(%rbp), %rsi
movq -0xa0(%rbp), %rdx
addq %rsi, %rdx
leaq -0x168(%rbp), %rdi
callq 0x1372a
leaq -0x138(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x643d(%rip), %rsi      # 0x18bcc
leaq 0x6442(%rip), %rdx      # 0x18bd8
leaq -0x148(%rbp), %rdi
callq 0x137c4
leaq -0x48(%rbp), %rdi
leaq -0x168(%rbp), %rsi
leaq -0x148(%rbp), %rdx
callq 0xa4e9
leaq 0x8(%rbx), %rdi
leaq -0x48(%rbp), %r15
movq %r15, %rsi
callq 0x2320
movq (%r15), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x127da
callq 0x2220
movq -0x148(%rbp), %rdi
cmpq %r13, %rdi
je 0x127eb
callq 0x2220
movq -0x168(%rbp), %rdi
cmpq %r12, %rdi
je 0x127fc
callq 0x2220
leaq -0x118(%rbp), %r12
movq %r12, -0x10(%r12)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0x128(%rbp), %rdi
callq 0x1372a
leaq -0xf8(%rbp), %r13
movq %r13, -0x10(%r13)
leaq 0x63a8(%rip), %rsi      # 0x18bd9
leaq 0x63b0(%rip), %rdx      # 0x18be8
leaq -0x108(%rbp), %rdi
callq 0x137c4
leaq -0x48(%rbp), %rdi
leaq -0x128(%rbp), %rsi
leaq -0x108(%rbp), %rdx
callq 0xa4e9
leaq 0x28(%rbx), %rdi
movq %r15, %rsi
callq 0x2320
movq (%r15), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x12878
callq 0x2220
movq -0x108(%rbp), %rdi
cmpq %r13, %rdi
je 0x12889
callq 0x2220
movq -0x128(%rbp), %rdi
cmpq %r12, %rdi
leaq -0x58(%rbp), %r13
je 0x1289e
callq 0x2220
leaq -0xd8(%rbp), %r15
movq %r15, -0x10(%r15)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
leaq -0xe8(%rbp), %rdi
callq 0x1372a
leaq -0xb8(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x6316(%rip), %rsi      # 0x18be9
leaq 0x631f(%rip), %rdx      # 0x18bf9
leaq -0xc8(%rbp), %rdi
callq 0x137c4
leaq -0x48(%rbp), %rdi
leaq -0xe8(%rbp), %rsi
leaq -0xc8(%rbp), %rdx
callq 0xa4e9
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0x1290e
callq 0x2220
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
leaq -0x78(%rbp), %r12
je 0x12923
callq 0x2220
movl $0x0, 0x48(%rbx)
movq -0x40(%rbp), %rax
testq %rax, %rax
je 0x12950
movl 0x48(%rbx), %ecx
movq -0x48(%rbp), %rdx
xorl %esi, %esi
shll $0x8, %ecx
movzbl (%rdx,%rsi), %edi
orl %edi, %ecx
movl %ecx, 0x48(%rbx)
incq %rsi
cmpq %rsi, %rax
jne 0x1293c
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x12962
callq 0x2220
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12977
callq 0x2220
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0x12985
callq 0x2220
movq -0x88(%rbp), %rdi
cmpq %r12, %rdi
je 0x12996
callq 0x2220
xorb $0x1, %r14b
movl %r14d, %eax
addq $0x188, %rsp            # imm = 0x188
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0x129c8
callq 0x2220
jmp 0x129c8
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r15, %rdi
jne 0x12a21
jmp 0x12a2d
jmp 0x12a2a
movq %rax, %rbx
movq -0x108(%rbp), %rdi
cmpq %r13, %rdi
je 0x129f1
callq 0x2220
jmp 0x129f1
movq %rax, %rbx
movq -0x128(%rbp), %rdi
jmp 0x12a1c
jmp 0x12a2a
movq %rax, %rbx
movq -0x148(%rbp), %rdi
cmpq %r13, %rdi
je 0x12a15
callq 0x2220
jmp 0x12a15
movq %rax, %rbx
movq -0x168(%rbp), %rdi
cmpq %r12, %rdi
je 0x12a2d
callq 0x2220
jmp 0x12a2d
jmp 0x12a2a
movq %rax, %rbx
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x12a5a
callq 0x2220
jmp 0x12a5a
jmp 0x12a57
movq %rax, %rbx
movq -0x188(%rbp), %rdi
cmpq %r15, %rdi
jne 0x12a3d
jmp 0x12a5a
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x12a71
callq 0x2220
jmp 0x12a71
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x12a86
callq 0x2220
movq %rbx, %rdi
callq 0x2400