// File: /workspace/github_c_makefile_star2_O2/Carton32[P]quectel-CM/mbim-cm.c
// Function: mbim_dump_subscriber_status
static void mbim_dump_subscriber_status(MBIM_SUBSCRIBER_READY_STATUS_T *pInfo, const char *direction)
{
    mbim_debug("%s ReadyState = %s", direction, MBIMSubscriberReadyStateStr(le32toh(pInfo->ReadyState)));
    mbim_debug("%s SIMICCID = %s", direction, mbim_get_segment(pInfo, le32toh(pInfo->SimIccIdOffset), le32toh(pInfo->SimIccIdSize)));
    mbim_debug("%s SubscriberID = %s", direction, mbim_get_segment(pInfo, le32toh(pInfo->SubscriberIdOffset), le32toh(pInfo->SubscriberIdSize)));
    /* maybe more than one number */
    uint32_t idx;
    for (idx = 0; idx < le32toh(pInfo->ElementCount); idx++) {
        UINT32 offset = ((UINT32*)((UINT8*)pInfo+offsetof(MBIM_SUBSCRIBER_READY_STATUS_T, TelephoneNumbersRefList)))[0];
        UINT32 length = ((UINT32*)((UINT8*)pInfo+offsetof(MBIM_SUBSCRIBER_READY_STATUS_T, TelephoneNumbersRefList)))[1];
        mbim_debug("%s Number = %s", direction, mbim_get_segment(pInfo, le32toh(offset), le32toh(length)));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r12
movq %rdi, %r14
movq 0x14a5f(%rip), %rax     # 0x28fb8
movq (%rax), %rbx
callq 0xe343
movq %rax, %r15
movl (%r14), %edi
callq 0x14c3e
leaq 0xbb23(%rip), %rsi      # 0x20096
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x52c0
leaq 0x1571b(%rip), %rax     # 0x29ca8
movq (%rax), %r15
testq %r15, %r15
je 0x145bf
callq 0xe343
movq %rax, %rbx
movl (%r14), %edi
callq 0x14c3e
leaq 0xbaea(%rip), %rsi      # 0x20096
movq %r15, %rdi
movq %rbx, %rdx
movq %r12, %rcx
movq %rax, %r8
xorl %eax, %eax
callq 0x52c0
movq 0x149f2(%rip), %rax     # 0x28fb8
movq (%rax), %rbx
callq 0xe343
movq %rax, %r15
movl 0xc(%r14), %esi
movl 0x10(%r14), %edx
movq %r14, %rdi
callq 0x14c66
leaq 0xbac7(%rip), %rsi      # 0x200af
leaq 0x16801(%rip), %r8      # 0x2adf0
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x52c0
leaq 0x156a2(%rip), %rax     # 0x29ca8
movq (%rax), %r15
testq %r15, %r15
je 0x14644
callq 0xe343
movq %rax, %rbx
movl 0xc(%r14), %esi
movl 0x10(%r14), %edx
movq %r14, %rdi
callq 0x14c66
leaq 0xba82(%rip), %rsi      # 0x200af
leaq 0x167bc(%rip), %r8      # 0x2adf0
movq %r15, %rdi
movq %rbx, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x52c0
movq 0x1496d(%rip), %rax     # 0x28fb8
movq (%rax), %rbx
callq 0xe343
movq %rax, %r15
movl 0x4(%r14), %esi
movl 0x8(%r14), %edx
movq %r14, %rdi
callq 0x14c66
leaq 0xba59(%rip), %rsi      # 0x200c6
leaq 0x1677c(%rip), %r8      # 0x2adf0
movq %rbx, %rdi
movq %r15, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x52c0
leaq 0x1561d(%rip), %rax     # 0x29ca8
movq (%rax), %r15
testq %r15, %r15
je 0x146c9
callq 0xe343
movq %rax, %rbx
movl 0x4(%r14), %esi
movl 0x8(%r14), %edx
movq %r14, %rdi
callq 0x14c66
leaq 0xba14(%rip), %rsi      # 0x200c6
leaq 0x16737(%rip), %r8      # 0x2adf0
movq %r15, %rdi
movq %rbx, %rdx
movq %r12, %rcx
xorl %eax, %eax
callq 0x52c0
movq %r12, 0x18(%rsp)
leaq 0xba0c(%rip), %r12      # 0x200e1
leaq 0x16714(%rip), %r13     # 0x2adf0
xorl %eax, %eax
cmpl 0x18(%r14), %eax
jae 0x1478c
movl %eax, 0x14(%rsp)
movl 0x1c(%r14), %ebx
movq %r14, %r15
movl 0x20(%r14), %r14d
movq 0x148ba(%rip), %rax     # 0x28fb8
movq (%rax), %rax
movq %rax, 0x20(%rsp)
callq 0xe343
movq %rax, %rbp
movq %r15, %rdi
movl %ebx, 0xc(%rsp)
movl %ebx, %esi
movl %r14d, 0x10(%rsp)
movl %r14d, %edx
callq 0x14c66
movq 0x20(%rsp), %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq 0x18(%rsp), %r14
movq %r14, %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0x52c0
leaq 0x15560(%rip), %rax     # 0x29ca8
movq (%rax), %rbx
testq %rbx, %rbx
je 0x1477e
callq 0xe343
movq %rax, %rbp
movq %r15, %rdi
movl 0xc(%rsp), %esi
movl 0x10(%rsp), %edx
callq 0x14c66
movq %rbx, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %r14, %rcx
movq %r13, %r8
xorl %eax, %eax
callq 0x52c0
movl 0x14(%rsp), %eax
incl %eax
movq %r15, %r14
jmp 0x146de
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq