LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_GetIccid
cmError_t cellModem_GetIccid(cmData_t *obj,  char *getIccid){
    cmError_t retVal;
    char cmd[15]="AT+QCCID\r";
    char bufferRecv[60];
    char *ptr = NULL;

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

// Assembly:
pushq %rbp
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movabsq $0x44494343512b5441, %rax # imm = 0x44494343512B5441
movq %rsp, %rsi
movq %rax, (%rsi)
movq $0xd44, 0x7(%rsi)       # imm = 0xD44
cmpb $0x0, 0x61(%rdi)
leaq 0x6025(%rip), %rax      # 0x7bd2
leaq 0x619e(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
leaq 0x10(%rsp), %rcx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12cc
movl %eax, %ebp
testl %eax, %eax
jne 0x1c03
leaq 0x54d1(%rip), %rsi      # 0x70a6
leaq 0x10(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x1c03
testq %rax, %rax
je 0x1c03
leaq 0x10(%rsp), %rdi
movl $0x20, %esi
movl $0xd, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x16cc
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SetATE
cmError_t cellModem_SetATE(cmData_t *obj, uint8_t echoEn){
    cmError_t retVal;
    char cmd[8]="ATE";
    cmd[3] = (char)( (0 == echoEn ) ? (char)echoEn +'0' : '1');
    cmd[4]  = '\r';
    retVal = cmSendCmd(obj,cmd , (0 == cellModem_GetatvFormat(obj) ) ? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE ,NULL ,300);
    return retVal;
}

// Assembly:
pushq %rax
movabsq $0xd00455441, %rcx      # imm = 0xD00455441
movq %rsp, %rax
movq %rcx, (%rax)
testl %esi, %esi
sete %cl
xorb $0x31, %cl
movb %cl, 0x3(%rax)
cmpb $0x0, 0x61(%rdi)
leaq 0x5f9f(%rip), %rcx      # 0x7bd2
leaq 0x6118(%rip), %rdx      # 0x7d52
cmoveq %rcx, %rdx
movq %rax, %rsi
xorl %ecx, %ecx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12cc
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_SetATV
cmError_t cellModem_SetATV(cmData_t *obj, uint8_t value){
    cmError_t retVal = CM_FAIL;
    char cmd[8]="ATV";
    cmd[3] = (char)( (0 == value ) ? (char)value +'0' : '1');
    cmd[4]  = '\r';

    cellModem_SetatvFormat(obj,value);
    cellModem_SetMatchResponseFromIsr(obj, (0 == cellModem_GetatvFormat(obj) )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE ); /*cambia la respuesta esperada de la Isr*/
    retVal = cmSendCmd(obj,cmd , (0 == value )? CELLMODEM_CMD_GENERAL_RESPONSE_ATV0 :CELLMODEM_CMD_GENERAL_RESPONSE  ,NULL ,300);

    return retVal;
}

// Assembly:
pushq %rax
testl %esi, %esi
sete %al
leaq 0x60f5(%rip), %rcx      # 0x7d52
leaq 0x5f6e(%rip), %rdx      # 0x7bd2
cmovneq %rcx, %rdx
xorb $0x31, %al
testl %esi, %esi
movabsq $0xd00565441, %rcx      # imm = 0xD00565441
movq %rsp, %rsi
movq %rcx, (%rsi)
movb %al, 0x3(%rsi)
setne 0x61(%rdi)
movq %rdx, 0x68(%rdi)
xorl %ecx, %ecx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12cc
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_GetCREG
cmError_t cellModem_GetCREG(cmData_t *obj, netRegStatus_t *netRegStatus){
    cmError_t retVal;
    char bufferRecv[60];
    char cmd[10]="AT+CREG?\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 ,300); 
    
    if(CM_OK == retVal){
        if( (ptr = strstr(bufferRecv,"+CREG:")) != NULL ){
            if(netRegStatus != NULL){
                extractBetween(bufferRecv,' ',',',buffer,0);
                netRegStatus->n = (int)atoi(buffer);
                memset(buffer,0,sizeof(buffer));
                extractBetween(bufferRecv,',','\r',buffer,1);
                netRegStatus->stat = (int)atoi(buffer);
            }
        }
    }
    
    return retVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %rbx
movabsq $0x3f474552432b5441, %rax # imm = 0x3F474552432B5441
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movw $0xd, 0x8(%rsi)
movl $0x0, 0xc(%rsp)
cmpb $0x0, 0x61(%rdi)
leaq 0x5ef3(%rip), %rax      # 0x7bd2
leaq 0x606c(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rcx
movl $0x12c, %r8d            # imm = 0x12C
callq 0x12cc
movl %eax, %ebp
testl %eax, %eax
jne 0x1d74
leaq 0x53b1(%rip), %rsi      # 0x70b8
leaq 0x20(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x1d74
testq %rax, %rax
je 0x1d74
leaq 0x20(%rsp), %r14
leaq 0xc(%rsp), %r15
movq %r14, %rdi
movl $0x20, %esi
movl $0x2c, %edx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x16cc
movq %r15, %rdi
callq 0x10e0
movl %eax, (%rbx)
movl $0x0, (%r15)
movq %r14, %rdi
movl $0x2c, %esi
movl $0xd, %edx
movq %r15, %rcx
movl $0x1, %r8d
callq 0x16cc
movq %r15, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/connycommy[P]atCmdDevice/src/cellularModem/cellModem.c
// Function: cellModem_GetCOPS
cmError_t cellModem_GetCOPS(cmData_t *obj, netOperatorStatus_t *netOperatorStat){
    cmError_t retVal;
    char bufferRecv[60];
    char cmd[10]="AT+COPS?\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 ,180000); //180 sg
    
    if(CM_OK == retVal){
        if( (ptr = strstr(bufferRecv,"+COPS:")) != NULL ){
            if(netOperatorStat != NULL){
                ptr = extractBetween(bufferRecv,' ',',',buffer,0);
                netOperatorStat->mode = (int)atoi(buffer);
                memset(buffer,0,sizeof(buffer));
                
                ptr = extractBetween(ptr,',',',',buffer,0);
                netOperatorStat->format = (int)atoi(buffer);
                
                ptr = extractBetween(ptr,'"','"',netOperatorStat->operator,1);

                memset(buffer,0,sizeof(buffer));
                ptr = extractBetween(ptr,',','\r',buffer,0);
                netOperatorStat->act = (int)atoi(buffer);
            }
        }
    }
    
    return retVal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x60, %rsp
movq %rsi, %rbx
movabsq $0x3f53504f432b5441, %rax # imm = 0x3F53504F432B5441
leaq 0x10(%rsp), %rsi
movq %rax, (%rsi)
movw $0xd, 0x8(%rsi)
movl $0x0, 0xc(%rsp)
cmpb $0x0, 0x61(%rdi)
leaq 0x5e17(%rip), %rax      # 0x7bd2
leaq 0x5f90(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rcx
movl $0x2bf20, %r8d          # imm = 0x2BF20
callq 0x12cc
movl %eax, %ebp
testl %eax, %eax
jne 0x1e9d
leaq 0x52e2(%rip), %rsi      # 0x70c9
leaq 0x20(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x1e9d
testq %rax, %rax
je 0x1e9d
leaq 0x20(%rsp), %rdi
leaq 0xc(%rsp), %r14
xorl %r12d, %r12d
movl $0x20, %esi
movl $0x2c, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16cc
movq %rax, %r15
movq %r14, %rdi
callq 0x10e0
movl %eax, (%rbx)
movl %r12d, (%r14)
movq %r15, %rdi
movl $0x2c, %esi
movl $0x2c, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16cc
movq %rax, %r15
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
leaq 0xc(%rbx), %rcx
movq %r15, %rdi
movl $0x22, %esi
movl $0x22, %edx
movl $0x1, %r8d
callq 0x16cc
movl %r12d, (%r14)
movq %rax, %rdi
movl $0x2c, %esi
movl $0xd, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16cc
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x8(%rbx)
movl %ebp, %eax
addq $0x60, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x5ce5(%rip), %rax      # 0x7bd2
leaq 0x5e5e(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
movl $0x249f0, %r8d          # imm = 0x249F0
callq 0x12cc
movl %eax, %ebp
testl %eax, %eax
jne 0x1f3e
leaq 0x51ca(%rip), %rsi      # 0x70da
leaq 0x10(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x1f3e
testq %rax, %rax
je 0x1f3e
leaq 0x10(%rsp), %rdi
movl $0x20, %esi
movl $0xd, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x16cc
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x50c5(%rip), %xmm0     # 0x7020
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movl $0x0, 0xc(%rsp)
cmpb $0x0, 0x61(%rdi)
leaq 0x5c5c(%rip), %rax      # 0x7bd2
leaq 0x5dd5(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
leaq 0x20(%rsp), %rcx
movl $0x249f0, %r8d          # imm = 0x249F0
callq 0x12cc
movl %eax, %ebp
testl %eax, %eax
jne 0x2053
leaq 0x513f(%rip), %rsi      # 0x70e1
leaq 0x20(%rsp), %rdi
callq 0x1110
testq %rbx, %rbx
je 0x2053
testq %rax, %rax
je 0x2053
leaq 0x20(%rsp), %r15
leaq 0xc(%rsp), %r14
movq %r15, %rdi
movl $0x20, %esi
movl $0x2c, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16cc
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 0x16cc
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 0x16cc
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 0x16cc
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x4fc5(%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 0x5b47(%rip), %rcx      # 0x7bd2
leaq 0x5cc0(%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_O3/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 0x4f8a(%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 0x5afc(%rip), %rcx      # 0x7bd2
leaq 0x5c75(%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_O3/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 0x50cb(%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 0x5a2e(%rip), %rax      # 0x7bd2
leaq 0x6072(%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_O3/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 0x5999(%rip), %rax      # 0x7bd2
leaq 0x5b12(%rip), %rdx      # 0x7d52
cmoveq %rax, %rdx
leaq 0x4ec1(%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_O3/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 0x4c92(%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 0x27e1
movl 0x4c(%r14), %ebp
callq 0x1070
leaq 0x494d(%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 0x53d9(%rip), %rax      # 0x7bd2
leaq 0x5a1d(%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_O3/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 0x2863
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 0x5341(%rip), %rax      # 0x7bd2
leaq 0x4895(%rip), %rdx      # 0x712d
cmoveq %rax, %rdx
leaq 0x4869(%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_O3/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 0x1563
testb %al, %al
je 0x2b0a
movq %r14, %rdi
callq 0x1598
movq %rax, %r14
movq %rax, %rdi
callq 0x1070
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
leaq 0x4671(%rip), %rsi      # 0x7144
movq %r15, %rdi
callq 0x1110
testq %rax, %rax
je 0x2b11
movq %rsp, %r14
xorl %ebp, %ebp
movq %rax, %rdi
movl $0x2c, %esi
movl $0xd, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16cc
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
jmp 0x2b16
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x2b16
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_O3/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 0x1563
testb %al, %al
je 0x2bc6
movq %r14, %rdi
callq 0x1598
movq %rax, %r14
movq %rax, %rdi
callq 0x1070
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x10c0
leaq 0x45c0(%rip), %rsi      # 0x714f
movq %r15, %rdi
callq 0x1110
testq %rax, %rax
je 0x2bcd
movq %rsp, %r14
xorl %ebp, %ebp
movq %rax, %rdi
movl $0x2c, %esi
movl $0xd, %edx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x16cc
movq %r14, %rdi
callq 0x10e0
movl %eax, 0x4(%rbx)
jmp 0x2bd2
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x2bd2
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_O3/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 0x4c89(%rip), %xmm0     # 0x7880
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps 0x4c68(%rip), %xmm0     # 0x7870
movaps %xmm0, (%r14)
leaq 0x8(%rsp), %r15
movq $0x0, (%r15)
leaq 0x4503(%rip), %rsi      # 0x7122
movq %r15, %rdi
xorl %eax, %eax
callq 0x1100
movq %r14, %rdi
movq %r15, %rsi
callq 0x10f0
cmpb $0x0, 0x61(%rbx)
leaq 0x4f93(%rip), %rax      # 0x7bd2
leaq 0x510c(%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
nop
// File: /workspace/github_c_makefile_star2_O3/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 0x94aa(%rip), %rbx      # 0xc120
leaq 0x9973(%rip), %r15      # 0xc5f0
leaq 0xbf(%rip), %r14        # 0x2d43
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x15a0
movslq %eax, %rsi
movl $0x20, %ecx
movq $-0x1, %rdi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movl $0x400, %edx            # imm = 0x400
xorl %edi, %edi
movq %r15, %rsi
xorl %ecx, %ecx
movq %r14, %r8
xorl %r9d, %r9d
callq 0x15a0
movslq %eax, %rsi
movl $0x23, %ecx
movq $-0x1, %rdi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0xee(%rip), %rcx        # 0x2de0
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %r8
xorl %r9d, %r9d
callq 0x15a0
movslq %eax, %rsi
movl $0x26, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x27, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
popq %r14
popq %r15
jmp 0x5480
// File: /workspace/github_c_makefile_star2_O3/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 0x2dce
pushq %r14
pushq %rbx
pushq %rax
leaq 0x54bc(%rip), %rdi      # 0x8214
xorl %eax, %eax
callq 0x1090
movq 0x942a(%rip), %rax      # 0xc190
movb (%rax), %al
testb %al, %al
je 0x2d96
movl $0x1, %r14d
leaq 0x93a7(%rip), %rbx      # 0xc120
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1909
movq 0x9405(%rip), %rax      # 0xc190
movb (%rax,%r14), %al
incq %r14
testb %al, %al
jne 0x2d79
leaq 0x547d(%rip), %rdi      # 0x821a
xorl %eax, %eax
callq 0x1090
movq 0x93e5(%rip), %rsi      # 0xc190
leaq 0x546d(%rip), %rdi      # 0x821f
xorl %eax, %eax
callq 0x1090
leaq 0x5bc0(%rip), %rdi      # 0x8980
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x1090
movsbl %sil, %esi
leaq 0x5433(%rip), %rdi      # 0x820c
xorl %eax, %eax
jmp 0x1090
// File: /workspace/github_c_makefile_star2_O3/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 0x4a3d(%rip), %rax      # 0x7890
movq %rax, 0x9336(%rip)      # 0xc190
leaq 0x92bf(%rip), %rbx      # 0xc120
movq %rsp, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x190e
movslq %eax, %rsi
movl $0x30, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x4a3c(%rip), %rdi      # 0x78c9
movl $0x32, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x4a2e(%rip), %rbp      # 0x78d1
movl $0x33, %ecx
movq %rbp, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x28(%rsp), %r12
leaq 0x4a17(%rip), %rdi      # 0x78d8
movl $0x34, %ecx
movq %r12, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x48(%rsp), %r13
leaq 0x4a07(%rip), %rdi      # 0x78e3
movl $0x35, %ecx
movq %r13, %rsi
xorl %edx, %edx
callq 0x5e70
xorps %xmm0, %xmm0
movaps %xmm0, -0x8(%r13)
movaps %xmm0, -0x18(%r13)
movaps %xmm0, -0x28(%r13)
movaps %xmm0, -0x38(%r13)
movaps %xmm0, -0x48(%r13)
leaq 0x49da(%rip), %rax      # 0x78e8
movq %rax, 0x927b(%rip)      # 0xc190
movq %rbx, %rdi
movq %r15, %rsi
callq 0x190e
movslq %eax, %rsi
movl $0x3a, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x49e8(%rip), %rdi      # 0x7926
movl $0x3c, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5e70
movl $0x3d, %ecx
movq %rbp, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x49c5(%rip), %rdi      # 0x792b
movl $0x3e, %ecx
movq %r12, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x49b8(%rip), %rdi      # 0x7934
movl $0x3f, %ecx
movq %r13, %rsi
xorl %edx, %edx
callq 0x5e70
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x40, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x494f(%rip), %rax      # 0x7938
movq %rax, 0x91a0(%rip)      # 0xc190
leaq 0x9129(%rip), %r14      # 0xc120
movq %rsp, %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x19f5
movslq %eax, %rsi
movl $0x49, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x494c(%rip), %r13      # 0x796f
movl $0x4b, %ecx
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x493b(%rip), %rdi      # 0x7977
movl $0x4c, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x492a(%rip), %rdi      # 0x797c
movl $0x4d, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x492e(%rip), %rax      # 0x7996
movq %rax, 0x9121(%rip)      # 0xc190
movq %r14, %rdi
movq %r12, %rsi
callq 0x19f5
movslq %eax, %rsi
movl $0x51, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movl $0x53, %ecx
movq %r13, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x4922(%rip), %rdi      # 0x79cc
movl $0x54, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x5e70
leaq 0x4911(%rip), %rdi      # 0x79d1
movl $0x55, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5e70
movq %r14, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x56, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x48d7(%rip), %rax      # 0x79ee
movq %rax, 0x9072(%rip)      # 0xc190
leaq 0x8ffb(%rip), %r14      # 0xc120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1a97
movslq %eax, %rsi
movl $0x60, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x48ba(%rip), %rdi      # 0x7a08
movl $0x61, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5e70
movq %r14, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x62, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x4879(%rip), %rax      # 0x7a18
movq %rax, 0x8fea(%rip)      # 0xc190
leaq 0x8f73(%rip), %r14      # 0xc120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b0c
movslq %eax, %rsi
movl $0x6c, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x485c(%rip), %rdi      # 0x7a32
movl $0x6d, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5e70
movq %r14, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x6e, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x481b(%rip), %rax      # 0x7a42
movq %rax, 0x8f62(%rip)      # 0xc190
leaq 0x8eeb(%rip), %r14      # 0xc120
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b81
movslq %eax, %rsi
movl $0x78, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x480b(%rip), %rdi      # 0x7a69
movl $0x79, %ecx
movq %rbx, %rsi
xorl %edx, %edx
callq 0x5e70
movq %r14, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x7a, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x47d6(%rip), %rax      # 0x7a7e
movq %rax, 0x8ee1(%rip)      # 0xc190
leaq 0x8e6a(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1625
movslq %eax, %rsi
movl $0x83, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movzbl (%r14), %esi
movl $0x1c, %edi
movl $0x84, %ecx
xorl %edx, %edx
movl $0x21, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x85, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x4772(%rip), %rax      # 0x7a94
movq %rax, 0x8e67(%rip)      # 0xc190
leaq 0x8df0(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1c0c
movslq %eax, %rsi
movl $0x8d, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x4748(%rip), %rax      # 0x7aa3
movq %rax, 0x8e2e(%rip)      # 0xc190
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1c0c
movslq %eax, %rsi
movl $0x91, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0x92, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
popq %rbx
jmp 0x5480
// File: /workspace/github_c_makefile_star2_O3/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 0x49a4(%rip), %r14      # 0x7d52
movq %r14, 0x8ddb(%rip)      # 0xc190
leaq 0x8d64(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1c50
movslq %eax, %rsi
movl $0x9a, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %r14, 0x8da9(%rip)      # 0xc190
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1c50
movslq %eax, %rsi
movl $0xa4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0xa5, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5480
// File: /workspace/github_c_makefile_star2_O3/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 0x466c(%rip), %rax      # 0x7ab2
movq %rax, 0x8d43(%rip)      # 0xc190
leaq 0x8ccc(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1ca7
movslq %eax, %rsi
movl $0xb0, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movslq (%r14), %rsi
movl $0xb2, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movslq 0x4(%r14), %rsi
movl $0x1, %edi
movl $0xb3, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0xb4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x45d6(%rip), %rax      # 0x7ac7
movq %rax, 0x8c98(%rip)      # 0xc190
leaq 0x8c21(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1d81
movslq %eax, %rsi
movl $0xbd, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movslq (%r14), %rsi
movl $0xbf, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movslq 0x4(%r14), %rsi
movl $0xc0, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0xc(%rsp), %r14
leaq 0x459a(%rip), %rdi      # 0x7af6
movl $0xc1, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x5e70
movslq -0x4(%r14), %rsi
movl $0x7, %edi
movl $0xc2, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0xc3, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x38, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x4542(%rip), %rax      # 0x7b0c
movq %rax, 0x8bbf(%rip)      # 0xc190
leaq 0x8b48(%rip), %rbx      # 0xc120
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1eac
movslq %eax, %rsi
movl $0xcc, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
leaq 0x4522(%rip), %rdi      # 0x7b23
movl $0xcd, %ecx
movq %r14, %rsi
xorl %edx, %edx
callq 0x5e70
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
leaq 0x4506(%rip), %rax      # 0x7b29
movq %rax, 0x8b66(%rip)      # 0xc190
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1eac
movslq %eax, %rsi
movl $0x3, %edi
movl $0xd2, %ecx
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0xd4, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/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
leaq 0x8(%rsp), %rsi
movups %xmm0, 0x28(%rsi)
movups %xmm0, 0x18(%rsi)
leaq 0x46c0(%rip), %rax      # 0x7d52
movq %rax, 0x8af7(%rip)      # 0xc190
leaq 0x44a5(%rip), %rax      # 0x7b45
movq %rax, (%rsi)
leaq 0x44af(%rip), %rax      # 0x7b59
movq %rax, 0x10(%rsi)
leaq 0x44aa(%rip), %rax      # 0x7b5f
movq %rax, 0x8(%rsi)
leaq 0x8a60(%rip), %rbx      # 0xc120
movq %rbx, %rdi
callq 0x176b
movslq %eax, %rsi
movl $0xe2, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0xe3, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x40, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x4629(%rip), %rax      # 0x7d52
movq %rax, 0x8a60(%rip)      # 0xc190
movl $0x1, 0x1c(%rsi)
leaq 0x89e2(%rip), %rbx      # 0xc120
movq %rbx, %rdi
callq 0x187a
movslq %eax, %rsi
movl $0xee, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
movq %rbx, %rdi
callq 0x1563
movzbl %al, %esi
movl $0xef, %ecx
xorl %edi, %edi
xorl %edx, %edx
movl $0x14, %r8d
callq 0x5480
addq $0x40, %rsp
popq %rbx
retq