{"name": "DecodeT2AddrModeImm12", "code": "__int64 __fastcall DecodeT2AddrModeImm12 ( __int64 @@a1@@ , unsigned int @@a2@@ ) { unsigned int v2 ; unsigned int v4 ; unsigned int @@v5@@ ; unsigned int @@v6@@ ; unsigned int @@v7@@ ; @@v5@@ = Number ; @@v7@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v6@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; v2 = MCInst_getOpcode ( @@a1@@ ) - Number ; if ( v2 <= Number && ( ( Number L << v2 ) & Number ) != Number && @@v7@@ == Number ) return Number L ; v4 = DecodeGPRRegisterClass ( @@a1@@ , @@v7@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v5@@ , v4 ) != Number ) return Number L ; MCOperand_CreateImm0 ( @@a1@@ , @@v6@@ ) ; return @@v5@@ ; }", "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": "unsigned int", "s": 4}, "location": "s12"}, {"n": "v7", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s4"}, {"n": "v6", "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": "DecodeGPRRegisterClass", "code": "__int64 __fastcall DecodeGPRRegisterClass ( __int64 @@a1@@ , unsigned int @@a2@@ ) { if ( @@a2@@ > Number ) return Number L ; MCOperand_CreateReg0 ( @@a1@@ , ( unsigned __int16 ) GPRDecoderTable [ @@a2@@ ] ) ; 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": "DecodeT2LoadImm12", "code": "__int64 __fastcall DecodeT2LoadImm12 ( __int64 @@a1@@ , unsigned int @@a2@@ , __int64 @@a3@@ , __int64 @@a4@@ ) { unsigned int v4 ; __int64 result ; int v6 ; unsigned int v7 ; unsigned int v8 ; unsigned int v9 ; unsigned int @@v12@@ ; unsigned int @@v13@@ ; unsigned int @@v14@@ ; int @@v15@@ ; @@v12@@ = Number ; @@v15@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v14@@ = fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; @@v13@@ = ( @@v15@@ << Number ) | fieldFromInstruction_4 ( @@a2@@ , Number , Number ) ; if ( @@v15@@ == Number ) { v4 = MCInst_getOpcode ( @@a1@@ ) ; if ( v4 == Number ) { MCInst_setOpcode ( @@a1@@ , Number L ) ; } else { if ( v4 > Number ) return Number L ; if ( v4 <= Number ) { if ( v4 >= Number ) { switch ( v4 ) { case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_17 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_17 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_17 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_17 ; case Number : MCInst_setOpcode ( @@a1@@ , Number L ) ; goto LABEL_17 ; default : return Number L ; } } return Number L ; } if ( v4 != Number ) return Number L ; MCInst_setOpcode ( @@a1@@ , Number L ) ; } LABEL_17 : result = DecodeT2LoadLabel ( @@a1@@ , @@a2@@ , @@a3@@ , @@a4@@ ) ; } else { if ( @@v14@@ == Number ) { v6 = MCInst_getOpcode ( @@a1@@ ) ; if ( v6 == Number ) { MCInst_setOpcode ( @@a1@@ , Number L ) ; } else if ( v6 == Number ) { return Number L ; } } v7 = MCInst_getOpcode ( @@a1@@ ) - Number ; if ( v7 <= Number && ( ( Number L << v7 ) & Number ) != Number || ( v8 = DecodeGPRRegisterClass ( @@a1@@ , @@v14@@ ) , ( unsigned __int8 ) Check ( & @@v12@@ , v8 ) == Number ) ) { v9 = DecodeT2AddrModeImm12 ( @@a1@@ , @@v13@@ , @@a3@@ , @@a4@@ ) ; if ( ( unsigned __int8 ) Check ( & @@v12@@ , v9 ) != Number ) result = Number L ; else result = @@v12@@ ; } else { result = Number L ; } } 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": "v15", "t": {"T": 1, "n": "int", "s": 4}, "location": "s4"}, {"n": "v14", "t": {"T": 1, "n": "unsigned int", "s": 4}, "location": "s8"}]}