LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/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 %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
movaps 0x5901(%rip), %xmm0     # 0x77e0
andl $0x0, 0xc(%rsp)
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
cmpb $0x0, 0x61(%rdi)
leaq 0x5cbb(%rip), %rax      # 0x7bb2
leaq 0x5e34(%rip), %rdx      # 0x7d32
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rcx
movl $0x249f0, %r8d          # imm = 0x249F0
callq 0x12d0
movl %eax, %ebp
testl %eax, %eax
jne 0x1fc7
leaq 0x5176(%rip), %rsi      # 0x7099
leaq 0x20(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x1fc7
testq %rax, %rax
je 0x1fc7
leaq 0x20(%rsp), %r12
pushq $0x20
popq %rsi
pushq $0x2c
popq %r15
leaq 0xc(%rsp), %r14
movq %r12, %rdi
movl %r15d, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x1694
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x1c(%rbx)
movq %r12, %rdi
movl %r15d, %esi
movl %r15d, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x1694
movq %rax, %r12
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x20(%rbx)
movq %r12, %rdi
movl %r15d, %esi
movl %r15d, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x1694
movq %rax, %r15
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x24(%rbx)
addq $0x28, %rbx
pushq $0x22
popq %rdx
movq %r15, %rdi
movl %edx, %esi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x1694
movl %ebp, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x580f(%rip), %xmm0     # 0x77f0
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 0x5bb1(%rip), %rcx      # 0x7bb2
leaq 0x5d2a(%rip), %rdx      # 0x7d32
cmoveq %rcx, %rdx
movq %rax, %rsi
xorl %ecx, %ecx
movl $0x9c40, %r8d           # imm = 0x9C40
callq 0x12d0
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x57d4(%rip), %xmm0     # 0x7800
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 0x5b66(%rip), %rcx      # 0x7bb2
leaq 0x5cdf(%rip), %rdx      # 0x7d32
cmoveq %rcx, %rdx
movq %rax, %rsi
xorl %ecx, %ecx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12d0
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x5105(%rip), %rsi      # 0x71e0
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 0x5a98(%rip), %rax      # 0x7bb2
leaq 0x60dc(%rip), %rdx      # 0x81fd
cmoveq %rax, %rdx
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movl $0x2ee0, %r8d           # imm = 0x2EE0
callq 0x12d0
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x12d0
cmpb $0x0, 0x61(%rbx)
leaq 0x5a03(%rip), %rax      # 0x7bb2
leaq 0x5b7c(%rip), %rdx      # 0x7d32
cmoveq %rax, %rdx
leaq 0x4f03(%rip), %rsi      # 0x70c4
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x2ee0, %r8d           # imm = 0x2EE0
callq 0x12d0
addq $0x100, %rsp            # imm = 0x100
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SocketOpen
cmError_t cellModem_SocketOpen(cmData_t *obj, socketData_t *config){
    cmError_t retVal;
    char str[256]="AT+QIOPEN=";
    char *ptr = NULL;

      if((config->serviceType != NULL) &&
        (config->remip != NULL)        &&
        (config->remPort != NULL)      &&
        (config->locPort != NULL) ){

        ptr = strcat(str +10, intToStr(config->contextId) );
        ptr = strcat(ptr ,"," );
        ptr = strcat(ptr , intToStr(config->connectId) );
        ptr = strcat(ptr ,",\"" );
        ptr = strcat(ptr , config->serviceType );
        ptr = strcat(ptr ,"\",\"" );
        ptr = strcat(ptr , config->remip );
        ptr = strcat(ptr ,"\"," );
        ptr = strcat(ptr , config->remPort);
        ptr = strcat(ptr ,"," );
        ptr = strcat(ptr , config->locPort);
        ptr = strcat(ptr ,"," );
        ptr = strcat(ptr , intToStr(config->accessMode));
        ptr = strcat(ptr ,"\r" );
      }else{
          retVal = CM_FAIL;
      }
    retVal = cmSendCmd(obj,str , (0 == cellModem_GetatvFormat(obj) ) ? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE ,NULL ,500);

    return retVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x50e4(%rip), %rsi      # 0x72e0
leaq 0x10(%rsp), %rdi
movl $0x100, %edx            # imm = 0x100
callq 0x10c0
testq %r14, %r14
je 0x2320
cmpq $0x0, 0x20(%r14)
je 0x2320
leaq 0x18(%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0x10(%r14), %rbp
leaq 0x1a(%rsp), %r15
movl 0x50(%r14), %edi
callq 0x235d
leaq 0xb38f(%rip), %r13      # 0xd5d0
movq %r15, %rdi
movq %r13, %rsi
callq 0x10f0
movq %r15, %rdi
callq 0x1070
movw $0x2c, %r12w
movw %r12w, 0x1a(%rsp,%rax)
movl 0x4c(%r14), %edi
callq 0x235d
movq %r15, %rdi
movq %r13, %rsi
callq 0x10f0
movq %r15, %rdi
callq 0x1070
xorl %r13d, %r13d
movb %r13b, 0x1c(%rsp,%rax)
movw $0x222c, 0x1a(%rsp,%rax) # imm = 0x222C
movq 0x20(%r14), %rsi
movq %r15, %rdi
callq 0x10f0
movq %r15, %rdi
callq 0x1070
movl $0x222c22, 0x1a(%rsp,%rax) # imm = 0x222C22
movq %r15, %rdi
movq %r14, %rsi
callq 0x10f0
movq %r15, %rdi
callq 0x1070
movb %r13b, 0x1c(%rsp,%rax)
movw $0x2c22, 0x1a(%rsp,%rax) # imm = 0x2C22
movq %r15, %rdi
movq %rbp, %rsi
callq 0x10f0
movq %r15, %rdi
callq 0x1070
movw %r12w, 0x1a(%rsp,%rax)
movq %r15, %rdi
movq 0x8(%rsp), %rsi
callq 0x10f0
movq %r15, %rdi
callq 0x1070
movw %r12w, 0x1a(%rsp,%rax)
movl 0x48(%r14), %edi
callq 0x235d
movq %r15, %rdi
leaq 0xb2c4(%rip), %rsi      # 0xd5d0
callq 0x10f0
movq %r15, %rdi
callq 0x1070
movw $0xd, 0x1a(%rsp,%rax)
cmpb $0x0, 0x61(%rbx)
leaq 0x5887(%rip), %rax      # 0x7bb2
leaq 0x5a00(%rip), %rdx      # 0x7d32
cmoveq %rax, %rdx
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x1f4, %r8d            # imm = 0x1F4
callq 0x12d0
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4d0d(%rip), %rsi      # 0x73e0
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 0x2716
movl 0x4c(%r14), %ebp
callq 0x1070
leaq 0x49d0(%rip), %rsi      # 0x70d7
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 0x5484(%rip), %rax      # 0x7bb2
leaq 0x5ac8(%rip), %rdx      # 0x81fd
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12d0
addq $0x420, %rsp            # imm = 0x420
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x2798
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 0x12d0
cmpb $0x0, 0x61(%rbx)
leaq 0x53ec(%rip), %rax      # 0x7bb2
leaq 0x4918(%rip), %rdx      # 0x70e5
cmoveq %rax, %rdx
leaq 0x48ec(%rip), %rsi      # 0x70c4
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0xfa0, %r8d            # imm = 0xFA0
callq 0x12d0
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1552
testb %al, %al
je 0x2a2d
movq %r14, %rdi
callq 0x1560
movq %rax, %r14
movq %rax, %rdi
callq 0x1070
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
leaq 0x4702(%rip), %rsi      # 0x70fc
movq %r15, %rdi
callq 0x1110
testq %rax, %rax
je 0x2a31
pushq $0x2c
popq %rsi
pushq $0xd
popq %rdx
movq %rsp, %r14
xorl %ebp, %ebp
movq %rax, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x1694
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
jmp 0x2a34
pushq $-0x1
jmp 0x2a33
pushq $0x3
popq %rbp
movl %ebp, %eax
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x1552
testb %al, %al
je 0x2ae0
movq %r14, %rdi
callq 0x1560
movq %rax, %r14
movq %rax, %rdi
callq 0x1070
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
leaq 0x465a(%rip), %rsi      # 0x7107
movq %r15, %rdi
callq 0x1110
testq %rax, %rax
je 0x2ae4
pushq $0x2c
popq %rsi
pushq $0xd
popq %rdx
movq %rsp, %r14
xorl %ebp, %ebp
movq %rax, %rdi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x1694
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
jmp 0x2ae7
pushq $-0x1
jmp 0x2ae6
pushq $0x3
popq %rbp
movl %ebp, %eax
addq $0x428, %rsp            # imm = 0x428
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x4d54(%rip), %xmm0     # 0x7860
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps 0x4d33(%rip), %xmm0     # 0x7850
movaps %xmm0, (%r14)
leaq 0x8(%rsp), %r15
andq $0x0, (%r15)
leaq 0x45a9(%rip), %rsi      # 0x70da
movq %r15, %rdi
xorl %eax, %eax
callq 0x1100
movq %r14, %rdi
movq %r15, %rsi
callq 0x10f0
cmpb $0x0, 0x61(%rbx)
leaq 0x5061(%rip), %rax      # 0x7bb2
leaq 0x51da(%rip), %rdx      # 0x7d32
cmoveq %rax, %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
movl $0x2710, %r8d           # imm = 0x2710
callq 0x12d0
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leaq 0xa593(%rip), %rbx      # 0xd120
leaq 0xaa5c(%rip), %r15      # 0xd5f0
leaq 0xad(%rip), %r14        # 0x2c48
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x1568
movslq %eax, %rsi
pushq $-0x1
popq %r12
pushq $0x20
popq %rcx
pushq $0x14
popq %rbp
movq %r12, %rdi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movl $0x400, %edx            # imm = 0x400
xorl %edi, %edi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x1568
movslq %eax, %rsi
pushq $0x23
popq %rcx
movq %r12, %rdi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
leaq 0xd5(%rip), %rcx        # 0x2cd3
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %r8
xorl %r9d, %r9d
callq 0x1568
movslq %eax, %rsi
pushq $0x26
popq %rcx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movq %rbx, %rdi
callq 0x1552
movzbl %al, %esi
pushq $0x27
popq %rcx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/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 0x2c89
pushq %r14
pushq %rbx
pushq %rax
leaq 0x559b(%rip), %rdi      # 0x81f4
xorl %r14d, %r14d
xorl %eax, %eax
callq 0x1090
leaq 0xa4b6(%rip), %rbx      # 0xd120
movq 0xa51f(%rip), %rax      # 0xd190
movb (%rax,%r14), %al
testb %al, %al
je 0x2c9b
movsbl %al, %esi
movq %rbx, %rdi
callq 0x18c2
incq %r14
jmp 0x2c6a
movsbl %sil, %esi
leaq 0x5558(%rip), %rdi      # 0x81ec
xorl %eax, %eax
jmp 0x1090
leaq 0x5558(%rip), %rdi      # 0x81fa
xorl %eax, %eax
callq 0x1090
movq 0xa4e0(%rip), %rsi      # 0xd190
leaq 0x5548(%rip), %rdi      # 0x81ff
xorl %eax, %eax
callq 0x1090
leaq 0x5c9b(%rip), %rdi      # 0x8960
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1090
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %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 0x4a61(%rip), %rax      # 0x7918
movq %rax, 0xa2d2(%rip)      # 0xd190
leaq 0xa25b(%rip), %r14      # 0xd120
movq %rsp, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x19a2
movslq %eax, %rsi
pushq $0x49
popq %rcx
pushq $0x14
popq %rbp
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
leaq 0x4a60(%rip), %r13      # 0x794f
pushq $0x4b
popq %rcx
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5a58
leaq 0x4a51(%rip), %rdi      # 0x7957
pushq $0x4c
popq %rcx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5a58
leaq 0x4a42(%rip), %rdi      # 0x795c
pushq $0x4d
popq %rcx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5a58
leaq 0x4a48(%rip), %rax      # 0x7976
movq %rax, 0xa25b(%rip)      # 0xd190
movq %r14, %rdi
movq %r12, %rsi
callq 0x19a2
movslq %eax, %rsi
pushq $0x51
popq %rcx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
pushq $0x53
popq %rcx
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5a58
leaq 0x4a43(%rip), %rdi      # 0x79ac
pushq $0x54
popq %rcx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5a58
leaq 0x4a34(%rip), %rdi      # 0x79b1
pushq $0x55
popq %rcx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5a58
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
pushq $0x56
popq %rcx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
leaq 0x49ff(%rip), %rax      # 0x79ce
movq %rax, 0xa1ba(%rip)      # 0xd190
leaq 0xa143(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a43
movslq %eax, %rsi
pushq $0x60
popq %rcx
pushq $0x14
popq %rbp
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
leaq 0x49e4(%rip), %rdi      # 0x79e8
pushq $0x61
popq %rcx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5a58
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
pushq $0x62
popq %rcx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
leaq 0x49a8(%rip), %rax      # 0x79f8
movq %rax, 0xa139(%rip)      # 0xd190
leaq 0xa0c2(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1ab4
movslq %eax, %rsi
pushq $0x6c
popq %rcx
pushq $0x14
popq %rbp
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
leaq 0x498d(%rip), %rdi      # 0x7a12
pushq $0x6d
popq %rcx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5a58
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
pushq $0x6e
popq %rcx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, (%rbx)
leaq 0x4951(%rip), %rax      # 0x7a22
movq %rax, 0xa0b8(%rip)      # 0xd190
leaq 0xa041(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b25
movslq %eax, %rsi
pushq $0x78
popq %rcx
pushq $0x14
popq %rbp
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
leaq 0x4943(%rip), %rdi      # 0x7a49
pushq $0x79
popq %rcx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5a58
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
pushq $0x7a
popq %rcx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xf(%rsp), %r15
movb $0x0, (%r15)
leaq 0x490f(%rip), %rax      # 0x7a5e
movq %rax, 0xa03a(%rip)      # 0xd190
leaq 0x9fc3(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %r15, %rsi
callq 0x15ef
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0x83, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movzbl (%r15), %esi
pushq $0x1c
popq %rdi
pushq $0x21
popq %r8
movl $0x84, %ecx
xorl %edx, %edx
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x85, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
leaq 0x48ad(%rip), %rax      # 0x7a74
movq %rax, 0x9fc2(%rip)      # 0xd190
leaq 0x9f4b(%rip), %r14      # 0xd120
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x1bac
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0x8d, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
leaq 0x4885(%rip), %rax      # 0x7a83
movq %rax, 0x9f8b(%rip)      # 0xd190
movq %r14, %rdi
xorl %esi, %esi
callq 0x1bac
movslq %eax, %rsi
movl $0x91, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x92, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x4ade(%rip), %r15      # 0x7d32
movq %r15, 0x9f35(%rip)      # 0xd190
leaq 0x9ebe(%rip), %r14      # 0xd120
pushq $0x1
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x1bf0
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0x9a, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r15, 0x9f03(%rip)      # 0xd190
movq %r14, %rdi
movl %ebp, %esi
callq 0x1bf0
movslq %eax, %rsi
movl $0xa4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0xa5, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %r15
andq $0x0, (%r15)
leaq 0x47a8(%rip), %rax      # 0x7a92
movq %rax, 0x9e9f(%rip)      # 0xd190
leaq 0x9e28(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %r15, %rsi
callq 0x1c47
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0xb0, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movslq (%r15), %rsi
movl $0xb2, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movslq 0x4(%r15), %rsi
pushq $0x1
popq %rdi
movl $0xb3, %ecx
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0xb4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x30, %rsp
xorps %xmm0, %xmm0
movq %rsp, %r15
movups %xmm0, 0x1c(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
leaq 0x4719(%rip), %rax      # 0x7aa7
movq %rax, 0x9dfb(%rip)      # 0xd190
leaq 0x9d84(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %r15, %rsi
callq 0x1d1a
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0xbd, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movslq (%r15), %rsi
movl $0xbf, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movslq 0x4(%r15), %rsi
movl $0xc0, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
leaq 0xc(%rsp), %r15
leaq 0x46e3(%rip), %rdi      # 0x7ad6
movl $0xc1, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5a58
movslq -0x4(%r15), %rsi
pushq $0x7
popq %rdi
movl $0xc2, %ecx
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0xc3, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
addq $0x30, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
xorps %xmm0, %xmm0
movq %rsp, %r15
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
leaq 0x468f(%rip), %rax      # 0x7aec
movq %rax, 0x9d2c(%rip)      # 0xd190
leaq 0x9cb5(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %r15, %rsi
callq 0x1e32
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0xcc, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
leaq 0x466f(%rip), %rdi      # 0x7b03
movl $0xcd, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5a58
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
leaq 0x4653(%rip), %rax      # 0x7b09
movq %rax, 0x9cd3(%rip)      # 0xd190
movq %r14, %rdi
movq %r15, %rsi
callq 0x1e32
movslq %eax, %rsi
pushq $0x3
popq %rdi
movl $0xd2, %ecx
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0xd4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %rbx
subq $0x38, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rsi
movups %xmm0, 0x28(%rsi)
movups %xmm0, 0x18(%rsi)
leaq 0x4814(%rip), %rax      # 0x7d32
movq %rax, 0x9c6b(%rip)      # 0xd190
leaq 0x45f9(%rip), %rax      # 0x7b25
movq %rax, (%rsi)
leaq 0x4603(%rip), %rax      # 0x7b39
movq %rax, 0x10(%rsi)
leaq 0x45fe(%rip), %rax      # 0x7b3f
movq %rax, 0x8(%rsi)
leaq 0x9bd4(%rip), %rbx      # 0xd120
movq %rbx, %rdi
callq 0x1731
movslq %eax, %rsi
pushq $0x14
popq %rbp
movl $0xe2, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movq %rbx, %rdi
callq 0x1552
movzbl %al, %esi
movl $0xe3, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %rbx
subq $0x38, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rsi
movaps %xmm0, 0x10(%rsi)
movaps %xmm0, 0x20(%rsi)
andq $0x0, 0x30(%rsi)
movaps %xmm0, (%rsi)
leaq 0x4781(%rip), %rax      # 0x7d32
movq %rax, 0x9bd8(%rip)      # 0xd190
movl $0x1, 0x1c(%rsi)
leaq 0x9b5a(%rip), %rbx      # 0xd120
movq %rbx, %rdi
callq 0x1833
movslq %eax, %rsi
pushq $0x14
popq %rbp
movl $0xee, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movq %rbx, %rdi
callq 0x1552
movzbl %al, %esi
movl $0xef, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
addq $0x38, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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, %r15
movaps %xmm0, 0x20(%r15)
andq $0x0, 0x30(%r15)
movaps %xmm0, 0x10(%r15)
movaps %xmm0, (%r15)
leaq 0x4513(%rip), %rax      # 0x7b46
movq %rax, 0x9b56(%rip)      # 0xd190
leaq 0x9adf(%rip), %r14      # 0xd120
movq %r14, %rdi
movq %r15, %rsi
callq 0x1ec9
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0xf8, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movslq 0x1c(%r15), %rsi
pushq $0x1
popq %r12
movl $0xfa, %ecx
movq %r12, %rdi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movslq 0x20(%r15), %rsi
movl $0xfb, %ecx
movq %r12, %rdi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movslq 0x24(%r15), %rsi
movl $0xfc, %ecx
movq %r12, %rdi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
leaq 0x28(%rsp), %r12
leaq 0x44b9(%rip), %rdi      # 0x7b6e
movl $0xfd, %ecx
movq %r12, %rsi
xorl %edx, %edx
callq 0x5a58
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r12)
andq $0x0, 0x8(%r12)
movaps %xmm0, -0x18(%r12)
movaps %xmm0, -0x28(%r12)
leaq 0x464c(%rip), %rax      # 0x7d32
movq %rax, 0x9aa3(%rip)      # 0xd190
movq %r14, %rdi
movq %r15, %rsi
callq 0x1ec9
movslq %eax, %rsi
movl $0x103, %ecx            # imm = 0x103
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x104, %ecx            # imm = 0x104
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
leaq 0x45f3(%rip), %rax      # 0x7d32
movq %rax, 0x9a4a(%rip)      # 0xd190
leaq 0x99d3(%rip), %r14      # 0xd120
pushq $0x1
popq %rbp
movq %r14, %rdi
movl %ebp, %esi
callq 0x1fd6
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0x10c, %ecx            # imm = 0x10C
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
leaq 0x4404(%rip), %rax      # 0x7b7c
movq %rax, 0x9a11(%rip)      # 0xd190
movq %r14, %rdi
movl %ebp, %esi
callq 0x1fd6
movslq %eax, %rsi
pushq $0x3
popq %rdi
movl $0x110, %ecx            # imm = 0x110
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x111, %ecx            # imm = 0x111
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
popq %rbx
popq %r14
popq %rbp
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
leaq 0x4568(%rip), %r15      # 0x7d32
movq %r15, 0x99bf(%rip)      # 0xd190
leaq 0x9948(%rip), %r14      # 0xd120
movq %r14, %rdi
xorl %esi, %esi
callq 0x2021
movslq %eax, %rsi
pushq $0x14
popq %rbx
movl $0x11a, %ecx            # imm = 0x11A
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r15, 0x9990(%rip)      # 0xd190
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x2021
movslq %eax, %rsi
movl $0x11f, %ecx            # imm = 0x11F
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
callq 0x507b
movq %r14, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x120, %ecx            # imm = 0x120
xorl %edi, %edi
xorl %edx, %edx
movl %ebx, %r8d
popq %rbx
popq %r14
popq %r15
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %rbx
pushq %rax
leaq 0x44e8(%rip), %rax      # 0x7d32
movq %rax, 0x993f(%rip)      # 0xd190
leaq 0x98c8(%rip), %rbx      # 0xd120
movq %rbx, %rdi
callq 0x206c
movslq %eax, %rsi
pushq $0x14
popq %rbp
movl $0x129, %ecx            # imm = 0x129
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movq %rbx, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x12a, %ecx            # imm = 0x12A
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %rbx
pushq %rax
leaq 0x448f(%rip), %rax      # 0x7d32
movq %rax, 0x98e6(%rip)      # 0xd190
leaq 0x986f(%rip), %rbx      # 0xd120
movq %rbx, %rdi
callq 0x2096
movslq %eax, %rsi
pushq $0x14
popq %rbp
movl $0x133, %ecx            # imm = 0x133
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movq %rbx, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x134, %ecx            # imm = 0x134
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %rbx
pushq %rax
leaq 0x4901(%rip), %rax      # 0x81fd
movq %rax, 0x988d(%rip)      # 0xd190
leaq 0x9816(%rip), %rbx      # 0xd120
leaq 0x4275(%rip), %rsi      # 0x7b86
movq %rbx, %rdi
callq 0x20c0
movslq %eax, %rsi
pushq $0x14
popq %rbp
movl $0x13d, %ecx            # imm = 0x13D
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movq %rbx, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x13e, %ecx            # imm = 0x13E
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x507b
// File: /workspace/github_c_makefile_star2_O2/connycommy[P]atCmdDevice/src/test/TestProductionCode.c
// Function: test_modem_SmsSendTextMessage
void test_modem_SmsSendTextMessage(){
    cmError_t retValue = CM_FAIL;
    
    /*GSM default alphabet */
    MockResponseExpected = CM_CMD_MOCK_GENERAL_RESPONSE;
    retValue = cellModem_SmsSendTextMessage(&cmData,"Hellow world!");
    TEST_ASSERT_EQUAL_INT32(CM_OK,retValue);
    TEST_ASSERT_EQUAL_INT(0, cmIsAsyncEvent(&cmData));  
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
leaq 0x43d6(%rip), %rax      # 0x7d32
movq %rax, 0x982d(%rip)      # 0xd190
leaq 0x97b6(%rip), %rbx      # 0xd120
leaq 0x4220(%rip), %rsi      # 0x7b91
movq %rbx, %rdi
callq 0x2147
movslq %eax, %rsi
pushq $0x14
popq %rbp
movl $0x147, %ecx            # imm = 0x147
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
callq 0x507b
movq %rbx, %rdi
callq 0x1552
movzbl %al, %esi
movl $0x148, %ecx            # imm = 0x148
xorl %edi, %edi
xorl %edx, %edx
movl %ebp, %r8d
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x507b