{"name": "tcg_malloc_internal", "code": "__int64 __fastcall tcg_malloc_internal ( _QWORD * @@a1@@ , int @@a2@@ ) { __int64 v3 ; __int64 * v4 ; if ( @@a2@@ <= Number ) { v4 = ( __int64 * ) @@a1@@ [ Number ] ; if ( v4 ) { if ( * v4 ) { v3 = * v4 ; goto LABEL_14 ; } } else { v3 = @@a1@@ [ Number ] ; if ( v3 ) goto LABEL_14 ; } v3 = qemu_malloc ( Number L ) ; * ( _DWORD * ) ( v3 + Number ) = Number ; * ( _QWORD * ) v3 = Number L ; if ( @@a1@@ [ Number ] ) * ( _QWORD * ) @@a1@@ [ Number ] = v3 ; else @@a1@@ [ Number ] = v3 ; } else { v3 = qemu_malloc ( @@a2@@ + Number L ) ; * ( _DWORD * ) ( v3 + Number ) = @@a2@@ ; if ( @@a1@@ [ Number ] ) * ( _QWORD * ) @@a1@@ [ Number ] = v3 ; else @@a1@@ [ Number ] = v3 ; * ( _QWORD * ) v3 = @@a1@@ [ Number ] ; } LABEL_14 : @@a1@@ [ Number ] = v3 ; * @@a1@@ = @@a2@@ + v3 + Number ; @@a1@@ [ Number ] = * ( int * ) ( v3 + Number ) + v3 + Number ; return v3 + Number ; }", "source": [{"n": "a1", "t": {"T": 3, "t": "_QWORD"}, "location": "r56"}, {"n": "a2", "t": {"T": 1, "n": "int", "s": 4}, "location": "r64"}]}
{"name": "tcg_malloc", "code": "__int64 __fastcall tcg_malloc ( int @@a1@@ ) { __int64 @@v2@@ ; @@v2@@ = tcg_ctx [ Number ] ; if ( ( unsigned __int64 ) ( ( int ) ( ( @@a1@@ + Number ) & Number ) + tcg_ctx [ Number ] ) > tcg_ctx [ Number ] ) return tcg_malloc_internal ( tcg_ctx , ( @@a1@@ + Number ) & Number ) ; tcg_ctx [ Number ] += ( int ) ( ( @@a1@@ + Number ) & Number ) ; return @@v2@@ ; }", "source": [{"n": "a1", "t": {"T": 1, "n": "int", "s": 4}, "location": "r56"}, {"n": "v2", "t": {"T": 1, "n": "__int64", "s": 8}, "location": "s24"}]}