// File: /workspace/github_c_makefile_star2_O0/Carton32[P]quectel-CM/MPQMUX.c
// Function: dump_ctl
void dump_ctl(PQCQMICTL_MSG_HDR CTLHdr) {
    const char *tag;
    
    //dbg("QCQMICTL_MSG--------------------------------------------\n");
    //dbg("CtlFlags:           %02x\t\t%s\n", CTLHdr->CtlFlags, QMI_NAME(qmi_ctl_CtlFlags, CTLHdr->CtlFlags));
   dbg("TransactionId:      %02x\n", CTLHdr->TransactionId);
        switch (CTLHdr->CtlFlags) {
            case QMICTL_FLAG_REQUEST: tag = "_REQ"; break;
            case QMICTL_FLAG_RESPONSE: tag = "_RESP"; break;
            case QMICTL_FLAG_INDICATION: tag = "_IND"; break;
            default: tag = 0; break;
       }
        dbg("QMICTLType:         %04x\t%s\n", le16_to_cpu(CTLHdr->QMICTLType),
        QMUX_NAME(qmux_ctl_QMICTLType, le16_to_cpu(CTLHdr->QMICTLType), tag));     
        dbg("Length:             %04x\n", le16_to_cpu(CTLHdr->Length));

     dump_tlv((PQCQMUX_MSG_HDR)(&CTLHdr->QMICTLType));
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x2bf7d(%rip), %rdi     # 0x37980
callq 0x5160
cmpq $0x400, %rax            # imm = 0x400
jae 0xba5b
leaq 0x2bf69(%rip), %rdi     # 0x37980
callq 0x5160
movq %rax, %rcx
leaq 0x2bf5a(%rip), %rax     # 0x37980
addq %rcx, %rax
movq %rax, -0x18(%rbp)
leaq 0x2bf4c(%rip), %rdi     # 0x37980
callq 0x5160
movq -0x18(%rbp), %rdi
movl $0x400, %esi            # imm = 0x400
subq %rax, %rsi
movq -0x8(%rbp), %rax
movzbl 0x1(%rax), %ecx
leaq 0x205bf(%rip), %rdx     # 0x2c013
movb $0x0, %al
callq 0x51c0
jmp 0xba5d
movq -0x8(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x1c(%rbp)
testl %eax, %eax
je 0xba81
jmp 0xba6d
movl -0x1c(%rbp), %eax
subl $0x1, %eax
je 0xba8e
jmp 0xba77
movl -0x1c(%rbp), %eax
subl $0x2, %eax
je 0xba9b
jmp 0xbaa8
leaq 0x20bde(%rip), %rax     # 0x2c666
movq %rax, -0x10(%rbp)
jmp 0xbab0
leaq 0x20bef(%rip), %rax     # 0x2c684
movq %rax, -0x10(%rbp)
jmp 0xbab0
leaq 0x207d4(%rip), %rax     # 0x2c276
movq %rax, -0x10(%rbp)
jmp 0xbab0
movq $0x0, -0x10(%rbp)
jmp 0xbab2
leaq 0x2bec7(%rip), %rdi     # 0x37980
callq 0x5160
cmpq $0x400, %rax            # imm = 0x400
jae 0xbb56
leaq 0x2beaf(%rip), %rdi     # 0x37980
callq 0x5160
movq %rax, %rcx
leaq 0x2bea0(%rip), %rax     # 0x37980
addq %rcx, %rax
movq %rax, -0x30(%rbp)
leaq 0x2be92(%rip), %rdi     # 0x37980
callq 0x5160
movq %rax, %rcx
movl $0x400, %eax            # imm = 0x400
subq %rcx, %rax
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x2(%rax), %edi
callq 0x13ed0
movzwl %ax, %eax
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x2(%rax), %edi
callq 0x13ed0
movzwl %ax, %edx
movq -0x10(%rbp), %rcx
leaq 0x29b70(%rip), %rdi     # 0x356a0
movl $0xf, %esi
callq 0xbbf0
movq -0x30(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x20(%rbp), %ecx
movq %rax, %r8
leaq 0x204de(%rip), %rdx     # 0x2c02d
movb $0x0, %al
callq 0x51c0
jmp 0xbb58
jmp 0xbb5a
leaq 0x2be1f(%rip), %rdi     # 0x37980
callq 0x5160
cmpq $0x400, %rax            # imm = 0x400
jae 0xbbcc
leaq 0x2be0b(%rip), %rdi     # 0x37980
callq 0x5160
movq %rax, %rcx
leaq 0x2bdfc(%rip), %rax     # 0x37980
addq %rcx, %rax
movq %rax, -0x40(%rbp)
leaq 0x2bdee(%rip), %rdi     # 0x37980
callq 0x5160
movq %rax, %rcx
movl $0x400, %eax            # imm = 0x400
subq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movzwl 0x4(%rax), %edi
callq 0x13ed0
movq -0x40(%rbp), %rdi
movq -0x38(%rbp), %rsi
movzwl %ax, %ecx
leaq 0x20485(%rip), %rdx     # 0x2c04a
movb $0x0, %al
callq 0x51c0
jmp 0xbbce
movq -0x8(%rbp), %rdi
addq $0x2, %rdi
callq 0xb820
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)