LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_GetCPIN
cmError_t cellModem_GetCPIN(cmData_t *obj, char *getCode){
    cmError_t retVal;
    char bufferRecv[60]={0};
    char cmd[10]="AT+CPIN?\r";
    char *ptr = NULL;

    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) ) ? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE  ,bufferRecv ,150000); 
    
    if(CM_OK == retVal){
        if( (ptr = strstr(bufferRecv,"+CPIN:")) != NULL ){
            if(getCode != NULL){
                ptr = extractBetween(bufferRecv,' ','\r',getCode,0);
            }
        }
    }
    
    return retVal;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rcx
movups %xmm0, 0x2c(%rcx)
movaps %xmm0, 0x20(%rcx)
movaps %xmm0, 0x10(%rcx)
movaps %xmm0, (%rcx)
movabsq $0x3f4e4950432b5441, %rax # imm = 0x3F4E4950432B5441
movq %rsp, %rsi
movq %rax, (%rsi)
movw $0xd, 0x8(%rsi)
cmpb $0x0, 0x61(%rdi)
leaq 0x5cc9(%rip), %rax      # 0x7bd2
leaq 0x5e42(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
movl $0x249f0, %r8d          # imm = 0x249F0
callq 0x12cc
movl %eax, %ebp
testl %eax, %eax
jne 0x1f5a
leaq 0x51ae(%rip), %rsi      # 0x70da
leaq 0x10(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x1f5a
testq %rax, %rax
je 0x1f5a
leaq 0x10(%rsp), %rdi
movl $0x20, %esi
movl $0xd, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x16ec
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_GetContextProfile
cmError_t cellModem_GetContextProfile(cmData_t *obj, cellModemConfig_t *config){  
    cmError_t retVal;
    char bufferRecv[60];
    char cmd[16]="AT+QIACT?\r";
    char *ptr = NULL;
    char  buffer[4] ={0};

    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) ) ? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE  ,bufferRecv ,150000); //150 sg
    
    if(CM_OK == retVal){
        if( (ptr = strstr(bufferRecv,"+QIACT:")) != NULL ){
            if(config != NULL){
                ptr = extractBetween(bufferRecv,' ',',',buffer,0);
                config->contextId = (int)atoi(buffer);
                ptr = extractBetween(bufferRecv,',',',',buffer,0);
                config->contextState = (int)atoi(buffer);
                ptr = extractBetween(ptr,',',',',buffer,0);
                config->contextType = (int)atoi(buffer);
                ptr = extractBetween(ptr,'"','"',config->contextIpAddres,0);
            }
        }else{
           // retVal = CM_ERR_INVALID_RESPONSE;
        }
    }
    return retVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movaps 0x50a9(%rip), %xmm0     # 0x7020
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movl $0x0, 0xc(%rsp)
cmpb $0x0, 0x61(%rdi)
leaq 0x5c40(%rip), %rax      # 0x7bd2
leaq 0x5db9(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rcx
movl $0x249f0, %r8d          # imm = 0x249F0
callq 0x12cc
movl %eax, %ebp
testl %eax, %eax
jne 0x206f
leaq 0x5123(%rip), %rsi      # 0x70e1
leaq 0x20(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x206f
testq %rax, %rax
je 0x206f
leaq 0x20(%rsp), %r15
leaq 0xc(%rsp), %r14
movq %r15, %rdi
movl $0x20, %esi
movl $0x2c, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16ec
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x1c(%rbx)
movq %r15, %rdi
movl $0x2c, %esi
movl $0x2c, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16ec
movq %rax, %r15
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x20(%rbx)
movq %r15, %rdi
movl $0x2c, %esi
movl $0x2c, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16ec
movq %rax, %r15
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x24(%rbx)
addq $0x28, %rbx
movq %r15, %rdi
movl $0x22, %esi
movl $0x22, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x16ec
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SetDeactContextProfile
cmError_t cellModem_SetDeactContextProfile(cmData_t *obj, uint8_t contextID){
    cmError_t retVal;
    char cmd[16]="AT+QIDEACT=";
    cmd[11] = (char)( (0 == contextID ) ? (char)contextID +'0' : '1');
    cmd[12]  = '\r';

    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE ,NULL ,40000);/*40 sg*/

    return retVal;
}

// Assembly:
subq $0x18, %rsp
movaps 0x4fa9(%rip), %xmm0     # 0x7030
movq %rsp, %rax
movaps %xmm0, (%rax)
testl %esi, %esi
sete %cl
xorb $0x31, %cl
movb %cl, 0xb(%rax)
movb $0xd, 0xc(%rax)
cmpb $0x0, 0x61(%rdi)
leaq 0x5b2b(%rip), %rcx      # 0x7bd2
leaq 0x5ca4(%rip), %rdx      # 0x7d52
cmoveq %rcx, %rdx
movq %rax, %rsi
xorl %ecx, %ecx
movl $0x9c40, %r8d           # imm = 0x9C40
callq 0x12cc
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SmsSetMessageFormat
cmError_t cellModem_SmsSetMessageFormat(cmData_t *obj, uint8_t mode){
    cmError_t retVal;
    char cmd[16]="AT+CMGF=";
    cmd[8] = (char)( (0 == mode ) ? (char)mode +'0' : '1');
    cmd[9]  = '\r';

    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE ,NULL ,300);

    return retVal;
}

// Assembly:
subq $0x18, %rsp
movaps 0x4f6e(%rip), %xmm0     # 0x7040
movq %rsp, %rax
movaps %xmm0, (%rax)
testl %esi, %esi
sete %cl
xorb $0x31, %cl
movb %cl, 0x8(%rax)
movb $0xd, 0x9(%rax)
cmpb $0x0, 0x61(%rdi)
leaq 0x5ae0(%rip), %rcx      # 0x7bd2
leaq 0x5c59(%rip), %rdx      # 0x7d52
cmoveq %rcx, %rdx
movq %rax, %rsi
xorl %ecx, %ecx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12cc
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SmsSendNumber
cmError_t cellModem_SmsSendNumber(cmData_t *obj, const char *number){
    cmError_t retVal;
    char cmd[256]="AT+CMGS=\"";  // max 160 char, pending controller
    char *ptr = NULL;

    ptr = strcat(cmd+9, number);
    ptr = strcat(ptr,"\"\r");

    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :">" ,NULL ,12000);/*120 sg*/

    return retVal;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50af(%rip), %rsi      # 0x7230
movq %rsp, %r15
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
callq 0x10c0
leaq 0x9(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x10f0
movq %r12, %rdi
callq 0x1070
movw $0xd22, 0x9(%rsp,%rax)  # imm = 0xD22
movb $0x0, 0xb(%rsp,%rax)
cmpb $0x0, 0x61(%rbx)
leaq 0x5a12(%rip), %rax      # 0x7bd2
leaq 0x6056(%rip), %rdx      # 0x821d
cmoveq %rax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movl $0x2ee0, %r8d           # imm = 0x2EE0
callq 0x12cc
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SmsSendTextMessage
cmError_t cellModem_SmsSendTextMessage(cmData_t *obj, const char *msg){
    cmError_t retVal;
    char cmd[256] ={0};  // max 160 char, pending controller
    memcpy((void*)cmd,(void*)msg, strlen(msg));

    //\x1A  = ctrl+z = 0x1A para que salga el mensaje
    strcat(cmd, "\r");
   
    retVal = cmSendCmd(obj,(char*)cmd , NULL ,NULL ,12000);/*120 sg*/
    retVal = cmSendCmd(obj,"\x1A\r" , (0 == cellModem_GetatvFormat(obj) )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE  ,NULL ,12000);/*120 sg*/
    //cmSendDirectUart(obj,"\x1A");
    return retVal;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x100, %rsp            # imm = 0x100
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %r15
movl $0x100, %edx            # imm = 0x100
movq %r15, %rdi
xorl %esi, %esi
callq 0x10a0
movq %r14, %rdi
callq 0x1070
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
movq %r15, %rdi
callq 0x1070
movw $0xd, (%rsp,%rax)
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x2ee0, %r8d           # imm = 0x2EE0
callq 0x12cc
cmpb $0x0, 0x61(%rbx)
leaq 0x597d(%rip), %rax      # 0x7bd2
leaq 0x5af6(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
leaq 0x4ea5(%rip), %rsi      # 0x710c
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x2ee0, %r8d           # imm = 0x2EE0
callq 0x12cc
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SocketConfigSendData
cmError_t cellModem_SocketConfigSendData(cmData_t *obj,socketData_t *config ){
    cmError_t retVal;
    char cmd[1024]="AT+QISEND=";  // max 160 char, pending controller
    char *ptr = NULL;
    char  buffer[32] ={0};

    if(config->dataToSend != NULL)
        sprintf(buffer,"%d,%d\r",config->connectId, strlen(config->dataToSend));

    ptr = strcat(cmd+9, buffer);
    //printf("ptr: [%s]",ptr);

    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :">" ,NULL ,300);/*120 sg*/
    return retVal;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x420, %rsp            # imm = 0x420
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4c68(%rip), %rsi      # 0x7430
leaq 0x20(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
callq 0x10c0
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq 0x28(%r14), %rdi
testq %rdi, %rdi
je 0x280b
movl 0x4c(%r14), %ebp
callq 0x1070
leaq 0x4923(%rip), %rsi      # 0x711f
movq %rsp, %rdi
movl %ebp, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x1100
leaq 0x29(%rsp), %rdi
movq %rsp, %rsi
callq 0x10f0
cmpb $0x0, 0x61(%rbx)
leaq 0x53af(%rip), %rax      # 0x7bd2
leaq 0x59f3(%rip), %rdx      # 0x821d
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12cc
addq $0x420, %rsp            # imm = 0x420
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SocketSendData
cmError_t cellModem_SocketSendData(cmData_t *obj, socketData_t *config){
    cmError_t retVal;
    char cmd[1024] ={0}; 
    if(config->dataToSend != NULL)
        memcpy((void*)cmd,(void*)config->dataToSend, strlen(config->dataToSend));

    //\x1A  = ctrl+z = 0x1A para que salga el mensaje
    strcat(cmd, "\r");

   /*is wait block*/
    retVal = cmSendCmd(obj,(char*)cmd , NULL ,NULL ,0);/*4 sg*/
    retVal = cmSendCmd(obj,"\x1A\r" , (0 == cellModem_GetatvFormat(obj) )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :"SEND OK\r\n"  ,NULL ,4000);/*4 sg*/
    //cmSendDirectUart(obj,"\x1A");
    return retVal;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movq %rsi, %r14
movq %rdi, %rbx
movq %rsp, %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x10a0
movq 0x28(%r14), %r14
testq %r14, %r14
je 0x288d
movq %r14, %rdi
callq 0x1070
movq %rsp, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
movq %rsp, %r14
movq %r14, %rdi
callq 0x1070
movw $0xd, (%rsp,%rax)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x12cc
cmpb $0x0, 0x61(%rbx)
leaq 0x5317(%rip), %rax      # 0x7bd2
leaq 0x486b(%rip), %rdx      # 0x712d
cmoveq %rax, %rdx
leaq 0x483f(%rip), %rsi      # 0x710c
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0xfa0, %r8d            # imm = 0xFA0
callq 0x12cc
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_UrcGetClosedConnection
cmError_t cellModem_UrcGetClosedConnection(cmData_t *obj, asynEventURC_t *getDataClosedConn){
    cmError_t retVal= CM_FAIL;
    char bufferRecv[CM_BUFFER_LEN_DEF] = {0};
    char *ptr=NULL;
    char bufferAux[32] = {0};

    if(cmIsAsyncEvent(obj)){
        ptr = cmGetBufferAsyncEvent(obj);
        memcpy(bufferRecv, ptr, strlen(ptr));        
        if( (ptr = strstr(bufferRecv,": \"closed\"")) != NULL ){
            ptr = extractBetween(ptr,',','\r', bufferAux, 0);
            getDataClosedConn->connectId = atoi(bufferAux);
            retVal = CM_OK;
        }else{
            retVal = CM_ERR_INVALID_RESPONSE;
        }
    }
    return retVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x10a0
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r14, %rdi
callq 0x1584
testb %al, %al
je 0x2b34
movq %r14, %rdi
callq 0x15b9
movq %rax, %r14
movq %rax, %rdi
callq 0x1070
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
leaq 0x4647(%rip), %rsi      # 0x7144
movq %r15, %rdi
callq 0x1110
testq %rax, %rax
je 0x2b3b
movq %rsp, %r14
xorl %ebp, %ebp
movq %rax, %rdi
movl $0x2c, %esi
movl $0xd, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16ec
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
jmp 0x2b40
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x2b40
movl $0x3, %ebp
movl %ebp, %eax
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_UrcGetRecvConnection
cmError_t cellModem_UrcGetRecvConnection(cmData_t *obj, asynEventURC_t *getRecvConn){
    cmError_t retVal= CM_FAIL;
    char bufferRecv[CM_BUFFER_LEN_DEF] = {0};
    char *ptr=NULL;
    char bufferAux[32] = {0};

    if(cmIsAsyncEvent(obj)){
        ptr = cmGetBufferAsyncEvent(obj);
        memcpy(bufferRecv, ptr, strlen(ptr));        
        if( (ptr = strstr(bufferRecv,": \"recv\"")) != NULL ){
            ptr = extractBetween(ptr,',','\r', bufferAux, 0);
            getRecvConn->connectId = atoi(bufferAux);
            retVal = CM_OK;
        }else{
            retVal = CM_ERR_INVALID_RESPONSE;
        }
    }
    return retVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x428, %rsp            # imm = 0x428
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x20(%rsp), %rdi
movl $0x400, %edx            # imm = 0x400
xorl %esi, %esi
callq 0x10a0
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r14, %rdi
callq 0x1584
testb %al, %al
je 0x2bf0
movq %r14, %rdi
callq 0x15b9
movq %rax, %r14
movq %rax, %rdi
callq 0x1070
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
leaq 0x4596(%rip), %rsi      # 0x714f
movq %r15, %rdi
callq 0x1110
testq %rax, %rax
je 0x2bf7
movq %rsp, %r14
xorl %ebp, %ebp
movq %rax, %rdi
movl $0x2c, %esi
movl $0xd, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16ec
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
jmp 0x2bfc
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x2bfc
movl $0x3, %ebp
movl %ebp, %eax
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SocketClose
cmError_t cellModem_SocketClose(cmData_t *obj, int connectId){  
    cmError_t retVal = CM_FAIL;
    char cmd[32]="AT+QICLOSE=";
    char  buffer[8] ={0};
    
    sprintf(buffer,"%d\r",connectId );
    strcat(cmd,buffer);
    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) ) ? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE  ,NULL ,10000); //10 sg
    
    return retVal;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %esi, %edx
movq %rdi, %rbx
movaps 0x4c5f(%rip), %xmm0     # 0x7880
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps 0x4c3e(%rip), %xmm0     # 0x7870
movaps %xmm0, (%r14)
leaq 0x8(%rsp), %r15
movq $0x0, (%r15)
leaq 0x44d9(%rip), %rsi      # 0x7122
movq %r15, %rdi
xorl %eax, %eax
callq 0x1100
movq %r14, %rdi
movq %r15, %rsi
callq 0x10f0
cmpb $0x0, 0x61(%rbx)
leaq 0x4f69(%rip), %rax      # 0x7bd2
leaq 0x50e2(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
movl $0x2710, %r8d           # imm = 0x2710
callq 0x12cc
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_initializer
void test_modem_initializer(){
    cmError_t retValue = CM_FAIL;
    /*lauch fail -1 because not initialize correctly*/
    retValue = cellModem_Init(&cmData,inputBuffer,CM_BUFFER_LEN_DEF,NULL,OutputFunction,NULL);
    TEST_ASSERT_EQUAL_INT32(CM_FAIL,retValue);

    retValue = cellModem_Init(NULL,inputBuffer,CM_BUFFER_LEN_DEF,NULL,OutputFunction,NULL);
    TEST_ASSERT_EQUAL_INT32(CM_FAIL,retValue);

    retValue = cellModem_Init(&cmData,inputBuffer,CM_BUFFER_LEN_DEF,GetTickCountMs,OutputFunction,NULL);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x947e(%rip), %rbx      # 0xc120
leaq 0x9947(%rip), %r15      # 0xc5f0
leaq 0xbf(%rip), %r14        # 0x2d6f
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x15c0
movslq %eax, %rsi
movl $0x20, %ecx
movq $-0x1, %rdi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movl $0x400, %edx            # imm = 0x400
xorl %edi, %edi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x15c0
movslq %eax, %rsi
movl $0x23, %ecx
movq $-0x1, %rdi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0xee(%rip), %rcx        # 0x2e0c
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %r8
xorl %r9d, %r9d
callq 0x15c0
movslq %eax, %rsi
movl $0x26, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x27, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
popq %r14
popq %r15
jmp 0x540d
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: OutputFunction
void OutputFunction( void *sp, char c){
	int i = 0; 
    (void)sp;
   // char ResponseExpected[100] = {CM_CMD_MOCK_ATI_RESPONSE};//{CM_CMD_MOCK_GENERAL_RESPONSE};
	if(c != '\r')
    	printf(KYEL "%c",c); /*no print \r in console */
	
	if(c == '\r') {	 /*if send command to module*/
		printf(KWHT); /*black color */
       
        while(MockResponseExpected[i] != '\0') { /*then the module response is pass to isr char by char */
		 	// para nonblocking test colocar un wait pequeño
            cellModem_IsrRx(&cmData, MockResponseExpected[i]); 
			i++;
		}
        /*print command and response*/
        printf(" -->");
		printf(KGRN "%s",MockResponseExpected);  
        printf(KNRM); /*white color */
	}
}

// Assembly:
cmpb $0xd, %sil
jne 0x2dfa
pushq %r14
pushq %rbx
pushq %rax
leaq 0x5490(%rip), %rdi      # 0x8214
xorl %eax, %eax
callq 0x1090
movq 0x93fe(%rip), %rax      # 0xc190
movb (%rax), %al
testb %al, %al
je 0x2dc2
movl $0x1, %r14d
leaq 0x937b(%rip), %rbx      # 0xc120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1929
movq 0x93d9(%rip), %rax      # 0xc190
movb (%rax,%r14), %al
incq %r14
testb %al, %al
jne 0x2da5
leaq 0x5451(%rip), %rdi      # 0x821a
xorl %eax, %eax
callq 0x1090
movq 0x93b9(%rip), %rsi      # 0xc190
leaq 0x5441(%rip), %rdi      # 0x821f
xorl %eax, %eax
callq 0x1090
leaq 0x5b94(%rip), %rdi      # 0x8980
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1090
movsbl %sil, %esi
leaq 0x5407(%rip), %rdi      # 0x820c
xorl %eax, %eax
jmp 0x1090
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetNetworkInformation
void test_modem_GetNetworkInformation(){
    cmError_t retValue = CM_FAIL;
    netInfo_t getnetInfo = NETINFO_INITIALIZER;

    MockResponseExpected = CM_CMD_MOCK_QNWINFO_RESPONSE;
    retValue = cellModem_GetNetworkInformation(&cmData, &getnetInfo);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    TEST_ASSERT_EQUAL_STRING("FDD LTE",getnetInfo.accessTechnSel);
    TEST_ASSERT_EQUAL_STRING("732101",getnetInfo.operator);
    TEST_ASSERT_EQUAL_STRING("LTE BAND 7",getnetInfo.band);
    TEST_ASSERT_EQUAL_STRING("3075",getnetInfo.channelId);

    memset(&getnetInfo,0,sizeof(getnetInfo));
    MockResponseExpected = CM_CMD_MOCK_QNWINFO_RESPONSE2_ECHO;
    retValue = cellModem_GetNetworkInformation(&cmData, &getnetInfo);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    TEST_ASSERT_EQUAL_STRING("EDGE",getnetInfo.accessTechnSel);
    TEST_ASSERT_EQUAL_STRING("732101",getnetInfo.operator);
    TEST_ASSERT_EQUAL_STRING("GSM 1900",getnetInfo.band);
    TEST_ASSERT_EQUAL_STRING("583",getnetInfo.channelId);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movaps %xmm0, -0x10(%r14)
movaps %xmm0, -0x20(%r14)
leaq 0x4a11(%rip), %rax      # 0x7890
movq %rax, 0x930a(%rip)      # 0xc190
leaq 0x9293(%rip), %rbx      # 0xc120
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x192e
movslq %eax, %rsi
movl $0x30, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x4a10(%rip), %rdi      # 0x78c9
movl $0x32, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x4a02(%rip), %rbp      # 0x78d1
movl $0x33, %ecx
movq %rbp, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x28(%rsp), %r12
leaq 0x49eb(%rip), %rdi      # 0x78d8
movl $0x34, %ecx
movq %r12, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x48(%rsp), %r13
leaq 0x49db(%rip), %rdi      # 0x78e3
movl $0x35, %ecx
movq %r13, %rsi
xorl %edx, %edx
callq 0x5dd3
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r13)
movaps %xmm0, -0x18(%r13)
movaps %xmm0, -0x28(%r13)
movaps %xmm0, -0x38(%r13)
movaps %xmm0, -0x48(%r13)
leaq 0x49ae(%rip), %rax      # 0x78e8
movq %rax, 0x924f(%rip)      # 0xc190
movq %rbx, %rdi
movq %r15, %rsi
callq 0x192e
movslq %eax, %rsi
movl $0x3a, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x49bc(%rip), %rdi      # 0x7926
movl $0x3c, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5dd3
movl $0x3d, %ecx
movq %rbp, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x4999(%rip), %rdi      # 0x792b
movl $0x3e, %ecx
movq %r12, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x498c(%rip), %rdi      # 0x7934
movl $0x3f, %ecx
movq %r13, %rsi
xorl %edx, %edx
callq 0x5dd3
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x40, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetModuleInformation
void test_modem_GetModuleInformation(){
    cmError_t retValue = CM_FAIL;
    modemInfo_t getModemInfo = MODEMINFO_INITIALIZER;

    MockResponseExpected = CM_CMD_MOCK_ATI_RESPONSE2_ECHO;//CM_CMD_MOCK_ATI_RESPONSE;
    retValue = cellModem_GetModuleInformation(&cmData, &getModemInfo);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    TEST_ASSERT_EQUAL_STRING("Quectel",getModemInfo.manufactorId);
    TEST_ASSERT_EQUAL_STRING("BG96",getModemInfo.deviceModel);
    TEST_ASSERT_EQUAL_STRING("Revision: BG96MAR02A07M1G",getModemInfo.firmwareVersion);

    MockResponseExpected = CM_CMD_MOCK_ATI_RESPONSE;
    retValue = cellModem_GetModuleInformation(&cmData, &getModemInfo);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    TEST_ASSERT_EQUAL_STRING("Quectel",getModemInfo.manufactorId);
    TEST_ASSERT_EQUAL_STRING("EC25",getModemInfo.deviceModel);
    TEST_ASSERT_EQUAL_STRING("Revision: EC25AUXGAR08A03M1G",getModemInfo.firmwareVersion);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
movaps %xmm0, -0x10(%rbx)
movaps %xmm0, -0x20(%rbx)
leaq 0x10(%rsp), %r15
leaq 0x4923(%rip), %rax      # 0x7938
movq %rax, 0x9174(%rip)      # 0xc190
leaq 0x90fd(%rip), %r14      # 0xc120
movq %rsp, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x1a15
movslq %eax, %rsi
movl $0x49, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x4920(%rip), %r13      # 0x796f
movl $0x4b, %ecx
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x490f(%rip), %rdi      # 0x7977
movl $0x4c, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x48fe(%rip), %rdi      # 0x797c
movl $0x4d, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x4902(%rip), %rax      # 0x7996
movq %rax, 0x90f5(%rip)      # 0xc190
movq %r14, %rdi
movq %r12, %rsi
callq 0x1a15
movslq %eax, %rsi
movl $0x51, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movl $0x53, %ecx
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x48f6(%rip), %rdi      # 0x79cc
movl $0x54, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5dd3
leaq 0x48e5(%rip), %rdi      # 0x79d1
movl $0x55, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5dd3
movq %r14, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x56, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetImei
void test_modem_GetImei(){
    cmError_t retValue = CM_FAIL;
    char getImei[32]="\0";

    MockResponseExpected = CM_CMD_MOCK_GSN_RESPONSE;

    retValue = cellModem_GetImei(&cmData, getImei);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_STRING("862708040783073",getImei);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
leaq 0x48ab(%rip), %rax      # 0x79ee
movq %rax, 0x9046(%rip)      # 0xc190
leaq 0x8fcf(%rip), %r14      # 0xc120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1ab7
movslq %eax, %rsi
movl $0x60, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x488e(%rip), %rdi      # 0x7a08
movl $0x61, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5dd3
movq %r14, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x62, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetImsi
void test_modem_GetImsi(){
    cmError_t retValue = CM_FAIL;
    char getImsi[32]="\0";

    MockResponseExpected = CM_CMD_MOCK_IMSI_RESPONSE;

    retValue = cellModem_GetImsi(&cmData, getImsi);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_STRING("732101596840439",getImsi);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
leaq 0x484d(%rip), %rax      # 0x7a18
movq %rax, 0x8fbe(%rip)      # 0xc190
leaq 0x8f47(%rip), %r14      # 0xc120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b2c
movslq %eax, %rsi
movl $0x6c, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x4830(%rip), %rdi      # 0x7a32
movl $0x6d, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5dd3
movq %r14, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x6e, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetIccid
void test_modem_GetIccid(){
    cmError_t retValue = CM_FAIL;
    char getIccid[32]="\0";

    MockResponseExpected = CM_CMD_MOCK_CCID_RESPONSE;

    retValue = cellModem_GetIccid(&cmData, getIccid);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_STRING("89571015025068994296",getIccid);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
leaq 0x47ef(%rip), %rax      # 0x7a42
movq %rax, 0x8f36(%rip)      # 0xc190
leaq 0x8ebf(%rip), %r14      # 0xc120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1ba1
movslq %eax, %rsi
movl $0x78, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x47df(%rip), %rdi      # 0x7a69
movl $0x79, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5dd3
movq %r14, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x7a, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetSignalQuality
void test_modem_GetSignalQuality(){
    cmError_t retValue = CM_FAIL;
    uint8_t rssi = 0;

    MockResponseExpected = CM_CMD_MOCK_GSQ_RESPONSE;
    retValue = cellModem_GetSignalQuality(&cmData, &rssi);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_UINT8(28,rssi);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x7(%rsp), %r14
movb $0x0, (%r14)
leaq 0x47aa(%rip), %rax      # 0x7a7e
movq %rax, 0x8eb5(%rip)      # 0xc190
leaq 0x8e3e(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1645
movslq %eax, %rsi
movl $0x83, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movzbl (%r14), %esi
movl $0x1c, %edi
movl $0x84, %ecx
xorl %edx, %edx
movl $0x21, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x85, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SetATE
void test_modem_SetATE(){
    cmError_t retValue = CM_FAIL;

    MockResponseExpected = CM_CMD_MOCK_ATE1_RESPONSE;
    retValue = cellModem_SetATE(&cmData,1);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    MockResponseExpected = CM_CMD_MOCK_ATE0_RESPONSE;
    retValue = cellModem_SetATE(&cmData,0);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbx
leaq 0x4746(%rip), %rax      # 0x7a94
movq %rax, 0x8e3b(%rip)      # 0xc190
leaq 0x8dc4(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1c2c
movslq %eax, %rsi
movl $0x8d, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x471c(%rip), %rax      # 0x7aa3
movq %rax, 0x8e02(%rip)      # 0xc190
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1c2c
movslq %eax, %rsi
movl $0x91, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x92, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
jmp 0x540d
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SetATV
void test_modem_SetATV(){
    cmError_t retValue = CM_FAIL;

    MockResponseExpected = CM_CMD_MOCK_ATV1_RESPONSE;
    retValue = cellModem_SetATV(&cmData,1);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    /*se cambia respuesta de la Irs por que se cambio el formato de respuesta a  ATV0*/
    //MockResponseExpected = CM_CMD_MOCK_ATV0_RESPONSE;
    //retValue = cellModem_SetATV(&cmData,0);
    //TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    /*vuelve init a respuesta ATV1 o enviar literal ATV1*/
    MockResponseExpected = CM_CMD_MOCK_ATV1_RESPONSE;
    retValue = cellModem_SetATV(&cmData,1);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  

  
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x4978(%rip), %r14      # 0x7d52
movq %r14, 0x8daf(%rip)      # 0xc190
leaq 0x8d38(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1c6e
movslq %eax, %rsi
movl $0x9a, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %r14, 0x8d7d(%rip)      # 0xc190
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1c6e
movslq %eax, %rsi
movl $0xa4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0xa5, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x540d
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetCREG
void test_modem_GetCREG(){
    cmError_t retValue = CM_FAIL;
    netRegStatus_t netRegSta=NETREGSTATUS_INITIALIZER;

    MockResponseExpected = CM_CMD_MOCK_CREG_RESPONSE;
    retValue = cellModem_GetCREG(&cmData,&netRegSta);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    TEST_ASSERT_EQUAL_INT(0,netRegSta.n);
    TEST_ASSERT_EQUAL_INT(1,netRegSta.stat);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsp, %r14
movq $0x0, (%r14)
leaq 0x4640(%rip), %rax      # 0x7ab2
movq %rax, 0x8d17(%rip)      # 0xc190
leaq 0x8ca0(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1cc3
movslq %eax, %rsi
movl $0xb0, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movslq (%r14), %rsi
movl $0xb2, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movslq 0x4(%r14), %rsi
movl $0x1, %edi
movl $0xb3, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0xb4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetCOPS
void test_modem_GetCOPS(){
    cmError_t retValue = CM_FAIL;
    netOperatorStatus_t netOperatorStat = NETOPERATORSTATUS_INITIALIZER;

    MockResponseExpected = CM_CMD_MOCK_COPS_RESPONSE;
    retValue = cellModem_GetCOPS(&cmData,&netOperatorStat);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    TEST_ASSERT_EQUAL_INT(0,netOperatorStat.mode);
    TEST_ASSERT_EQUAL_INT(0,netOperatorStat.format);
    TEST_ASSERT_EQUAL_STRING("#CoberturaCLARO Claro",netOperatorStat.operator);
    TEST_ASSERT_EQUAL_INT(7,netOperatorStat.act);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
xorps %xmm0, %xmm0
movq %rsp, %r14
movups %xmm0, 0x1c(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x45aa(%rip), %rax      # 0x7ac7
movq %rax, 0x8c6c(%rip)      # 0xc190
leaq 0x8bf5(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1d9d
movslq %eax, %rsi
movl $0xbd, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movslq (%r14), %rsi
movl $0xbf, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movslq 0x4(%r14), %rsi
movl $0xc0, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0xc(%rsp), %r14
leaq 0x456e(%rip), %rdi      # 0x7af6
movl $0xc1, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x5dd3
movslq -0x4(%r14), %rsi
movl $0x7, %edi
movl $0xc2, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0xc3, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetCPIN
void test_modem_GetCPIN(){
    cmError_t retValue = CM_FAIL;
    char getCode[32]={0};

    MockResponseExpected = CM_CMD_MOCK_CPIN_RESPONSE;
    retValue = cellModem_GetCPIN(&cmData,getCode);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_STRING("READY",getCode);

    memset(getCode,0,sizeof(getCode));
    MockResponseExpected = CM_CMD_MOCK_CPIN_RESPONSE_BAD;
    retValue = cellModem_GetCPIN(&cmData,getCode);
    TEST_ASSERT_EQUAL_INT32(CM_ERR_INVALID_RESPONSE,retValue);
    //TEST_ASSERT_EQUAL_STRING("READY",getCode);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  

}

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x4516(%rip), %rax      # 0x7b0c
movq %rax, 0x8b93(%rip)      # 0xc190
leaq 0x8b1c(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ec8
movslq %eax, %rsi
movl $0xcc, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x44f6(%rip), %rdi      # 0x7b23
movl $0xcd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x5dd3
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x44da(%rip), %rax      # 0x7b29
movq %rax, 0x8b3a(%rip)      # 0xc190
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ec8
movslq %eax, %rsi
movl $0x3, %edi
movl $0xd2, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0xd4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SetApn
void test_modem_SetApn(){
    //TEST_IGNORE_MESSAGE("This Test Was Ignored, This Function Has Not Been Tested, Needs To Be Implemented");
    cmError_t retValue = CM_FAIL;
    cellModemConfig_t config =CELLMODEMCONFIG_INITIALIZER;

    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    config.apn ="VATIA.COMCEL.COM.CO";
    config.apnPassw = "CLARO";
    config.apnUser ="COMCEL";
    retValue = cellModem_SetApn(&cmData,&config);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movq $0x0, 0x30(%rsi)
leaq 0x468b(%rip), %rax      # 0x7d52
movq %rax, 0x8ac2(%rip)      # 0xc190
leaq 0x4470(%rip), %rax      # 0x7b45
movq %rax, (%rsi)
leaq 0x447a(%rip), %rax      # 0x7b59
movq %rax, 0x10(%rsi)
leaq 0x4475(%rip), %rax      # 0x7b5f
movq %rax, 0x8(%rsi)
leaq 0x8a2b(%rip), %rbx      # 0xc120
movq %rbx, %rdi
callq 0x178b
movslq %eax, %rsi
movl $0xe2, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0xe3, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SetContextProfile
void test_modem_SetContextProfile(){
    //TEST_IGNORE_MESSAGE("This Test Was Ignored, This Function Has Not Been Tested, Needs To Be Implemented");
    cmError_t retValue = CM_FAIL;
    cellModemConfig_t config =CELLMODEMCONFIG_INITIALIZER;

    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    config.contextId = 1;
    retValue = cellModem_SetContextProfile(&cmData,&config);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
movaps %xmm0, (%rsi)
movq $0x0, 0x30(%rsi)
leaq 0x45f4(%rip), %rax      # 0x7d52
movq %rax, 0x8a2b(%rip)      # 0xc190
movl $0x1, 0x1c(%rsi)
leaq 0x89ad(%rip), %rbx      # 0xc120
movq %rbx, %rdi
callq 0x189a
movslq %eax, %rsi
movl $0xee, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0xef, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_GetContextProfile
void test_modem_GetContextProfile(){
    cmError_t retValue = CM_FAIL;
    cellModemConfig_t config = CELLMODEMCONFIG_INITIALIZER;

    MockResponseExpected = CM_CMD_MOCK_QIACT_GET_RESPONSE;
    retValue = cellModem_GetContextProfile(&cmData,&config);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
 
    TEST_ASSERT_EQUAL_INT32(1, config.contextId);
    TEST_ASSERT_EQUAL_INT32(1, config.contextState);
    TEST_ASSERT_EQUAL_INT32(1, config.contextType);
    TEST_ASSERT_EQUAL_STRING("10.101.234.65",config.contextIpAddres);

/*respuesta mala,no se usan datos*/
    memset(&config, 0 ,sizeof(config));
    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_GetContextProfile(&cmData,&config);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
xorps %xmm0, %xmm0
movq %rsp, %r14
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
xorl %r12d, %r12d
movq %r12, 0x30(%r14)
leaq 0x4382(%rip), %rax      # 0x7b66
movq %rax, 0x89a5(%rip)      # 0xc190
leaq 0x892e(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f63
movslq %eax, %rsi
movl $0xf8, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movslq 0x1c(%r14), %rsi
movl $0x1, %edi
movl $0xfa, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movslq 0x20(%r14), %rsi
movl $0x1, %edi
movl $0xfb, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movslq 0x24(%r14), %rsi
movl $0x1, %edi
movl $0xfc, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x28(%rsp), %r15
leaq 0x431d(%rip), %rdi      # 0x7b8e
movl $0xfd, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5dd3
movq %r12, 0x8(%r15)
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r15)
movaps %xmm0, -0x18(%r15)
movaps %xmm0, -0x28(%r15)
leaq 0x44b5(%rip), %rax      # 0x7d52
movq %rax, 0x88ec(%rip)      # 0xc190
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1f63
movslq %eax, %rsi
movl $0x103, %ecx            # imm = 0x103
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x104, %ecx            # imm = 0x104
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SetDeactContextProfile
void test_modem_SetDeactContextProfile(){
    cmError_t retValue = CM_FAIL;
  
    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_SetDeactContextProfile(&cmData, 1);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    MockResponseExpected = CM_CMD_MOCK_ERROR_GENERAL_RESPONSE;
    retValue = cellModem_SetDeactContextProfile(&cmData, 1);
    TEST_ASSERT_EQUAL_INT32(CM_ERR_INVALID_RESPONSE,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbx
leaq 0x4459(%rip), %rax      # 0x7d52
movq %rax, 0x8890(%rip)      # 0xc190
leaq 0x8819(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movl $0x1, %esi
callq 0x207c
movslq %eax, %rsi
movl $0x10c, %ecx            # imm = 0x10C
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
leaq 0x426a(%rip), %rax      # 0x7b9c
movq %rax, 0x8857(%rip)      # 0xc190
movq %rbx, %rdi
movl $0x1, %esi
callq 0x207c
movslq %eax, %rsi
movl $0x3, %edi
movl $0x110, %ecx            # imm = 0x110
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x111, %ecx            # imm = 0x111
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
jmp 0x540d
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SmsSetMessageFormat
void test_modem_SmsSetMessageFormat(){
    cmError_t retValue = CM_FAIL;
    
    /*DPU format*/
    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_SmsSetMessageFormat(&cmData, 0);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);

    /*text format*/
    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_SmsSetMessageFormat(&cmData,1);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
leaq 0x43c7(%rip), %r14      # 0x7d52
movq %r14, 0x87fe(%rip)      # 0xc190
leaq 0x8787(%rip), %rbx      # 0xc120
movq %rbx, %rdi
xorl %esi, %esi
callq 0x20c7
movslq %eax, %rsi
movl $0x11a, %ecx            # imm = 0x11A
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %r14, 0x87cf(%rip)      # 0xc190
movq %rbx, %rdi
movl $0x1, %esi
callq 0x20c7
movslq %eax, %rsi
movl $0x11f, %ecx            # imm = 0x11F
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x120, %ecx            # imm = 0x120
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x540d
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SmsSetTextModeParam
void test_modem_SmsSetTextModeParam(){
    cmError_t retValue = CM_FAIL;
    
    /*text format*/
    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_SmsSetTextModeParam(&cmData);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbx
leaq 0x433f(%rip), %rax      # 0x7d52
movq %rax, 0x8776(%rip)      # 0xc190
leaq 0x86ff(%rip), %rbx      # 0xc120
movq %rbx, %rdi
callq 0x2112
movslq %eax, %rsi
movl $0x129, %ecx            # imm = 0x129
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x12a, %ecx            # imm = 0x12A
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
jmp 0x540d
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SmsSetTeCharacterGsm
void test_modem_SmsSetTeCharacterGsm(){
    cmError_t retValue = CM_FAIL;
    
    /*GSM default alphabet */
    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_SmsSetTeCharacterGsm(&cmData);
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbx
leaq 0x42ea(%rip), %rax      # 0x7d52
movq %rax, 0x8721(%rip)      # 0xc190
leaq 0x86aa(%rip), %rbx      # 0xc120
movq %rbx, %rdi
callq 0x213c
movslq %eax, %rsi
movl $0x133, %ecx            # imm = 0x133
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x134, %ecx            # imm = 0x134
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
jmp 0x540d
// File: /workspace/github_c_makefile_star2_O1/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SmsSendNumber
void test_modem_SmsSendNumber(){
    cmError_t retValue = CM_FAIL;
    
    /*GSM default alphabet */
    MockResponseExpected = ">";//CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_SmsSendNumber(&cmData,"3146644565");
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbx
leaq 0x4760(%rip), %rax      # 0x821d
movq %rax, 0x86cc(%rip)      # 0xc190
leaq 0x8655(%rip), %rbx      # 0xc120
leaq 0x40d4(%rip), %rsi      # 0x7ba6
movq %rbx, %rdi
callq 0x2166
movslq %eax, %rsi
movl $0x13d, %ecx            # imm = 0x13D
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x540d
movq %rbx, %rdi
callq 0x1584
movzbl %al, %esi
movl $0x13e, %ecx            # imm = 0x13E
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
jmp 0x540d