// File: /workspace/github_c_makefile_star2_O3/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 $0x18, %rsp
movq %rsi, 0x8(%rsp)
movq %rdi, %r14
movq 0x14e05(%rip), %rax     # 0x29fc0
movq (%rax), %r15
callq 0xea3b
movl (%r14), %edx
movl $0x4, %ecx
leaq 0x149be(%rip), %rbx     # 0x29b90
leaq 0xcd3c(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%rbx)
je 0x151eb
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x151d9
jmp 0x151ef
movq (%rcx,%rbx), %r8
leaq 0xce8b(%rip), %rsi      # 0x22081
movq %r15, %rdi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0x52c0
leaq 0x15a99(%rip), %rax     # 0x2aca8
movq (%rax), %r15
testq %r15, %r15
je 0x1525a
callq 0xea3b
movl (%r14), %edx
movl $0x4, %ecx
leaq 0xccea(%rip), %r8       # 0x21f15
cmpl %edx, -0x4(%rcx,%rbx)
je 0x1523d
addq $0xc, %rcx
cmpq $0x58, %rcx
jne 0x1522b
jmp 0x15241
movq (%rcx,%rbx), %r8
leaq 0xce39(%rip), %rsi      # 0x22081
movq %r15, %rdi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
xorl %eax, %eax
callq 0x52c0
movq 0x14d5f(%rip), %rax     # 0x29fc0
movq (%rax), %r12
callq 0xea3b
movl 0x10(%r14), %ecx
cmpq $0x2, %rcx
jae 0x15277
xorl %ecx, %ecx
jmp 0x1529c
movl 0xc(%r14), %edx
shrl %ecx
xorl %esi, %esi
leaq 0x16b6a(%rip), %rdi     # 0x2bdf0
movl %edx, %r8d
movb (%r14,%r8), %r8b
movb %r8b, (%rsi,%rdi)
incq %rsi
addl $0x2, %edx
cmpq %rsi, %rcx
jne 0x15286
leaq 0x16b4d(%rip), %r15     # 0x2bdf0
movb $0x0, (%rcx,%r15)
leaq 0xcdeb(%rip), %rsi      # 0x2209a
movq %r12, %rdi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x52c0
leaq 0x159dd(%rip), %rax     # 0x2aca8
movq (%rax), %r12
testq %r12, %r12
je 0x15324
callq 0xea3b
movl 0x10(%r14), %ecx
cmpq $0x2, %rcx
jae 0x152e6
xorl %ecx, %ecx
jmp 0x15303
movl 0xc(%r14), %edx
shrl %ecx
xorl %esi, %esi
movl %edx, %edi
movb (%r14,%rdi), %dil
movb %dil, (%rsi,%r15)
incq %rsi
addl $0x2, %edx
cmpq %rsi, %rcx
jne 0x152ee
movb $0x0, (%rcx,%r15)
leaq 0xcd8b(%rip), %rsi      # 0x2209a
movq %r12, %rdi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x52c0
movq 0x14c95(%rip), %rax     # 0x29fc0
movq (%rax), %r12
callq 0xea3b
movl 0x8(%r14), %ecx
cmpq $0x2, %rcx
jae 0x15341
xorl %ecx, %ecx
jmp 0x1535e
movl 0x4(%r14), %edx
shrl %ecx
xorl %esi, %esi
movl %edx, %edi
movb (%r14,%rdi), %dil
movb %dil, (%rsi,%r15)
incq %rsi
addl $0x2, %edx
cmpq %rsi, %rcx
jne 0x15349
movb $0x0, (%rcx,%r15)
leaq 0xcd47(%rip), %rsi      # 0x220b1
movq %r12, %rdi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x52c0
leaq 0x15922(%rip), %rax     # 0x2aca8
movq (%rax), %r12
testq %r12, %r12
je 0x153df
callq 0xea3b
movl 0x8(%r14), %ecx
cmpq $0x2, %rcx
jae 0x153a1
xorl %ecx, %ecx
jmp 0x153be
movl 0x4(%r14), %edx
shrl %ecx
xorl %esi, %esi
movl %edx, %edi
movb (%r14,%rdi), %dil
movb %dil, (%rsi,%r15)
incq %rsi
addl $0x2, %edx
cmpq %rsi, %rcx
jne 0x153a9
movb $0x0, (%rcx,%r15)
leaq 0xcce7(%rip), %rsi      # 0x220b1
movq %r12, %rdi
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x52c0
cmpl $0x0, 0x18(%r14)
je 0x154c3
xorl %ebp, %ebp
movl 0x1c(%r14), %ebx
movl 0x20(%r14), %r12d
movq 0x14bc5(%rip), %rax     # 0x29fc0
movq (%rax), %rax
movq %rax, 0x10(%rsp)
callq 0xea3b
movl %r12d, %r13d
shrl %r13d
cmpl $0x2, %r12d
jae 0x15418
xorl %ecx, %ecx
jmp 0x15434
movl %ebx, %ecx
xorl %edx, %edx
movl %ecx, %esi
movb (%r14,%rsi), %sil
movb %sil, (%rdx,%r15)
incq %rdx
addl $0x2, %ecx
cmpq %rdx, %r13
jne 0x1541c
movq %r13, %rcx
movb $0x0, (%rcx,%r15)
movq 0x10(%rsp), %rdi
leaq 0xcc87(%rip), %rsi      # 0x220cc
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x52c0
leaq 0x1584a(%rip), %rax     # 0x2aca8
movq (%rax), %rax
testq %rax, %rax
je 0x154b7
movq %rax, 0x10(%rsp)
callq 0xea3b
cmpl $0x2, %r12d
jae 0x1547a
xorl %ecx, %ecx
jmp 0x15494
movl %r13d, %ecx
xorl %edx, %edx
movl %ebx, %esi
movb (%r14,%rsi), %sil
movb %sil, (%rdx,%r15)
incq %rdx
addl $0x2, %ebx
cmpq %rdx, %rcx
jne 0x1547f
movq 0x10(%rsp), %rdi
movb $0x0, (%rcx,%r15)
leaq 0xcc27(%rip), %rsi      # 0x220cc
movq %rax, %rdx
movq 0x8(%rsp), %rcx
movq %r15, %r8
xorl %eax, %eax
callq 0x52c0
incl %ebp
cmpl 0x18(%r14), %ebp
jb 0x153ec
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq