{"name": "DecodeT2LoadT", "code": "__int64 __fastcall DecodeT2LoadT ( __int64 @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { __int64 result ; unsigned int v5 ; unsigned int v6 ; unsigned int @@v9@@ ; unsigned int @@v10@@ ; unsigned int @@v11@@ ; int @@v12@@ ; @@v9@@ = Number ; @@v12@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v11@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v10@@ = ( @@v12@@ << Number ) | fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; if ( @@v12@@ == Number ) { switch ( ( unsigned int ) MCInst_getOpcode ( @@a1@@ ) ) { case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_9 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_9 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_9 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_9 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; LABEL_9 : result = DecodeT2LoadLabel ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; break ; default : result = Number L ; break ; } } else { v5 = DecoderGPRRegisterClass ( @@a1@@ , @@v11@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v9@@ , v5 ) != Number ) { result = Number L ; } else { v6 = DecodeT2AddrModeImm8 ( @@a1@@ , @@v10@@ , @@a3@@ , @@a4@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v9@@ , v6 ) != Number ) result = Number L ; else result = @@v9@@ ; } } 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": "v10", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v9", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "v12", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v11", "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": "DecoderGPRRegisterClass", "code": "__int64 __fastcall DecoderGPRRegisterClass ( __int64 @@a1@@ , unsigned int @@a2@@ ) { unsigned int @@v2@@ ; unsigned int @@v4@@ ; @@v4@@ = Number ; if ( @@a2@@ == Number || @@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": "DecodeT2LoadLabel", "code": "__int64 __fastcall DecodeT2LoadLabel ( __int64 @@a1@@ , unsigned int @@a2@@ ) { unsigned int v2 ; int v4 ; unsigned int v5 ; unsigned int @@v6@@ ; int @@v7@@ ; unsigned int @@v8@@ ; int @@v9@@ ; @@v6@@ = Number ; @@v8@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v7@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v9@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; if ( @@v8@@ == Number ) { v2 = MCInst_getOpcode ( @@a1@@ ) ; if ( v2 == Number ) return Number L ; if ( v2 <= Number ) { if ( v2 == Number ) { MCInst_setOpcode ( @@a1@@ , Number L ) ; } else if ( v2 <= Number && ( v2 == Number || v2 == Number ) ) { MCInst_setOpcode ( @@a1@@ , Number L ) ; } } } v4 = MCInst_getOpcode ( @@a1@@ ) ; if ( v4 != Number && v4 != Number ) { v5 = DecodeGPRRegisterClass ( @@a1@@ , @@v8@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v6@@ , v5 ) != Number ) return Number L ; } if ( ! @@v7@@ ) { if ( @@v9@@ ) @@v9@@ = - @@v9@@ ; else @@v9@@ = Number ; } MCOperand_CreateImm0 ( @@a1@@ , @@v9@@ ) ; return @@v6@@ ; }", "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": "int", "s": 4}, "location": "s12"}, {"n": "v6", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s16"}, {"n": "v9", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v8", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]} {"name": "DecodeT2AddrModeImm8", "code": "__int64 __fastcall DecodeT2AddrModeImm8 ( __int64 @@a1@@ , unsigned int @@a2@@ ) { __int64 result ; unsigned int v3 ; unsigned int v4 ; unsigned int v5 ; unsigned int v6 ; unsigned int @@v7@@ ; unsigned int @@v8@@ ; int @@v9@@ ; @@v7@@ = Number ; @@v8@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v9@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; switch ( ( unsigned int ) MCInst_getOpcode ( @@a1@@ ) ) { case Number : case Number : case Number : case Number : case Number : case Number : if ( @@v8@@ != Number ) goto LABEL_4 ; result = Number L ; break ; default : LABEL_4 : v3 = MCInst_getOpcode ( @@a1@@ ) ; if ( v3 > Number ) { if ( v3 <= Number && v3 >= Number ) { v4 = v3 - Number ; if ( v4 <= Number && ( ( Number L << v4 ) & Number ) != Number ) LABEL_14 : @@v9@@ |= Number ; } } else if ( v3 >= Number ) { switch ( v3 ) { case Number : case Number : case Number : case Number : case Number : goto LABEL_14 ; default : break ; } } v5 = DecodeGPRRegisterClass ( @@a1@@ , @@v8@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v7@@ , v5 ) != Number ) { result = Number L ; } else { v6 = DecodeT2Imm8 ( @@a1@@ , @@v9@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v7@@ , v6 ) != Number ) result = Number L ; else result = @@v7@@ ; } break ; } 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": "int", "s": 4}, "location": "s4"}, {"n": "v8", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}