{"name": "DecodeBranchImmInstruction", "code": "__int64 __fastcall DecodeBranchImmInstruction ( __int64 @@a1@@ , unsigned int @@a2@@ ) { int v2 ; int v3 ; __int64 result ; int v5 ; unsigned int v6 ; unsigned int @@v7@@ ; unsigned int @@v8@@ ; unsigned int @@v9@@ ; @@v7@@ = Number ; @@v9@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v8@@ = Number * fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; if ( @@v9@@ == Number ) { MCInst_setOpcode ( @@a1@@ , Number L ) ; v2 = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; v3 = SignExtend32 ( ( Number * v2 ) | @@v8@@ , Number ) ; MCOperand_CreateImm0 ( @@a1@@ , v3 ) ; result = @@v7@@ ; } else { v5 = SignExtend32 ( @@v8@@ , Number ) ; MCOperand_CreateImm0 ( @@a1@@ , v5 ) ; v6 = DecodePredicateOperand ( @@a1@@ , @@v9@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v7@@ , v6 ) != Number ) result = Number L ; else result = @@v7@@ ; } return result ; }", "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": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v9", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v8", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}
{"name": "SignExtend32", "code": "__int64 __fastcall SignExtend32 ( int @@a1@@ , char @@a2@@ ) { return ( unsigned int ) ( @@a1@@ << ( Number - @@a2@@ ) >> ( Number - @@a2@@ ) ) ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "char", "s": 1}, "location": "r64"}]} {"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"}]}