{"name": "DecodeQADDInstruction", "code": "__int64 __fastcall DecodeQADDInstruction ( __int64 @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { __int64 result ; unsigned int v5 ; unsigned int v6 ; unsigned int v7 ; unsigned int v8 ; unsigned int @@v11@@ ; unsigned int @@v12@@ ; unsigned int @@v13@@ ; unsigned int @@v14@@ ; unsigned int @@v15@@ ; @@v11@@ = Number ; @@v15@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v14@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v13@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v12@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; if ( @@v12@@ == Number ) return DecodeCPSInstruction ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; v5 = DecodeGPRnopcRegisterClass ( @@a1@@ , @@v15@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v11@@ , v5 ) != Number ) return Number L ; v6 = DecodeGPRnopcRegisterClass ( @@a1@@ , @@v14@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v11@@ , v6 ) != Number ) return Number L ; v7 = DecodeGPRnopcRegisterClass ( @@a1@@ , @@v13@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v11@@ , v7 ) != Number ) return Number L ; v8 = DecodePredicateOperand ( @@a1@@ , @@v12@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v11@@ , v8 ) != Number ) result = Number L ; else result = @@v11@@ ; return result ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r16"}, {"n": "a4", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r24"}, {"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v13", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v12", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "v11", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v15", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v14", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}
{"name": "Check", "code": "__int64 __fastcall Check ( _DWORD * @@a1@@ , unsigned int @@a2@@ ) { if ( @@a2@@ == Number ) return Number L ; if ( @@a2@@ <= Number ) { if ( ! @@a2@@ ) { * @@a1@@ = Number ; return Number L ; } if ( @@a2@@ == Number ) { * @@a1@@ = Number ; return Number L ; } } return Number L ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_DWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}]} {"name": "fieldFromInstruction_4", "code": "__int64 __fastcall fieldFromInstruction_4 ( unsigned int @@a1@@ , char @@a2@@ , int @@a3@@ ) { int @@v4@@ ; if ( @@a3@@ == Number ) @@v4@@ = Number ; else @@v4@@ = ( ( Number << @@a3@@ ) - Number ) << @@a2@@ ; return ( @@v4@@ & @@a1@@ ) >> @@a2@@ ; }", "source": [{"n": "a3", "t": {"T": 1, "n": "int", "s": 4}, "location": "r16"}, {"n": "a1", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}, {"n": "v4", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}]} {"name": "DecodePredicateOperand", "code": "__int64 __fastcall DecodePredicateOperand ( __int64 @@a1@@ , unsigned int @@a2@@ ) { if ( @@a2@@ == Number ) return Number L ; if ( ( unsigned int ) MCInst_getOpcode ( @@a1@@ ) == Number && @@a2@@ == Number ) return Number L ; MCOperand_CreateImm0 ( @@a1@@ , @@a2@@ ) ; if ( @@a2@@ == Number ) MCOperand_CreateReg0 ( @@a1@@ , Number L ) ; else MCOperand_CreateReg0 ( @@a1@@ , Number L ) ; return Number L ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}]} {"name": "DecodeGPRnopcRegisterClass", "code": "__int64 __fastcall DecodeGPRnopcRegisterClass ( __int64 @@a1@@ , unsigned int @@a2@@ ) { unsigned int @@v2@@ ; unsigned int @@v4@@ ; @@v4@@ = Number ; if ( @@a2@@ == Number ) @@v4@@ = Number ; @@v2@@ = DecodeGPRRegisterClass ( @@a1@@ , @@a2@@ ) ; Check ( & @@v4@@ , @@v2@@ ) ; return @@v4@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r8"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}]} {"name": "DecodeCPSInstruction", "code": "__int64 __fastcall DecodeCPSInstruction ( __int64 @@a1@@ , unsigned int @@a2@@ ) { unsigned int @@v3@@ ; unsigned int @@v4@@ ; int @@v5@@ ; unsigned int @@v6@@ ; unsigned int @@v7@@ ; @@v6@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v5@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v4@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v3@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v7@@ = Number ; if ( ( unsigned int ) fieldFromInstruction_4 ( @@a2@@ , Number , Number ) || ( unsigned int ) fieldFromInstruction_4 ( @@a2@@ , Number , Number ) || ( unsigned int ) fieldFromInstruction_4 ( @@a2@@ , Number , Number ) != Number ) { return Number L ; } if ( @@v6@@ == Number ) return Number L ; if ( @@v6@@ && @@v5@@ ) { MCInst_setOpcode ( @@a1@@ , Number L ) ; MCOperand_CreateImm0 ( @@a1@@ , @@v6@@ ) ; MCOperand_CreateImm0 ( @@a1@@ , @@v4@@ ) ; MCOperand_CreateImm0 ( @@a1@@ , @@v3@@ ) ; } else if ( ! @@v6@@ || @@v5@@ ) { if ( @@v6@@ || ! @@v5@@ ) { MCInst_setOpcode ( @@a1@@ , Number L ) ; MCOperand_CreateImm0 ( @@a1@@ , @@v3@@ ) ; @@v7@@ = Number ; } else { MCInst_setOpcode ( @@a1@@ , Number L ) ; MCOperand_CreateImm0 ( @@a1@@ , @@v3@@ ) ; if ( @@v4@@ ) @@v7@@ = Number ; } } else { MCInst_setOpcode ( @@a1@@ , Number L ) ; MCOperand_CreateImm0 ( @@a1@@ , @@v6@@ ) ; MCOperand_CreateImm0 ( @@a1@@ , @@v4@@ ) ; if ( @@v3@@ ) @@v7@@ = Number ; } return @@v7@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "r64"}, {"n": "v5", "t": {"T": 1, "n": "int", "s": 4}, "location": "s12"}, {"n": "v4", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "v3", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s20"}, {"n": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v6", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}