// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x150, %rsp            # imm = 0x150
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x1ceb6(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x38(%rbp)
callq 0x13930
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %edi
callq 0x191c0
movl %eax, %edi
callq 0x1b390
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rdx
movq -0x28(%rbp), %rcx
movq %rax, %r8
leaq 0x15178(%rip), %rsi     # 0x2f2e2
movb $0x0, %al
callq 0x52c0
leaq 0x1dcf0(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1a1cc
leaq 0x1dce3(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x50(%rbp)
callq 0x13930
movq %rax, -0x48(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %edi
callq 0x191c0
movl %eax, %edi
callq 0x1b390
movq -0x50(%rbp), %rdi
movq -0x48(%rbp), %rdx
movq -0x40(%rbp), %rcx
movq %rax, %r8
leaq 0x1511d(%rip), %rsi     # 0x2f2e2
movb $0x0, %al
callq 0x52c0
jmp 0x1a1ce
jmp 0x1a1d0
movq 0x1ce09(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x68(%rbp)
callq 0x13930
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x58(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %edi
callq 0x191c0
movl %eax, -0x6c(%rbp)
movq -0x8(%rbp), %rax
movl 0x10(%rax), %edi
callq 0x191c0
movq -0x78(%rbp), %rdi
movl -0x6c(%rbp), %esi
movl %eax, %edx
callq 0x1b410
movq -0x68(%rbp), %rdi
movq -0x60(%rbp), %rdx
movq -0x58(%rbp), %rcx
movq %rax, %r8
leaq 0x150c5(%rip), %rsi     # 0x2f2fb
movb $0x0, %al
callq 0x52c0
leaq 0x1dc24(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1a2d3
leaq 0x1dc13(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x90(%rbp)
callq 0x13930
movq %rax, -0x88(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq -0x8(%rbp), %rax
movl 0xc(%rax), %edi
callq 0x191c0
movl %eax, -0x94(%rbp)
movq -0x8(%rbp), %rax
movl 0x10(%rax), %edi
callq 0x191c0
movq -0xa0(%rbp), %rdi
movl -0x94(%rbp), %esi
movl %eax, %edx
callq 0x1b410
movq -0x90(%rbp), %rdi
movq -0x88(%rbp), %rdx
movq -0x80(%rbp), %rcx
movq %rax, %r8
leaq 0x1502f(%rip), %rsi     # 0x2f2fb
movb $0x0, %al
callq 0x52c0
jmp 0x1a2d5
jmp 0x1a2d7
movq 0x1cd02(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0xb8(%rbp)
callq 0x13930
movq %rax, -0xb0(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xa8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xc8(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x191c0
movl %eax, -0xbc(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x191c0
movq -0xc8(%rbp), %rdi
movl -0xbc(%rbp), %esi
movl %eax, %edx
callq 0x1b410
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rdx
movq -0xa8(%rbp), %rcx
movq %rax, %r8
leaq 0x14fb7(%rip), %rsi     # 0x2f312
movb $0x0, %al
callq 0x52c0
leaq 0x1daff(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1a3fe
leaq 0x1daee(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0xe0(%rbp)
callq 0x13930
movq %rax, -0xd8(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xf0(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edi
callq 0x191c0
movl %eax, -0xe4(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %edi
callq 0x191c0
movq -0xf0(%rbp), %rdi
movl -0xe4(%rbp), %esi
movl %eax, %edx
callq 0x1b410
movq -0xe0(%rbp), %rdi
movq -0xd8(%rbp), %rdx
movq -0xd0(%rbp), %rcx
movq %rax, %r8
leaq 0x14f1b(%rip), %rsi     # 0x2f312
movb $0x0, %al
callq 0x52c0
jmp 0x1a400
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0xf4(%rbp)
movq -0x8(%rbp), %rax
movl 0x18(%rax), %edi
callq 0x191c0
movl %eax, %ecx
movl -0xf4(%rbp), %eax
cmpl %ecx, %eax
jae 0x1a569
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %eax
movl %eax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movl 0x20(%rax), %eax
movl %eax, -0x1c(%rbp)
movq 0x1cb99(%rip), %rax     # 0x36fe0
movq (%rax), %rax
movq %rax, -0x110(%rbp)
callq 0x13930
movq %rax, -0x108(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x100(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x120(%rbp)
movl -0x18(%rbp), %edi
callq 0x191c0
movl %eax, -0x114(%rbp)
movl -0x1c(%rbp), %edi
callq 0x191c0
movq -0x120(%rbp), %rdi
movl -0x114(%rbp), %esi
movl %eax, %edx
callq 0x1b410
movq -0x110(%rbp), %rdi
movq -0x108(%rbp), %rdx
movq -0x100(%rbp), %rcx
movq %rax, %r8
leaq 0x14e71(%rip), %rsi     # 0x2f32d
movb $0x0, %al
callq 0x52c0
leaq 0x1d99e(%rip), %rax     # 0x37e68
cmpq $0x0, (%rax)
je 0x1a557
leaq 0x1d98d(%rip), %rax     # 0x37e68
movq (%rax), %rax
movq %rax, -0x138(%rbp)
callq 0x13930
movq %rax, -0x130(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x128(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x148(%rbp)
movl -0x18(%rbp), %edi
callq 0x191c0
movl %eax, -0x13c(%rbp)
movl -0x1c(%rbp), %edi
callq 0x191c0
movq -0x148(%rbp), %rdi
movl -0x13c(%rbp), %esi
movl %eax, %edx
callq 0x1b410
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rdx
movq -0x128(%rbp), %rcx
movq %rax, %r8
leaq 0x14ddd(%rip), %rsi     # 0x2f32d
movb $0x0, %al
callq 0x52c0
jmp 0x1a559
jmp 0x1a55b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x1a407
addq $0x150, %rsp            # imm = 0x150
popq %rbp
retq
nopw %cs:(%rax,%rax)