// File: /workspace/github_cpp_makefile_star2_O2/FFY00[P]uicc/src/program_uicc.c
// Function: readSIMvalues(char*)
bool readSIMvalues(char *port) {
    SIM SIMcard;
    string ATR;
    Assert((ATR=SIMcard.open(port))!="", "Failed to open %s", port);
    //dump_hex("ATR", ATR);
    vector<string> res;
    cout << "GSM IMSI: " << SIMcard.decodeIMSI(SIMcard.readFile("IMSI")[0]) << endl;
    // Show only the first isdn (might be several)
    cout << "GSM MSISDN: " << SIMcard.decodeISDN(SIMcard.readFile("MSISDN")[0]) <<endl;
    SIMcard.close();
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %rbx
leaq -0x70(%rbp), %r14
movq %r14, %rdi
callq 0xac38
leaq -0x120(%rbp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x40(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x83ae
leaq -0x130(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x2300
leaq 0x10662(%rip), %rsi     # 0x13392
movq %rax, %rdi
callq 0x83a1
movl %eax, %r14d
leaq -0x40(%rbp), %rdi
callq 0x2120
testb %r14b, %r14b
je 0x2edc
xorps %xmm0, %xmm0
movaps %xmm0, -0x90(%rbp)
andq $0x0, -0x80(%rbp)
movq 0x16265(%rip), %rdi     # 0x18fc8
leaq 0xe5c7(%rip), %rsi      # 0x11331
callq 0x2230
movq %rax, %rbx
leaq 0xe5c3(%rip), %rsi      # 0x1133c
leaq -0xf0(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x20f0
leaq -0x58(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0xf0(%rbp), %rdx
callq 0x85ea
movq -0x58(%rbp), %rsi
leaq -0x110(%rbp), %rdi
callq 0x2330
leaq -0x40(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0x110(%rbp), %rdx
callq 0x8570
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2130
leaq -0x40(%rbp), %rdi
callq 0x2120
leaq -0x110(%rbp), %rdi
callq 0x2120
leaq -0x58(%rbp), %rdi
callq 0x8a5a
leaq -0xf0(%rbp), %rdi
callq 0x2120
movq 0x161c2(%rip), %rdi     # 0x18fc8
leaq 0xe534(%rip), %rsi      # 0x11341
callq 0x2230
movq %rax, %rbx
leaq 0xe532(%rip), %rsi      # 0x1134e
leaq -0xb0(%rbp), %rdi
leaq -0x19(%rbp), %rdx
callq 0x20f0
leaq -0x58(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0xb0(%rbp), %rdx
callq 0x85ea
movq -0x58(%rbp), %rsi
leaq -0xd0(%rbp), %rdi
callq 0x2330
leaq -0x40(%rbp), %rdi
leaq -0x70(%rbp), %rsi
leaq -0xd0(%rbp), %rdx
callq 0x8a86
leaq -0x40(%rbp), %rsi
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2130
leaq -0x40(%rbp), %rdi
callq 0x2120
leaq -0xd0(%rbp), %rdi
callq 0x2120
leaq -0x58(%rbp), %rdi
callq 0x8a5a
leaq -0xb0(%rbp), %rdi
callq 0x2120
leaq -0x70(%rbp), %rdi
callq 0x8b14
leaq -0x90(%rbp), %rdi
callq 0x8a5a
leaq -0x130(%rbp), %rdi
callq 0x2120
leaq -0x70(%rbp), %rdi
callq 0x8b36
movb $0x1, %al
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq 0x160ed(%rip), %r15     # 0x18fd0
movq (%r15), %r14
callq 0x2040
movl (%rax), %edi
callq 0x20c0
movq %rbx, (%rsp)
leaq 0xe38b(%rip), %rsi      # 0x11288
leaq 0xe40c(%rip), %rdx      # 0x11310
leaq 0xe413(%rip), %rcx      # 0x1131e
pushq $0x2c
popq %r8
movq %r14, %rdi
movq %rax, %r9
xorl %eax, %eax
callq 0x2360
movq 0x16085(%rip), %rax     # 0x18fa8
movq (%rax), %rdi
callq 0x22c0
movq (%r15), %rdi
callq 0x22c0
pushq $0x1
popq %rdi
callq 0x22e0
movq %rax, %rbx
jmp 0x2f7c
movq %rax, %rbx
jmp 0x2f88
movq %rax, %rbx
jmp 0x2f91
jmp 0x2fc9
movq %rax, %rbx
jmp 0x2fa6
movq %rax, %rbx
jmp 0x2fb2
movq %rax, %rbx
jmp 0x2fbb
jmp 0x2fc9
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x2120
jmp 0x2fd8
movq %rax, %rbx
jmp 0x2fd8
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x2120
leaq -0xd0(%rbp), %rdi
callq 0x2120
leaq -0x58(%rbp), %rdi
callq 0x8a5a
leaq -0xb0(%rbp), %rdi
jmp 0x2fc2
movq %rax, %rbx
leaq -0x40(%rbp), %rdi
callq 0x2120
leaq -0x110(%rbp), %rdi
callq 0x2120
leaq -0x58(%rbp), %rdi
callq 0x8a5a
leaq -0xf0(%rbp), %rdi
callq 0x2120
jmp 0x2fcc
movq %rax, %rbx
leaq -0x90(%rbp), %rdi
callq 0x8a5a
leaq -0x130(%rbp), %rdi
callq 0x2120
leaq -0x70(%rbp), %rdi
callq 0x8b36
movq %rbx, %rdi
callq 0x2400