prog_name
stringlengths
138
138
strip_func_name
stringlengths
2
176
prompt
stringclasses
1 value
query
stringlengths
41
170k
response
stringlengths
12
25k
hints
stringclasses
1 value
fb04827bf9a551f5f69186e53039bed933d463cd8e2d00e60728cc981426dd66_fb04827bf9a551f5f69186e53039bed933d463cd8e2d00e60728cc981426dd66.jsonl.gz
sub_45BAB2
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_45BAB2(__int64 a1) { int v2; // eax unsigned int v6; // eax unsigned int v7; // eax unsigned int v8; // eax int v9[2]; // [rsp+68h] [rbp-D8h] BYREF int v10[4]; // [rsp+70h] [rbp-D0h] BYREF int v11[4]; // [rsp+80h] [rbp-C0h] BYREF int v12[4]; // [rsp+90h] [rbp-B0h] BYREF int v13[8]; // [rsp+A0h] [rbp-A0h] BYREF int v14[8]; // [rsp+C0h] [rbp-80h] BYREF int v15[9]; // [rsp+E0h] [rbp-60h] BYREF int v16; // [rsp+104h] [rbp-3Ch] int v17; // [rsp+108h] [rbp-38h] unsigned int v18; // [rsp+10Ch] [rbp-34h] sub_46306A(a1); if ( *(_DWORD *)(a1 + 16) != 34 ) __assert_fail( "current == '\\\"'", "../single_include/nlohmann/json.hpp", 0x1CCBu, "nlohmann::detail::lexer<BasicJsonType>::token_type nlohmann::detail::lexer<BasicJsonType>::scan_string() [with Bas" "icJsonType = nlohmann::basic_json<>]"); while ( 2 ) { switch ( (unsigned int)sub_45B922(a1) ) { case 0xFFFFFFFF: *(_QWORD *)(a1 + 104) = "invalid string: missing closing quote"; return 14LL; case 0u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000"; return 14LL; case 1u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001"; return 14LL; case 2u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0002 (STX) must be escaped to \\u0002"; return 14LL; case 3u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003"; return 14LL; case 4u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004"; return 14LL; case 5u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005"; return 14LL; case 6u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006"; return 14LL; case 7u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007"; return 14LL; case 8u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b"; return 14LL; case 9u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t"; return 14LL; case 0xAu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n"; return 14LL; case 0xBu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+000B (VT) must be escaped to \\u000B"; return 14LL; case 0xCu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f"; return 14LL; case 0xDu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r"; return 14LL; case 0xEu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+000E (SO) must be escaped to \\u000E"; return 14LL; case 0xFu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+000F (SI) must be escaped to \\u000F"; return 14LL; case 0x10u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010"; return 14LL; case 0x11u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011"; return 14LL; case 0x12u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012"; return 14LL; case 0x13u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013"; return 14LL; case 0x14u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014"; return 14LL; case 0x15u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015"; return 14LL; case 0x16u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016"; return 14LL; case 0x17u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017"; return 14LL; case 0x18u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018"; return 14LL; case 0x19u: *(_QWORD *)(a1 + 104) = "invalid string: control character U+0019 (EM) must be escaped to \\u0019"; return 14LL; case 0x1Au: *(_QWORD *)(a1 + 104) = "invalid string: control character U+001A (SUB) must be escaped to \\u001A"; return 14LL; case 0x1Bu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+001B (ESC) must be escaped to \\u001B"; return 14LL; case 0x1Cu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+001C (FS) must be escaped to \\u001C"; return 14LL; case 0x1Du: *(_QWORD *)(a1 + 104) = "invalid string: control character U+001D (GS) must be escaped to \\u001D"; return 14LL; case 0x1Eu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+001E (RS) must be escaped to \\u001E"; return 14LL; case 0x1Fu: *(_QWORD *)(a1 + 104) = "invalid string: control character U+001F (US) must be escaped to \\u001F"; return 14LL; case 0x20u: case 0x21u: case 0x23u: case 0x24u: case 0x25u: case 0x26u: case 0x27u: case 0x28u: case 0x29u: case 0x2Au: case 0x2Bu: case 0x2Cu: case 0x2Du: case 0x2Eu: case 0x2Fu: case 0x30u: case 0x31u: case 0x32u: case 0x33u: case 0x34u: case 0x35u: case 0x36u: case 0x37u: case 0x38u: case 0x39u: case 0x3Au: case 0x3Bu: case 0x3Cu: case 0x3Du: case 0x3Eu: case 0x3Fu: case 0x40u: case 0x41u: case 0x42u: case 0x43u: case 0x44u: case 0x45u: case 0x46u: case 0x47u: case 0x48u: case 0x49u: case 0x4Au: case 0x4Bu: case 0x4Cu: case 0x4Du: case 0x4Eu: case 0x4Fu: case 0x50u: case 0x51u: case 0x52u: case 0x53u: case 0x54u: case 0x55u: case 0x56u: case 0x57u: case 0x58u: case 0x59u: case 0x5Au: case 0x5Bu: case 0x5Du: case 0x5Eu: case 0x5Fu: case 0x60u: case 0x61u: case 0x62u: case 0x63u: case 0x64u: case 0x65u: case 0x66u: case 0x67u: case 0x68u: case 0x69u: case 0x6Au: case 0x6Bu: case 0x6Cu: case 0x6Du: case 0x6Eu: case 0x6Fu: case 0x70u: case 0x71u: case 0x72u: case 0x73u: case 0x74u: case 0x75u: case 0x76u: case 0x77u: case 0x78u: case 0x79u: case 0x7Au: case 0x7Bu: case 0x7Cu: case 0x7Du: case 0x7Eu: case 0x7Fu: sub_4630C8(a1, *(unsigned int *)(a1 + 16)); continue; case 0x22u: return 4LL; case 0x5Cu: v2 = sub_45B922(a1); if ( v2 > 117 ) goto LABEL_56; if ( v2 >= 92 ) { switch ( v2 ) { case '\\': sub_4630C8(a1, 92LL); continue; case 'b': sub_4630C8(a1, 8LL); continue; case 'f': sub_4630C8(a1, 12LL); continue; case 'n': sub_4630C8(a1, 10LL); continue; case 'r': sub_4630C8(a1, 13LL); continue; case 't': sub_4630C8(a1, 9LL); continue; case 'u': v17 = sub_463100(a1); v18 = v17; if ( v17 == -1 ) { *(_QWORD *)(a1 + 104) = "invalid string: '\\u' must be followed by 4 hex digits"; return 14LL; } if ( v17 <= 55295 || v17 > 56319 ) { if ( v17 > 56319 && v17 <= 57343 ) { *(_QWORD *)(a1 + 104) = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF"; return 14LL; } } else { if ( (unsigned int)sub_45B922(a1) != 92 || (unsigned int)sub_45B922(a1) != 117 ) { *(_QWORD *)(a1 + 104) = "invalid string: surrogate U+DC00..U+DFFF must be followed by U+DC00..U+DFFF"; return 14LL; } v16 = sub_463100(a1); if ( v16 == -1 ) { *(_QWORD *)(a1 + 104) = "invalid string: '\\u' must be followed by 4 hex digits"; return 14LL; } if ( v16 <= 56319 || v16 > 57343 ) { *(_QWORD *)(a1 + 104) = "invalid string: surrogate U+DC00..U+DFFF must be followed by U+DC00..U+DFFF"; return 14LL; } v18 = (v17 << 10) + v16 - 56613888; } if ( (v18 & 0x80000000) != 0 || (int)v18 > 1114111 ) __assert_fail( "0x00 <= codepoint and codepoint <= 0x10FFFF", "../single_include/nlohmann/json.hpp", 0x1D43u, "nlohmann::detail::lexer<BasicJsonType>::token_type nlohmann::detail::lexer<BasicJsonType>::scan_string" "() [with BasicJsonType = nlohmann::basic_json<>]"); if ( (int)v18 > 127 ) { if ( (int)v18 > 2047 ) { if ( (int)v18 > 0xFFFF ) { v8 = v18 >> 18; LOBYTE(v8) = (v18 >> 18) | 0xF0; sub_4630C8(a1, v8); sub_4630C8(a1, (v18 >> 12) & 0x3F | 0x80); } else { v7 = v18 >> 12; LOBYTE(v7) = (v18 >> 12) | 0xE0; sub_4630C8(a1, v7); } sub_4630C8(a1, (v18 >> 6) & 0x3F | 0x80); sub_4630C8(a1, v18 & 0x3F | 0x80); } else { v6 = v18 >> 6; LOBYTE(v6) = (v18 >> 6) | 0xC0; sub_4630C8(a1, v6); sub_4630C8(a1, v18 & 0x3F | 0x80); } } else { sub_4630C8(a1, v18); } break; default: goto LABEL_56; } continue; } if ( v2 == 34 ) { sub_4630C8(a1, 34LL); continue; } if ( v2 == 47 ) { sub_4630C8(a1, 47LL); continue; } LABEL_56: *(_QWORD *)(a1 + 104) = "invalid string: forbidden character after backslash"; return 14LL; case 0xC2u: case 0xC3u: case 0xC4u: case 0xC5u: case 0xC6u: case 0xC7u: case 0xC8u: case 0xC9u: case 0xCAu: case 0xCBu: case 0xCCu: case 0xCDu: case 0xCEu: case 0xCFu: case 0xD0u: case 0xD1u: case 0xD2u: case 0xD3u: case 0xD4u: case 0xD5u: case 0xD6u: case 0xD7u: case 0xD8u: case 0xD9u: case 0xDAu: case 0xDBu: case 0xDCu: case 0xDDu: case 0xDEu: case 0xDFu: v9[0] = 128; v9[1] = 191; if ( (unsigned __int8)sub_463296(a1, v9, 2LL) == 1 ) continue; return 14LL; case 0xE0u: v10[0] = 160; v10[1] = 191; v10[2] = 128; v10[3] = 191; if ( (unsigned __int8)sub_463296(a1, v10, 4LL) == 1 ) continue; return 14LL; case 0xE1u: case 0xE2u: case 0xE3u: case 0xE4u: case 0xE5u: case 0xE6u: case 0xE7u: case 0xE8u: case 0xE9u: case 0xEAu: case 0xEBu: case 0xECu: case 0xEEu: case 0xEFu: v11[0] = 128; v11[1] = 191; v11[2] = 128; v11[3] = 191; if ( (unsigned __int8)sub_463296(a1, v11, 4LL) == 1 ) continue; return 14LL; case 0xEDu: v12[0] = 128; v12[1] = 159; v12[2] = 128; v12[3] = 191; if ( (unsigned __int8)sub_463296(a1, v12, 4LL) == 1 ) continue; return 14LL; case 0xF0u: v13[0] = 144; v13[1] = 191; v13[2] = 128; v13[3] = 191; v13[4] = 128; v13[5] = 191; if ( (unsigned __int8)sub_463296(a1, v13, 6LL) == 1 ) continue; return 14LL; case 0xF1u: case 0xF2u: case 0xF3u: v14[0] = 128; v14[1] = 191; v14[2] = 128; v14[3] = 191; v14[4] = 128; v14[5] = 191; if ( (unsigned __int8)sub_463296(a1, v14, 6LL) == 1 ) continue; return 14LL; case 0xF4u: v15[0] = 128; v15[1] = 143; v15[2] = 128; v15[3] = 191; v15[4] = 128; v15[5] = 191; if ( (unsigned __int8)sub_463296(a1, v15, 6LL) == 1 ) continue; return 14LL; default: *(_QWORD *)(a1 + 104) = "invalid string: ill-formed UTF-8 byte"; return 14LL; } } } Q:[sub_45BAB2,sub_46306A,sub_45B922,sub_4630C8,sub_463100,sub_463296,]
A:{'sub_45BAB2': 'scan_string', 'sub_46306A': 'reset', 'sub_45B922': 'get', 'sub_4630C8': 'add', 'sub_463100': 'get_codepoint', 'sub_463296': 'next_byte_in_range'}
09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7_09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7.jsonl.gz
sub_4041CE
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4041CE(__int64 a1, __int64 a2, __int64 a3, int a4, int a5, int a6) { __int64 result; // rax result = (unsigned __int16)word_49F252; if ( !word_49F252 ) result = sub_44697C( (unsigned int)"%s %s", (unsigned int)"GSL/4.1.4", (unsigned int)"Copyright (c) 1996-2016 iMatix Corporation", a4, a5, a6); return result; } Q:[sub_4041CE,sub_44697C,]
A:{'sub_4041CE': 'display_welcome_if_not_quiet', 'sub_44697C': 'coprintf'}
3ece931a62f518c5d6d2aba459c770497c790e221ea4fac41a6f026c92b6a264_3ece931a62f518c5d6d2aba459c770497c790e221ea4fac41a6f026c92b6a264.jsonl.gz
sub_4023FB
Help user generate meaningful names for variables and functions in the following code snippet.
size_t sub_4023FB() { fputc(10, stream); sub_401FAA(1u, "enum"); sub_401FED("(enum_t *)objp"); return sub_4020D4(1u); } Q:[sub_4023FB,sub_401FAA,sub_401FED,sub_4020D4,]
A:{'sub_4023FB': 'emit_enum', 'sub_401FAA': 'print_ifopen', 'sub_401FED': 'print_ifarg', 'sub_4020D4': 'print_ifclose'}
4365b5d0920047e31277b8a2796d99fcda79fd077dfd596f28b6a99bb1606856_4365b5d0920047e31277b8a2796d99fcda79fd077dfd596f28b6a99bb1606856.jsonl.gz
sub_4540F6
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4540F6(__int64 a1, __int64 a2, __int64 a3) { return sub_45C4D2(a1, a2, a3); } Q:[sub_4540F6,sub_45C4D2,]
A:{'sub_4540F6': 'foreach', 'sub_45C4D2': 'exec'}
7c16ecc1f4177280f9c554334c74c60179f6cbd74ce0674df9f0cc7c89723807_7c16ecc1f4177280f9c554334c74c60179f6cbd74ce0674df9f0cc7c89723807.jsonl.gz
sub_423A02
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_423A02(__int64 a1, unsigned __int8 a2, unsigned int *a3, __int64 a4, __int64 a5, __int64 a6) { unsigned int v6; // eax void *v7; // rsp size_t v8; // rax __int64 result; // rax void *v10; // rsp const char *v11; // rsi const char *v12; // rdx const char *v13; // rcx size_t v14; // rax const char *v15; // rax const char *v16; // rdx const char *v17; // rax size_t v18; // rax const char *v19; // rcx const char *v20; // rdx const char *v21; // rsi size_t v22; // rax size_t v23; // rax size_t v24; // rax size_t v25; // rax __int64 v26[4]; // [rsp+0h] [rbp-210h] BYREF __int64 v27; // [rsp+20h] [rbp-1F0h] const char *v28; // [rsp+28h] [rbp-1E8h] const char *v29; // [rsp+30h] [rbp-1E0h] unsigned int *v30; // [rsp+38h] [rbp-1D8h] unsigned __int8 v31; // [rsp+44h] [rbp-1CCh] __int64 v32; // [rsp+48h] [rbp-1C8h] char s[296]; // [rsp+50h] [rbp-1C0h] BYREF const char *v34; // [rsp+178h] [rbp-98h] __int64 v35; // [rsp+180h] [rbp-90h] __int64 v36; // [rsp+188h] [rbp-88h] size_t v37; // [rsp+190h] [rbp-80h] char *v38; // [rsp+198h] [rbp-78h] __int64 v39; // [rsp+1A0h] [rbp-70h] _QWORD *v40; // [rsp+1A8h] [rbp-68h] const char *v41; // [rsp+1B0h] [rbp-60h] __int64 v42; // [rsp+1B8h] [rbp-58h] __int64 v43; // [rsp+1C0h] [rbp-50h] char *v44; // [rsp+1C8h] [rbp-48h] unsigned int v45; // [rsp+1D4h] [rbp-3Ch] const char *v46; // [rsp+1D8h] [rbp-38h] v32 = a1; v30 = a3; v29 = (const char *)a4; v28 = (const char *)a5; v27 = a6; v31 = a2; v6 = a3[2]; LOBYTE(v6) = v6 & 0x7F; v45 = v6; switch ( v6 ) { case 0u: snprintf(s, 0x120uLL, "be_const_nil()"); if ( v27 ) goto LABEL_76; goto LABEL_44; case 1u: snprintf(s, 0x120uLL, "be_const_int(%li)", *v30); if ( !v27 ) goto LABEL_44; goto LABEL_76; case 2u: snprintf(s, 0x120uLL, "be_const_real_hex(0x%08X)", (unsigned int)*(_QWORD *)v30); if ( !v27 ) goto LABEL_44; goto LABEL_76; case 3u: snprintf(s, 0x120uLL, "be_const_bool(%i)", *(unsigned __int8 *)v30); if ( !v27 ) goto LABEL_44; goto LABEL_76; case 4u: if ( v28 ) v16 = v28; else v16 = "unknown"; if ( v29 ) v17 = v29; else v17 = "unknown"; snprintf(s, 0x120uLL, "be_const_comptr(&be_ntv_%s_%s)", v17, v16); if ( !v27 ) goto LABEL_44; goto LABEL_76; case 5u: snprintf(s, 0x120uLL, "be_const_var(%li)", *v30); if ( v27 ) goto LABEL_76; goto LABEL_44; case 6u: if ( v28 ) v19 = v28; else v19 = "unknown"; if ( v29 ) v20 = v29; else v20 = "unknown"; if ( (v30[2] & 0x80) != 0 ) v21 = "static_"; else v21 = (const char *)&unk_441CE5; snprintf(s, 0x120uLL, "be_const_%sfunc(be_ntv_%s_%s)", v21, v20, v19); if ( v27 ) goto LABEL_76; goto LABEL_44; case 0x10u: v38 = (char *)be_str2cstr(*(_QWORD *)v30); v37 = strlen(v38); if ( v37 > 0xFE ) be_raise(v32, (__int64)"internal_error", (__int64)"Strings greater than 255 chars not supported yet"); v36 = (unsigned int)sub_422F38(v38); v35 = v36 - 1; v26[2] = v36; v26[3] = 0LL; v26[0] = v36; v26[1] = 0LL; v7 = alloca(16 * ((v36 + 15) / 0x10uLL)); v34 = (const char *)v26; sub_422FF0(v26, v38); if ( v31 != 1 ) { snprintf(s, 0x120uLL, "be_nested_str(%s)", v34); if ( v27 ) { LABEL_32: v14 = strlen(s); return be_fwrite(v27, s, v14); } } else { snprintf(s, 0x120uLL, "be_nested_str_weak(%s)", v34); if ( v27 ) goto LABEL_32; } LABEL_21: v8 = strlen(s); return be_writebuffer(s, v8); case 0x11u: v15 = (const char *)be_str2cstr(*(_QWORD *)(*(_QWORD *)v30 + 32LL)); snprintf(s, 0x120uLL, "be_const_class(be_class_%s)", v15); if ( v27 ) goto LABEL_76; goto LABEL_44; case 0x12u: v40 = *(_QWORD **)v30; v39 = v40[4]; if ( v40[2] || v40[3] ) be_raise(v32, (__int64)"internal_error", (__int64)"instance must not have a super/sub class"); if ( *(_WORD *)(v39 + 10) != 1 ) be_raise(v32, (__int64)"internal_error", (__int64)"instance must have only one instance variable"); v46 = (const char *)&unk_441CE5; if ( (_UNKNOWN *)v39 == &be_class_map ) v46 = "map"; if ( (_UNKNOWN *)v39 == &be_class_list ) v46 = "list"; snprintf(s, 0x120uLL, "be_const_simple_instance(be_nested_simple_instance(&be_class_%s, {\n", v46); v22 = strlen(s); if ( v27 ) be_fwrite(v27, s, v22); else be_writebuffer(s, v22); if ( (_UNKNOWN *)v39 == &be_class_map ) { snprintf(s, 0x120uLL, " be_const_map( * "); if ( v27 ) { LABEL_71: v23 = strlen(s); be_fwrite(v27, s, v23); goto LABEL_75; } } else { snprintf(s, 0x120uLL, " be_const_list( * "); if ( v27 ) goto LABEL_71; } v24 = strlen(s); be_writebuffer(s, v24); LABEL_75: sub_423A02(v32, v31, v40 + 6, v29, v28, v27); snprintf(s, 0x120uLL, " ) } ))"); if ( v27 ) { LABEL_76: v25 = strlen(s); result = be_fwrite(v27, s, v25); } else { LABEL_44: v18 = strlen(s); result = be_writebuffer(s, v18); } return result; case 0x14u: return sub_4236F9(v32, v31, *(_QWORD *)v30, (__int64)v29, v27); case 0x15u: return sub_42310E(v32, v31, *(_QWORD *)v30, (__int64)v29, v27); case 0x26u: v44 = (char *)be_str2cstr(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)v30 + 24LL) + 56LL)); v43 = (unsigned int)sub_422F38(v44); v42 = v43 - 1; v10 = alloca(16 * ((v43 + 15) / 0x10uLL)); v41 = (const char *)v26; sub_422FF0(v26, v44); if ( v29 ) v11 = "_"; else v11 = (const char *)&unk_441CE5; if ( v29 ) v12 = v29; else v12 = (const char *)&unk_441CE5; if ( (v30[2] & 0x80) != 0 ) v13 = "static_"; else v13 = (const char *)&unk_441CE5; snprintf(s, 0x120uLL, "be_const_%sclosure(%s%s%s_closure)", v13, v12, v11, v41); if ( v27 ) goto LABEL_32; goto LABEL_21; default: snprintf(s, 0x40uLL, "Unsupported type in function constants: %i", v45); be_raise(v32, (__int64)"internal_error", (__int64)s); } } Q:[a3,a4,a1,a2,a5,a6,v27,v28,v29,v30,v31,v32,s,v34,v36,v37,v38,v39,v40,v41,v43,v44,v45,v46,sub_423A02,sub_422F38,sub_422FF0,sub_4236F9,sub_42310E,]
A:{'a3': 'value', 'a4': 'classname', 'a1': 'vm', 'a2': 'str_literal', 'a5': 'key', 'a6': 'fout', 'v27': 'fouta', 'v28': 'keya', 'v29': 'classnamea', 'v30': 'valuea', 'v31': 'str_literala', 'v32': 'vma', 's': 'error', 'v34': 'p_id_buf', 'v36': 'id_len', 'v37': 'len', 'v38': 'str', 'v39': 'cl_0', 'v40': 'ins', 'v41': 'p_func_name_id', 'v43': 'id_len_0', 'v44': 'func_name', 'v45': 'type', 'v46': 'cl_ptr', 'sub_423A02': 'm_solidify_bvalue', 'sub_422F38': 'toidentifier_length', 'sub_422FF0': 'toidentifier', 'sub_4236F9': 'm_solidify_list', 'sub_42310E': 'm_solidify_map'}
9d78dbff2b693e04074ea84c73a96628b1f1aed0c972b2f8d7ee58d07ee0ab92_9d78dbff2b693e04074ea84c73a96628b1f1aed0c972b2f8d7ee58d07ee0ab92.jsonl.gz
sub_42EF14
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_42EF14(__int64 a1, __int64 a2, unsigned __int8 *a3, unsigned __int64 a4) { __int64 result; // rax int v8; // [rsp+20h] [rbp-20h] BYREF int v9; // [rsp+24h] [rbp-1Ch] int v10; // [rsp+28h] [rbp-18h] int v11; // [rsp+2Ch] [rbp-14h] int v12; // [rsp+30h] [rbp-10h] int v13; // [rsp+34h] [rbp-Ch] int v14; // [rsp+38h] [rbp-8h] int v15; // [rsp+3Ch] [rbp-4h] while ( a4 > 0xF ) { v8 = (a3[13] << 8) | (a3[14] << 16) | (a3[15] << 24) | a3[12]; v9 = (a3[9] << 8) | (a3[10] << 16) | (a3[11] << 24) | a3[8]; v10 = (a3[5] << 8) | (a3[6] << 16) | (a3[7] << 24) | a3[4]; v11 = (a3[1] << 8) | (a3[2] << 16) | (a3[3] << 24) | *a3; sub_45FA64(&v8); sub_45BFF1(a1, &v8, &v8); sub_45FEB7(&v8); v15 = v8; *(_BYTE *)(a2 + 12) = v8; *(_WORD *)(a2 + 13) = *(_WORD *)((char *)&v15 + 1); *(_BYTE *)(a2 + 15) = HIBYTE(v15); v14 = v9; *(_BYTE *)(a2 + 8) = v9; *(_WORD *)(a2 + 9) = *(_WORD *)((char *)&v14 + 1); *(_BYTE *)(a2 + 11) = HIBYTE(v14); v13 = v10; *(_BYTE *)(a2 + 4) = v10; *(_WORD *)(a2 + 5) = *(_WORD *)((char *)&v13 + 1); *(_BYTE *)(a2 + 7) = HIBYTE(v13); v12 = v11; *(_BYTE *)a2 = v11; *(_WORD *)(a2 + 1) = *(_WORD *)((char *)&v12 + 1); result = a2 + 3; *(_BYTE *)(a2 + 3) = HIBYTE(v12); a3 += 16; a2 += 16LL; a4 -= 16LL; } return result; } Q:[a3,a4,a1,a2,v8,v12,v13,v14,v15,sub_42EF14,sub_45FA64,sub_45BFF1,sub_45FEB7,]
A:{'a3': 'input', 'a4': 'len', 'a1': 'ks', 'a2': 'output', 'v8': 'b', 'v12': '_x_2', 'v13': '_x_1', 'v14': '_x_0', 'v15': '_x', 'sub_42EF14': 'gift128_le_ecb_encrypt', 'sub_45FA64': 'gift128_nibbles_to_words', 'sub_45BFF1': 'gift128b_encrypt_preloaded', 'sub_45FEB7': 'gift128_words_to_nibbles'}
8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2_8637b53fba300d2bbda36edc905b4ce0ac17bbe93b75784d9e0ff8ef770869f2.jsonl.gz
main
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall main(__int64 a1, char **a2, char **a3) { sub_403A49(a1, a2, a3); return 0LL; } Q:[a2,a3,a1,sub_403A49,]
A:{'a2': 'argv', 'a3': 'envp', 'a1': 'argc', 'sub_403A49': 'amp_main'}
ba484b8c514a0424e5628a5af75b7471cda5bb09ee28adf1191233ccb4cb654f_ba484b8c514a0424e5628a5af75b7471cda5bb09ee28adf1191233ccb4cb654f.jsonl.gz
sub_403A30
Help user generate meaningful names for variables and functions in the following code snippet.
int __fastcall sub_403A30(const char *a1, __int64 a2, __int64 a3, __int64 a4) { FILE *v5; // rax FILE *v6; // rbp int v7; // er14 __m128i v8; // xmm6 __m128i v9; // xmm7 __m128i v10; // xmm4 __m128i v11; // xmm5 __m128i v12; // xmm6 __int128 v13; // xmm0 __m128i *v14; // r8 int v15; // er14 int v16; // eax int v17; // ebx __int64 v18; // rsi void *v19; // r13 __int64 v21; // r12 bool v22; // zf unsigned __int64 v23; // rbx __m128i v24; // xmm6 __int64 v25; // rax char *v26; // rcx __int64 v27; // r15 __int64 v28; // rbx void *v29; // rax unsigned int v30; // er12 __m128i *v31; // rdx __int64 v32; // rsi __m128i *v33; // r12 __m128i *v34; // rbx __m128i *v35; // rax double v36; // [rsp+8h] [rbp-410h] bool v39; // [rsp+2Fh] [rbp-3E9h] int v40; // [rsp+3Ch] [rbp-3DCh] BYREF int v41; // [rsp+40h] [rbp-3D8h] BYREF char v42; // [rsp+44h] [rbp-3D4h] BYREF char v43; // [rsp+48h] [rbp-3D0h] BYREF char v44; // [rsp+4Ch] [rbp-3CCh] BYREF __m128i v45; // [rsp+50h] [rbp-3C8h] BYREF __int64 v46; // [rsp+60h] [rbp-3B8h] BYREF __m128i v47; // [rsp+68h] [rbp-3B0h] BYREF char v48; // [rsp+78h] [rbp-3A0h] BYREF double v49; // [rsp+80h] [rbp-398h] BYREF void *v50[2]; // [rsp+90h] [rbp-388h] BYREF __m128i v51; // [rsp+A0h] [rbp-378h] BYREF char v52; // [rsp+B0h] [rbp-368h] BYREF _BYTE v53[24]; // [rsp+B8h] [rbp-360h] BYREF __int64 v54; // [rsp+D0h] [rbp-348h] BYREF char s[256]; // [rsp+E0h] [rbp-338h] BYREF __m128i v56[34]; // [rsp+1E0h] [rbp-238h] BYREF char v57; // [rsp+400h] [rbp-18h] BYREF v5 = fopen(a1, "r"); if ( !v5 ) return printf("Error opening file %s for reading\n", a1); v6 = v5; fgets(s, 256, v5); if ( s[0] == 35 ) { sscanf(s, "# Bundle file v%lf", v56); v36 = *(double *)v56[0].m128i_i64; printf("[ReadBundleFile] Bundle version: %0.3f\n", *(double *)v56[0].m128i_i64); if ( v36 >= 0.4 ) { LODWORD(v50[0]) = 0; fscanf(v6, "%d %d %d\n", &v40, &v41, v50); v39 = LODWORD(v50[0]) != 0; goto LABEL_5; } goto LABEL_34; } if ( s[0] == 118 ) { sscanf(s, "v%lf", v56); v36 = *(double *)v56[0].m128i_i64; printf("[ReadBundleFile] Bundle version: %0.3f\n", *(double *)v56[0].m128i_i64); LABEL_34: fscanf(v6, "%d %d\n", &v40, &v41); v39 = 0; goto LABEL_5; } sscanf(s, "%d %d\n", &v40, &v41); v39 = 0; v36 = 0.1; LABEL_5: printf("[ReadBundleFile] Reading %d images and %d points...\n", (unsigned int)v40, (unsigned int)v41); if ( v40 > 0 ) { v7 = 0; while ( 1 ) { if ( v36 < 0.2 ) { fscanf(v6, "%lf\n", &v45); } else { if ( v36 >= 0.4 ) { fscanf(v6, "%s %d %d %lf %d\n", v56, &v42, &v43, &v47, &v44); fscanf(v6, "%lf %lf %lf\n", &v45, &v45.m128i_u64[1], &v46); v50[0] = &v51; v29 = (void *)strlen((const char *)v56); v47.m128i_i64[1] = (__int64)v29; v30 = (unsigned int)v29; if ( (unsigned __int64)v29 > 0xF ) { v35 = (__m128i *)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::_M_create(); v50[0] = v35; v51.m128i_i64[0] = v47.m128i_i64[1]; } else { if ( v29 == (void *)1 ) { v51.m128i_i8[0] = v56[0].m128i_i8[0]; v31 = &v51; goto LABEL_47; } if ( !v29 ) { v31 = &v51; LABEL_47: v50[1] = v29; *((_BYTE *)v29 + (_QWORD)v31) = 0; v32 = *(_QWORD *)(a2 + 8); if ( v32 == *(_QWORD *)(a2 + 16) ) { sub_404D50(a2, v32, v50); if ( v50[0] != &v51 ) operator delete(v50[0]); } else { *(_QWORD *)v32 = v32 + 16; if ( v50[0] == &v51 ) { *(__m128i *)(v32 + 16) = _mm_load_si128(&v51); } else { *(void **)v32 = v50[0]; *(_QWORD *)(v32 + 16) = v51.m128i_i64[0]; } *(void **)(v32 + 8) = v50[1]; *(_QWORD *)(a2 + 8) += 32LL; } goto LABEL_10; } v35 = &v51; } if ( v30 >= 8 ) { v35->m128i_i64[0] = v56[0].m128i_i64[0]; *(__int64 *)((char *)&v35->m128i_i64[-1] + v30) = *(__int64 *)((char *)&v56[0].m128i_i64[-1] + v30); qmemcpy( (void *)((unsigned __int64)&v35->m128i_u64[1] & 0xFFFFFFFFFFFFFFF8LL), (const void *)((char *)v56 - ((char *)v35 - ((unsigned __int64)&v35->m128i_u64[1] & 0xFFFFFFFFFFFFFFF8LL))), 8LL * ((v30 + (_DWORD)v35 - (((_DWORD)v35 + 8) & 0xFFFFFFF8)) >> 3)); v29 = (void *)v47.m128i_i64[1]; v31 = (__m128i *)v50[0]; } else { if ( (v30 & 4) != 0 ) { v35->m128i_i32[0] = v56[0].m128i_i32[0]; *(__int32 *)((char *)&v35->m128i_i32[-1] + v30) = *(__int32 *)((char *)&v56[0].m128i_i32[-1] + v30); } else if ( v30 ) { v35->m128i_i8[0] = v56[0].m128i_i8[0]; if ( (v30 & 2) != 0 ) *(__int16 *)((char *)&v35->m128i_i16[-1] + v30) = *(__int16 *)((char *)&v56[0].m128i_i16[-1] + v30); } v29 = (void *)v47.m128i_i64[1]; v31 = (__m128i *)v50[0]; } goto LABEL_47; } fscanf(v6, "%lf %lf %lf\n", &v45, &v45.m128i_u64[1], &v46); } LABEL_10: fscanf( v6, "%lf %lf %lf\n%lf %lf %lf\n%lf %lf %lf\n", v50, &v50[1], &v51, &v51.m128i_u64[1], &v52, v53, &v53[8], &v53[16], &v54); fscanf(v6, "%lf %lf %lf\n", &v47.m128i_u64[1], &v48, &v49); v8 = _mm_load_si128((const __m128i *)v50); v9 = _mm_load_si128(&v51); v56[6] = v45; v10 = _mm_load_si128((const __m128i *)&v52); v56[4].m128i_i64[0] = v54; v11 = _mm_load_si128((const __m128i *)&v53[8]); v56[0] = v8; v12 = _mm_load_si128((const __m128i *)&v47.m128i_i8[8]); v56[7].m128i_i64[0] = v46; *(double *)&v56[5].m128i_i64[1] = v49; v56[1] = v9; v56[2] = v10; v56[3] = v11; *(__m128i *)((char *)&v56[4] + 8) = v12; if ( v36 < 0.3 ) { *(double *)v51.m128i_i64 = -*(double *)v51.m128i_i64; *(double *)&v13 = -*(double *)v53; *((double *)&v13 + 1) = -*(double *)&v53[8]; *(_OWORD *)v53 = v13; *(double *)&v53[16] = -*(double *)&v53[16]; v49 = -v49; } v14 = *(__m128i **)(a3 + 8); if ( v14 == *(__m128i **)(a3 + 16) ) { ++v7; sub_404790(a3, *(_QWORD *)(a3 + 8), v56); if ( v40 <= v7 ) break; } else { ++v7; qmemcpy(v14, v56, 0x1F8uLL); *(_QWORD *)(a3 + 8) += 504LL; if ( v7 >= v40 ) break; } } } v15 = 0; if ( v41 > 0 ) { while ( 1 ) { v54 = 0LL; *(_OWORD *)&v53[8] = 0LL; if ( v36 >= 0.4 ) fscanf(v6, "%d\n", v56); fscanf(v6, "%lf %lf %lf\n", v50, &v50[1], &v51); fscanf(v6, "%lf %lf %lf\n", &v51.m128i_u64[1], &v52, v53); if ( v36 >= 0.4 && v39 ) { v33 = &v56[2]; do { v34 = v33 - 2; do { fscanf(v6, "%f", v34); v34 = (__m128i *)((char *)v34 + 4); } while ( v33 != v34 ); fscanf(v6, "\n"); v33 += 2; } while ( v33 != (__m128i *)&v57 ); } fscanf(v6, "%d", &v45); v16 = v45.m128i_i32[0]; if ( v45.m128i_i32[0] <= 0 ) break; v17 = 0; do { while ( 1 ) { fscanf(v6, "%d %d", &v45.m128i_u64[1], &v46); if ( v36 >= 0.3 ) fscanf(v6, "%lf %lf", &v47, &v47.m128i_u64[1]); v56[0].m128i_i64[0] = _mm_unpacklo_epi32(_mm_cvtsi32_si128(v45.m128i_u32[2]), _mm_cvtsi32_si128(v46)).m128i_u64[0]; *(__m128i *)((char *)v56 + 8) = v47; if ( *(_QWORD *)&v53[16] == v54 ) break; v18 = *(_QWORD *)&v53[16] + 24LL; ++v17; **(_OWORD **)&v53[16] = _mm_load_si128(v56); *(_QWORD *)(v18 - 8) = v56[1].m128i_i64[0]; v16 = v45.m128i_i32[0]; *(_QWORD *)&v53[16] = v18; if ( v45.m128i_i32[0] <= v17 ) goto LABEL_26; } sub_404900(&v53[8], *(_QWORD *)&v53[16], v56); v16 = v45.m128i_i32[0]; ++v17; } while ( v45.m128i_i32[0] > v17 ); LABEL_26: if ( v36 < 0.3 ) goto LABEL_27; LABEL_28: if ( v16 > 0 ) { v21 = *(_QWORD *)(a4 + 8); if ( v21 != *(_QWORD *)(a4 + 16) ) { v23 = *(_QWORD *)&v53[16] - *(_QWORD *)&v53[8]; v22 = *(_QWORD *)&v53[16] == *(_QWORD *)&v53[8]; *(__m128i *)v21 = _mm_load_si128((const __m128i *)v50); v24 = _mm_loadu_si128((const __m128i *)&v51.m128i_i8[8]); *(_QWORD *)(v21 + 16) = v51.m128i_i64[0]; *(__m128i *)(v21 + 24) = v24; v25 = *(_QWORD *)v53; *(_QWORD *)(v21 + 64) = 0LL; *(_QWORD *)(v21 + 40) = v25; *(_OWORD *)(v21 + 48) = 0LL; if ( v22 ) { v27 = v21; v26 = 0LL; } else { if ( v23 > 0x7FFFFFFFFFFFFFF8LL ) std::__throw_bad_alloc(); v26 = (char *)operator new(v23); v27 = *(_QWORD *)(a4 + 8); } *(_QWORD *)(v21 + 64) = &v26[v23]; *(__m128i *)(v21 + 48) = _mm_unpacklo_epi64((__m128i)(unsigned __int64)v26, (__m128i)(unsigned __int64)v26); v19 = *(void **)&v53[8]; v28 = *(_QWORD *)&v53[16] - *(_QWORD *)&v53[8]; if ( *(_QWORD *)&v53[16] != *(_QWORD *)&v53[8] ) v26 = (char *)memmove(v26, *(const void **)&v53[8], *(_QWORD *)&v53[16] - *(_QWORD *)&v53[8]); *(_QWORD *)(v21 + 56) = &v26[v28]; *(_QWORD *)(a4 + 8) = v27 + 72; goto LABEL_30; } sub_404A60(a4, *(_QWORD *)(a4 + 8), v50); } LABEL_29: v19 = *(void **)&v53[8]; LABEL_30: if ( v19 ) { ++v15; operator delete(v19); if ( v15 >= v41 ) return fclose(v6); } else if ( v41 <= ++v15 ) { return fclose(v6); } } if ( v36 >= 0.3 ) goto LABEL_29; LABEL_27: *(double *)v51.m128i_i64 = -*(double *)v51.m128i_i64; goto LABEL_28; } return fclose(v6); } Q:[sub_403A30,sub_404D50,sub_404790,sub_404900,sub_404A60,]
A:{'sub_403A30': 'ReadBundleFile', 'sub_404D50': 'allocator', 'sub_404790': '_M_realloc_insert', 'sub_404900': '_M_realloc_insert', 'sub_404A60': '_M_realloc_insert'}
3c26826d30953c6610a5cbaa1a21fa70e07051d67c07c54975320fb7cc8ea353_3c26826d30953c6610a5cbaa1a21fa70e07051d67c07c54975320fb7cc8ea353.jsonl.gz
sub_489F2F
Help user generate meaningful names for variables and functions in the following code snippet.
float __fastcall sub_489F2F(int a1) { float result; // xmm0_4 if ( a1 > 0 ) result = (float)(*(float *)(qword_4F2C40 + 5712) + *(float *)(qword_4F2C40 + 5712)) + (float)((float)((float)a1 * (float)(*(float *)(qword_4F2C40 + 6712) + *(float *)(qword_4F2C40 + 5780))) - *(float *)(qword_4F2C40 + 5780)); else result = 3.4028235e38; return result; } Q:[a1,sub_489F2F,]
A:{'a1': 'items_count', 'sub_489F2F': 'CalcMaxPopupHeightFromItemCount'}
13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664_13014c7dbeb1b5b81c6ead8a50723fc74238a7f46f41025f2efede32765f2664.jsonl.gz
sub_4105CE
Help user generate meaningful names for variables and functions in the following code snippet.
_BOOL8 __fastcall sub_4105CE(_BYTE *a1, _BYTE *a2) { while ( *a1 && *a2 && *a1 == *a2 ) { ++a1; ++a2; } return !*a2 && (!*a1 || *a1 == 44 || *a1 == 10); } Q:[a1,a2,sub_4105CE,]
A:{'a1': 'attr', 'a2': 'str', 'sub_4105CE': 'sysfs_attr_match'}
44e8aed08fe933b793e356a871e8f31cdd3a534e9dca1fb63610d519aee2b0ea_44e8aed08fe933b793e356a871e8f31cdd3a534e9dca1fb63610d519aee2b0ea.jsonl.gz
sub_456B08
Help user generate meaningful names for variables and functions in the following code snippet.
_QWORD *__fastcall sub_456B08(__int64 a1, __int64 a2) { _QWORD *v2; // r12 _QWORD *v3; // rbx _QWORD *result; // rax v2 = *(_QWORD **)sub_459592(a2); v3 = (_QWORD *)operator new(0x38uLL); sub_456ACC(v3, v2); result = (_QWORD *)sub_4520BC(a1); *result = v3; return result; } Q:[sub_456B08,sub_459592,sub_456ACC,sub_4520BC,]
A:{'sub_456B08': '_M_clone', 'sub_459592': 'allocator', 'sub_456ACC': 'lambda', 'sub_4520BC': 'allocator'}
bec0a07631308fe77b571886db09a49a5e4be678153bf53f83ebdf8e9d2865bb_bec0a07631308fe77b571886db09a49a5e4be678153bf53f83ebdf8e9d2865bb.jsonl.gz
sub_422F33
Help user generate meaningful names for variables and functions in the following code snippet.
void __noreturn sub_422F33(const char *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, ...) { gcc_va_list arg; // [rsp+18h] [rbp-C8h] BYREF __int64 v7; // [rsp+38h] [rbp-A8h] __int64 v8; // [rsp+40h] [rbp-A0h] __int64 v9; // [rsp+48h] [rbp-98h] __int64 v10; // [rsp+50h] [rbp-90h] __int64 v11; // [rsp+58h] [rbp-88h] va_start(arg, a6); v7 = a2; v8 = a3; v9 = a4; v10 = a5; v11 = a6; arg[0].gp_offset = 8; fwrite("Error: ", 1uLL, 7uLL, stderr); vfprintf(stderr, a1, arg); fputc(10, stderr); exit(1); } Q:[a1,arg,sub_422F33,]
A:{'a1': 'fmt', 'arg': 'ap', 'sub_422F33': 'fatal_error'}
692d89ba41b3c244a2a1c90c266c7cba1727366e863f15abd0dbeaffc3a4918e_692d89ba41b3c244a2a1c90c266c7cba1727366e863f15abd0dbeaffc3a4918e.jsonl.gz
sub_402296
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_402296(__int64 a1) { if ( !a1 || !*(_QWORD *)(*(_QWORD *)(a1 + 16) + 8LL) ) __assert_fail("db && db->db_data->buf", "db.c", 0x15Fu, "db_data_init"); **(_DWORD **)(*(_QWORD *)(a1 + 16) + 48LL) = 16964; *(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 48LL) + 4LL) = 2; *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 48LL) + 8LL) = 40LL; *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 16) + 48LL) + 16LL) = *(_QWORD *)(*(_QWORD *)(a1 + 16) + 16LL); return 1LL; } Q:[a1,sub_402296,]
A:{'a1': 'db', 'sub_402296': 'db_data_init'}
550a83c9ebf7fa8ab24317dd319bc684866cd0bff34166fceb39868d1f24e097_550a83c9ebf7fa8ab24317dd319bc684866cd0bff34166fceb39868d1f24e097.jsonl.gz
sub_17F2D
Help user generate meaningful names for variables and functions in the following code snippet.
void __fastcall __noreturn sub_17F2D(unsigned int a1, __int64 a2, __int64 *a3, __int64 a4, __int64 a5, __int64 a6) { __int64 v6; // rdx __int64 v7; // rcx __int64 v8; // r8 __int64 v9; // r9 int v10; // edx int v11; // ecx int v12; // er8 int v13; // er9 sub_14036("FATAL: Unhandled Trap %d (%s), error code=0x%lx\n", a1, a2, a4, a5, a6, a4); sub_14036("Regs address %p\n", (__int64)a3, v6, v7, v8, v9); sub_17DC4(a3); sub_91D2((__int64)a3, (int)a3, v10, v11, v12, v13); } Q:[a3,a4,a1,a2,v6,v11,sub_17F2D,sub_14036,sub_17DC4,sub_91D2,]
A:{'a3': 'regs', 'a4': 'error_code', 'a1': 'trapnr', 'a2': 'str', 'v6': 'regs', 'v11': 'error_code', 'sub_17F2D': 'do_trap', 'sub_14036': 'printk', 'sub_17DC4': 'dump_regs', 'sub_91D2': 'do_exit'}
3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33_3ab645463ad13ea30c238ceac9bf56691ea8cada0b7c92413fecc09c2d081d33.jsonl.gz
sub_445D60
Help user generate meaningful names for variables and functions in the following code snippet.
int __fastcall sub_445D60(char *filename, struct stat *stat_buf) { return __lxstat(1, filename, stat_buf); } Q:[sub_445D60,]
A:{'sub_445D60': 'lstat'}
d20d5d136ed82a5a36fdeedd4c3a30a62ee46f8e0365a7e4e8f0c462411d4a2f_d20d5d136ed82a5a36fdeedd4c3a30a62ee46f8e0365a7e4e8f0c462411d4a2f.jsonl.gz
sub_438EC0
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_438EC0(__int64 a1, __int64 a2, __int64 a3, int a4, int a5) { float v5; // xmm1_4 __int64 result; // rax float v7; // xmm1_4 float v8; // xmm1_4 __int64 *v9; // rax _QWORD *v10; // rax _QWORD *v11; // rcx __int64 v12; // rdx _QWORD *v13; // rcx float v14; // xmm1_4 __int64 v18; // [rsp+20h] [rbp-C0h] __int64 v19; // [rsp+28h] [rbp-B8h] double v20; // [rsp+34h] [rbp-ACh] float v21; // [rsp+3Ch] [rbp-A4h] double v22; // [rsp+40h] [rbp-A0h] float v23; // [rsp+48h] [rbp-98h] double v24; // [rsp+4Ch] [rbp-94h] float v25; // [rsp+54h] [rbp-8Ch] double v26; // [rsp+58h] [rbp-88h] float v27; // [rsp+60h] [rbp-80h] double v28; // [rsp+64h] [rbp-7Ch] float v29; // [rsp+6Ch] [rbp-74h] double v30; // [rsp+70h] [rbp-70h] float v31; // [rsp+78h] [rbp-68h] float v32; // [rsp+7Ch] [rbp-64h] float v33; // [rsp+80h] [rbp-60h] float v34; // [rsp+84h] [rbp-5Ch] float v35; // [rsp+88h] [rbp-58h] float v36; // [rsp+8Ch] [rbp-54h] float v37; // [rsp+90h] [rbp-50h] unsigned int v38; // [rsp+94h] [rbp-4Ch] int v39; // [rsp+98h] [rbp-48h] unsigned int v40; // [rsp+9Ch] [rbp-44h] int v41; // [rsp+A0h] [rbp-40h] _BOOL4 v42; // [rsp+A4h] [rbp-3Ch] float v43; // [rsp+A8h] [rbp-38h] float v44; // [rsp+ACh] [rbp-34h] float v45; // [rsp+B0h] [rbp-30h] float v46; // [rsp+B4h] [rbp-2Ch] _BOOL4 v47; // [rsp+B8h] [rbp-28h] _BOOL4 v48; // [rsp+BCh] [rbp-24h] int v49; // [rsp+C0h] [rbp-20h] int v50; // [rsp+C4h] [rbp-1Ch] int v51; // [rsp+C8h] [rbp-18h] int v52; // [rsp+CCh] [rbp-14h] int v53; // [rsp+D0h] [rbp-10h] int v54; // [rsp+D4h] [rbp-Ch] int j; // [rsp+D8h] [rbp-8h] int i; // [rsp+DCh] [rbp-4h] j = 0; v54 = 0; v46 = 0.0; v45 = 0.0; v44 = 0.0; v43 = 0.0; for ( i = 0; i <= 2; ++i ) { *(&v35 + i) = *(float *)(a2 + 16LL * a4 + 4LL * i); *(&v32 + i) = *(&v35 + i); } for ( j = a4 + 1; j <= a5; ++j ) { for ( i = 0; i <= 2; ++i ) { if ( *(&v35 + i) <= *(float *)(a2 + 16LL * j + 4LL * i) ) { if ( *(float *)(a2 + 16LL * j + 4LL * i) > *(&v32 + i) ) *(&v32 + i) = *(float *)(a2 + 16LL * j + 4LL * i); } else { *(&v35 + i) = *(float *)(a2 + 16LL * j + 4LL * i); } } } v46 = v32 - v35; v45 = v33 - v36; v44 = v34 - v37; v54 = 0; if ( (float)(v33 - v36) <= (float)(v32 - v35) || v45 <= v44 ) { if ( v44 > v46 ) v54 = 2; } else { v54 = 1; } v43 = 0.5 * (float)(*(&v32 + v54) + *(&v35 + v54)); v5 = *(&v32 + v54); if ( v43 < v5 && *(&v35 + v54) < v43 ) { v50 = a4; v49 = a5; if ( a5 - a4 <= 0 ) __assert_fail("(iR_in-iL_in)>0", "mikktspace.c", 0x280u, "MergeVertsFast"); while ( v50 < v49 ) { v48 = 0; v47 = 0; while ( !v48 && v50 < v49 ) { if ( v50 < a4 || v50 > a5 ) __assert_fail("iL>=iL_in && iL<=iR_in", "mikktspace.c", 0x288u, "MergeVertsFast"); v7 = *(float *)(a2 + 16LL * v50 + 4LL * v54); v48 = v43 <= v7; if ( v43 > v7 ) ++v50; } while ( !v47 && v50 < v49 ) { if ( v49 < a4 || v49 > a5 ) __assert_fail("iR>=iL_in && iR<=iR_in", "mikktspace.c", 0x28Eu, "MergeVertsFast"); v8 = *(float *)(a2 + 16LL * v49 + 4LL * v54); v47 = v43 > v8; if ( v43 <= v8 ) --v49; } if ( v50 >= v49 && v48 && v47 ) __assert_fail("(iL<iR) || !(bReadyLeftSwap && bReadyRightSwap)", "mikktspace.c", 0x292u, "MergeVertsFast"); if ( v48 && v47 ) { v9 = (__int64 *)(16LL * v50 + a2); v18 = *v9; v19 = v9[1]; if ( v50 >= v49 ) __assert_fail("iL<iR", "mikktspace.c", 0x297u, "MergeVertsFast"); v10 = (_QWORD *)(16LL * v49 + a2); v11 = (_QWORD *)(a2 + 16LL * v50); v12 = v10[1]; *v11 = *v10; v11[1] = v12; v13 = (_QWORD *)(16LL * v49 + a2); *v13 = v18; v13[1] = v19; ++v50; --v49; } } if ( v50 != v49 + 1 && v50 != v49 ) __assert_fail("iL==(iR+1) || (iL==iR)", "mikktspace.c", 0x29Eu, "MergeVertsFast"); if ( v50 == v49 ) { v14 = *(float *)(a2 + 16LL * v49 + 4LL * v54); v42 = v43 > v14; if ( v43 <= v14 ) --v49; else ++v50; } if ( a4 < v49 ) sub_438EC0(a1, a2, a3, (unsigned int)a4, (unsigned int)v49); result = (unsigned int)v50; if ( v50 < a5 ) result = sub_438EC0(a1, a2, a3, (unsigned int)v50, (unsigned int)a5); } else { for ( j = a4; ; ++j ) { result = (unsigned int)j; if ( j > a5 ) break; v41 = *(_DWORD *)(16LL * j + a2 + 12); v40 = *(_DWORD *)(4LL * v41 + a1); v30 = sub_43A5AC(a3, v40); v31 = v5; v28 = sub_43A62F(a3, v40); v29 = v5; v26 = sub_43A6B2(a3, v40); v27 = v5; v53 = 1; v52 = a4; v51 = -1; while ( v52 < j && v53 ) { v39 = *(_DWORD *)(16LL * v52 + a2 + 12); v38 = *(_DWORD *)(4LL * v39 + a1); v24 = sub_43A5AC(a3, v38); v25 = v5; v22 = sub_43A62F(a3, v38); v23 = v5; v20 = sub_43A6B2(a3, v38); v21 = v5; v51 = v39; v5 = *(float *)&v24; if ( *(float *)&v30 != *(float *)&v24 ) goto LABEL_33; v5 = *((float *)&v24 + 1); if ( *((float *)&v30 + 1) != *((float *)&v24 + 1) ) goto LABEL_33; v5 = v25; if ( v31 == v25 && (v5 = *(float *)&v22, *(float *)&v28 == *(float *)&v22) && (v5 = *((float *)&v22 + 1), *((float *)&v28 + 1) == *((float *)&v22 + 1)) && (v5 = v23, v29 == v23) && (v5 = *(float *)&v20, *(float *)&v26 == *(float *)&v20) && (v5 = *((float *)&v20 + 1), *((float *)&v26 + 1) == *((float *)&v20 + 1)) && (v5 = v21, v27 == v21) ) { v53 = 0; } else { LABEL_33: ++v52; } } if ( !v53 ) *(_DWORD *)(4LL * v41 + a1) = *(_DWORD *)(4LL * v51 + a1); } } return result; } Q:[a3,a4,a1,a2,a5,v18,v19,v22,v24,v26,v28,v30,v32,v35,v38,v39,v40,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v52,v53,v54,j,i,sub_438EC0,sub_43A5AC,sub_43A62F,sub_43A6B2,]
A:{'a3': 'pContext', 'a4': 'iL_in', 'a1': 'piTriList_in_and_out', 'a2': 'pTmpVert', 'a5': 'iR_in', 'v18': 'sTmp', 'v19': 'sTmp_8', 'v22': 'vN2', 'v24': 'vP2', 'v26': 'vT', 'v28': 'vN', 'v30': 'vP', 'v32': 'fvMax', 'v35': 'fvMin', 'v38': 'index2', 'v39': 'i2', 'v40': 'index', 'v42': 'bReadyRightSwap_0', 'v43': 'fSep', 'v44': 'dz', 'v45': 'dy', 'v46': 'dx_0', 'v47': 'bReadyRightSwap', 'v48': 'bReadyLeftSwap', 'v49': 'iR', 'v50': 'iL', 'v51': 'i2rec', 'v52': 'l2', 'v53': 'bNotFound', 'v54': 'channel', 'j': 'l', 'i': 'c', 'sub_438EC0': 'MergeVertsFast', 'sub_43A5AC': 'GetPosition', 'sub_43A62F': 'GetNormal', 'sub_43A6B2': 'GetTexCoord'}
adf8f3f32558035a43de6a2794e05c617fd356387dc6999991cbc942fd311076_adf8f3f32558035a43de6a2794e05c617fd356387dc6999991cbc942fd311076.jsonl.gz
sub_405191
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_405191(const char *a1) { char v1; // al char *s; // [rsp+8h] [rbp-28h] __int64 v4; // [rsp+18h] [rbp-18h] size_t i; // [rsp+20h] [rbp-10h] size_t v6; // [rsp+28h] [rbp-8h] s = (char *)a1; v6 = strlen(a1); if ( *a1 == 76 ) { v6 -= 2LL; s = (char *)(a1 + 1); } v4 = sub_40A5B4(v6 + 1); for ( i = 0LL; i < v6; ++i ) { if ( s[i] == 47 ) v1 = 46; else v1 = s[i]; *(_BYTE *)(v4 + i) = v1; } *(_BYTE *)(v4 + v6) = 0; return v4; } Q:[a1,s,v4,v6,sub_405191,sub_40A5B4,]
A:{'a1': 'str', 's': 'stra', 'v4': 'newStr', 'v6': 'len', 'sub_405191': 'dex_descriptorClassToDotLong', 'sub_40A5B4': 'utils_calloc'}
a929bcff2f328ae24d8d2f5cdc89b316cc93d0a4677dc4ebb21b9d7cd4df04a4_a929bcff2f328ae24d8d2f5cdc89b316cc93d0a4677dc4ebb21b9d7cd4df04a4.jsonl.gz
sub_475E10
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_475E10(__int64 a1) { return a1 + 24; } Q:[sub_475E10,]
A:{'sub_475E10': '_M_leftmost'}
4c203109843f8da4148d01ce8f9e54fd81ce3fc82864f2211a1aaeb59256f803_4c203109843f8da4148d01ce8f9e54fd81ce3fc82864f2211a1aaeb59256f803.jsonl.gz
sub_47D146
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_47D146(__int64 a1, __int64 a2, unsigned int a3) { __int64 result; // rax result = a1; *(_QWORD *)(a1 + 8 * (a3 + 6LL) + 8) = a2; return result; } Q:[a3,a1,a2,sub_47D146,]
A:{'a3': 'order', 'a1': 'pGrid', 'a2': '_ULONG', 'sub_47D146': 'Set_ULONG'}
dade8a50f9553a2c8d312f40f9e938d800aaeceed2d235843ec2760ee3f4ab45_dade8a50f9553a2c8d312f40f9e938d800aaeceed2d235843ec2760ee3f4ab45.jsonl.gz
sub_413D54
Help user generate meaningful names for variables and functions in the following code snippet.
int *__fastcall sub_413D54(int *a1, __int64 a2, __int64 a3) { return sub_413994(a1, a2, a3, 2); } Q:[a3,a1,a2,sub_413D54,sub_413994,]
A:{'a3': 'cnt', 'a1': 'r', 'a2': 'u', 'sub_413D54': 'mpz_tdiv_r_2exp', 'sub_413994': 'mpz_div_r_2exp'}
d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf_d684d0e103b0580db997ecc931a42fce8955cefc27bedc1ac56a24d435bd8eaf.jsonl.gz
sub_4093E6
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4093E6(int a1, int a2, int a3, int a4, int a5, int a6) { tcflag_t v6; // eax cc_t v7; // al tcflag_t v9; // eax tcflag_t v10; // eax int v11; // eax sub_40B9F7((unsigned int)"Setting iode:%d", a2, a3, a4, a5, a6); if ( a2 == 3 ) { LABEL_15: if ( !dword_4152A8 ) { dword_4152A8 = 1; tcgetattr(a1, &termios_p); } stru_415260 = termios_p; stru_415260.c_iflag = 1; if ( a2 == 3 ) { v9 = stru_415260.c_iflag; BYTE1(v9) = BYTE1(stru_415260.c_iflag) | 0x10; stru_415260.c_iflag = v9; } stru_415260.c_lflag &= 0xFFFFFFF4; stru_415260.c_oflag = 0; v10 = stru_415260.c_cflag; BYTE1(v10) = BYTE1(stru_415260.c_cflag) & 0xFE; stru_415260.c_cflag = v10 & 0xFFFFFFCF | 0x30; if ( dword_415204 ) stru_415260.c_cflag |= 0x40u; stru_415260.c_cc[6] = 1; stru_415260.c_cc[5] = 1; tcsetattr(a1, 1, &stru_415260); v11 = cfgetospeed(&stru_415260); dword_412D40 = sub_4092C5(v11); return 0LL; } if ( a2 > 3 ) return 0xFFFFFFFFLL; if ( a2 != 2 ) { if ( !a2 ) { if ( !dword_4152A8 ) return 0xFFFFFFFFLL; tcdrain(a1); tcflush(a1, 2); tcsetattr(a1, 1, &termios_p); tcflow(a1, 1); return 0LL; } if ( a2 != 1 ) return 0xFFFFFFFFLL; goto LABEL_15; } if ( !dword_4152A8 ) { dword_4152A8 = 1; tcgetattr(a1, &termios_p); } *(_QWORD *)&stru_415260.c_cflag = *(_QWORD *)&termios_p.c_cflag; *(_QWORD *)&stru_415260.c_line = *(_QWORD *)&termios_p.c_line; *(_QWORD *)&stru_415260.c_cc[7] = *(_QWORD *)&termios_p.c_cc[7]; *(_QWORD *)&stru_415260.c_cc[15] = *(_QWORD *)&termios_p.c_cc[15]; *(_QWORD *)&stru_415260.c_cc[23] = *(_QWORD *)&termios_p.c_cc[23]; *(_QWORD *)&stru_415260.c_cc[31] = *(_QWORD *)&termios_p.c_cc[31]; stru_415260.c_ospeed = termios_p.c_ospeed; stru_415260.c_iflag = 1026; stru_415260.c_oflag = 0; v6 = termios_p.c_cflag; BYTE1(v6) = BYTE1(termios_p.c_cflag) & 0xFE; stru_415260.c_cflag = v6 | 0x30; if ( dword_415204 ) stru_415260.c_cflag |= 0x40u; stru_415260.c_lflag = dword_412FF4 != 2; if ( dword_412FF4 == 2 ) v7 = -1; else v7 = 24; stru_415260.c_cc[0] = v7; stru_415260.c_cc[1] = 0; stru_415260.c_cc[6] = 1; stru_415260.c_cc[5] = 1; tcsetattr(a1, 1, &stru_415260); return 0LL; } Q:[a1,a2,sub_4093E6,sub_40B9F7,sub_4092C5,]
A:{'a1': 'fd', 'a2': 'n', 'sub_4093E6': 'io_mode', 'sub_40B9F7': 'vfile', 'sub_4092C5': 'getspeed'}
6af26558cddde616b5fd77d18a0ec6a535c83f207409701e5ddb3d6689a8f100_6af26558cddde616b5fd77d18a0ec6a535c83f207409701e5ddb3d6689a8f100.jsonl.gz
sub_4143C0
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 **__fastcall sub_4143C0(__int64 **a1, _QWORD *a2) { std::domain_error *v2; // rbp __int64 v3; // rax _BYTE *v4; // rbp _QWORD *v6; // rax __int64 v7; // rax __int64 *v8; // rdi size_t v9; // rdx __int64 v10; // r8 __int64 (__fastcall *v11)(__int64, unsigned int); // rax int v12; // eax _BYTE *v13; // r12 void *v14; // rdi __int64 v15; // rcx int v16; // esi int v17; // eax _BYTE *v18; // rbp _QWORD *v19; // rax __int64 v20; // rax __int64 *v21; // rdi size_t v22; // rdx __int64 v23; // rsi _BYTE *v24; // rsi __int64 v25; // rax __int64 (__fastcall *v26)(__int64, unsigned int); // rax __int64 (__fastcall *v27)(__int64, unsigned int); // rax __int64 v28; // rax int v29; // er15 int v30; // er12 _BYTE *v31; // rbx __int64 *v32; // rdi size_t v33; // rdx __int64 v34; // rsi int i; // eax int v36; // esi char v37; // dl size_t v38; // rsi unsigned __int64 v39; // rsi int v40; // esi _BYTE *v41; // rbp void **v42; // rdi size_t v43; // rdx void *v44; // rsi bool v45; // bl char *v46; // rbp bool v47; // zf bool v48; // sf unsigned __int64 v49; // rbx char *v50; // rcx size_t v51; // rbx char *v52; // rcx unsigned __int64 v53; // rbx char *v54; // rcx void *v55; // r12 __int64 v56; // rbx int v57; // eax __int64 *v58; // r12 __int64 v59; // rbx void **v60; // rbp char *v61; // rbx char *v62; // rbp void *v63; // rdi __int64 (__fastcall *v65)(__int64, unsigned int); // rax __int64 (__fastcall *v66)(__int64, unsigned int); // rax int v67; // [rsp+8h] [rbp-328h] int v69; // [rsp+28h] [rbp-308h] int v70; // [rsp+2Ch] [rbp-304h] int v71; // [rsp+30h] [rbp-300h] int v72; // [rsp+34h] [rbp-2FCh] void *v73; // [rsp+38h] [rbp-2F8h] BYREF char *v74; // [rsp+40h] [rbp-2F0h] char *v75; // [rsp+48h] [rbp-2E8h] void *v76; // [rsp+58h] [rbp-2D8h] BYREF __int64 v77; // [rsp+60h] [rbp-2D0h] __int64 v78; // [rsp+68h] [rbp-2C8h] void *v79; // [rsp+78h] [rbp-2B8h] BYREF size_t v80; // [rsp+80h] [rbp-2B0h] __int64 v81[2]; // [rsp+88h] [rbp-2A8h] BYREF void *v82; // [rsp+98h] [rbp-298h] BYREF size_t v83; // [rsp+A0h] [rbp-290h] __int64 v84[2]; // [rsp+A8h] [rbp-288h] BYREF void *v85; // [rsp+B8h] [rbp-278h] BYREF size_t v86; // [rsp+C0h] [rbp-270h] __int64 v87[2]; // [rsp+C8h] [rbp-268h] BYREF void *dest; // [rsp+D8h] [rbp-258h] BYREF size_t v89; // [rsp+E0h] [rbp-250h] __int64 v90[2]; // [rsp+E8h] [rbp-248h] BYREF void *v91[2]; // [rsp+F8h] [rbp-238h] BYREF char v92[16]; // [rsp+108h] [rbp-228h] BYREF __int128 v93; // [rsp+118h] [rbp-218h] __int64 v94; // [rsp+128h] [rbp-208h] void *v95; // [rsp+138h] [rbp-1F8h] BYREF size_t n; // [rsp+140h] [rbp-1F0h] __int64 src; // [rsp+148h] [rbp-1E8h] BYREF void *v98; // [rsp+150h] [rbp-1E0h] BYREF _BYTE *v99; // [rsp+158h] [rbp-1D8h] _BYTE *v100; // [rsp+160h] [rbp-1D0h] __int64 v101; // [rsp+168h] [rbp-1C8h] void *v102; // [rsp+178h] [rbp-1B8h] BYREF size_t v103; // [rsp+180h] [rbp-1B0h] void *v104; // [rsp+188h] [rbp-1A8h] BYREF __int64 v105; // [rsp+190h] [rbp-1A0h] __int64 v106; // [rsp+198h] [rbp-198h] __int64 v107; // [rsp+1A0h] [rbp-190h] __int64 v108; // [rsp+1A8h] [rbp-188h] __int64 v109; // [rsp+1B0h] [rbp-180h] __int64 v110; // [rsp+1B8h] [rbp-178h] char v111[8]; // [rsp+1C0h] [rbp-170h] BYREF int v112; // [rsp+1C8h] [rbp-168h] void *v113[2]; // [rsp+1D0h] [rbp-160h] BYREF char v114[16]; // [rsp+1E0h] [rbp-150h] BYREF __int64 v115[27]; // [rsp+1F0h] [rbp-140h] BYREF __int64 v116; // [rsp+2C8h] [rbp-68h] __int16 v117; // [rsp+2D0h] [rbp-60h] __int64 v118; // [rsp+2D8h] [rbp-58h] __int64 v119; // [rsp+2E0h] [rbp-50h] __int64 v120; // [rsp+2E8h] [rbp-48h] __int64 v121; // [rsp+2F0h] [rbp-40h] v92[0] = 0; v91[0] = v92; v85 = v87; v3 = *a2; v94 = 0LL; v91[1] = 0LL; v86 = 0LL; LOBYTE(v87[0]) = 0; v93 = 0LL; v4 = *(_BYTE **)((char *)a2 + *(_QWORD *)(v3 - 24) + 240); v73 = 0LL; v74 = 0LL; v75 = 0LL; v76 = 0LL; v77 = 0LL; v78 = 0LL; if ( !v4 ) LABEL_181: std::__throw_bad_cast(); while ( 1 ) { if ( !v4[56] ) { std::ctype<char>::_M_widen_init(); v11 = *(__int64 (__fastcall **)(__int64, unsigned int))(*(_QWORD *)v4 + 48LL); if ( v11 != std::ctype<char>::do_widen ) ((void (__fastcall *)(_BYTE *, __int64, __int64))v11)(v4, 10LL, 10LL); } v6 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(); if ( (*((_BYTE *)v6 + *(_QWORD *)(*v6 - 24LL) + 32) & 5) != 0 ) break; std::ios_base::ios_base((std::ios_base *)v115); v117 = 0; v102 = (void *)qword_43AAF8; v7 = *(_QWORD *)(qword_43AAF8 - 24); v115[0] = (__int64)&unk_43A970; v116 = 0LL; v118 = 0LL; v119 = 0LL; v120 = 0LL; v121 = 0LL; *(void **)((char *)&v102 + v7) = (void *)qword_43AB00; v103 = 0LL; std::ios::init(); v102 = &unk_43A9A0; v115[0] = (__int64)&unk_43A9C8; v104 = &unk_43AA08; v105 = 0LL; v106 = 0LL; v107 = 0LL; v108 = 0LL; v109 = 0LL; v110 = 0LL; std::locale::locale((std::locale *)v111); v113[0] = v114; v104 = &unk_43AD08; v112 = 0; sub_414320((__int64 *)v113, v85, (__int64)v85 + v86); v112 = 8; std::__cxx11::basic_stringbuf<char,std::char_traits<char>,std::allocator<char>>::_M_sync(); std::ios::init(); v89 = 0LL; dest = v90; LOBYTE(v90[0]) = 0; std::operator>><char>(); sub_414240(&v95, (char **)&dest); v8 = (__int64 *)dest; v9 = n; if ( v95 == &src ) { if ( n ) { if ( n == 1 ) *(_BYTE *)dest = src; else memcpy(dest, &src, n); v9 = n; v8 = (__int64 *)dest; } v89 = v9; *((_BYTE *)v8 + v9) = 0; v8 = (__int64 *)v95; } else { if ( dest == v90 ) { dest = v95; v89 = n; v90[0] = src; } else { v10 = v90[0]; dest = v95; v89 = n; v90[0] = src; if ( v8 ) { v95 = v8; src = v10; goto LABEL_8; } } v95 = &src; v8 = &src; } LABEL_8: n = 0LL; *(_BYTE *)v8 = 0; if ( v95 != &src ) operator delete(v95); if ( (unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { if ( (unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { if ( !(unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { if ( dest != v90 ) operator delete(dest); v102 = &unk_43A9A0; v115[0] = (__int64)&unk_43A9C8; v104 = &unk_43AD08; if ( v113[0] != v114 ) operator delete(v113[0]); v104 = &unk_43AA08; std::locale::~locale((std::locale *)v111); v102 = (void *)qword_43AAF8; *(void **)((char *)&v102 + *(_QWORD *)(qword_43AAF8 - 24)) = (void *)qword_43AB00; v103 = 0LL; v115[0] = (__int64)&unk_43A970; std::ios_base::~ios_base((std::ios_base *)v115); break; } } else { std::istream::operator>>(); std::istream::operator>>(); std::istream::operator>>(); std::istream::operator>>(); DWORD2(v93) = -(int)v82; HIDWORD(v93) = DWORD1(v93) + (_DWORD)v95; } } else { while ( 1 ) { v12 = std::istream::peek((std::istream *)&v102); if ( !isspace(v12) ) break; std::istream::get((std::istream *)&v102); } v13 = *(_BYTE **)((char *)&v115[15] + *((_QWORD *)v102 - 3)); if ( !v13 ) std::__throw_bad_cast(); if ( !v13[56] ) { std::ctype<char>::_M_widen_init(); v27 = *(__int64 (__fastcall **)(__int64, unsigned int))(*(_QWORD *)v13 + 48LL); if ( v27 != std::ctype<char>::do_widen ) ((void (__fastcall *)(_BYTE *, __int64, __int64))v27)(v13, 10LL, 10LL); } std::getline<char,std::char_traits<char>,std::allocator<char>>(); } if ( dest != v90 ) operator delete(dest); v102 = &unk_43A9A0; v115[0] = (__int64)&unk_43A9C8; v104 = &unk_43AD08; if ( v113[0] != v114 ) operator delete(v113[0]); v104 = &unk_43AA08; std::locale::~locale((std::locale *)v111); v102 = (void *)qword_43AAF8; *(void **)((char *)&v102 + *(_QWORD *)(qword_43AAF8 - 24)) = (void *)qword_43AB00; v103 = 0LL; v115[0] = (__int64)&unk_43A970; std::ios_base::~ios_base((std::ios_base *)v115); v4 = *(_BYTE **)((char *)a2 + *(_QWORD *)(*a2 - 24LL) + 240); if ( !v4 ) goto LABEL_181; } v14 = v85; if ( v85 == v87 ) goto LABEL_39; LABEL_38: operator delete(v14); LABEL_39: v15 = *a2; if ( (*((_BYTE *)a2 + *(_QWORD *)(*a2 - 24LL) + 32) & 5) == 0 ) { while ( 1 ) { v16 = v93; v17 = DWORD1(v93); v101 = 0LL; v95 = 0LL; n = 0LL; src = 0LL; v98 = 0LL; v99 = 0LL; LOBYTE(v102) = 0; v100 = 0LL; if ( DWORD1(v93) * (_DWORD)v93 ) { sub_415A40(&v95, 0LL, DWORD1(v93) * (int)v93, &v102); v16 = v93; v17 = DWORD1(v93); v15 = *a2; } v70 = v17; LOBYTE(v81[0]) = 0; v69 = v16; v71 = -DWORD2(v93); LOBYTE(v84[0]) = 0; v80 = 0LL; v79 = v81; v82 = v84; v83 = 0LL; v72 = HIDWORD(v93) - v17; v18 = *(_BYTE **)((char *)a2 + *(_QWORD *)(v15 - 24) + 240); if ( !v18 ) LABEL_179: std::__throw_bad_cast(); while ( 1 ) { if ( !v18[56] ) { std::ctype<char>::_M_widen_init(); v26 = *(__int64 (__fastcall **)(__int64, unsigned int))(*(_QWORD *)v18 + 48LL); if ( v26 != std::ctype<char>::do_widen ) ((void (__fastcall *)(_BYTE *, __int64, __int64))v26)(v18, 10LL, 10LL); } v19 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(); if ( (*((_BYTE *)v19 + *(_QWORD *)(*v19 - 24LL) + 32) & 5) != 0 ) break; std::ios_base::ios_base((std::ios_base *)v115); v117 = 0; v20 = *(_QWORD *)(qword_43AAF8 - 24); v115[0] = (__int64)&unk_43A970; v116 = 0LL; v118 = 0LL; v119 = 0LL; v120 = 0LL; v121 = 0LL; v102 = (void *)qword_43AAF8; *(void **)((char *)&v102 + v20) = (void *)qword_43AB00; v103 = 0LL; std::ios::init(); v102 = &unk_43A9A0; v115[0] = (__int64)&unk_43A9C8; v104 = &unk_43AA08; v105 = 0LL; v106 = 0LL; v107 = 0LL; v108 = 0LL; v109 = 0LL; v110 = 0LL; std::locale::locale((std::locale *)v111); v113[0] = v114; v104 = &unk_43AD08; v112 = 0; sub_414320((__int64 *)v113, v79, (__int64)v79 + v80); v112 = 8; std::__cxx11::basic_stringbuf<char,std::char_traits<char>,std::allocator<char>>::_M_sync(); std::ios::init(); std::operator>><char>(); sub_414240(&v85, (char **)&v82); v21 = (__int64 *)v82; v22 = v86; if ( v85 == v87 ) { if ( v86 ) { if ( v86 == 1 ) *(_BYTE *)v82 = v87[0]; else memcpy(v82, v87, v86); v22 = v86; v21 = (__int64 *)v82; } v83 = v22; *((_BYTE *)v21 + v22) = 0; v21 = (__int64 *)v85; } else { if ( v82 == v84 ) { v82 = v85; v83 = v86; v84[0] = v87[0]; } else { v23 = v84[0]; v82 = v85; v83 = v86; v84[0] = v87[0]; if ( v21 ) { v85 = v21; v87[0] = v23; goto LABEL_49; } } v85 = v87; v21 = v87; } LABEL_49: v86 = 0LL; *(_BYTE *)v21 = 0; if ( v85 != v87 ) operator delete(v85); if ( (unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { if ( (unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { if ( (unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { if ( !(unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { v102 = &unk_43A9A0; v115[0] = (__int64)&unk_43A9C8; v104 = &unk_43AD08; if ( v113[0] != v114 ) operator delete(v113[0]); v104 = &unk_43AA08; std::locale::~locale((std::locale *)v111); v28 = *(_QWORD *)(qword_43AAF8 - 24); v102 = (void *)qword_43AAF8; *(void **)((char *)&v102 + v28) = (void *)qword_43AB00; v103 = 0LL; v115[0] = (__int64)&unk_43A970; std::ios_base::~ios_base((std::ios_base *)v115); break; } } else { std::istream::operator>>(); std::istream::operator>>(); std::istream::operator>>(); std::istream::operator>>(); } } else { std::istream::operator>>(); } } else { std::istream::operator>>(); if ( v99 == v100 ) { sub_412750((__int64)&v98, v99, &dest); } else { v24 = v99 + 4; *(_DWORD *)v99 = (_DWORD)dest; v99 = v24; } } v102 = &unk_43A9A0; v115[0] = (__int64)&unk_43A9C8; v104 = &unk_43AD08; if ( v113[0] != v114 ) operator delete(v113[0]); v104 = &unk_43AA08; std::locale::~locale((std::locale *)v111); v25 = *(_QWORD *)(qword_43AAF8 - 24); v102 = (void *)qword_43AAF8; *(void **)((char *)&v102 + v25) = (void *)qword_43AB00; v103 = 0LL; v115[0] = (__int64)&unk_43A970; std::ios_base::~ios_base((std::ios_base *)v115); v18 = *(_BYTE **)((char *)a2 + *(_QWORD *)(*a2 - 24LL) + 240); if ( !v18 ) goto LABEL_179; } if ( (unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() ) { v45 = 0; goto LABEL_108; } v29 = 0; v30 = DWORD2(v93) + v71; v67 = HIDWORD(v93) - v72 - v70; if ( v70 > 0 ) { while ( 1 ) { v31 = *(_BYTE **)((char *)a2 + *(_QWORD *)(*a2 - 24LL) + 240); if ( !v31 ) std::__throw_bad_cast(); if ( !v31[56] ) { std::ctype<char>::_M_widen_init(); v65 = *(__int64 (__fastcall **)(__int64, unsigned int))(*(_QWORD *)v31 + 48LL); if ( v65 != std::ctype<char>::do_widen ) ((void (__fastcall *)(_BYTE *, __int64, __int64))v65)(v31, 10LL, 10LL); } std::getline<char,std::char_traits<char>,std::allocator<char>>(); sub_414240(&dest, (char **)&v79); v32 = (__int64 *)v79; v33 = v89; if ( dest == v90 ) { if ( v89 ) { if ( v89 == 1 ) *(_BYTE *)v79 = v90[0]; else memcpy(v79, v90, v89); v33 = v89; v32 = (__int64 *)v79; } v80 = v33; *((_BYTE *)v32 + v33) = 0; v32 = (__int64 *)dest; goto LABEL_87; } if ( v79 == v81 ) break; v34 = v81[0]; v79 = dest; v80 = v89; v81[0] = v90[0]; if ( !v32 ) goto LABEL_157; dest = v32; v90[0] = v34; LABEL_87: v89 = 0LL; *(_BYTE *)v32 = 0; if ( dest != v90 ) operator delete(dest); for ( i = 0; v69 > i; ++i ) { v39 = i >> 2; if ( v39 >= v80 ) std::__throw_out_of_range_fmt("basic_string::at: __n (which is %zu) >= this->size() (which is %zu)"); v40 = *((char *)v79 + v39); if ( (unsigned __int8)(v40 - 48) <= 9u ) { v36 = v40 - 48; } else { if ( (unsigned __int8)(v40 - 65) > 5u ) { v2 = (std::domain_error *)__cxa_allocate_exception(0x10uLL); std::domain_error::domain_error(v2, "Hex digit not in range"); __cxa_throw(v2, (struct type_info *)&`typeinfo for'std::domain_error, std::domain_error::~domain_error); } v36 = v40 - 55; } v37 = (v36 & (8 >> (i & 3))) != 0 ? 0xF : 0; v38 = i + v30 + (v29 + v67) * (int)v93; if ( v38 >= n - (unsigned __int64)v95 ) std::__throw_out_of_range_fmt("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)"); *((_BYTE *)v95 + v38) = v37; } if ( v70 <= ++v29 ) goto LABEL_99; } v79 = dest; v80 = v89; v81[0] = v90[0]; LABEL_157: dest = v90; v32 = v90; goto LABEL_87; } LABEL_99: v41 = *(_BYTE **)((char *)a2 + *(_QWORD *)(*a2 - 24LL) + 240); if ( !v41 ) std::__throw_bad_cast(); if ( !v41[56] ) { std::ctype<char>::_M_widen_init(); v66 = *(__int64 (__fastcall **)(__int64, unsigned int))(*(_QWORD *)v41 + 48LL); if ( v66 != std::ctype<char>::do_widen ) ((void (__fastcall *)(_BYTE *, __int64, __int64))v66)(v41, 10LL, 10LL); } std::getline<char,std::char_traits<char>,std::allocator<char>>(); sub_414240(&v102, (char **)&v79); v42 = (void **)v79; v43 = v103; if ( v102 == &v104 ) { if ( v103 ) { if ( v103 == 1 ) *(_BYTE *)v79 = (_BYTE)v104; else memcpy(v79, &v104, v103); v43 = v103; v42 = (void **)v79; } v80 = v43; *((_BYTE *)v42 + v43) = 0; v42 = (void **)v102; goto LABEL_105; } if ( v79 == v81 ) break; v44 = (void *)v81[0]; v79 = v102; v80 = v103; v81[0] = (__int64)v104; if ( !v42 ) goto LABEL_173; v102 = v42; v104 = v44; LABEL_105: v103 = 0LL; *(_BYTE *)v42 = 0; if ( v102 != &v104 ) operator delete(v102); v45 = (unsigned int)std::__cxx11::basic_string<char,std::char_traits<char>,std::allocator<char>>::compare() == 0; LABEL_108: if ( v82 != v84 ) operator delete(v82); if ( v79 != v81 ) operator delete(v79); if ( !v45 ) goto LABEL_161; v46 = v74; if ( v74 == v75 ) { sub_40DD60((__int64 *)&v73, v74, (__int64)&v95); LABEL_161: v55 = v98; goto LABEL_125; } v49 = n - (_QWORD)v95; v47 = n == (_QWORD)v95; v48 = (__int64)(n - (_QWORD)v95) < 0; *(_QWORD *)v74 = 0LL; *((_QWORD *)v46 + 1) = 0LL; *((_QWORD *)v46 + 2) = 0LL; if ( v47 ) { v50 = 0LL; } else { if ( v48 ) std::__throw_bad_alloc(); v50 = (char *)operator new(v49); } *(_QWORD *)v46 = v50; *((_QWORD *)v46 + 2) = &v50[v49]; v51 = 0LL; *((_QWORD *)v46 + 1) = v50; if ( (void *)n != v95 ) { v51 = n - (_QWORD)v95; v50 = (char *)memmove(v50, v95, n - (_QWORD)v95); } v52 = &v50[v51]; v53 = v99 - (_BYTE *)v98; v47 = v99 == v98; *((_QWORD *)v46 + 3) = 0LL; *((_QWORD *)v46 + 1) = v52; *((_QWORD *)v46 + 4) = 0LL; *((_QWORD *)v46 + 5) = 0LL; if ( v47 ) { v54 = 0LL; } else { if ( v53 > 0x7FFFFFFFFFFFFFFCLL ) std::__throw_bad_alloc(); v54 = (char *)operator new(v53); } *((_QWORD *)v46 + 3) = v54; *((_QWORD *)v46 + 5) = &v54[v53]; *((_QWORD *)v46 + 4) = v54; v55 = v98; v56 = v99 - (_BYTE *)v98; if ( v99 != v98 ) v54 = (char *)memmove(v54, v98, v99 - (_BYTE *)v98); v57 = v101; v74 += 56; *((_QWORD *)v46 + 4) = &v54[v56]; *((_DWORD *)v46 + 12) = v57; LABEL_125: if ( v55 ) operator delete(v55); v14 = v95; if ( v95 ) goto LABEL_38; v15 = *a2; if ( (*((_BYTE *)a2 + *(_QWORD *)(*a2 - 24LL) + 32) & 5) != 0 ) goto LABEL_129; } v79 = v102; v80 = v103; v81[0] = (__int64)v104; LABEL_173: v102 = &v104; v42 = &v104; goto LABEL_105; } LABEL_129: sub_412170((__int64 *)&v73); sub_4124A0((const void ***)&v73, (int *)v91); sub_4120F0((__int64 *)&v73, (__int64)v91); LODWORD(v94) = DWORD1(v93); v58 = (__int64 *)operator new(0x78uLL); sub_40FEB0(v58, (__int64 *)&v76, (__int64 *)&v73, (__int64)v91); v59 = v77; v60 = (void **)v76; *a1 = v58; if ( (void **)v59 != v60 ) { do { if ( *v60 ) operator delete(*v60); v60 += 4; } while ( (void **)v59 != v60 ); v60 = (void **)v76; } if ( v60 ) operator delete(v60); v61 = v74; v62 = (char *)v73; if ( v74 != v73 ) { do { v63 = (void *)*((_QWORD *)v62 + 3); if ( v63 ) operator delete(v63); if ( *(_QWORD *)v62 ) operator delete(*(void **)v62); v62 += 56; } while ( v61 != v62 ); v62 = (char *)v73; } if ( v62 ) operator delete(v62); if ( v91[0] != v92 ) operator delete(v91[0]); return a1; } Q:[a1,v73,v85,v91,v102,v103,v104,sub_4143C0,sub_414320,sub_414240,sub_415A40,sub_412750,sub_40DD60,sub_412170,sub_4124A0,sub_4120F0,sub_40FEB0,]
A:{'a1': 'this', 'v73': 'glyphtable', 'v85': '__beg', 'v91': 'fontinfo', 'v102': '__x', 'v103': 'n', 'v104': 'src', 'sub_4143C0': 'LoadBDF', 'sub_414320': '_M_construct', 'sub_414240': 'toupper', 'sub_415A40': '_M_fill_insert', 'sub_412750': '_M_realloc_insert', 'sub_40DD60': '_M_realloc_insert', 'sub_412170': 'eliminate_duplicates', 'sub_4124A0': 'crop_glyphs', 'sub_4120F0': 'detect_flags', 'sub_40FEB0': 'DataFile'}
556e0263abbe1e4daef5ea125859adebb55575ea4fa8d33e6255954205d7ba5b_556e0263abbe1e4daef5ea125859adebb55575ea4fa8d33e6255954205d7ba5b.jsonl.gz
sub_409C60
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_409C60(epoll_data_t a1, __int64 a2) { int *v2; // rax char *v3; // rax struct epoll_event event; // [rsp+14h] [rbp-3Ch] BYREF struct itimerspec utmr; // [rsp+20h] [rbp-30h] BYREF unsigned int v7; // [rsp+48h] [rbp-8h] int v8; // [rsp+4Ch] [rbp-4h] v8 = (int)(float)(*(float *)(a2 + 160) / 1000.0); v7 = (int)(float)(10.0 * *(float *)(a2 + 160)) % 0x2710u; utmr.it_value.tv_sec = v8; utmr.it_value.tv_nsec = (int)(100000 * v7); utmr.it_interval.tv_sec = 0LL; utmr.it_interval.tv_nsec = 0LL; if ( timerfd_settime(*(_DWORD *)(a1.u64 + 368), 0, &utmr, 0LL) >= 0 ) { event.events = 1; event.data = a1; if ( epoll_ctl(epfd, 1, *(_DWORD *)(a1.u64 + 368), &event) != -1 || *__errno_location() == 17 ) { ++*(_DWORD *)(a1.u64 + 204); return 0LL; } } else { v2 = __errno_location(); v3 = strerror(*v2); sub_438748( 4, (unsigned int)"fast_ping.c", 766, (unsigned int)"_fast_ping_send_fake", 0, (unsigned int)"timerfd_settime failed, %s", v3); } return 0xFFFFFFFFLL; } Q:[a1,a2,event,utmr,v7,v8,sub_409C60,sub_438748,]
A:{'a1': 'ping_host', 'a2': 'fake', 'event': 'ev', 'utmr': 'its', 'v7': 'cent_usec', 'v8': 'sec', 'sub_409C60': '_fast_ping_send_fake', 'sub_438748': 'tlog_ext'}
cc514aea46329b2bbe7d1ede9a05315966bd71bcf8cc0ff6e5ffa267e88c9796_cc514aea46329b2bbe7d1ede9a05315966bd71bcf8cc0ff6e5ffa267e88c9796.jsonl.gz
sub_446A49
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_446A49(__int64 a1, unsigned int a2) { if ( a2 >= *(_DWORD *)a1 ) off_46D210(off_46D1F8[0], "Index < C->Count", "common/coll.h", 155LL); return *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL * a2); } Q:[a1,a2,sub_446A49,]
A:{'a1': 'C', 'a2': 'Index', 'sub_446A49': 'CollConstAt_6'}
34e1f47d7c3f4a6a8540956845e947b127c61352252002721d774608d8656d0e_34e1f47d7c3f4a6a8540956845e947b127c61352252002721d774608d8656d0e.jsonl.gz
sub_42C206
Help user generate meaningful names for variables and functions in the following code snippet.
void *__fastcall sub_42C206(const char *a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6) { void *result; // rax __int64 v7; // rdx __int64 v8; // rcx __int64 v9; // r8 __int64 v10; // r9 __int64 v11; // rsi __int64 v12; // r8 __int64 v13; // r9 __int64 v14; // rcx __int64 v15; // [rsp+0h] [rbp-40h] _BYTE *v16; // [rsp+10h] [rbp-30h] __int64 v17; // [rsp+18h] [rbp-28h] __int64 v18; // [rsp+18h] [rbp-28h] void *v19; // [rsp+20h] [rbp-20h] __int64 v20; // [rsp+28h] [rbp-18h] unsigned int v21; // [rsp+30h] [rbp-10h] int v22; // [rsp+34h] [rbp-Ch] int v23; // [rsp+34h] [rbp-Ch] __int64 v24; // [rsp+38h] [rbp-8h] __int64 v25; // [rsp+38h] [rbp-8h] v15 = a2; if ( !a2 ) return 0LL; if ( qword_463700 ) { v21 = *qword_463700; if ( (unsigned int)sub_42A092((__int64)a1, *qword_463700) == 1 ) { sub_406043("Class '%s' instanced in input but is being ignored.\n", (__int64)a1, v7, v8, v9, v10); result = 0LL; } else { v20 = sub_40E200((__int64)a1, v21); v19 = calloc(1uLL, 0x30uLL); *((_DWORD *)v19 + 2) = -4; *(_QWORD *)v19 = strdup("properties"); *((_DWORD *)v19 + 9) = -2; *((_QWORD *)v19 + 5) = 0LL; *((_QWORD *)v19 + 2) = strdup(a1); v22 = 0; v24 = a2; while ( v24 ) { v24 = *(_QWORD *)(v24 + 16); ++v22; } v11 = 24LL; *((_QWORD *)v19 + 3) = calloc(v22 + 1, 0x18uLL); v23 = 0; v25 = v15; while ( v25 ) { v17 = *((_QWORD *)v19 + 3) + 24LL * v23; *(_QWORD *)v17 = strdup(*(const char **)v25); *(_BYTE *)(v17 + 8) = 0; *(_QWORD *)(v17 + 16) = strdup(*(const char **)(v25 + 8)); if ( v20 ) { v11 = v20 + 104; if ( !sub_40AA09(*(_QWORD *)v17, (unsigned int *)(v20 + 104)) ) { if ( !*(_BYTE *)(v20 + 26) ) sub_405B9F( stderr, "Warning: Property %s passed to cell %s which does not define a default.\n", *(_QWORD *)v17, *(_QWORD *)(v20 + 8), v12, v13); v16 = calloc(1uLL, 0x28uLL); *(_QWORD *)v16 = strdup(*(const char **)v17); v16[8] = 0; v16[10] = 0; v16[9] = 0; *((_QWORD *)v16 + 4) = 0LL; *((_QWORD *)v16 + 3) = 0LL; v11 = (__int64)v16; sub_40ABFE(*(const char **)v16, (__int64)v16, (unsigned int *)(v20 + 104)); } } v25 = *(_QWORD *)(v25 + 16); ++v23; } v14 = *((_QWORD *)v19 + 3); v18 = v14 + 24LL * v23; *(_QWORD *)v18 = 0LL; *(_BYTE *)(v18 + 8) = 5; *(_DWORD *)(v18 + 16) = 0; sub_40F8BC((__int64)v19, v11, v23, v14, v12, v13); result = v19; } } else { sub_406043("LinkProperties() called with no current cell.\n", a2, a3, a4, a5, a6); result = 0LL; } return result; } Q:[a1,a2,v11,v16,v18,v19,v20,v21,v22,v24,sub_42C206,sub_42A092,sub_406043,sub_40E200,sub_40AA09,sub_405B9F,sub_40ABFE,sub_40F8BC,]
A:{'a1': 'model', 'a2': 'topptr', 'v11': 'topptr', 'v16': 'kl', 'v18': 'newkva', 'v19': 'tp', 'v20': 'cell', 'v21': 'filenum', 'v22': 'entries', 'v24': 'kv', 'sub_42C206': 'LinkProperties', 'sub_42A092': 'IsIgnored', 'sub_406043': 'Printf', 'sub_40E200': 'LookupCellFile', 'sub_40AA09': 'HashLookup', 'sub_405B9F': 'Fprintf', 'sub_40ABFE': 'HashPtrInstall', 'sub_40F8BC': 'AddToCurrentCellNoHash'}
7c16ecc1f4177280f9c554334c74c60179f6cbd74ce0674df9f0cc7c89723807_7c16ecc1f4177280f9c554334c74c60179f6cbd74ce0674df9f0cc7c89723807.jsonl.gz
sub_417F6E
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_417F6E(__int64 a1) { _QWORD v2[6]; // [rsp+10h] [rbp-90h] BYREF _QWORD v3[6]; // [rsp+40h] [rbp-60h] BYREF _QWORD v4[5]; // [rsp+70h] [rbp-30h] BYREF int v5; // [rsp+9Ch] [rbp-4h] v5 = be_top(a1); m_read_attributes(v4, a1, 1u); sub_415FEE(a1, (__int64)v4); if ( v5 <= 1 || !(unsigned __int8)be_isbytes(a1, 2LL) ) be_raise(a1, (__int64)"type_error", (__int64)"operand must be bytes"); m_read_attributes(v2, a1, 2u); sub_415FEE(a1, (__int64)v2); sub_416350(a1, HIDWORD(v4[0]) + HIDWORD(v2[0])); m_read_attributes(v3, a1, 0xFFFFFFFF); sub_415FEE(a1, (__int64)v3); sub_415956((__int64)v3, (__int64)v4); sub_415956((__int64)v3, (__int64)v2); m_write_attributes(a1, -1, (__int64)v3); return be_returnvalue(a1); } Q:[a1,v2,v3,v4,v5,sub_417F6E,sub_415FEE,sub_416350,sub_415956,]
A:{'a1': 'vm', 'v2': 'attr2', 'v3': 'attr3', 'v4': 'attr', 'v5': 'argc', 'sub_417F6E': 'm_merge', 'sub_415FEE': 'check_ptr', 'sub_416350': 'bytes_new_object', 'sub_415956': 'buf_add_buf'}
f98a28e7df450a9c09e5e577bfcbb6fd0a09e06cc912fe81b95ae2cdb045e015_f98a28e7df450a9c09e5e577bfcbb6fd0a09e06cc912fe81b95ae2cdb045e015.jsonl.gz
sub_40CED1
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_40CED1(__int64 a1) { __int64 v1; // rdx _DWORD *v3; // rax __int64 v4; // rdx __int64 v5; // rcx __int64 v6; // rdx __int64 v7[4]; // [rsp+10h] [rbp-50h] BYREF __int64 v8; // [rsp+30h] [rbp-30h] __int64 v9; // [rsp+38h] [rbp-28h] _DWORD *v10; // [rsp+48h] [rbp-18h] __int64 v11; // [rsp+50h] [rbp-10h] char v12; // [rsp+5Eh] [rbp-2h] char v13; // [rsp+5Fh] [rbp-1h] v1 = *(_QWORD *)(a1 + 56); v8 = *(_QWORD *)(a1 + 48); v9 = v1; v13 = sub_409600(a1); if ( v13 != 39 ) __assert_fail("c == '\\''", "parser/word.c", 0x12u, "single_quotes"); v7[0] = 0LL; v7[1] = 0LL; v7[2] = 0LL; while ( 1 ) { v12 = sub_40949A(a1); if ( !v12 ) { sub_4096B4(a1, "single quotes not terminated"); return 0LL; } if ( v12 == 39 ) break; if ( v12 == 10 ) sub_40962E(a1); else sub_409600(a1); sub_4085B2((__int64)v7, v12); } sub_409600(a1); sub_4085B2((__int64)v7, 0); v11 = sub_4085F7(v7); v3 = sub_405414(v11, 1); v10 = v3; v4 = v9; *((_QWORD *)v3 + 3) = v8; *((_QWORD *)v3 + 4) = v4; v5 = (__int64)v10; v6 = *(_QWORD *)(a1 + 56); *((_QWORD *)v10 + 5) = *(_QWORD *)(a1 + 48); *(_QWORD *)(v5 + 48) = v6; return (__int64)v10; } Q:[a1,v7,v8,v10,v11,v12,v13,sub_40CED1,sub_409600,sub_40949A,sub_4096B4,sub_40962E,sub_4085B2,sub_4085F7,sub_405414,]
A:{'a1': 'parser', 'v7': 'buf', 'v8': 'begin', 'v10': 'ws', 'v11': 'data', 'v12': 'c_0', 'v13': 'c', 'sub_40CED1': 'single_quotes', 'sub_409600': 'parser_read_char', 'sub_40949A': 'parser_peek_char', 'sub_4096B4': 'parser_set_error', 'sub_40962E': 'read_continuation_line', 'sub_4085B2': 'mrsh_buffer_append_char', 'sub_4085F7': 'mrsh_buffer_steal', 'sub_405414': 'mrsh_word_string_create'}
dcc01c1bc86f70bd0ffe7a60fa5fcda7d0eb24f821c62e2ce5513eaa8f9ff158_dcc01c1bc86f70bd0ffe7a60fa5fcda7d0eb24f821c62e2ce5513eaa8f9ff158.jsonl.gz
sub_401D65
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_401D65(__int64 a1, const char *a2) { return sub_4014DF(a1, a2); } Q:[a1,a2,sub_401D65,sub_4014DF,]
A:{'a1': 'jstr', 'a2': 'val', 'sub_401D65': 'json_gen_add_to_long_string', 'sub_4014DF': 'json_gen_add_to_str'}
6d6d5259171819a43498a4dd9dfd28dd2e351626272806c32bfb152b54f86e60_6d6d5259171819a43498a4dd9dfd28dd2e351626272806c32bfb152b54f86e60.jsonl.gz
handler
Help user generate meaningful names for variables and functions in the following code snippet.
void __noreturn handler() { if ( opMode == 1 ) fprintf( stderr, "\n" "%s: Caught a SIGSEGV or SIGBUS whilst compressing.\n" "\n" " Possible causes are (most likely first):\n" " (1) This computer has unreliable memory or cache hardware\n" " (a surprisingly common problem; try a different machine.)\n" " (2) A bug in the compiler used to create this executable\n" " (unlikely, if you didn't compile bzip2 yourself.)\n" " (3) A real bug in bzip2 -- I hope this should never be the case.\n" " The user's manual, Section 4.3, has more info on (1) and (2).\n" " \n" " If you suspect this is a bug in bzip2, or are unsure about (1)\n" " or (2), feel free to report it to me at: [email protected].\n" " Section 4.3 of the user's manual describes the info a useful\n" " bug report should have. If the manual is available on your\n" " system, please try and read it before mailing me. If you don't\n" " have the manual or can't be bothered to read it, mail me anyway.\n" "\n", progName); else fprintf( stderr, "\n" "%s: Caught a SIGSEGV or SIGBUS whilst decompressing.\n" "\n" " Possible causes are (most likely first):\n" " (1) The compressed data is corrupted, and bzip2's usual checks\n" " failed to detect this. Try bzip2 -tvv my_file.bz2.\n" " (2) This computer has unreliable memory or cache hardware\n" " (a surprisingly common problem; try a different machine.)\n" " (3) A bug in the compiler used to create this executable\n" " (unlikely, if you didn't compile bzip2 yourself.)\n" " (4) A real bug in bzip2 -- I hope this should never be the case.\n" " The user's manual, Section 4.3, has more info on (2) and (3).\n" " \n" " If you suspect this is a bug in bzip2, or are unsure about (2)\n" " or (3), feel free to report it to me at: [email protected].\n" " Section 4.3 of the user's manual describes the info a useful\n" " bug report should have. If the manual is available on your\n" " system, please try and read it before mailing me. If you don't\n" " have the manual or can't be bothered to read it, mail me anyway.\n" "\n", progName); sub_403A24(); if ( opMode == 1 ) sub_403A68(3); sub_4039EC(); sub_403A68(2); } Q:[sub_403A24,sub_403A68,sub_4039EC,]
A:{'sub_403A24': 'showFileNames', 'sub_403A68': 'cleanUpAndFail', 'sub_4039EC': 'cadvise'}
16562e4df38a1161968de61c84617b2dbf41e7ce12c31860e8ea803257ada849_16562e4df38a1161968de61c84617b2dbf41e7ce12c31860e8ea803257ada849.jsonl.gz
sub_401325
Help user generate meaningful names for variables and functions in the following code snippet.
const char *__fastcall sub_401325(int a1) { const char *result; // rax if ( a1 == 2 ) return "Microsoft"; if ( a1 > 2 ) goto LABEL_9; if ( !a1 ) return (const char *)&unk_402008; if ( a1 == 1 ) result = (const char *)&unk_40200C; else LABEL_9: result = "Other"; return result; } Q:[a1,sub_401325,]
A:{'a1': 'variant', 'sub_401325': 'variant_string'}
4bd79747e1dc57f4771eefd9a3a47d051b453172d6afd251df0ca1c3a230b34e_4bd79747e1dc57f4771eefd9a3a47d051b453172d6afd251df0ca1c3a230b34e.jsonl.gz
sub_425FC7
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_425FC7(__int64 a1) { __int64 result; // rax ++*(_DWORD *)(a1 + 532); result = *(unsigned int *)(a1 + 512); if ( *(_DWORD *)(a1 + 532) >= (unsigned int)result ) { if ( !*(_BYTE *)(a1 + 628) ) goto LABEL_9; *(_DWORD *)(a1 + 532) = 0; memset(*(void **)(a1 + 544), 0, *(_QWORD *)(a1 + 520) + 1LL); while ( ++*(_BYTE *)(a1 + 629) <= 6u ) { *(_DWORD *)(a1 + 528) = ((unsigned __int8)byte_44AB6C[*(unsigned __int8 *)(a1 + 629)] + *(_DWORD *)(a1 + 504) - (unsigned int)(unsigned __int8)byte_44AB73[*(unsigned __int8 *)(a1 + 629)] - 1) / (unsigned __int8)byte_44AB6C[*(unsigned __int8 *)(a1 + 629)]; if ( (*(_DWORD *)(a1 + 308) & 2) != 0 ) break; *(_DWORD *)(a1 + 512) = ((unsigned __int8)byte_44AB7A[*(unsigned __int8 *)(a1 + 629)] + *(_DWORD *)(a1 + 508) - (unsigned int)(unsigned __int8)byte_44AB81[*(unsigned __int8 *)(a1 + 629)] - 1) / (unsigned __int8)byte_44AB7A[*(unsigned __int8 *)(a1 + 629)]; if ( *(_DWORD *)(a1 + 512) ) { if ( *(_DWORD *)(a1 + 528) ) break; } } result = *(unsigned __int8 *)(a1 + 629); if ( (unsigned __int8)result > 6u ) LABEL_9: result = sub_425EDD(a1); } return result; } Q:[a1,sub_425FC7,sub_425EDD,]
A:{'a1': 'png_ptr', 'sub_425FC7': 'png_read_finish_row', 'sub_425EDD': 'png_read_finish_IDAT'}
ea3bd53d96d062503f598c950b2c1cf5a92a7d52c2415be8506bc4bcf620e6a9_ea3bd53d96d062503f598c950b2c1cf5a92a7d52c2415be8506bc4bcf620e6a9.jsonl.gz
sub_40E046
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_40E046(__int64 a1, int a2) { __int64 v3; // rax __int64 v5; // [rsp+10h] [rbp-30h] _QWORD *base; // [rsp+18h] [rbp-28h] __int64 nmemb; // [rsp+20h] [rbp-20h] __int64 v8; // [rsp+28h] [rbp-18h] _QWORD *i; // [rsp+30h] [rbp-10h] _QWORD *j; // [rsp+38h] [rbp-8h] v8 = 0LL; nmemb = sub_40DCBF(a1); if ( !nmemb ) return 0x7FF8000000000000LL; base = malloc(8 * nmemb); for ( i = *(_QWORD **)(a1 + 8); i; i = (_QWORD *)i[1] ) { for ( j = i + 2; j < &i[*i + 2]; ++j ) { v3 = v8++; base[v3] = *j; } } qsort(base, nmemb, 8uLL, (__compar_fn_t)compar); v5 = base[(nmemb - 1) * a2 / 0x64uLL]; free(base); return v5; } Q:[a1,a2,v5,base,nmemb,i,j,sub_40E046,sub_40DCBF,]
A:{'a1': 'lst', 'a2': 'percentile', 'v5': 'result', 'base': 'values', 'nmemb': 'size', 'i': 'blk', 'j': 'n', 'sub_40E046': 'numlist_percentile', 'sub_40DCBF': 'numlist_size'}
13568ee4f94fc794a73f72b647c12f6e270f1f247d8885087935155cc4e96d7e_13568ee4f94fc794a73f72b647c12f6e270f1f247d8885087935155cc4e96d7e.jsonl.gz
sub_402B21
Help user generate meaningful names for variables and functions in the following code snippet.
void __fastcall sub_402B21(int a1, __int64 a2) { struct stat stat_buf; // [rsp+10h] [rbp-A0h] BYREF unsigned int i; // [rsp+ACh] [rbp-4h] sub_404780(a1, &stat_buf); *(_QWORD *)s = 0LL; LODWORD(qword_407278) = 0; sprintf(s, "%ld", stat_buf.st_mtim.tv_sec); for ( i = 0; i <= 0xB; ++i ) { if ( !s[i] ) s[i] = 32; } if ( lseek(a1, *(unsigned int *)(qword_407250 + 44), 0) >= 0 ) sub_401392(a1, (char *)&qword_407260, 60, a2); } Q:[a1,a2,stat_buf,sub_402B21,sub_404780,sub_401392,]
A:{'a1': 'outdesc', 'a2': 'outname', 'stat_buf': 'statbuf', 'sub_402B21': 'touch_symdef_member', 'sub_404780': 'fstat', 'sub_401392': 'mywrite'}
8846138f77cc9c7bf0fc69d434de98afd9acf565acc6a98e9bf946cdbb8e4b34_8846138f77cc9c7bf0fc69d434de98afd9acf565acc6a98e9bf946cdbb8e4b34.jsonl.gz
sub_4116E0
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4116E0(void **a1, __m128i *a2, __int64 a3, unsigned __int64 a4, __int64 a5) { __m128i v5; // xmm0 __int64 result; // rax void *v7; // [rsp+0h] [rbp-38h] BYREF __m128i v8; // [rsp+8h] [rbp-30h] v5 = _mm_loadl_epi64(a2); v7 = *a1; v8 = _mm_unpacklo_epi64(v5, v5); result = sub_40C690(&v7, a3, a4, a5); *a1 = v7; a2->m128i_i64[0] = v8.m128i_i64[0]; return result; } Q:[sub_4116E0,sub_40C690,]
A:{'sub_4116E0': 'lodepng_inflate', 'sub_40C690': 'lodepng_inflatev'}
590128985a4641821cc0846c284565f5febb73cfc47f9eb9b972f4e19564e9ac_590128985a4641821cc0846c284565f5febb73cfc47f9eb9b972f4e19564e9ac.jsonl.gz
sub_401270
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 sub_401270() { __int64 result; // rax ++dword_404058; result = (unsigned __int8)byte_404049; if ( (unsigned __int8)byte_404049 > 0x10u ) result = sub_40183C("Assertion failed", "!(achar1 > 0x10)", "gen/host/scott-compare2/scott-compare2.c", 43LL); return result; } Q:[sub_401270,]
A:{'sub_401270': 'char_gt_lit'}
a8a78f7d12b4be4664d2b69853927f379cd38f83b505a131adc36bb98e3a8736_a8a78f7d12b4be4664d2b69853927f379cd38f83b505a131adc36bb98e3a8736.jsonl.gz
sub_405E41
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 sub_405E41() { int v0; // eax int v1; // eax __int64 result; // rax int v3; // [rsp+Ch] [rbp-14h] int v4; // [rsp+10h] [rbp-10h] unsigned __int8 v5; // [rsp+14h] [rbp-Ch] int v6; // [rsp+18h] [rbp-8h] unsigned int v7; // [rsp+1Ch] [rbp-4h] dword_4231EC = 4; v6 = sub_4015B0(dword_4231E8 + 1); if ( (unsigned int)(unsigned __int8)v6 + dword_4231D8 > 0xFF ) ++dword_4231EC; v5 = dword_4231D0; v4 = (unsigned __int8)sub_40159D(dword_4231D8 + v6); if ( (dword_4231E0 & 8) != 0 ) { v7 = (v4 & 0xF) + (v5 & 0xF) + ((dword_4231E0 & 1) != 0); if ( v7 > 9 ) v7 = (((_BYTE)v7 + 6) & 0xF) + 16; dword_4231D0 = (v4 & 0xF0) + (v5 & 0xF0) + v7; v3 = (char)(v4 & 0xF0) + (char)(v5 & 0xF0) + (char)v7; if ( (_BYTE)v4 + v5 + ((dword_4231E0 & 1) != 0) ) dword_4231E0 &= 0xFFFFFFFD; else dword_4231E0 |= 2u; v0 = dword_4231E0; if ( (dword_4231D0 & 0x80) != 0 ) LOBYTE(v0) = dword_4231E0 | 0x80; else LOBYTE(v0) = dword_4231E0 & 0x7F; dword_4231E0 = v0; if ( (unsigned int)dword_4231D0 > 0x9F ) dword_4231D0 += 96; if ( (dword_4231D0 & 0xFF00) != 0 ) dword_4231E0 |= 1u; else dword_4231E0 &= 0xFFFFFFFE; if ( v3 >= -128 && v3 <= 127 ) dword_4231E0 &= 0xFFFFFFBF; else dword_4231E0 |= 0x40u; } else { dword_4231D0 += ((dword_4231E0 & 1) != 0) + v4; if ( (_BYTE)dword_4231D0 ) dword_4231E0 &= 0xFFFFFFFD; else dword_4231E0 |= 2u; v1 = dword_4231E0; if ( (dword_4231D0 & 0x80) != 0 ) LOBYTE(v1) = dword_4231E0 | 0x80; else LOBYTE(v1) = dword_4231E0 & 0x7F; dword_4231E0 = v1; if ( (dword_4231D0 & 0xFF00) != 0 ) dword_4231E0 |= 1u; else dword_4231E0 &= 0xFFFFFFFE; if ( (((unsigned __int8)v4 ^ v5) & 0x80) != 0 || ((v5 ^ (unsigned __int8)dword_4231D0) & 0x80) == 0 ) dword_4231E0 &= 0xFFFFFFBF; else dword_4231E0 |= 0x40u; dword_4231D0 = (unsigned __int8)dword_4231D0; } result = (unsigned int)(dword_4231E8 + 3); dword_4231E8 += 3; return result; } Q:[v3,v4,v5,v6,v7,sub_405E41,sub_4015B0,sub_40159D,]
A:{'v3': 'res', 'v4': 'rhs', 'v5': 'old', 'v6': 'Addr', 'v7': 'lo', 'sub_405E41': 'OPC_6502_79', 'sub_4015B0': 'MemReadWord', 'sub_40159D': 'MemReadByte'}
98b37e3e65106c5188b46163dfb0f0c998cbb4097476f58901e20617a1ff914e_98b37e3e65106c5188b46163dfb0f0c998cbb4097476f58901e20617a1ff914e.jsonl.gz
sub_401222
Help user generate meaningful names for variables and functions in the following code snippet.
FILE *__fastcall sub_401222(const char *a1) { FILE *result; // rax char *v2; // [rsp+18h] [rbp-8h] strncpy(filename, a1, 0xFAuLL); v2 = strrchr(filename, 46); if ( v2 ) strcpy(v2, ".lst"); else strcpy((char *)(strlen(filename) + 4247392), ".lst"); result = fopen(filename, "w"); stream = result; return result; } Q:[a1,v2,sub_401222,]
A:{'a1': 'nam', 'v2': 'ppos', 'sub_401222': 'start_listing'}
36e2a2b3c90d2417126c548d6e41cc7407e894b30d56150ef0c7c66984693b6d_36e2a2b3c90d2417126c548d6e41cc7407e894b30d56150ef0c7c66984693b6d.jsonl.gz
sub_4126C0
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4126C0(unsigned int a1) { int v1; // eax int v2; // eax unsigned int *v3; // rdx __int64 result; // rax dword_85AA38 = 0; sub_415294(); v1 = dword_462CB8++; *(_DWORD *)(qword_4778A8 + 4LL * v1) = 61; v2 = dword_462CB8++; v3 = (unsigned int *)(qword_4778A8 + 4LL * v2); result = a1; *v3 = a1; return result; } Q:[a1,sub_4126C0,sub_415294,]
A:{'a1': 'R', 'sub_4126C0': 'emit_unipvar', 'sub_415294': 'emit_realsave'}
6b9a29c14e348a499dce372e585ac9ae074eb84f02dae35beb4324b410e27e66_6b9a29c14e348a499dce372e585ac9ae074eb84f02dae35beb4324b410e27e66.jsonl.gz
sub_410B40
Help user generate meaningful names for variables and functions in the following code snippet.
void sub_410B40() { dword_4314E4 = 1; } Q:[sub_410B40,]
A:{'sub_410B40': 'stopMFXSearch'}
b483eed5f579f9f95141cff12d83b7349528ed969de79b36dd435fd11a3e5060_b483eed5f579f9f95141cff12d83b7349528ed969de79b36dd435fd11a3e5060.jsonl.gz
sub_407B23
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_407B23(__int64 a1) { __int64 v2; // rbx int v3; // eax unsigned int v4; // [rsp+1Ch] [rbp-9Ch] __int64 v5; // [rsp+28h] [rbp-90h] __int64 v6; // [rsp+30h] [rbp-88h] __int64 v7; // [rsp+38h] [rbp-80h] char v8[48]; // [rsp+40h] [rbp-78h] BYREF char v9[56]; // [rsp+70h] [rbp-48h] BYREF unsigned __int64 v10; // [rsp+A8h] [rbp-10h] v10 = __readfsqword(0x28u); v5 = unk_490888 + 64LL; v6 = *((_QWORD *)&unk_490888 + 1) - 64LL; if ( v6 <= 3 ) return 1LL; v4 = sub_414846(v5); if ( v4 > 0x8000 ) { *__errno_location() = 71; v2 = sub_412C77(v9, 0x8000LL); v3 = sub_412C77(v8, v4); sub_411E46( 1, 0, (unsigned int)"packet_get.c", 39, (unsigned int)"packet length ", v3, (__int64)" > PACKET_LIMIT ", v2, 0LL, 0LL, 0LL, 0LL, 0LL); sub_4115C6(111LL); } if ( v6 < v4 + 4 ) return 1LL; v7 = v4 - (__int64)(*(unsigned __int8 *)(unk_490888 + 68LL) + 1); if ( v7 <= 0 ) { *__errno_location() = 71; sub_411E46(-1, 0, (unsigned int)"packet_get.c", 47, 0, 0, 0LL, 0LL, 0LL, 0LL, 0LL, 0LL, 0LL); sub_4115C6(111LL); } sub_40DA99("packet_get.c", 48LL, a1, unk_490888 + 69LL, v7); sub_40E5E5(v5, v6 - v4 + 4, v5 + v4 + 4LL); sub_419AD4(v6 - v4 + 4 + v5, v4 + 4); *((_QWORD *)&unk_490888 + 1) -= v4 + 4; ++dword_42B7BC; return 1LL; } Q:[a1,v4,v5,v6,v7,v8,v9,sub_407B23,sub_414846,sub_412C77,sub_411E46,sub_4115C6,sub_40DA99,sub_40E5E5,sub_419AD4,]
A:{'a1': 'b', 'v4': 'packet_length', 'v5': 'pp', 'v6': 'l', 'v7': 'len', 'v8': 'buf1', 'v9': 'buf2', 'sub_407B23': 'packet_get_plain_', 'sub_414846': 'uint32_unpack_big', 'sub_412C77': 'numtostr', 'sub_411E46': 'log_9_', 'sub_4115C6': 'global_die', 'sub_40DA99': 'buf_put_', 'sub_40E5E5': '_byte_copy', 'sub_419AD4': 'cleanup_'}
0bdd3e3355b55ed2816435efa21042f8306da2b2ea7b587febce5c0891e6891f_0bdd3e3355b55ed2816435efa21042f8306da2b2ea7b587febce5c0891e6891f.jsonl.gz
sub_42CE89
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_42CE89(__int64 a1) { unsigned int i; // [rsp+1Ch] [rbp-4h] *(_DWORD *)(a1 + 48) = 0; for ( i = 0; i <= 0x39; ++i ) { if ( !strcmp(*(const char **)(a1 + 24), (&off_441660)[2 * (int)i]) ) { *(_DWORD *)(a1 + 48) = dword_441668[4 * i]; *(_DWORD *)(a1 + 52) = dword_441668[4 * i + 1]; return 1LL; } } return 0LL; } Q:[a1,sub_42CE89,]
A:{'a1': 'f', 'sub_42CE89': 'vmop_resolve'}
b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f_b0a9cd2f3e4fb25c6201aa09bcf5782ae37b5367e290f1eed7e0432fa3739c0f.jsonl.gz
sub_42A8AD
Help user generate meaningful names for variables and functions in the following code snippet.
char *__fastcall sub_42A8AD(__int64 a1, __int64 a2) { char *result; // rax unsigned int v3; // [rsp+14h] [rbp-1Ch] __int64 v4; // [rsp+20h] [rbp-10h] int v5; // [rsp+2Ch] [rbp-4h] v5 = HIDWORD(*(_QWORD *)(a2 + 8)); v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1360) + 8LL) + 24LL * v5; result = (char *)*(unsigned int *)sub_42805F(a1, v5, 0); v3 = (unsigned int)result; if ( (_DWORD)result ) { sub_426DAD(*(unsigned __int64 **)(a1 + 1392), (unsigned int)((_DWORD)result + 8)); result = sub_402798((_WORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 1392) + 8LL) + v3), *(_QWORD *)(v4 + 8)); } return result; } Q:[a1,a2,v3,v4,v5,sub_42A8AD,sub_42805F,sub_426DAD,sub_402798,]
A:{'a1': 's1', 'a2': 'rel', 'v3': 'offset', 'v4': 'sym', 'v5': 'sym_index', 'sub_42A8AD': 'fill_got_entry', 'sub_42805F': 'get_sym_attr', 'sub_426DAD': 'section_reserve', 'sub_402798': 'write64le'}
65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604_65b0a6a66ac7f742f3b62174dd1ff457acc880965e6d65927b21910da8931604.jsonl.gz
sub_498E00
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_498E00(int a1, int a2) { __int64 result; // rax result = qword_7BF680 + 40LL * a1; *(_DWORD *)(result + 36) = a2; return result; } Q:[a1,a2,sub_498E00,]
A:{'a1': 'client', 'a2': 'weapon', 'sub_498E00': 'EA_SelectWeapon'}
63f5a5c8ae6e04633c65ecc21e0b9347bdc29cf0955207462b8d2b93f7c10de8_63f5a5c8ae6e04633c65ecc21e0b9347bdc29cf0955207462b8d2b93f7c10de8.jsonl.gz
sub_402AFF
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_402AFF(int a1, int a2, __int64 a3, __int64 a4) { void *v4; // rsp char *v5; // rax char v6; // al __int64 v7; // rbx size_t v8; // rax char *v9; // rax char *v10; // rax char *v11; // rax char *v12; // rax __int64 v13; // rbx size_t v14; // rax __int64 v15; // rbx size_t v16; // rax char *v17; // rax char *v18; // rax char *v19; // rax char *v20; // rax __int64 v21; // rbx size_t v22; // rax __int64 v23; // rbx size_t v24; // rax __int64 result; // rax __int64 v26; // [rsp+0h] [rbp-C0h] BYREF char *v27; // [rsp+8h] [rbp-B8h] __int64 v28; // [rsp+10h] [rbp-B0h] int v29; // [rsp+18h] [rbp-A8h] int v30; // [rsp+1Ch] [rbp-A4h] char src[86]; // [rsp+20h] [rbp-A0h] BYREF char v32; // [rsp+76h] [rbp-4Ah] char v33; // [rsp+77h] [rbp-49h] char *s; // [rsp+78h] [rbp-48h] __int64 v35; // [rsp+80h] [rbp-40h] int v36; // [rsp+8Ch] [rbp-34h] unsigned __int8 v37; // [rsp+91h] [rbp-2Fh] unsigned __int8 v38; // [rsp+92h] [rbp-2Eh] unsigned __int8 v39; // [rsp+93h] [rbp-2Dh] int j; // [rsp+94h] [rbp-2Ch] char *v41; // [rsp+98h] [rbp-28h] char *v42; // [rsp+A0h] [rbp-20h] unsigned int i; // [rsp+ACh] [rbp-14h] v30 = a1; v29 = a2; v28 = a3; v27 = (char *)a4; if ( (a2 & 1) != 0 ) --v29; v36 = 0x8000; v35 = 0x7FFFLL; v4 = alloca(0x8000LL); s = (char *)&v26; for ( i = 0; ; i += 2 ) { result = i; if ( (int)i >= v29 ) break; v42 = (char *)((int)(4 * v30 * i) + v28); v41 = (char *)((int)(4 * v30 * (i + 1)) + v28); *s = 0; for ( j = 0; j < v30; ++j ) { if ( v27 ) { v5 = v27++; v6 = *v5; } else { v6 = 0; } v33 = v6; v7 = v36; v8 = strlen(s); strncat(s, "\x1B[38;2;", v7 - v8 - 1); v9 = v42++; v39 = *v9; v10 = v42++; v38 = *v10; v11 = v42++; v37 = *v11; v12 = v42++; v32 = *v12; if ( v33 ) { v32 = -1; v37 = -1; v38 = -1; v39 = -1; } snprintf(src, 0x50uLL, "%d;%d;%dm", v39, v38, v37); v13 = v36; v14 = strlen(s); strncat(s, src, v13 - v14 - 1); v15 = v36; v16 = strlen(s); strncat(s, "\x1B[48;2;", v15 - v16 - 1); v17 = v41++; v39 = *v17; v18 = v41++; v38 = *v18; v19 = v41++; v37 = *v19; v20 = v41++; v32 = *v20; if ( v33 ) { v32 = 0; v37 = 0; v38 = 0; v39 = 0; } if ( v33 ) snprintf(src, 0x50uLL, "%d;%d;%dm%c", v39, v38, v37, (unsigned int)v33); else snprintf(src, 0x50uLL, aDDDm_0, v39, v38, v37); v21 = v36; v22 = strlen(s); strncat(s, src, v21 - v22 - 1); } v23 = v36; v24 = strlen(s); strncat(s, "\x1B[0m", v23 - v24 - 1); if ( i == v29 - 1 ) printf("%s", s); else puts(s); } return result; } Q:[a3,a4,a1,a2,v27,v28,v29,v30,src,v32,v33,s,v36,v37,v38,v39,j,v41,v42,i,sub_402AFF,]
A:{'a3': 'data', 'a4': 'overlay', 'a1': 'w', 'a2': 'h', 'v27': 'overlaya', 'v28': 'dataa', 'v29': 'ha', 'v30': 'wa', 'src': 'tripl', 'v32': 'a', 'v33': 'overlaychar', 's': 'p_line', 'v36': 'linesz', 'v37': 'b', 'v38': 'g', 'v39': 'r', 'j': 'x', 'v41': 'row1', 'v42': 'row0', 'i': 'y', 'sub_402AFF': 'print_image_double_res'}
3d2110cba79424cd08858d638044f28829cd28574ef8db1be145fbeb871b2deb_3d2110cba79424cd08858d638044f28829cd28574ef8db1be145fbeb871b2deb.jsonl.gz
sub_426BE3
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_426BE3(__int64 a1, __int64 (__fastcall *a2)(char *, _QWORD, __int64), signed int a3, __int64 a4) { __int64 v5; // r15 __int64 v6; // r14 __int64 v7; // r13 __int64 v8; // r12 __int64 v9; // rbx const char *v10; // rax unsigned int v11; // [rsp+Ch] [rbp-2B4h] unsigned int v12; // [rsp+10h] [rbp-2B0h] unsigned int v13; // [rsp+14h] [rbp-2ACh] unsigned int v14; // [rsp+18h] [rbp-2A8h] unsigned int v15; // [rsp+1Ch] [rbp-2A4h] unsigned int v17; // [rsp+28h] [rbp-298h] int v19[4]; // [rsp+40h] [rbp-280h] char s[264]; // [rsp+50h] [rbp-270h] BYREF unsigned __int64 v21; // [rsp+158h] [rbp-168h] int v22; // [rsp+164h] [rbp-15Ch] unsigned __int8 *v23; // [rsp+168h] [rbp-158h] unsigned __int64 v24; // [rsp+170h] [rbp-150h] int v25; // [rsp+17Ch] [rbp-144h] unsigned __int64 v26; // [rsp+180h] [rbp-140h] int v27; // [rsp+18Ch] [rbp-134h] unsigned __int64 v28; // [rsp+190h] [rbp-130h] int v29; // [rsp+19Ch] [rbp-124h] unsigned __int64 v30; // [rsp+1A0h] [rbp-120h] int v31; // [rsp+1ACh] [rbp-114h] __int64 v32; // [rsp+1B0h] [rbp-110h] unsigned __int64 v33; // [rsp+1B8h] [rbp-108h] int v34; // [rsp+1C4h] [rbp-FCh] unsigned __int64 v35; // [rsp+1C8h] [rbp-F8h] int v36; // [rsp+1D4h] [rbp-ECh] unsigned __int64 v37; // [rsp+1D8h] [rbp-E8h] int v38; // [rsp+1E4h] [rbp-DCh] unsigned __int64 v39; // [rsp+1E8h] [rbp-D8h] int v40; // [rsp+1F4h] [rbp-CCh] unsigned __int64 v41; // [rsp+1F8h] [rbp-C8h] int v42; // [rsp+204h] [rbp-BCh] unsigned __int64 v43; // [rsp+208h] [rbp-B8h] int v44; // [rsp+214h] [rbp-ACh] unsigned __int64 v45; // [rsp+218h] [rbp-A8h] int v46; // [rsp+224h] [rbp-9Ch] unsigned __int64 v47; // [rsp+228h] [rbp-98h] int v48; // [rsp+234h] [rbp-8Ch] unsigned __int64 v49; // [rsp+238h] [rbp-88h] int v50; // [rsp+244h] [rbp-7Ch] unsigned __int64 v51; // [rsp+248h] [rbp-78h] int v52; // [rsp+254h] [rbp-6Ch] unsigned __int64 v53; // [rsp+258h] [rbp-68h] int v54; // [rsp+264h] [rbp-5Ch] unsigned __int64 v55; // [rsp+268h] [rbp-58h] int v56; // [rsp+274h] [rbp-4Ch] unsigned __int64 v57; // [rsp+278h] [rbp-48h] int v58; // [rsp+280h] [rbp-40h] unsigned int k; // [rsp+284h] [rbp-3Ch] int j; // [rsp+288h] [rbp-38h] unsigned int i; // [rsp+28Ch] [rbp-34h] v58 = snprintf(s, 0x100uLL, "//MiOPMdrv sound bank Paramer Ver2002.04.22\n"); if ( v58 < 0 ) return 0xFFFFFFFFLL; v57 = a2(s, v58, a4); if ( v57 < v58 ) return 4294967294LL; v56 = snprintf(s, 0x100uLL, "//@:[Num] [Name]\n"); if ( v56 < 0 ) return 0xFFFFFFFFLL; v55 = a2(s, v56, a4); if ( v55 < v56 ) return 4294967294LL; v54 = snprintf(s, 0x100uLL, "//LFO: LFRQ AMD PMD WF NFRQ\n"); if ( v54 < 0 ) return 0xFFFFFFFFLL; v53 = a2(s, v54, a4); if ( v53 < v54 ) return 4294967294LL; v52 = snprintf(s, 0x100uLL, "//CH: PAN FL CON AMS PMS SLOT NE\n"); if ( v52 < 0 ) return 0xFFFFFFFFLL; v51 = a2(s, v52, a4); if ( v51 < v52 ) return 4294967294LL; v50 = snprintf(s, 0x100uLL, "//[OPname]: AR D1R D2R RR D1L TL KS MUL DT1 DT2 AMS-EN\n"); if ( v50 < 0 ) return 0xFFFFFFFFLL; v49 = a2(s, v50, a4); if ( v49 < v50 ) return 4294967294LL; for ( i = 0; (signed int)i < *(_DWORD *)(a1 + 8); ++i ) { v32 = *(_QWORD *)a1 + 316LL * (int)i; v31 = snprintf(s, 0x100uLL, "\n"); if ( v31 < 0 ) return 0xFFFFFFFFLL; v30 = a2(s, v31, a4); if ( v30 < v31 ) return 4294967294LL; v29 = snprintf(s, 0x100uLL, "@:%d %s\n", i, (const char *)(v32 + 4)); if ( v29 < 0 ) return 0xFFFFFFFFLL; v28 = a2(s, v29, a4); if ( v28 < v29 ) return 4294967294LL; v27 = snprintf( s, 0x100uLL, "LFO: %d %d %d %d %d\n", *(unsigned __int8 *)(v32 + 260), *(unsigned __int8 *)(v32 + 261), *(unsigned __int8 *)(v32 + 262), *(unsigned __int8 *)(v32 + 263), *(unsigned __int8 *)(v32 + 264)); if ( v27 < 0 ) return 0xFFFFFFFFLL; v26 = a2(s, v27, a4); if ( v26 < v27 ) return 4294967294LL; v25 = snprintf( s, 0x100uLL, "CH: %d %d %d %d %d %d %d\n", *(unsigned __int8 *)(v32 + 265), *(unsigned __int8 *)(v32 + 266), *(unsigned __int8 *)(v32 + 267), *(unsigned __int8 *)(v32 + 268), *(unsigned __int8 *)(v32 + 269), *(unsigned __int8 *)(v32 + 270), *(unsigned __int8 *)(v32 + 271)); if ( v25 < 0 ) return 0xFFFFFFFFLL; v24 = a2(s, v25, a4); if ( v24 < v25 ) return 4294967294LL; for ( j = 0; j <= 3; ++j ) { v19[0] = 0; v19[1] = 2; v19[2] = 1; v19[3] = 3; v23 = (unsigned __int8 *)(v32 + 272 + 11LL * v19[j]); v17 = v23[10]; v15 = v23[9]; v14 = v23[8]; v13 = v23[7]; v5 = v23[6]; v6 = v23[5]; v7 = v23[4]; v8 = v23[3]; v9 = v23[2]; v12 = v23[1]; v11 = *v23; v10 = (const char *)sub_426BA3(j); v22 = snprintf( s, 0x100uLL, "%s: %2d %2d %2d %2d %2d %3d %d %2d %d %d %d\n", v10, v11, v12, v9, v8, v7, v6, v5, v13, v14, v15, v17); if ( v22 < 0 ) return 0xFFFFFFFFLL; v21 = a2(s, v22, a4); if ( v21 < v22 ) return 4294967294LL; } } for ( k = *(_DWORD *)(a1 + 8); (int)k < a3; ++k ) { v48 = snprintf(s, 0x100uLL, "\n"); if ( v48 < 0 ) return 0xFFFFFFFFLL; v47 = a2(s, v48, a4); if ( v47 < v48 ) return 4294967294LL; v46 = snprintf(s, 0x100uLL, "@:%d no Name\n", k); if ( v46 < 0 ) return 0xFFFFFFFFLL; v45 = a2(s, v46, a4); if ( v45 < v46 ) return 4294967294LL; v44 = snprintf(s, 0x100uLL, "LFO: 0 0 0 0 0\n"); if ( v44 < 0 ) return 0xFFFFFFFFLL; v43 = a2(s, v44, a4); if ( v43 < v44 ) return 4294967294LL; v42 = snprintf(s, 0x100uLL, "CH: 64 0 0 0 0 64 0\n"); if ( v42 < 0 ) return 0xFFFFFFFFLL; v41 = a2(s, v42, a4); if ( v41 < v42 ) return 4294967294LL; v40 = snprintf(s, 0x100uLL, "M1: 31 0 0 4 0 0 0 1 0 0 0\n"); if ( v40 < 0 ) return 0xFFFFFFFFLL; v39 = a2(s, v40, a4); if ( v39 < v40 ) return 4294967294LL; v38 = snprintf(s, 0x100uLL, "C1: 31 0 0 4 0 0 0 1 0 0 0\n"); if ( v38 < 0 ) return 0xFFFFFFFFLL; v37 = a2(s, v38, a4); if ( v37 < v38 ) return 4294967294LL; v36 = snprintf(s, 0x100uLL, "M2: 31 0 0 4 0 0 0 1 0 0 0\n"); if ( v36 < 0 ) return 0xFFFFFFFFLL; v35 = a2(s, v36, a4); if ( v35 < v36 ) return 4294967294LL; v34 = snprintf(s, 0x100uLL, "C2: 31 0 0 4 0 0 0 1 0 0 0\n"); if ( v34 < 0 ) return 0xFFFFFFFFLL; v33 = a2(s, v34, a4); if ( v33 < v34 ) return 4294967294LL; } return 0LL; } Q:[a3,a4,a1,a2,v19,s,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v52,v53,v54,v55,v56,v57,v58,k,sub_426BE3,sub_426BA3,]
A:{'a3': 'pad_to', 'a4': 'data_ptr', 'a1': 'f', 'a2': 'write_fn', 'v19': 'opmap', 's': 'buf', 'v21': 'wr_8', 'v22': 'w_8', 'v23': 'o', 'v24': 'wr_7', 'v25': 'w_7', 'v26': 'wr_6', 'v27': 'w_6', 'v28': 'wr_5', 'v29': 'w_5', 'v30': 'wr_4', 'v31': 'w_4', 'v32': 'v', 'v33': 'wr_16', 'v34': 'w_16', 'v35': 'wr_15', 'v36': 'w_15', 'v37': 'wr_14', 'v38': 'w_14', 'v39': 'wr_13', 'v40': 'w_13', 'v41': 'wr_12', 'v42': 'w_12', 'v43': 'wr_11', 'v44': 'w_11', 'v45': 'wr_10', 'v46': 'w_10', 'v47': 'wr_9', 'v48': 'w_9', 'v49': 'wr_3', 'v50': 'w_3', 'v51': 'wr_2', 'v52': 'w_2', 'v53': 'wr_1', 'v54': 'w_1', 'v55': 'wr_0', 'v56': 'w_0', 'v57': 'wr', 'v58': 'w', 'k': 'i_0', 'sub_426BE3': 'opm_file_save', 'sub_426BA3': 'opm_file_operator_name'}
bdcc38c8cca1a301c72f437fbc2ef4fe15e99ee7737ab0b790ed572e400e6b73_bdcc38c8cca1a301c72f437fbc2ef4fe15e99ee7737ab0b790ed572e400e6b73.jsonl.gz
sub_403143
Help user generate meaningful names for variables and functions in the following code snippet.
char *__fastcall sub_403143(const char *a1) { int v1; // er8 int v2; // er9 const char *v3; // rax char *v5; // [rsp+18h] [rbp-8h] if ( !a1 ) return 0LL; v5 = strchr(a1, 61); if ( v5 ) LODWORD(v3) = (_DWORD)v5; else v3 = "=NULL"; sub_40E518((unsigned int)byte_61C9C0, 1039, (unsigned int)"-Dsun.perflog%s", (_DWORD)v3, v1, v2); return strdup(byte_61C9C0); } Q:[sub_403143,sub_40E518,]
A:{'sub_403143': 'GetPerfLogOption', 'sub_40E518': 'sysStrNPrintF'}
6b599aae1a89890fe52d0f3055c9d10236f60c7628d8ccb9b39cc8c52dc96795_6b599aae1a89890fe52d0f3055c9d10236f60c7628d8ccb9b39cc8c52dc96795.jsonl.gz
sub_405790
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_405790(__int64 a1, _QWORD *a2, char *a3) { return sub_405508(a1, a2, a3, 0); } Q:[a3,a1,a2,sub_405790,sub_405508,]
A:{'a3': 'key', 'a1': 'root', 'a2': 'n', 'sub_405790': 'lcfgx_get_string', 'sub_405508': 'lcfgx_get'}
8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2_8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2.jsonl.gz
sub_415704
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_415704(__int64 a1) { return *(_QWORD *)(a1 + 56) + 192LL * *(unsigned int *)(a1 + 44) + 128; } Q:[a1,sub_415704,]
A:{'a1': 'node', 'sub_415704': 'as_node_get_address_string_0'}
bc327e1c14a523076b44f0c7ccd72ec55a7526dc264b31daf5033a01e814d2fd_bc327e1c14a523076b44f0c7ccd72ec55a7526dc264b31daf5033a01e814d2fd.jsonl.gz
sub_406C00
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 sub_406C00() { return ++qword_42A210; } Q:[sub_406C00,]
A:{'sub_406C00': 'insert_u32_before_fork'}
45450e7da787ad8522c4254a1fb55d2f2a0245c269fcd1544f5f008e388e64c0_45450e7da787ad8522c4254a1fb55d2f2a0245c269fcd1544f5f008e388e64c0.jsonl.gz
sub_4516CC
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4516CC(__int64 a1) { return sub_454302(a1); } Q:[a1,sub_4516CC,sub_454302,]
A:{'a1': 'this', 'sub_4516CC': '~_Rb_tree_impl', 'sub_454302': '~allocator'}
1f59c49b846fd7db0b15d081534d06e1fd8f7d0d19d755144d005f7d0d8a4d7e_1f59c49b846fd7db0b15d081534d06e1fd8f7d0d19d755144d005f7d0d8a4d7e.jsonl.gz
sub_40710C
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_40710C(int a1, unsigned __int8 a2, __int16 a3, void *a4, unsigned __int16 a5) { int v5; // eax void *v6; // rsp __int64 v8; // [rsp+0h] [rbp-70h] BYREF void *src; // [rsp+8h] [rbp-68h] unsigned __int16 v10; // [rsp+10h] [rbp-60h] __int16 v11; // [rsp+14h] [rbp-5Ch] unsigned __int8 v12; // [rsp+18h] [rbp-58h] int fd; // [rsp+1Ch] [rbp-54h] __int16 v14[4]; // [rsp+20h] [rbp-50h] BYREF void *v15; // [rsp+28h] [rbp-48h] __int16 *s; // [rsp+30h] [rbp-40h] BYREF int v17; // [rsp+38h] [rbp-38h] void *v18; // [rsp+40h] [rbp-30h] __int64 v19; // [rsp+48h] [rbp-28h] fd = a1; src = a4; v12 = a2; v11 = a3; v10 = a5; v5 = a5 + 2; v19 = v5 - 1LL; v6 = alloca(16 * ((v5 + 15LL) / 0x10uLL)); v18 = &v8; memset(&s, 0, 0x10uLL); memset(v14, 0, 0x10uLL); memset(v18, 0, v10 + 2); v14[0] = v12 >> 1; v14[1] = 0; *(_BYTE *)v18 = HIBYTE(v11); *((_BYTE *)v18 + 1) = v11; memcpy((char *)v18 + 2, src, v10); v15 = v18; v14[2] = v10 + 2; s = v14; v17 = 1; if ( ioctl(fd, 0x707uLL, &s) >= 0 ) return 0LL; perror("iic: write failed.\n"); return 1LL; } Q:[a3,a4,a1,a2,a5,src,v10,v11,v12,fd,v14,s,v18,sub_40710C,]
A:{'a3': 'reg', 'a4': 'buf', 'a1': 'fd', 'a2': 'addr', 'a5': 'len', 'src': 'bufa', 'v10': 'lena', 'v11': 'rega', 'v12': 'addra', 'fd': 'fda', 'v14': 'msgs', 's': 'i2c_rdwr_data', 'v18': 'p_buf_send', 'sub_40710C': 'iic_write_address16'}
4d266dd65189678552f44e9be4e85fd1eac2e3921eff15e2ce86fc1cfb8460d3_4d266dd65189678552f44e9be4e85fd1eac2e3921eff15e2ce86fc1cfb8460d3.jsonl.gz
make_sockaddr
Help user generate meaningful names for variables and functions in the following code snippet.
_WORD *__fastcall make_sockaddr(_WORD *a1, int a2, __int16 a3) { _WORD *result; // rax memset(a1, 0, 0x10uLL); *a1 = 2; *((_DWORD *)a1 + 1) = a2; result = a1; a1[1] = a3; return result; } Q:[a3,a1,a2,]
A:{'a3': 'port', 'a1': 'sock_addr', 'a2': 'ip_0'}
a929bcff2f328ae24d8d2f5cdc89b316cc93d0a4677dc4ebb21b9d7cd4df04a4_a929bcff2f328ae24d8d2f5cdc89b316cc93d0a4677dc4ebb21b9d7cd4df04a4.jsonl.gz
sub_44D9BC
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_44D9BC(__int64 a1) { __int64 v2; // [rsp+18h] [rbp-8h] v2 = *(_QWORD *)sub_44BAE8(a1); *(_QWORD *)sub_44BAE8(a1) = 0LL; return v2; } Q:[sub_44D9BC,sub_44BAE8,]
A:{'sub_44D9BC': 'release', 'sub_44BAE8': '_M_ptr'}
7c16ecc1f4177280f9c554334c74c60179f6cbd74ce0674df9f0cc7c89723807_7c16ecc1f4177280f9c554334c74c60179f6cbd74ce0674df9f0cc7c89723807.jsonl.gz
sub_41145F
Help user generate meaningful names for variables and functions in the following code snippet.
_BOOL8 __fastcall sub_41145F(__int64 a1, __int64 a2) { unsigned __int64 v4; // [rsp+18h] [rbp-18h] v4 = *(_QWORD *)be_indexof(a1, 0xFFFFFFFFLL) + 16LL; return v4 >= *(_QWORD *)(*(_QWORD *)a2 + 32LL) && v4 < *(_QWORD *)(*(_QWORD *)a2 + 32LL) + 16LL * *(int *)(*(_QWORD *)a2 + 24LL); } Q:[a1,a2,v4,sub_41145F,]
A:{'a1': 'vm', 'a2': 'v', 'v4': 'next', 'sub_41145F': 'list_hasnext'}
766fcda9ae8f843f16029f36de9fe2b19ddfd2d7a292f41ecb27d8ce5fd424d3_766fcda9ae8f843f16029f36de9fe2b19ddfd2d7a292f41ecb27d8ce5fd424d3.jsonl.gz
sub_42BF99
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_42BF99(double a1) { return sqrt(a1); } Q:[a1,sub_42BF99,]
A:{'a1': 'x', 'sub_42BF99': 'qpOASES_getSqrt_4'}
9895acc23197a78b016e2ef6f09316b4db6f035f5b78cc4137e999b9fe3548fe_9895acc23197a78b016e2ef6f09316b4db6f035f5b78cc4137e999b9fe3548fe.jsonl.gz
sub_4527C0
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4527C0(__int64 a1, __int64 a2, unsigned int a3, __int64 a4, unsigned int a5) { __int64 result; // rax unsigned __int8 v9; // [rsp+2Fh] [rbp-1h] if ( *(_QWORD *)a1 && (unsigned __int8)sub_45F7E3(a1, 1LL) != 1 ) return 0LL; if ( *(_BYTE *)(a1 + 32) != 1 || *(_BYTE *)(a1 + 33) != 1 ) { sub_45612D(a1, 2LL, "tcbdb.c", 390LL, "tcbdbputcat"); if ( *(_QWORD *)a1 ) sub_45F85A(a1); result = 0LL; } else { v9 = sub_45D5DC(a1, a2, a3, a4, a5, 2LL); if ( *(_QWORD *)a1 ) sub_45F85A(a1); result = v9; } return result; } Q:[a3,a4,a1,a2,a5,v9,sub_4527C0,sub_45F7E3,sub_45612D,sub_45F85A,sub_45D5DC,]
A:{'a3': 'ksiz', 'a4': 'vbuf', 'a1': 'bdb', 'a2': 'kbuf', 'a5': 'vsiz', 'v9': 'rv', 'sub_4527C0': 'tcbdbputcat', 'sub_45F7E3': 'tcbdblockmethod', 'sub_45612D': 'tcbdbsetecode', 'sub_45F85A': 'tcbdbunlockmethod', 'sub_45D5DC': 'tcbdbputimpl'}
2e428f678bb4649d46092cdc472827139571622d9cb2e0251523384fe9462d06_2e428f678bb4649d46092cdc472827139571622d9cb2e0251523384fe9462d06.jsonl.gz
sub_414A10
Help user generate meaningful names for variables and functions in the following code snippet.
void __fastcall sub_414A10(__int64 a1, _BYTE *a2, _QWORD *a3) { __int64 v3; // r12 _BYTE *v4; // r14 __int64 v5; // rax __int64 v7; // rdx bool v9; // cf unsigned __int64 v10; // rax char *v11; // rcx signed __int64 v12; // rdx unsigned __int64 v13; // rbx __int64 v14; // r8 char *v15; // r9 __int64 v16; // r12 signed __int64 v17; // r8 char *v18; // r15 unsigned __int64 v19; // rsi char *v20; // rax unsigned __int64 v21; // rbx __int64 v22; // rax char *v23; // [rsp+0h] [rbp-48h] __int64 v24; // [rsp+0h] [rbp-48h] char *v25; // [rsp+0h] [rbp-48h] __int64 v26; // [rsp+8h] [rbp-40h] v3 = *(_QWORD *)(a1 + 8); v4 = *(_BYTE **)a1; v5 = (v3 - *(_QWORD *)a1) >> 3; if ( v5 == 0xFFFFFFFFFFFFFFFLL ) std::__throw_length_error("vector::_M_realloc_insert"); v7 = 1LL; if ( v5 ) v7 = (__int64)(*(_QWORD *)(a1 + 8) - *(_QWORD *)a1) >> 3; v9 = __CFADD__(v7, v5); v10 = v7 + v5; v11 = (char *)v9; v12 = a2 - v4; if ( v9 ) { v21 = 0x7FFFFFFFFFFFFFF8LL; } else { if ( !v10 ) { v13 = 0LL; goto LABEL_7; } if ( v10 > 0xFFFFFFFFFFFFFFFLL ) v10 = 0xFFFFFFFFFFFFFFFLL; v21 = 8 * v10; } v22 = operator new(v21); v12 = a2 - v4; v11 = (char *)v22; v13 = v22 + v21; LABEL_7: v14 = v3; v15 = &v11[v12 + 8]; v16 = *(_QWORD *)(a1 + 16); v17 = v14 - (_QWORD)a2; *(_QWORD *)&v11[v12] = *a3; v18 = &v15[v17]; if ( v12 > 0 ) { v26 = v17; v24 = (__int64)&v11[v12 + 8]; v20 = (char *)memmove(v11, v4, v12); v17 = v26; v15 = (char *)v24; v19 = v16 - (_QWORD)v4; v11 = v20; if ( v26 <= 0 ) goto LABEL_12; goto LABEL_14; } if ( v17 > 0 ) { LABEL_14: v25 = v11; memcpy(v15, a2, v17); v11 = v25; if ( !v4 ) goto LABEL_10; goto LABEL_11; } if ( v4 ) { LABEL_11: v19 = v16 - (_QWORD)v4; LABEL_12: v23 = v11; operator delete(v4, v19); v11 = v23; } LABEL_10: *(_QWORD *)a1 = v11; *(_QWORD *)(a1 + 8) = v18; *(_QWORD *)(a1 + 16) = v13; } Q:[sub_414A10,]
A:{'sub_414A10': '_M_realloc_insert'}
3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406_3b5d72f99f5eb3da8f19b8df0eef4a3aa16116874d08ef5e6ed040cc58832406.jsonl.gz
sub_413C06
Help user generate meaningful names for variables and functions in the following code snippet.
char *sub_413C06(__int64 a1, int a2, ...) { void *v2; // rsp _BYTE v4[5]; // [rsp+3h] [rbp-10Dh] BYREF __int64 v5; // [rsp+8h] [rbp-108h] gcc_va_list va; // [rsp+18h] [rbp-F8h] BYREF const void *v7; // [rsp+30h] [rbp-E0h] __int64 v8; // [rsp+38h] [rbp-D8h] va_start(va, a2); v5 = a1; *(_DWORD *)&v4[1] = a2; v8 = a2 - 1LL; v2 = alloca(16 * ((4LL * a2 + 15) / 0x10uLL)); v7 = (const void *)(4 * ((unsigned __int64)v4 >> 2)); sub_413809(a2, (__int64)v7, (unsigned int *)va); return sub_413B32(v5, *(int *)&v4[1], v7); } Q:[a1,a2,v5,va,v7,sub_413C06,sub_413809,sub_413B32,]
A:{'a1': 'data', 'a2': 'rank', 'v5': 'dataa', 'va': 'ap', 'v7': 'p_dims', 'sub_413C06': 'cast_rank_dims', 'sub_413809': 'loaddimsv', 'sub_413B32': 'cast_rank_pdims'}
42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48_42faebc29e6877a2606d36c9ee4a9acccbfddd98af102782d4cb07481a63ee48.jsonl.gz
sub_43B481
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 *__fastcall sub_43B481(__int64 a1) { __int64 **v1; // r12 __int64 *i; // rbx unsigned __int64 v3; // rdx v1 = *(__int64 ***)(a1 + 136); if ( ((unsigned __int64)v1[1] & 0xFFFFFFFFFFFFFFFLL) > qword_51C428 ) v1 = (__int64 **)(a1 + 112); for ( i = *v1; (*((_BYTE *)i + 15) & 0x20) != 0; i = (__int64 *)*i ) ; while ( (i[1] & 0xFFFFFFFFFFFFFFFuLL) <= qword_51C428 ) { v1 = (__int64 **)i; for ( i = (__int64 *)*i; (*((_BYTE *)i + 15) & 0x20) != 0; i = (__int64 *)*i ) ; } *(_QWORD *)(a1 + 136) = v1; *(_WORD *)(a1 + 80) = *((_BYTE *)v1 + 15) >> 6; if ( (*((_BYTE *)v1 + 15) & 0x10) != 0 ) v3 = *(_QWORD *)(a1 + 88) | 0x10LL; else v3 = *(_QWORD *)(a1 + 88) & 0xFFFFFFFFFFFFFFEFLL; *(_QWORD *)(a1 + 88) = v3; return i; } Q:[sub_43B481,]
A:{'sub_43B481': 'UpdateNode'}
2954c746386b679ec91901f40cababd226af864899b77eb9b01cf71ccddfb68d_2954c746386b679ec91901f40cababd226af864899b77eb9b01cf71ccddfb68d.jsonl.gz
sub_41D0A4
Help user generate meaningful names for variables and functions in the following code snippet.
_QWORD *__fastcall sub_41D0A4(_QWORD *a1) { _QWORD *result; // rax sub_41C4D6((__int64)a1); *a1 = off_426C38; a1[11] = 0LL; a1[12] = 0LL; a1[13] = 0LL; a1[14] = 0LL; a1[15] = 0LL; result = a1; a1[16] = 0LL; return result; } Q:[a1,sub_41D0A4,sub_41C4D6,]
A:{'a1': 'this', 'sub_41D0A4': 'VideoTrack', 'sub_41C4D6': 'Track'}
e191f669788b22c0b8bd75b10116cb2ec96663b4afd68f9ebf351c4b8ecb8433_e191f669788b22c0b8bd75b10116cb2ec96663b4afd68f9ebf351c4b8ecb8433.jsonl.gz
sub_42FEE4
Help user generate meaningful names for variables and functions in the following code snippet.
void sub_42FEE4() { ; } Q:[sub_42FEE4,]
A:{'sub_42FEE4': '~new_allocator'}
3bd21ea222a0d610c070c5de5898e24a1d63c1bb05bac3ff8405291fd5ad51b6_3bd21ea222a0d610c070c5de5898e24a1d63c1bb05bac3ff8405291fd5ad51b6.jsonl.gz
sub_40295D
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_40295D(__int64 a1, __int64 a2, int a3, __int64 a4, __int64 a5, __int64 a6) { __int64 v6; // rdx int j; // [rsp+24h] [rbp-Ch] int k; // [rsp+24h] [rbp-Ch] int i; // [rsp+28h] [rbp-8h] unsigned int v12; // [rsp+2Ch] [rbp-4h] v12 = 0; for ( i = 0; i < a3 / 8; ++i ) { for ( j = 0; j <= 7; ++j ) { if ( ((unsigned __int8)(1 << j) & *(_BYTE *)(i + a2)) == 0 ) ++v12; } if ( (*(_BYTE *)(i + a2) | *(_BYTE *)(i + a1)) != *(_BYTE *)(i + a1) ) sub_401345( "B-tree node", "used record space listed as free.", *(unsigned __int8 *)(i + a2) | (unsigned int)*(unsigned __int8 *)(i + a1), i, a5, a6); } for ( k = 0; k < a3 % 8; ++k ) { if ( ((unsigned __int8)(1 << k) & *(_BYTE *)(a3 / 8 + a2)) == 0 ) ++v12; if ( ((unsigned __int8)(1 << k) & *(_BYTE *)(a3 / 8 + a2)) != 0 ) { v6 = a3 / 8; if ( ((unsigned __int8)(1 << k) & *(_BYTE *)(v6 + a1)) == 0 ) sub_401345("B-tree node", "used record space listed as free.", v6, (unsigned int)k, a5, a6); } } return v12; } Q:[a3,a1,a2,v6,j,v12,sub_40295D,sub_401345,]
A:{'a3': 'area_len', 'a1': 'free_bmap', 'a2': 'used_bmap', 'v6': 'area_len', 'j': 'ja', 'v12': 'unused', 'sub_40295D': 'compare_bmaps', 'sub_401345': 'report'}
db3d4f096850f6f85e58fff5a846416e1c5f4c67b1b56e7df682b7dfb72ca518_db3d4f096850f6f85e58fff5a846416e1c5f4c67b1b56e7df682b7dfb72ca518.jsonl.gz
sub_41ACCA
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 sub_41ACCA() { if ( qword_455808 ) { LOBYTE(word_453482) = ((dword_455800 != *((_DWORD *)qword_455808 + 4)) << 7) | word_453482 & 0x7F; if ( (word_453482 & 0x80u) != 0 ) memcpy(qword_455808, &unk_4557F0, 0x14uLL); dword_455498 = *(_DWORD *)(qword_4554C0 + 16); qword_455808 = 0LL; } sub_41AC2D(); return qword_455838(); } Q:[sub_41ACCA,sub_41AC2D,]
A:{'sub_41ACCA': 'reset', 'sub_41AC2D': 'change_completed'}
115d9c9332c0b93740f4adf88b6dad4e3498e5c049937cf97438444fd59ff5ca_115d9c9332c0b93740f4adf88b6dad4e3498e5c049937cf97438444fd59ff5ca.jsonl.gz
sub_41E4AB
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_41E4AB(__int64 a1, __int64 a2, int a3) { int *v3; // rax char *v4; // rax __int64 v5; // r8 __int64 v6; // r9 __int64 result; // rax int *v8; // rax char *v9; // rax __int64 v10; // r8 __int64 v11; // r9 __int64 v12; // rax int *v13; // rax char *v14; // rax __int64 v15; // r8 __int64 v16; // r9 __int64 v17; // rax __int64 v18; // rax int *v19; // rax char *v20; // rax __int64 v21; // r8 __int64 v22; // r9 int *v23; // rax char *v24; // rax __int64 v25; // r8 __int64 v26; // r9 __int64 v27; // rax int *v28; // rax char *v29; // rax __int64 v30; // r8 __int64 v31; // r9 __int64 v32; // r8 __int64 v33; // r9 __int64 v34; // rax __int64 v35; // rax int *v36; // rax char *v37; // rax __int64 v38; // r8 __int64 v39; // r9 __int64 v40; // rcx __int64 v41; // r8 __int64 v42; // r9 int *v43; // rax char *v44; // rax __int64 v45; // r8 __int64 v46; // r9 __int64 v47; // rcx __int64 v48; // r8 __int64 v49; // r9 __int64 v50; // rbx socklen_t optlen; // [rsp+28h] [rbp-3078h] BYREF int optval; // [rsp+2Ch] [rbp-3074h] BYREF struct epoll_event events[1000]; // [rsp+30h] [rbp-3070h] BYREF struct epoll_event s; // [rsp+2F14h] [rbp-18Ch] BYREF sigset_t oset; // [rsp+2F20h] [rbp-180h] BYREF sigset_t set; // [rsp+2FA0h] [rbp-100h] BYREF int v58; // [rsp+3024h] [rbp-7Ch] unsigned int v59; // [rsp+3028h] [rbp-78h] int v60; // [rsp+302Ch] [rbp-74h] __int64 v61; // [rsp+3030h] [rbp-70h] epoll_data_t *v62; // [rsp+3038h] [rbp-68h] int v63; // [rsp+3040h] [rbp-60h] unsigned int v64; // [rsp+3044h] [rbp-5Ch] int v65; // [rsp+3048h] [rbp-58h] unsigned int v66; // [rsp+304Ch] [rbp-54h] const char *v67; // [rsp+3050h] [rbp-50h] time_t v68; // [rsp+3058h] [rbp-48h] int j; // [rsp+3060h] [rbp-40h] int i; // [rsp+3064h] [rbp-3Ch] __int64 v71; // [rsp+3068h] [rbp-38h] __int64 v72; // [rsp+3070h] [rbp-30h] int v73; // [rsp+307Ch] [rbp-24h] time_t v74; // [rsp+3080h] [rbp-20h] __int64 v75; // [rsp+3088h] [rbp-18h] _DWORD v76[2]; // [rsp+3090h] [rbp-10h] BYREF v61 = sub_440D1B(); v75 = sub_440D1B(); v74 = 0LL; v68 = 0LL; sigemptyset(&set); sigaddset(&set, 2); sigaddset(&set, 15); sigaddset(&set, 10); sigaddset(&set, 12); sigaddset(&set, 1); if ( *(__int64 *)(*(_QWORD *)(a1 + 112) + 392LL) > 0 ) v68 = time(0LL) + 3600; *(_DWORD *)(a1 + 152) = 0; *(_DWORD *)(a1 + 152) = epoll_create(1000); if ( *(_DWORD *)(a1 + 152) == -1 ) { v3 = __errno_location(); v4 = strerror(*v3); sub_41E286(0LL, 8, "Error in epoll creating: %s", (__int64)v4, v5, v6); result = 13LL; } else { memset(&s, 0, sizeof(s)); memset(events, 0, sizeof(events)); for ( i = 0; i < a3; ++i ) { s.data.fd = *(_DWORD *)(4LL * i + a2); s.events = 1; if ( epoll_ctl(*(_DWORD *)(a1 + 152), 1, *(_DWORD *)(4LL * i + a2), &s) == -1 ) { v8 = __errno_location(); v9 = strerror(*v8); sub_41E286(0LL, 8, "Error in epoll initial registering: %s", (__int64)v9, v10, v11); close(*(_DWORD *)(a1 + 152)); *(_DWORD *)(a1 + 152) = 0; return 13LL; } } v72 = *(_QWORD *)(a1 + 40); if ( *(_QWORD *)(a1 + 40) ) v12 = *(_QWORD *)(*(_QWORD *)(a1 + 40) + 560LL); else v12 = 0LL; v71 = v12; while ( v72 ) { if ( *(_QWORD *)(v72 + 320) ) { s.data.fd = *(_DWORD *)v72; s.events = 1; *(_DWORD *)(v72 + 616) = 1; if ( epoll_ctl(*(_DWORD *)(a1 + 152), 1, *(_DWORD *)v72, &s) == -1 ) { v13 = __errno_location(); v14 = strerror(*v13); sub_41E286(0LL, 8, "Error in epoll initial registering bridge: %s", (__int64)v14, v15, v16); close(*(_DWORD *)(a1 + 152)); *(_DWORD *)(a1 + 152) = 0; return 13LL; } } v72 = v71; if ( v71 ) v17 = *(_QWORD *)(v71 + 560); else v17 = 0LL; v71 = v17; } while ( dword_450904 ) { sub_413EEB(a1); if ( *(int *)(*(_QWORD *)(a1 + 112) + 412LL) > 0 ) sub_43F9A0(a1, *(unsigned int *)(*(_QWORD *)(a1 + 112) + 412LL), v61); v73 = 0; v72 = *(_QWORD *)(a1 + 40); if ( *(_QWORD *)(a1 + 40) ) v18 = *(_QWORD *)(*(_QWORD *)(a1 + 40) + 560LL); else v18 = 0LL; v71 = v18; while ( v72 ) { if ( v73 <= 0 ) { v73 = 1000; v74 = sub_440D1B(); } else { --v73; } *(_DWORD *)(v72 + 480) = -1; if ( *(_DWORD *)v72 != -1 ) { if ( *(_QWORD *)(v72 + 320) ) { sub_4414C4(a1, v72); if ( *(_BYTE *)(*(_QWORD *)(v72 + 320) + 36LL) != 1 && *(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) && *(_QWORD *)(*(_QWORD *)(v72 + 320) + 24LL) && v74 > *(_QWORD *)(*(_QWORD *)(v72 + 320) + 24LL) ) { if ( *(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL) == -1 ) { v58 = sub_422D68( **(_QWORD **)(*(_QWORD *)(v72 + 320) + 8LL), (unsigned __int16)*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(v72 + 320) + 8LL) + 8LL), *(_QWORD *)(v72 + 320) + 32LL, 0LL, 0LL); if ( !v58 ) { close(*(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL)); *(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL) = -1; *(_QWORD *)(*(_QWORD *)(v72 + 320) + 24LL) = 0LL; sub_42299F(a1, v72); *(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) = 0; } } else { optlen = 4; if ( getsockopt(*(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL), 1, 4, &optval, &optlen) || optval ) { close(*(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL)); *(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL) = -1; *(_QWORD *)(*(_QWORD *)(v72 + 320) + 24LL) = v74 + 5; } else { close(*(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL)); *(_DWORD *)(*(_QWORD *)(v72 + 320) + 32LL) = -1; *(_QWORD *)(*(_QWORD *)(v72 + 320) + 24LL) = 0LL; sub_42299F(a1, v72); *(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) = *(_DWORD *)(*(_QWORD *)(v72 + 320) + 20LL) - 1; } } } } if ( *(_WORD *)(v72 + 40) && !*(_QWORD *)(v72 + 320) && v74 - *(_QWORD *)(v72 + 48) > 3LL * *(unsigned __int16 *)(v72 + 40) / 2 ) { sub_41FC90(a1, v72, 19LL); } else if ( (unsigned int)sub_41682C(a1, v72) ) { sub_41FC90(a1, v72, 7LL); } else if ( *(_QWORD *)(v72 + 112) || *(_DWORD *)(v72 + 44) == 4 || *(_BYTE *)(v72 + 484) ) { if ( (*(_DWORD *)(v72 + 616) & 4) == 0 ) { s.data.fd = *(_DWORD *)v72; s.events = 5; if ( epoll_ctl(*(_DWORD *)(a1 + 152), 1, *(_DWORD *)v72, &s) == -1 && (*__errno_location() != 17 || epoll_ctl(*(_DWORD *)(a1 + 152), 3, *(_DWORD *)v72, &s) == -1) ) { v19 = __errno_location(); v20 = strerror(*v19); sub_41E286(0LL, 16, "Error in epoll re-registering to EPOLLOUT: %s", (__int64)v20, v21, v22); } *(_DWORD *)(v72 + 616) = 5; } *(_BYTE *)(v72 + 484) = 0; } else if ( (*(_DWORD *)(v72 + 616) & 4) != 0 ) { s.data.fd = *(_DWORD *)v72; s.events = 1; if ( epoll_ctl(*(_DWORD *)(a1 + 152), 1, *(_DWORD *)v72, &s) == -1 && (*__errno_location() != 17 || epoll_ctl(*(_DWORD *)(a1 + 152), 3, *(_DWORD *)v72, &s) == -1) ) { v23 = __errno_location(); v24 = strerror(*v23); sub_41E286(0LL, 16, "Error in epoll re-registering to EPOLLIN: %s", (__int64)v24, v25, v26); } *(_DWORD *)(v72 + 616) = 1; } } v72 = v71; if ( v71 ) v27 = *(_QWORD *)(v71 + 560); else v27 = 0LL; v71 = v27; } v73 = 0; for ( i = 0; i < *(_DWORD *)(a1 + 88); ++i ) { if ( *(_QWORD *)(*(_QWORD *)(a1 + 56) + 8LL * i) ) { v72 = *(_QWORD *)(*(_QWORD *)(a1 + 56) + 8LL * i); if ( *(_DWORD *)v72 == -1 ) { if ( v73 <= 0 ) { v73 = 1000; v74 = sub_440D1B(); } else { --v73; } if ( *(_QWORD *)(*(_QWORD *)(v72 + 320) + 72LL) ) { if ( *(_DWORD *)(*(_QWORD *)(v72 + 320) + 140LL) == 1 && *(_BYTE *)(*(_QWORD *)(v72 + 320) + 164LL) || !*(_DWORD *)(*(_QWORD *)(v72 + 320) + 140LL) && v74 > *(_QWORD *)(*(_QWORD *)(v72 + 320) + 72LL) ) { v58 = sub_408404(a1, v72); *(_QWORD *)(*(_QWORD *)(v72 + 320) + 72LL) = 0LL; if ( v58 ) { if ( ++*(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) == *(_DWORD *)(*(_QWORD *)(v72 + 320) + 20LL) ) *(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) = 0; } else { if ( *(_BYTE *)(*(_QWORD *)(v72 + 320) + 36LL) != 1 && *(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) ) *(_QWORD *)(*(_QWORD *)(v72 + 320) + 24LL) = v74 + 5; s.data.fd = *(_DWORD *)v72; s.events = 1; if ( *(_QWORD *)(v72 + 112) ) s.events |= 4u; if ( epoll_ctl(*(_DWORD *)(a1 + 152), 1, *(_DWORD *)v72, &s) == -1 ) { if ( *__errno_location() != 17 || epoll_ctl(*(_DWORD *)(a1 + 152), 3, *(_DWORD *)v72, &s) == -1 ) { v28 = __errno_location(); v29 = strerror(*v28); sub_41E286(0LL, 16, "Error in epoll re-registering bridge: %s", (__int64)v29, v30, v31); } } else { *(_DWORD *)(v72 + 616) = s.events; } } } } else { *(_QWORD *)(*(_QWORD *)(v72 + 320) + 72LL) = *(int *)(*(_QWORD *)(v72 + 320) + 148LL) + v74; if ( ++*(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) == *(_DWORD *)(*(_QWORD *)(v72 + 320) + 20LL) ) *(_DWORD *)(*(_QWORD *)(v72 + 320) + 16LL) = 0; } } } } v74 = time(0LL); if ( *(__int64 *)(*(_QWORD *)(a1 + 112) + 392LL) > 0 && v74 > v68 ) { v72 = *(_QWORD *)(a1 + 32); if ( *(_QWORD *)(a1 + 32) ) v34 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 504LL); else v34 = 0LL; v71 = v34; while ( v72 ) { if ( *(_DWORD *)v72 == -1 && *(_DWORD *)(v72 + 300) && *(_DWORD *)(v72 + 300) != -1 && v74 > *(_QWORD *)(v72 + 304) ) { if ( *(_QWORD *)(v72 + 16) ) v67 = *(const char **)(v72 + 16); else v67 = "<unknown>"; sub_41E286(0LL, 2, "Expiring persistent client %s due to timeout.", (__int64)v67, v32, v33); ++dword_4509A8; *(_DWORD *)(v72 + 300) = 0; sub_414212(v72, 15); sub_41FC90(a1, v72, 0LL); } v72 = v71; if ( v71 ) v35 = *(_QWORD *)(v71 + 504); else v35 = 0LL; v71 = v35; } v68 = time(0LL) + 3600; } sigprocmask(2, &set, &oset); v60 = epoll_wait(*(_DWORD *)(a1 + 152), events, 1000, 100); sigprocmask(2, &oset, 0LL); if ( v60 == -1 ) { if ( *__errno_location() != 4 ) { v36 = __errno_location(); v37 = strerror(*v36); sub_41E286(0LL, 8, "Error in epoll waiting: %s.", (__int64)v37, v38, v39); } } else if ( v60 ) { for ( i = 0; i < v60; ++i ) { for ( j = 0; j < a3; ++j ) { if ( v76[3 * i - 3095] == *(_DWORD *)(4LL * j + a2) ) { if ( (events[i].events & 3) != 0 ) { while ( 1 ) { s.data.fd = sub_420D33(a1, *(unsigned int *)(4LL * j + a2)); if ( s.data.fd == -1 ) break; s.events = 1; if ( epoll_ctl(*(_DWORD *)(a1 + 152), 1, s.data.fd, &s) == -1 ) { v43 = __errno_location(); v44 = strerror(*v43); sub_41E286(0LL, 8, "Error in epoll accepting: %s", (__int64)v44, v45, v46); } v72 = 0LL; if ( *(_QWORD *)(a1 + 40) ) { v62 = &s.data; v63 = 4; v65 = (HIBYTE(s.data.u32) << 24) - 1640531527; v65 += BYTE2(s.data.fd) << 16; v65 += BYTE1(s.data.ptr) << 8; v65 += LOBYTE(s.data.u32); v65 += 1640531527; v65 += 17973517; v65 ^= 0x7F76Du; v64 = (v65 << 8) ^ (-1622558010 - v65); v66 = -17973517 - v65 - v64; v66 ^= v64 >> 13; v65 -= v64; v65 -= v66; v65 ^= v66 >> 12; v64 -= v66; v64 -= v65; v64 ^= v65 << 16; v66 -= v65; v66 -= v64; v66 ^= v64 >> 5; v65 -= v64; v65 -= v66; v65 ^= v66 >> 3; v64 -= v66; v64 -= v65; v64 ^= v65 << 10; v66 -= v65; v66 -= v64; v66 ^= v64 >> 15; v59 = v66 & (*(_DWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 40) + 544LL) + 8LL) - 1); if ( *(_QWORD *)(**(_QWORD **)(*(_QWORD *)(a1 + 40) + 544LL) + 16LL * v59) ) v72 = *(_QWORD *)(**(_QWORD **)(*(_QWORD *)(a1 + 40) + 544LL) + 16LL * v59) - *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 40) + 544LL) + 32LL); else v72 = 0LL; while ( v72 && (*(_DWORD *)(v72 + 592) != 4 || memcmp(*(const void **)(v72 + 584), &s.data, 4uLL)) ) { if ( *(_QWORD *)(v72 + 576) ) v72 = *(_QWORD *)(v72 + 576) - *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 40) + 544LL) + 32LL); else v72 = 0LL; } } if ( !v72 ) sub_41E286(0LL, 8, "Error in epoll accepting: no context", v40, v41, v42); *(_DWORD *)(v72 + 616) = 1; } } break; } } if ( j == a3 ) sub_41FE73(a1, (unsigned int)v76[3 * i - 3095], events[i].events); } } v74 = time(0LL); sub_4369A0(a1, v74); sub_4423BB(a1, v74); if ( *(_BYTE *)(*(_QWORD *)(a1 + 112) + 364LL) && *(_DWORD *)(*(_QWORD *)(a1 + 112) + 4LL) ) { if ( *(_BYTE *)(*(_QWORD *)(a1 + 112) + 8LL) ) { if ( *(_DWORD *)(a1 + 140) >= *(_DWORD *)(*(_QWORD *)(a1 + 112) + 4LL) ) { sub_42D3FE(a1, 0LL); *(_DWORD *)(a1 + 140) = 0; } } else { v50 = *(int *)(*(_QWORD *)(a1 + 112) + 4LL) + v75; if ( v50 < sub_440D1B() ) { sub_42D3FE(a1, 0LL); v75 = sub_440D1B(); } } } if ( byte_450901 ) { sub_42D3FE(a1, 0LL); byte_450901 = 0; } if ( byte_450900 ) { sub_41E286(0LL, 1, "Reloading config.", v47, v48, v49); sub_40C278(a1, *(_QWORD *)(a1 + 112), 1u); sub_42FE33(a1, 1LL); sub_42FA9E(a1, 1LL); sub_42FB6B(a1); sub_41DCAD(*(_QWORD *)(a1 + 112)); sub_41DB9E(*(_QWORD *)(a1 + 112)); byte_450900 = 0; } if ( byte_450902 ) { sub_43E072(*(_QWORD *)(a1 + 8), 0LL); byte_450902 = 0; } } close(*(_DWORD *)(a1 + 152)); *(_DWORD *)(a1 + 152) = 0; result = 0LL; } return result; } Q:[a3,a1,a2,optlen,optval,s,oset,set,v58,v59,v60,v61,v62,v63,v64,v65,v66,v67,v68,v71,v72,v73,v74,v75,sub_41E4AB,sub_440D1B,sub_41E286,sub_413EEB,sub_43F9A0,sub_4414C4,sub_422D68,sub_42299F,sub_41FC90,sub_41682C,sub_408404,sub_414212,sub_420D33,sub_41FE73,sub_4369A0,sub_4423BB,sub_42D3FE,sub_40C278,sub_42FE33,sub_42FA9E,sub_42FB6B,sub_41DCAD,sub_41DB9E,sub_43E072,]
A:{'a3': 'listensock_count', 'a1': 'db', 'a2': 'listensock', 'optlen': 'len', 'optval': 'err', 's': 'ev', 'oset': 'origsig', 'set': 'sigblock', 'v58': 'rc', 'v59': '_hf_bkt', 'v60': 'fdcount', 'v61': 'start_time', 'v62': '_hj_key', 'v63': '_hj_k', 'v64': '_hj_j', 'v65': '_hj_i', 'v66': '_hf_hashv', 'v67': 'id', 'v68': 'expiration_check_time', 'v71': 'ctxt_tmp', 'v72': 'context', 'v73': 'time_count', 'v74': 'now', 'v75': 'last_backup', 'sub_41E4AB': 'mosquitto_main_loop', 'sub_440D1B': 'mosquitto_time', 'sub_41E286': 'log__printf', 'sub_413EEB': 'context__free_disused', 'sub_43F9A0': 'sys_tree__update', 'sub_4414C4': 'mosquitto__check_keepalive', 'sub_422D68': 'net__try_connect', 'sub_42299F': 'net__socket_close', 'sub_41FC90': 'do_disconnect', 'sub_41682C': 'db__message_write', 'sub_408404': 'bridge__connect', 'sub_414212': 'context__set_state', 'sub_420D33': 'net__socket_accept', 'sub_41FE73': 'loop_handle_reads_writes', 'sub_4369A0': 'session_expiry__check', 'sub_4423BB': 'will_delay__check', 'sub_42D3FE': 'persist__backup', 'sub_40C278': 'config__read', 'sub_42FE33': 'mosquitto_security_cleanup', 'sub_42FA9E': 'mosquitto_security_init', 'sub_42FB6B': 'mosquitto_security_apply', 'sub_41DCAD': 'log__close', 'sub_41DB9E': 'log__init', 'sub_43E072': '_sub__tree_print'}
95b8446f8b4bc23e4a7873f6fdab9296cce78992ea05afe4fd5d278de51f2f46_95b8446f8b4bc23e4a7873f6fdab9296cce78992ea05afe4fd5d278de51f2f46.jsonl.gz
sub_4013B5
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4013B5(__int64 a1, __int64 a2, __int64 a3) { return sub_402C67(0LL, a1, a2, a3); } Q:[a3,a1,a2,sub_4013B5,sub_402C67,]
A:{'a3': 'size', 'a1': 'node', 'a2': 'buf', 'sub_4013B5': 'xbc_node_compose_key', 'sub_402C67': 'xbc_node_compose_key_after'}
104d5b5b3691bc441036da28fc74673d250fc879443a7b6af651ebf1dae14ed1_104d5b5b3691bc441036da28fc74673d250fc879443a7b6af651ebf1dae14ed1.jsonl.gz
sub_40C8F3
Help user generate meaningful names for variables and functions in the following code snippet.
char *sub_40C8F3(int a1, char *a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, ...) { gcc_va_list va; // [rsp+18h] [rbp-F8h] BYREF __va_list_tag *v8; // [rsp+30h] [rbp-E0h] BYREF int v9; // [rsp+38h] [rbp-D8h] void *ptr; // [rsp+40h] [rbp-D0h] int v11; // [rsp+48h] [rbp-C8h] char *v12; // [rsp+50h] [rbp-C0h] unsigned int *v13; // [rsp+58h] [rbp-B8h] __int64 v14; // [rsp+70h] [rbp-A0h] __int64 v15; // [rsp+78h] [rbp-98h] __int64 v16; // [rsp+80h] [rbp-90h] __int64 v17; // [rsp+88h] [rbp-88h] va_start(va, a6); v14 = a3; v15 = a4; v16 = a5; v17 = a6; va[0].gp_offset = 16; v8 = va; v9 = 0; ptr = 0LL; v11 = a1; v13 = (unsigned int *)sub_4014FD("<mpca_lang>", a2); v12 = sub_40C239(v13, (__int64)&v8); sub_401AC7((void **)v13); free(ptr); return v12; } Q:[a1,a2,v8,v12,sub_40C8F3,sub_4014FD,sub_40C239,sub_401AC7,]
A:{'a1': 'flags', 'a2': 'language', 'v8': 'st', 'v12': 'err', 'sub_40C8F3': 'mpca_lang', 'sub_4014FD': 'mpc_input_new_string', 'sub_40C239': 'mpca_lang_st', 'sub_401AC7': 'mpc_input_delete'}
45adb1007db48f04da3208026b4363d2a567caca85fbe65662c5af6a9b034a10_45adb1007db48f04da3208026b4363d2a567caca85fbe65662c5af6a9b034a10.jsonl.gz
sub_407DF5
Help user generate meaningful names for variables and functions in the following code snippet.
_QWORD *__fastcall sub_407DF5(__int64 a1, __int64 a2, unsigned __int64 a3) { unsigned __int64 v5; // [rsp+20h] [rbp-30h] _QWORD *v6; // [rsp+28h] [rbp-28h] unsigned __int64 j; // [rsp+30h] [rbp-20h] unsigned __int64 i; // [rsp+38h] [rbp-18h] __int64 v9; // [rsp+40h] [rbp-10h] unsigned __int64 v10; // [rsp+48h] [rbp-8h] v6 = calloc(0x60uLL, 8uLL); v10 = 0LL; v9 = 0LL; for ( i = 0LL; i <= 2; ++i ) { for ( j = 0LL; j <= 0x1F; ++j ) { v5 = 32 * i + j; if ( ((a3 >> j) & 1) != 0 ) { v6[v5] = *(_QWORD *)(8 * v10 + a1); v10 = (v10 + 1) % 0x12; } else { v6[v5] = *(_QWORD *)(8 * v9++ + a2); } v6[v5] += 8 * i; } } fprintf(stderr, "%s:%d:%s: ", "src/access_pattern.c", 436LL, "access_pattern_assemble"); fprintf(stderr, "a %lu %d e %lu %d\n", v10, 18LL, v9, 78LL); if ( v10 ) __assert_fail("a == 0", "src/access_pattern.c", 0x1B5u, "access_pattern_assemble"); if ( v9 != 78 ) __assert_fail("e == NUM_EVICS", "src/access_pattern.c", 0x1B6u, "access_pattern_assemble"); return v6; } Q:[a3,a1,a2,v6,v9,v10,sub_407DF5,]
A:{'a3': 'assembly', 'a1': 'aggs', 'a2': 'evics', 'v6': 'pat', 'v9': 'e', 'v10': 'a', 'sub_407DF5': 'access_pattern_assemble'}
c41da10647d3e35f22e990a85ddd435e53f3973023613bf89d46365da2af9f22_c41da10647d3e35f22e990a85ddd435e53f3973023613bf89d46365da2af9f22.jsonl.gz
sub_402C60
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_402C60(__int64 a1) { return sub_401AED(a1); } Q:[a1,sub_402C60,sub_401AED,]
A:{'a1': 'functionPtr', 'sub_402C60': 'set_disconnect_function', 'sub_401AED': 'disconnectfunction_set'}
decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08_decb9d72b93d941cc30c251e69b1ae930ef147e67c065af3feea2db57aca5f08.jsonl.gz
sub_457011
Help user generate meaningful names for variables and functions in the following code snippet.
_QWORD *__fastcall sub_457011(_QWORD *a1, int a2) { __cpu_mask v2; // rbx __cpu_mask v3; // rbx __cpu_mask v4; // rbx __cpu_mask v5; // rbx __cpu_mask v6; // rbx __cpu_mask v7; // rbx __cpu_mask v8; // rbx __cpu_mask v9; // rbx int i; // [rsp+18h] [rbp-138h] cpu_set_t cpuset; // [rsp+30h] [rbp-120h] BYREF cpu_set_t v13; // [rsp+B0h] [rbp-A0h] BYREF unsigned __int64 v14; // [rsp+138h] [rbp-18h] v14 = __readfsqword(0x28u); if ( sched_getaffinity(0, 0x80uLL, &cpuset) ) __assert_fail("!(ret)", "bench/numa.c", 0xD4u, "bind_to_cpu"); memset(&v13, 0, sizeof(v13)); if ( a2 == -1 ) { for ( i = 0; i < *(_DWORD *)(qword_5B4CC0 + 372); ++i ) { if ( (unsigned __int64)i <= 0x3FF ) v13.__bits[(unsigned __int64)i >> 6] |= 1LL << (i & 0x3F); } } else { if ( a2 < 0 || a2 >= *(_DWORD *)(qword_5B4CC0 + 372) ) __assert_fail("!(target_cpu < 0 || target_cpu >= g->p.nr_cpus)", "bench/numa.c", 0xDEu, "bind_to_cpu"); if ( (unsigned __int64)a2 <= 0x3FF ) v13.__bits[(unsigned __int64)a2 >> 6] |= 1LL << (a2 & 0x3F); } if ( sched_setaffinity(0, 0x80uLL, &v13) ) __assert_fail("!(ret)", "bench/numa.c", 0xE3u, "bind_to_cpu"); v2 = cpuset.__bits[1]; *a1 = cpuset.__bits[0]; a1[1] = v2; v3 = cpuset.__bits[3]; a1[2] = cpuset.__bits[2]; a1[3] = v3; v4 = cpuset.__bits[5]; a1[4] = cpuset.__bits[4]; a1[5] = v4; v5 = cpuset.__bits[7]; a1[6] = cpuset.__bits[6]; a1[7] = v5; v6 = cpuset.__bits[9]; a1[8] = cpuset.__bits[8]; a1[9] = v6; v7 = cpuset.__bits[11]; a1[10] = cpuset.__bits[10]; a1[11] = v7; v8 = cpuset.__bits[13]; a1[12] = cpuset.__bits[12]; a1[13] = v8; v9 = cpuset.__bits[15]; a1[14] = cpuset.__bits[14]; a1[15] = v9; return a1; } Q:[a1,a2,i,cpuset,v13,sub_457011,]
A:{'a1': 'retstr', 'a2': 'target_cpu', 'i': 'cpu', 'cpuset': 'orig_mask', 'v13': 'mask', 'sub_457011': 'bind_to_cpu'}
2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89_2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89.jsonl.gz
sub_427066
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_427066(__int64 a1, unsigned int a2, int *a3, _QWORD *a4) { __int64 result; // rax int v5; // eax unsigned __int16 v8; // [rsp+26h] [rbp-Ah] __int16 v9; // [rsp+2Ah] [rbp-6h] if ( a2 < *(_DWORD *)(a1 + 12) ) LODWORD(result) = 0; else LODWORD(result) = sub_414851( "(physical_page < cache->num_index_entries)", 0x405u, (__int64)"vdo", "page-cache.c", 0x57u, "physical page %u is invalid", a2); if ( (_DWORD)result ) return (unsigned int)result; v9 = *(_WORD *)(*(_QWORD *)(a1 + 24) + 2LL * a2); v8 = v9 & 0x7FFF; if ( v9 < 0 || v8 >= *(_WORD *)(a1 + 16) ) { *a4 = 0LL; } else { *a4 = *(_QWORD *)(a1 + 32) + 320LL * v8; _mm_lfence(); } if ( v9 >= 0 ) v5 = -1; else v5 = v8; *a3 = v5; return 0LL; } Q:[a3,a4,a1,a2,v5,v8,v9,sub_427066,sub_414851,]
A:{'a3': 'queue_index', 'a4': 'page_ptr', 'a1': 'cache', 'a2': 'physical_page', 'v5': 'result', 'v8': 'index', 'v9': 'index_value', 'sub_427066': 'get_page_and_index', 'sub_414851': 'uds_assertion_failed'}
b29eb5653fcf2ce909f4d164785b08883df3ed1463b96e32f623211263040ba7_b29eb5653fcf2ce909f4d164785b08883df3ed1463b96e32f623211263040ba7.jsonl.gz
sub_4112A3
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 sub_4112A3() { __int64 result; // rax if ( xmlChildElementCount() ) result = 0LL; else result = xmlNodeGetContent(); return result; } Q:[sub_4112A3,]
A:{'sub_4112A3': 'xml_node_get_text'}
7bcb8ab7ee715e84a7cecd6355da5d5921a1aa982cb16b847b46e144b62f35b6_7bcb8ab7ee715e84a7cecd6355da5d5921a1aa982cb16b847b46e144b62f35b6.jsonl.gz
sub_409B60
Help user generate meaningful names for variables and functions in the following code snippet.
char *__fastcall sub_409B60(__int64 a1, char *a2) { char v2; // al int v3; // edx char v4; // al char *v5; // r8 int v6; // ecx char *result; // rax __int64 v8; // rdx int v9; // er8 int v10; // er8 __int64 v11; // rax int v12; // edx _BYTE *v13; // r9 int v14; // er11 __int64 v15; // rax v2 = *a2; if ( (unsigned __int8)(*a2 - 48) <= 9u ) { while ( 1 ) { v8 = 1LL; if ( v2 >= 0 ) goto LABEL_19; if ( (v2 & 0xF0) == 0xE0 ) break; if ( (v2 & 0xF8) == 0xF0 ) { LODWORD(v8) = 3; LABEL_14: if ( (a2[1] & 0xC0) == 0x80 ) { if ( (a2[2] & 0xC0) == 0x80 ) { if ( (_DWORD)v8 == 2 ) goto LABEL_18; v8 = 3LL; if ( (a2[3] & 0xC0) == 0x80 ) goto LABEL_18; } else { v8 = 2LL; } } else { v8 = 1LL; } goto LABEL_19; } if ( (v2 & 0xE0) == 0xC0 ) { LODWORD(v8) = 1; if ( (a2[1] & 0xC0) != 0x80 ) { v2 = *++a2; if ( !*a2 ) { LABEL_27: result = 0LL; *(_BYTE *)(a1 + 9028) = 0; return result; } goto LABEL_20; } LABEL_18: v8 = (int)v8 + 1; } LABEL_19: a2 += v8; v2 = *a2; if ( !*a2 ) goto LABEL_27; LABEL_20: if ( v2 == 39 ) { v2 = *++a2; goto LABEL_2; } } LODWORD(v8) = 2; goto LABEL_14; } LABEL_2: v3 = 0; if ( v2 ) { while ( 1 ) { while ( 1 ) { v5 = a2 + 1; if ( v2 == 10 ) goto LABEL_12; if ( v2 == 13 ) { if ( a2[1] != 10 ) goto LABEL_12; *(_BYTE *)(a1 + v3 + 9028) = 0; return a2 + 2; } v6 = v3 + 1; if ( v2 != 9 ) break; ++a2; *(_BYTE *)(a1 + v3 + 9028) = 32; v2 = *v5; ++v3; if ( !*v5 ) goto LABEL_11; } if ( v2 < 0 ) break; v4 = *a2++; *(_BYTE *)(a1 + v3++ + 9028) = v4; LABEL_6: v2 = *a2; if ( !*a2 ) goto LABEL_11; } if ( (v2 & 0xF0) == 0xE0 ) { if ( (a2[1] & 0xC0) == 0x80 ) { v10 = 1; goto LABEL_36; } } else { if ( (v2 & 0xF8) != 0xF0 ) { if ( (v2 & 0xE0) != 0xC0 ) goto LABEL_32; v9 = 1; if ( (a2[1] & 0xC0) != 0x80 ) goto LABEL_32; goto LABEL_40; } if ( (a2[1] & 0xC0) == 0x80 ) { v10 = 2; LABEL_36: if ( (a2[2] & 0xC0) != 0x80 ) { *(_BYTE *)(a1 + v3 + 9028) = *a2; *(_BYTE *)(a1 + v6 + 9028) = a2[1]; LABEL_50: v3 = v6 + 1; a2 += 2; goto LABEL_6; } if ( v10 == 1 ) { v9 = 2; } else { if ( (a2[3] & 0xC0) != 0x80 ) { v15 = v3; v13 = a2 + 2; v12 = v3 + 2; v14 = 1; *(_BYTE *)(a1 + v15 + 9028) = *a2; *(_BYTE *)(a1 + v6 + 9028) = a2[1]; v9 = 2; goto LABEL_41; } v9 = 3; } LABEL_40: v11 = v3; v12 = v3 + 2; *(_BYTE *)(a1 + v11 + 9028) = *a2; v13 = a2 + 2; *(_BYTE *)(a1 + v6 + 9028) = a2[1]; v14 = v9 - 1; if ( v9 == 1 ) goto LABEL_50; LABEL_41: *(_BYTE *)(a1 + v12 + 9028) = *v13; if ( v14 != 1 ) { *(_BYTE *)(a1 + v12 + 1 + 9028) = v13[1]; v3 = v9 + v6; a2 += v9 + 1; goto LABEL_6; } goto LABEL_33; } } LABEL_32: v9 = 0; *(_BYTE *)(a1 + v3 + 9028) = *a2; LABEL_33: v3 = v9 + v6; a2 += v9 + 1; goto LABEL_6; } LABEL_11: v5 = 0LL; LABEL_12: result = v5; *(_BYTE *)(a1 + v3 + 9028) = 0; return result; } Q:[a1,sub_409B60,]
A:{'a1': 'this', 'sub_409B60': 'GetTextLine'}
09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7_09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7.jsonl.gz
sub_44B7C8
Help user generate meaningful names for variables and functions in the following code snippet.
const char *__fastcall sub_44B7C8(const char *a1, const char *a2, int a3) { size_t v3; // rax char *dest; // [rsp+28h] [rbp-8h] if ( !a1 ) __assert_fail("strbuf", "sflstr.c", 0x6A7u, "deletestring"); if ( !a2 ) __assert_fail("strtodel", "sflstr.c", 0x6A8u, "deletestring"); while ( *a1 ) { dest = a3 ? strstr(a1, a2) : sub_44BE26(a1, a2); if ( !dest ) break; v3 = strlen(a2); strcpy(dest, &dest[v3]); } return a1; } Q:[a3,a1,a2,dest,sub_44B7C8,sub_44BE26,]
A:{'a3': 'ignorecase', 'a1': 'strbuf', 'a2': 'strtodel', 'dest': 'offset', 'sub_44B7C8': 'deletestring', 'sub_44BE26': 'stricstr'}
16265d36e785b01ab7c4f58b3656e0c6d08390a77bbd0bef82e61eaee743327b_16265d36e785b01ab7c4f58b3656e0c6d08390a77bbd0bef82e61eaee743327b.jsonl.gz
sub_4097BB
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4097BB(_QWORD *a1, int a2, int a3) { int v3; // edx int v4; // eax int v5; // edx int v6; // eax char *v9; // [rsp+18h] [rbp-18h] Window v10; // [rsp+20h] [rbp-10h] unsigned int v11; // [rsp+28h] [rbp-8h] int i; // [rsp+2Ch] [rbp-4h] v11 = 1; for ( i = *(__int16 *)(sub_4070B0() + 16) - 1; i >= 0; --i ) { v10 = *(_QWORD *)(*(_QWORD *)sub_4070B0() + 8LL * i); v9 = sub_408A36(v10); if ( v9 && v9[248] && v9[249] ) { if ( !v11 || v10 == *a1 ) return v11; if ( a2 == *((__int16 *)v9 + 116) && *((_WORD *)v9 + 118) == 1 ) goto LABEL_21; if ( a2 < *((__int16 *)v9 + 116) + *((__int16 *)v9 + 118) ) v3 = a2 + 1; else v3 = *((__int16 *)v9 + 118) + *((__int16 *)v9 + 116); v4 = *((__int16 *)v9 + 116); if ( a2 >= (__int16)v4 ) v4 = a2; if ( v3 - v4 > 0 ) { LABEL_21: if ( a3 == *((__int16 *)v9 + 117) && *((_WORD *)v9 + 119) == 1 ) goto LABEL_22; v5 = a3 < *((__int16 *)v9 + 117) + *((__int16 *)v9 + 119) ? a3 + 1 : *((__int16 *)v9 + 119) + *((__int16 *)v9 + 117); v6 = *((__int16 *)v9 + 117); if ( a3 >= (__int16)v6 ) v6 = a3; if ( v5 - v6 > 0 ) LABEL_22: v11 = 0; } } } return v11; } Q:[a3,a1,a2,v9,v10,v11,sub_4097BB,sub_4070B0,sub_408A36,]
A:{'a3': 'y', 'a1': 'c', 'a2': 'x', 'v9': 'o', 'v10': 'w', 'v11': 'ok', 'sub_4097BB': 'client_warp_check', 'sub_4070B0': 'windows_in_play', 'sub_408A36': 'client_create'}
012101ef44f2c1f7acc09c1d0052d3172f8cf0afd1317e7724ae7b2a364c4db4_012101ef44f2c1f7acc09c1d0052d3172f8cf0afd1317e7724ae7b2a364c4db4.jsonl.gz
sub_402400
Help user generate meaningful names for variables and functions in the following code snippet.
void __fastcall sub_402400(__int64 a1) { boost::chrono::steady_clock *v2; // rsi int v3; // ebx __int64 v4; // rbx boost::chrono::steady_clock *v5; // rdi int v6; // eax boost::chrono::steady_clock *v7; // r8 boost::chrono::steady_clock *v8; // rsi int v9; // ebx int v10; // ebp boost::chrono::steady_clock *v11; // rdi __int64 v12; // rax unsigned int v13; // edx int v14; // eax int v15; // eax boost::chrono::steady_clock *v16; // rsi boost::chrono::steady_clock *v17; // rdi int v18; // er13 int v19; // er14 unsigned int v20; // ebp __int64 v21; // rbx int v22; // eax int v23; // eax int v24; // eax boost::chrono::steady_clock *v25; // rsi boost::chrono::steady_clock *v26; // rdi int v27; // er12 int v28; // er13 unsigned __int64 v29; // rbx __int64 v30; // rax int v31; // eax __int64 v32; // rbp int v33; // ebx int v34; // er12 boost::chrono::steady_clock *v35; // rsi boost::chrono::steady_clock **v36; // rdi int v37; // eax boost::chrono::steady_clock *v38; // rcx boost::chrono::steady_clock *v39; // rdx __int64 i; // rbx int v41; // eax boost::chrono::steady_clock *v42; // rsi __int64 j; // r13 __int64 v44; // r14 __int64 v45; // rbx boost::chrono::steady_clock *v46; // rdi int v47; // eax boost::chrono::steady_clock *v48; // r8 boost::chrono::steady_clock *v49; // rsi int v50; // ebx int v51; // ebp boost::chrono::steady_clock *v52; // rdi unsigned int v53; // edx __int64 v54; // rax int v55; // eax int v56; // eax boost::chrono::steady_clock *v57; // rsi boost::chrono::steady_clock *v58; // rdi unsigned int v59; // ebp __int64 v60; // rbx __int64 v61; // rax int v62; // eax int v63; // eax boost::chrono::steady_clock *v64; // rsi boost::chrono::steady_clock *v65; // rdi int v66; // er12 unsigned __int64 v67; // rbx __int64 v68; // rax int v69; // eax __int64 v70; // rbp int v71; // ebx int v72; // er12 boost::chrono::steady_clock *v73; // rsi boost::chrono::steady_clock **v74; // rdi int v75; // eax boost::chrono::steady_clock *v76; // rcx boost::chrono::steady_clock *v77; // rdx __int64 k; // rbx __int64 v79; // rax boost::chrono::steady_clock *v80; // rsi int v81; // ebx __int64 v82; // rbx boost::chrono::steady_clock *v83; // rdi int v84; // eax boost::chrono::steady_clock *v85; // r8 boost::chrono::steady_clock *v86; // rsi int v87; // ebx int v88; // ebp boost::chrono::steady_clock *v89; // rdi unsigned int v90; // edx __int64 v91; // rax int v92; // eax int v93; // eax boost::chrono::steady_clock *v94; // rsi boost::chrono::steady_clock *v95; // rdi unsigned int v96; // ebp __int64 v97; // rbx int v98; // eax int v99; // eax int v100; // eax boost::chrono::steady_clock *v101; // rsi boost::chrono::steady_clock *v102; // rdi unsigned __int64 v103; // rbx unsigned int v104; // ebp __int64 v105; // rax int v106; // eax __int64 v107; // rbx int v108; // ebp int v109; // er12 boost::chrono::steady_clock *v110; // rsi boost::chrono::steady_clock **v111; // rdi int v112; // eax boost::chrono::steady_clock *v113; // rdx boost::chrono::steady_clock *v114; // rcx __int64 l; // rbp int v116; // eax boost::chrono::steady_clock *v117; // rsi __int64 v118; // rbx __int64 v119; // rax __int64 v120; // rbx boost::chrono::steady_clock *v121; // rdi int v122; // eax boost::chrono::steady_clock *v123; // r8 boost::chrono::steady_clock *v124; // rsi int v125; // ebx int v126; // ebp boost::chrono::steady_clock *v127; // rdi unsigned int v128; // edx __int64 v129; // rax int v130; // eax int v131; // eax boost::chrono::steady_clock *v132; // rsi boost::chrono::steady_clock *v133; // rdi int v134; // er12 int v135; // er13 unsigned int v136; // ebx __int64 v137; // r14 __int64 v138; // rax int v139; // eax int v140; // eax boost::chrono::steady_clock *v141; // rdi boost::chrono::steady_clock *v142; // rsi int v143; // er12 int v144; // er13 unsigned __int64 v145; // rbx __int64 v146; // r14 __int64 v147; // rax int v148; // eax __int64 v149; // rbp int v150; // ebx int v151; // er12 boost::chrono::steady_clock *v152; // rsi boost::chrono::steady_clock **v153; // rdi int v154; // eax boost::chrono::steady_clock *v155; // rdx boost::chrono::steady_clock *v156; // rcx __int64 m; // rbx __int64 v158; // rax int v159; // [rsp+4h] [rbp-C4h] int v160; // [rsp+4h] [rbp-C4h] int v161; // [rsp+4h] [rbp-C4h] int v162; // [rsp+8h] [rbp-C0h] int v163; // [rsp+8h] [rbp-C0h] int v164; // [rsp+8h] [rbp-C0h] int v165; // [rsp+8h] [rbp-C0h] __int64 v166; // [rsp+10h] [rbp-B8h] int v167; // [rsp+18h] [rbp-B0h] __int64 v168; // [rsp+28h] [rbp-A0h] BYREF boost::chrono::steady_clock *v169[2]; // [rsp+30h] [rbp-98h] BYREF boost::chrono::steady_clock *v170; // [rsp+40h] [rbp-88h] void *v171; // [rsp+50h] [rbp-78h] BYREF __int64 v172; // [rsp+58h] [rbp-70h] boost::chrono::steady_clock *v173[11]; // [rsp+70h] [rbp-58h] BYREF printf("%u, sorted, 32bit\n", (unsigned int)a1); *(_OWORD *)v169 = 0LL; v166 = 10 * a1; v170 = 0LL; sub_403EA0(&v171, 10 * a1, v173); sub_403F20(v173, a1, &v168); v2 = v169[1]; v3 = 0; v159 = 7 * a1; do { while ( 1 ) { LODWORD(v168) = v3; if ( v170 == v2 ) break; *(_DWORD *)v2 = v3; v2 = (boost::chrono::steady_clock *)((char *)v2 + 4); v3 += 7; v169[1] = v2; if ( v3 == v159 ) goto LABEL_5; } sub_404170(v169, v2, &v168); v2 = v169[1]; v3 += 7; } while ( v3 != v159 ); LABEL_5: v4 = sub_404E70(v169[0], v171, 0LL, (v2 - v169[0]) >> 2); sub_403FC0(&v171, v4); v5 = v169[0]; if ( v4 != sub_404560(v169[0], (v169[1] - v169[0]) >> 2, 0LL) ) __assert_fail( "len == Traits::compressed_size(&plain[0], plain.size())", "test.cc", 0x18u, "void run_compression_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Sorted3" "2Traits; typename Traits::type = unsigned int]"); v6 = boost::chrono::steady_clock::now(v5); v7 = v169[1]; v8 = v169[0]; v9 = 5; v10 = v6; do { v11 = (boost::chrono::steady_clock *)v171; sub_405260(v171, v173[0], 0LL, (v7 - v8) >> 2); v7 = v169[1]; v8 = v169[0]; if ( (v169[1] - v169[0]) >> 2 ) { v11 = v173[0]; v12 = 0LL; v13 = 0; do { if ( *((_DWORD *)v169[0] + v12) != *((_DWORD *)v173[0] + v12) ) __assert_fail( "plain[j] == out[j]", "test.cc", 0x25u, "void run_uncompression_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&, std::vec" "tor<typename Traits::type>&) [with Traits = Sorted32Traits; typename Traits::type = unsigned int]"); v12 = ++v13; } while ( v13 < (unsigned __int64)((v169[1] - v169[0]) >> 2) ); } --v9; } while ( v9 ); v14 = boost::chrono::steady_clock::now(v11); printf(" %s decode -> %f\n", "Sorted32", (double)(v14 - v10) * 0.000000001 / 5.0); v15 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s decode -> %f\n"); v16 = v169[0]; v17 = v169[1]; v18 = 5; v19 = v15; do { if ( v16 == v17 ) break; v20 = 0; v21 = 0LL; do { v22 = sub_405540(v171, v172 - (_QWORD)v171, 0LL, v21); v16 = v169[0]; if ( v22 != *((_DWORD *)v169[0] + v21) ) __assert_fail( "plain[i] == v", "test.cc", 0x33u, "void run_select_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = So" "rted32Traits; typename Traits::type = unsigned int]"); v17 = v169[1]; v20 += ((v169[1] - v169[0]) >> 2) / 0x64uLL + 1; v21 = v20; } while ( v20 < (unsigned __int64)((v169[1] - v169[0]) >> 2) ); --v18; } while ( v18 ); v23 = boost::chrono::steady_clock::now(v17); printf(" %s select -> %f\n", "Sorted32", (double)(v23 - v19) * 0.000000001 / 5.0); v24 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s select -> %f\n"); v25 = v169[0]; v26 = v169[1]; v27 = 5; v28 = v24; do { if ( v25 == v26 ) break; v29 = 0LL; do { v30 = sub_405C00(v171, v172 - (_QWORD)v171, *((unsigned int *)v25 + v29), 0LL, &v168); v25 = v169[0]; if ( *((_DWORD *)v169[0] + v29) != (_DWORD)v168 ) __assert_fail( "found == plain[i]", "test.cc", 0x43u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = So" "rted32Traits; typename Traits::type = unsigned int]"); if ( v30 != v29 ) __assert_fail( "i == pos", "test.cc", 0x44u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = So" "rted32Traits; typename Traits::type = unsigned int]"); v26 = v169[1]; v29 += ((v169[1] - v169[0]) >> 2) / 0x1388uLL + 1; } while ( (v169[1] - v169[0]) >> 2 > v29 ); --v27; } while ( v27 ); v31 = boost::chrono::steady_clock::now(v26); printf(" %s search -> %f\n", "Sorted32", (double)(v31 - v28) * 0.000000001 / 5.0); v32 = v172 - (_QWORD)v171; sub_4040E0(&v171, v172 - (_QWORD)v171 + 1024); v33 = 100; v34 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)&v171); do { while ( 1 ) { v36 = (boost::chrono::steady_clock **)((char *)v171 + v32); LODWORD(v168) = *((_DWORD *)v169[1] - 1) + 5; v32 += sub_405F80((char *)v171 + v32); if ( v169[1] == v170 ) break; v35 = (boost::chrono::steady_clock *)((char *)v169[1] + 4); *(_DWORD *)v169[1] = v168; v169[1] = v35; if ( !--v33 ) goto LABEL_29; } v36 = v169; sub_4042C0(v169, v169[1], &v168); --v33; } while ( v33 ); LABEL_29: v37 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)v36); printf(" %s append -> %f\n", "Sorted32", (double)(v37 - v34) * 0.000000001 / 5.0); v38 = v169[1]; v39 = v169[0]; for ( i = 1LL; i != 101; ++i ) { v41 = sub_405540(v171, v32, 0LL, ((v38 - v39) >> 2) - i); v38 = v169[1]; v39 = v169[0]; if ( v41 != *((_DWORD *)v169[0] + ((v169[1] - v169[0]) >> 2) - i) ) __assert_fail( "sel == plain[plain.size() - i]", "test.cc", 0x60u, "void run_append_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Sorted32Tr" "aits; typename Traits::type = unsigned int]"); } if ( v173[0] ) operator delete(v173[0]); if ( v171 ) operator delete(v171); if ( v169[0] ) operator delete(v169[0]); printf("%u, sorted, 64bit\n", (unsigned int)a1); *(_OWORD *)v169 = 0LL; v170 = 0LL; sub_403EA0(&v171, v166, v173); sub_403CB0(v173, a1, &v168); v42 = v169[1]; for ( j = 0LL; ; j = v44 ) { v168 = j * j; if ( v170 == v42 ) break; *(_QWORD *)v42 = j * j; v44 = j + 1; v42 = (boost::chrono::steady_clock *)((char *)v42 + 8); v169[1] = v42; if ( a1 == j + 1 ) goto LABEL_43; LABEL_40: ; } sub_404410(v169, v42, &v168); v44 = j + 1; v42 = v169[1]; if ( a1 != j + 1 ) goto LABEL_40; LABEL_43: v45 = sub_404F60(v169[0], v171, 0LL, (v42 - v169[0]) >> 3); sub_403FC0(&v171, v45); v46 = v169[0]; if ( v45 != sub_4045C0(v169[0], (v169[1] - v169[0]) >> 3, 0LL) ) __assert_fail( "len == Traits::compressed_size(&plain[0], plain.size())", "test.cc", 0x18u, "void run_compression_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Sorted6" "4Traits; typename Traits::type = long unsigned int]"); v47 = boost::chrono::steady_clock::now(v46); v48 = v169[1]; v49 = v169[0]; v50 = 5; v51 = v47; do { v52 = (boost::chrono::steady_clock *)v171; sub_405380(v171, v173[0], 0LL, (v48 - v49) >> 3); v48 = v169[1]; v49 = v169[0]; if ( (v169[1] - v169[0]) >> 3 ) { v52 = v173[0]; v53 = 0; v54 = 0LL; do { if ( *((_QWORD *)v169[0] + v54) != *((_QWORD *)v173[0] + v54) ) __assert_fail( "plain[j] == out[j]", "test.cc", 0x25u, "void run_uncompression_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&, std::vec" "tor<typename Traits::type>&) [with Traits = Sorted64Traits; typename Traits::type = long unsigned int]"); v54 = ++v53; } while ( v53 < (unsigned __int64)((v169[1] - v169[0]) >> 3) ); } --v50; } while ( v50 ); v55 = boost::chrono::steady_clock::now(v52); printf(" %s decode -> %f\n", "Sorted64", (double)(v55 - v51) * 0.000000001 / 5.0); v56 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s decode -> %f\n"); v57 = v169[0]; v162 = 5; v167 = v56; v58 = v169[1]; do { if ( v57 == v58 ) break; v59 = 0; v60 = 0LL; do { v61 = sub_405640(v171, v172 - (_QWORD)v171, 0LL, v60); v57 = v169[0]; if ( v61 != *((_QWORD *)v169[0] + v60) ) __assert_fail( "plain[i] == v", "test.cc", 0x33u, "void run_select_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = So" "rted64Traits; typename Traits::type = long unsigned int]"); v58 = v169[1]; v59 += ((v169[1] - v169[0]) >> 3) / 0x64uLL + 1; v60 = v59; } while ( v59 < (unsigned __int64)((v169[1] - v169[0]) >> 3) ); --v162; } while ( v162 ); v62 = boost::chrono::steady_clock::now(v58); printf(" %s select -> %f\n", "Sorted64", (double)(v62 - v167) * 0.000000001 / 5.0); v63 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s select -> %f\n"); v64 = v169[0]; v65 = v169[1]; v66 = 5; v163 = v63; do { if ( v64 == v65 ) break; v67 = 0LL; do { v68 = sub_405D10(v171, v172 - (_QWORD)v171, *((_QWORD *)v64 + v67), 0LL, &v168); v64 = v169[0]; if ( *((_QWORD *)v169[0] + v67) != v168 ) __assert_fail( "found == plain[i]", "test.cc", 0x43u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = So" "rted64Traits; typename Traits::type = long unsigned int]"); if ( v67 != v68 ) __assert_fail( "i == pos", "test.cc", 0x44u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = So" "rted64Traits; typename Traits::type = long unsigned int]"); v65 = v169[1]; v67 += ((v169[1] - v169[0]) >> 3) / 0x1388uLL + 1; } while ( (v169[1] - v169[0]) >> 3 > v67 ); --v66; } while ( v66 ); v69 = boost::chrono::steady_clock::now(v65); printf(" %s search -> %f\n", "Sorted64", (double)(v69 - v163) * 0.000000001 / 5.0); v70 = v172 - (_QWORD)v171; sub_4040E0(&v171, v172 - (_QWORD)v171 + 1024); v71 = 100; v72 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)&v171); do { while ( 1 ) { v74 = (boost::chrono::steady_clock **)((char *)v171 + v70); v168 = *((_QWORD *)v169[1] - 1) + 5LL; v70 += sub_405F80((char *)v171 + v70); if ( v169[1] == v170 ) break; v73 = (boost::chrono::steady_clock *)((char *)v169[1] + 8); *(_QWORD *)v169[1] = v168; v169[1] = v73; if ( !--v71 ) goto LABEL_67; } v74 = v169; sub_403D50(v169, v169[1], &v168); --v71; } while ( v71 ); LABEL_67: v75 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)v74); printf(" %s append -> %f\n", "Sorted64", (double)(v75 - v72) * 0.000000001 / 5.0); v76 = v169[1]; v77 = v169[0]; for ( k = 1LL; k != 101; ++k ) { v79 = sub_405640(v171, v70, 0LL, ((v76 - v77) >> 3) - k); v76 = v169[1]; v77 = v169[0]; if ( v79 != *((_QWORD *)v169[0] + ((v169[1] - v169[0]) >> 3) - k) ) __assert_fail( "sel == plain[plain.size() - i]", "test.cc", 0x60u, "void run_append_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Sorted64Tr" "aits; typename Traits::type = long unsigned int]"); } if ( v173[0] ) operator delete(v173[0]); if ( v171 ) operator delete(v171); if ( v169[0] ) operator delete(v169[0]); printf("%u, unsorted, 32bit\n", (unsigned int)a1); *(_OWORD *)v169 = 0LL; v170 = 0LL; sub_403EA0(&v171, v166, v173); sub_403F20(v173, v44, &v168); v80 = v169[1]; v81 = 0; do { while ( 1 ) { LODWORD(v168) = v81; if ( v170 == v80 ) break; *(_DWORD *)v80 = v81; v80 = (boost::chrono::steady_clock *)((char *)v80 + 4); v81 += 7; v169[1] = v80; if ( v159 == v81 ) goto LABEL_80; } sub_404170(v169, v80, &v168); v80 = v169[1]; v81 += 7; } while ( v159 != v81 ); LABEL_80: v82 = sub_4047C0(v169[0], v171, (v80 - v169[0]) >> 2); sub_403FC0(&v171, v82); v83 = v169[0]; if ( v82 != sub_4046A0(v169[0], (v169[1] - v169[0]) >> 2) ) __assert_fail( "len == Traits::compressed_size(&plain[0], plain.size())", "test.cc", 0x18u, "void run_compression_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Unsorte" "d32Traits; typename Traits::type = unsigned int]"); v84 = boost::chrono::steady_clock::now(v83); v85 = v169[1]; v86 = v169[0]; v87 = 5; v88 = v84; do { v89 = (boost::chrono::steady_clock *)v171; sub_404BA0(v171, v173[0], (v85 - v86) >> 2); v85 = v169[1]; v86 = v169[0]; if ( (v169[1] - v169[0]) >> 2 ) { v89 = v173[0]; v90 = 0; v91 = 0LL; do { if ( *((_DWORD *)v169[0] + v91) != *((_DWORD *)v173[0] + v91) ) __assert_fail( "plain[j] == out[j]", "test.cc", 0x25u, "void run_uncompression_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&, std::vec" "tor<typename Traits::type>&) [with Traits = Unsorted32Traits; typename Traits::type = unsigned int]"); v91 = ++v90; } while ( v90 < (unsigned __int64)((v169[1] - v169[0]) >> 2) ); } --v87; } while ( v87 ); v92 = boost::chrono::steady_clock::now(v89); printf(" %s decode -> %f\n", "Unsorted32", (double)(v92 - v88) * 0.000000001 / 5.0); v93 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s decode -> %f\n"); v94 = v169[0]; v160 = 5; v164 = v93; v95 = v169[1]; do { if ( v94 == v95 ) break; v96 = 0; v97 = 0LL; do { v98 = sub_4057B0(v171, v172 - (_QWORD)v171, v97); v94 = v169[0]; if ( v98 != *((_DWORD *)v169[0] + v97) ) __assert_fail( "plain[i] == v", "test.cc", 0x33u, "void run_select_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Un" "sorted32Traits; typename Traits::type = unsigned int]"); v95 = v169[1]; v96 += ((v169[1] - v169[0]) >> 2) / 0x64uLL + 1; v97 = v96; } while ( v96 < (unsigned __int64)((v169[1] - v169[0]) >> 2) ); --v160; } while ( v160 ); v99 = boost::chrono::steady_clock::now(v95); printf(" %s select -> %f\n", "Unsorted32", (double)(v99 - v164) * 0.000000001 / 5.0); v100 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s select -> %f\n"); v101 = v169[0]; v161 = 5; v165 = v100; v102 = v169[1]; do { if ( v101 == v102 ) break; v103 = 0LL; do { v104 = *((_DWORD *)v101 + v103); v105 = sub_4059C0(v171, v172 - (_QWORD)v171, v104); v101 = v169[0]; if ( v104 != *((_DWORD *)v169[0] + v103) ) __assert_fail( "found == plain[i]", "test.cc", 0x43u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Un" "sorted32Traits; typename Traits::type = unsigned int]"); if ( v103 != v105 ) __assert_fail( "i == pos", "test.cc", 0x44u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Un" "sorted32Traits; typename Traits::type = unsigned int]"); v102 = v169[1]; v103 += ((v169[1] - v169[0]) >> 2) / 0x1388uLL + 1; } while ( (v169[1] - v169[0]) >> 2 > v103 ); --v161; } while ( v161 ); v106 = boost::chrono::steady_clock::now(v102); printf(" %s search -> %f\n", "Unsorted32", (double)(v106 - v165) * 0.000000001 / 5.0); v107 = v172 - (_QWORD)v171; sub_4040E0(&v171, v172 - (_QWORD)v171 + 1024); v108 = 100; v109 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)&v171); do { while ( 1 ) { v111 = (boost::chrono::steady_clock **)((char *)v171 + v107); LODWORD(v168) = *((_DWORD *)v169[1] - 1) + 5; v107 += sub_406270((char *)v171 + v107); if ( v169[1] == v170 ) break; v110 = (boost::chrono::steady_clock *)((char *)v169[1] + 4); *(_DWORD *)v169[1] = v168; v169[1] = v110; if ( !--v108 ) goto LABEL_104; } v111 = v169; sub_4042C0(v169, v169[1], &v168); --v108; } while ( v108 ); LABEL_104: v112 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)v111); printf(" %s append -> %f\n", "Unsorted32", (double)(v112 - v109) * 0.000000001 / 5.0); v113 = v169[1]; v114 = v169[0]; for ( l = 1LL; l != 101; ++l ) { v116 = sub_4057B0(v171, v107, ((v113 - v114) >> 2) - l); v113 = v169[1]; v114 = v169[0]; if ( v116 != *((_DWORD *)v169[0] + ((v169[1] - v169[0]) >> 2) - l) ) __assert_fail( "sel == plain[plain.size() - i]", "test.cc", 0x60u, "void run_append_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Unsorted32" "Traits; typename Traits::type = unsigned int]"); } if ( v173[0] ) operator delete(v173[0]); if ( v171 ) operator delete(v171); if ( v169[0] ) operator delete(v169[0]); printf("%u, unsorted, 64bit\n", (unsigned int)a1); *(_OWORD *)v169 = 0LL; v170 = 0LL; sub_403EA0(&v171, v166, v173); sub_403CB0(v173, v44, &v168); v117 = v169[1]; v118 = 0LL; while ( 2 ) { v168 = v118 * v118; if ( v170 != v117 ) { *(_QWORD *)v117 = v118 * v118; v117 = (boost::chrono::steady_clock *)((char *)v117 + 8); v119 = v118 + 1; v169[1] = v117; if ( v118 == j ) break; goto LABEL_115; } sub_404410(v169, v117, &v168); v117 = v169[1]; v119 = v118 + 1; if ( v118 != j ) { LABEL_115: v118 = v119; continue; } break; } v120 = sub_4048A0(v169[0], v171, (v117 - v169[0]) >> 3); sub_403FC0(&v171, v120); v121 = v169[0]; if ( v120 != sub_404700(v169[0], (v169[1] - v169[0]) >> 3) ) __assert_fail( "len == Traits::compressed_size(&plain[0], plain.size())", "test.cc", 0x18u, "void run_compression_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Unsorte" "d64Traits; typename Traits::type = long unsigned int]"); v122 = boost::chrono::steady_clock::now(v121); v123 = v169[1]; v124 = v169[0]; v125 = 5; v126 = v122; do { v127 = (boost::chrono::steady_clock *)v171; sub_404CC0(v171, v173[0], (v123 - v124) >> 3); v123 = v169[1]; v124 = v169[0]; if ( (v169[1] - v169[0]) >> 3 ) { v127 = v173[0]; v128 = 0; v129 = 0LL; do { if ( *((_QWORD *)v169[0] + v129) != *((_QWORD *)v173[0] + v129) ) __assert_fail( "plain[j] == out[j]", "test.cc", 0x25u, "void run_uncompression_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&, std::vec" "tor<typename Traits::type>&) [with Traits = Unsorted64Traits; typename Traits::type = long unsigned int]"); v129 = ++v128; } while ( v128 < (unsigned __int64)((v169[1] - v169[0]) >> 3) ); } --v125; } while ( v125 ); v130 = boost::chrono::steady_clock::now(v127); printf(" %s decode -> %f\n", "Unsorted64", (double)(v130 - v126) * 0.000000001 / 5.0); v131 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s decode -> %f\n"); v132 = v169[0]; v133 = v169[1]; v134 = 5; v135 = v131; do { if ( v132 == v133 ) break; v136 = 0; v137 = 0LL; do { v138 = sub_405850(v171, v172 - (_QWORD)v171, v137); v132 = v169[0]; if ( v138 != *((_QWORD *)v169[0] + v137) ) __assert_fail( "plain[i] == v", "test.cc", 0x33u, "void run_select_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Un" "sorted64Traits; typename Traits::type = long unsigned int]"); v133 = v169[1]; v136 += ((v169[1] - v169[0]) >> 3) / 0x64uLL + 1; v137 = v136; } while ( v136 < (unsigned __int64)((v169[1] - v169[0]) >> 3) ); --v134; } while ( v134 ); v139 = boost::chrono::steady_clock::now(v133); printf(" %s select -> %f\n", "Unsorted64", (double)(v139 - v135) * 0.000000001 / 5.0); v140 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)" %s select -> %f\n"); v141 = v169[1]; v142 = v169[0]; v143 = 5; v144 = v140; do { if ( v141 == v142 ) break; v145 = 0LL; do { v146 = *((_QWORD *)v142 + v145); v147 = sub_405A70(v171, v172 - (_QWORD)v171, v146); v142 = v169[0]; if ( v146 != *((_QWORD *)v169[0] + v145) ) __assert_fail( "found == plain[i]", "test.cc", 0x43u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Un" "sorted64Traits; typename Traits::type = long unsigned int]"); if ( v147 != v145 ) __assert_fail( "i == pos", "test.cc", 0x44u, "void run_search_test(const std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Un" "sorted64Traits; typename Traits::type = long unsigned int]"); v141 = v169[1]; v145 += ((v169[1] - v169[0]) >> 3) / 0x1388uLL + 1; } while ( (v169[1] - v169[0]) >> 3 > v145 ); --v143; } while ( v143 ); v148 = boost::chrono::steady_clock::now(v141); printf(" %s search -> %f\n", "Unsorted64", (double)(v148 - v144) * 0.000000001 / 5.0); v149 = v172 - (_QWORD)v171; sub_4040E0(&v171, v172 - (_QWORD)v171 + 1024); v150 = 100; v151 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)&v171); do { while ( 1 ) { v153 = (boost::chrono::steady_clock **)((char *)v171 + v149); v168 = *((_QWORD *)v169[1] - 1) + 5LL; v149 += sub_406310((char *)v171 + v149); if ( v169[1] == v170 ) break; v152 = (boost::chrono::steady_clock *)((char *)v169[1] + 8); *(_QWORD *)v169[1] = v168; v169[1] = v152; if ( !--v150 ) goto LABEL_142; } v153 = v169; sub_403D50(v169, v169[1], &v168); --v150; } while ( v150 ); LABEL_142: v154 = boost::chrono::steady_clock::now((boost::chrono::steady_clock *)v153); printf(" %s append -> %f\n", "Unsorted64", (double)(v154 - v151) * 0.000000001 / 5.0); v155 = v169[1]; v156 = v169[0]; for ( m = 1LL; m != 101; ++m ) { v158 = sub_405850(v171, v149, ((v155 - v156) >> 3) - m); v155 = v169[1]; v156 = v169[0]; if ( v158 != *((_QWORD *)v169[0] + ((v169[1] - v169[0]) >> 3) - m) ) __assert_fail( "sel == plain[plain.size() - i]", "test.cc", 0x60u, "void run_append_test(std::vector<typename Traits::type>&, std::vector<unsigned char>&) [with Traits = Unsorted64" "Traits; typename Traits::type = long unsigned int]"); } if ( v173[0] ) operator delete(v173[0]); if ( v171 ) operator delete(v171); if ( v169[0] ) operator delete(v169[0]); } Q:[a1,v166,v173,sub_402400,sub_403EA0,sub_403F20,sub_404170,sub_404E70,sub_403FC0,sub_404560,sub_405260,sub_405540,sub_405C00,sub_4040E0,sub_405F80,sub_4042C0,sub_403CB0,sub_404410,sub_404F60,sub_4045C0,sub_405380,sub_405640,sub_405D10,sub_403D50,sub_4047C0,sub_4046A0,sub_404BA0,sub_4057B0,sub_4059C0,sub_406270,sub_4048A0,sub_404700,sub_404CC0,sub_405850,sub_405A70,sub_406310,]
A:{'a1': '__n', 'v166': '__na', 'v173': '__a', 'sub_402400': 'test', 'sub_403EA0': 'vector', 'sub_403F20': 'vector', 'sub_404170': '_M_realloc_insert', 'sub_404E70': 'vbyte_compress_sorted32', 'sub_403FC0': 'resize', 'sub_404560': 'vbyte_compressed_size_sorted32', 'sub_405260': 'vbyte_uncompress_sorted32', 'sub_405540': 'vbyte_select_sorted32', 'sub_405C00': 'vbyte_search_lower_bound_sorted32', 'sub_4040E0': 'reserve', 'sub_405F80': 'vbyte_append_sorted64', 'sub_4042C0': '_M_realloc_insert', 'sub_403CB0': 'vector', 'sub_404410': '_M_realloc_insert', 'sub_404F60': 'vbyte_compress_sorted64', 'sub_4045C0': 'vbyte_compressed_size_sorted64', 'sub_405380': 'vbyte_uncompress_sorted64', 'sub_405640': 'vbyte_select_sorted64', 'sub_405D10': 'vbyte_search_lower_bound_sorted64', 'sub_403D50': '_M_realloc_insert', 'sub_4047C0': 'vbyte_compress_unsorted32', 'sub_4046A0': 'vbyte_compressed_size_unsorted32', 'sub_404BA0': 'vbyte_uncompress_unsorted32', 'sub_4057B0': 'vbyte_select_unsorted32', 'sub_4059C0': 'vbyte_search_unsorted32', 'sub_406270': 'vbyte_append_unsorted32', 'sub_4048A0': 'vbyte_compress_unsorted64', 'sub_404700': 'vbyte_compressed_size_unsorted64', 'sub_404CC0': 'vbyte_uncompress_unsorted64', 'sub_405850': 'vbyte_select_unsorted64', 'sub_405A70': 'vbyte_search_unsorted64', 'sub_406310': 'vbyte_append_unsorted64'}
71b86316e471fcf5dd584876f9674af29e216631505e95629d25f60ec3ff4051_71b86316e471fcf5dd584876f9674af29e216631505e95629d25f60ec3ff4051.jsonl.gz
sub_40D6BB
Help user generate meaningful names for variables and functions in the following code snippet.
void *__fastcall sub_40D6BB(int a1) { int v2; // [rsp+18h] [rbp-38h] BYREF unsigned int v3; // [rsp+1Ch] [rbp-34h] BYREF unsigned int v4; // [rsp+20h] [rbp-30h] BYREF int v5; // [rsp+24h] [rbp-2Ch] unsigned int v6; // [rsp+28h] [rbp-28h] unsigned __int8 v7; // [rsp+2Ch] [rbp-24h] _QWORD *v8; // [rsp+38h] [rbp-18h] void *ptr; // [rsp+40h] [rbp-10h] _QWORD *v10; // [rsp+48h] [rbp-8h] v10 = 0LL; ptr = 0LL; if ( !(unsigned int)sub_40D4AF(&v4, a1) && !(unsigned int)sub_40CF7C(v6, (__int64)&v3) ) { ptr = sub_40D173((unsigned __int8 *)&v4, v3, 1); if ( ptr ) { v2 = v5; while ( !(unsigned int)sub_40CF7C(v2 + 4, (__int64)&v2) ) { if ( v5 == v2 ) { *(_QWORD *)ptr = v10; return ptr; } v3 = v2 - v7; if ( *((_DWORD *)ptr + 3) != v3 ) { v8 = sub_40D173((unsigned __int8 *)&v4, v3, 0); if ( !v8 ) break; *v8 = v10; v10 = v8; } } } } if ( ptr ) free(ptr); sub_40D46F(v10); return 0LL; } Q:[a1,v2,v3,v4,v8,ptr,v10,sub_40D6BB,sub_40D4AF,sub_40CF7C,sub_40D173,sub_40D46F,]
A:{'a1': 'verbose', 'v2': 'rtp', 'v3': 'x', 'v4': 'di_0', 'v8': 't', 'ptr': 'current', 'v10': 'list', 'sub_40D6BB': 'find_lk_threads', 'sub_40D4AF': 'load_debuginfo', 'sub_40CF7C': 'mem_rd_32_3', 'sub_40D173': 'read_lk_thread', 'sub_40D46F': 'free_lk_threads'}
7c90251dc6f7a93f33f0665222f85a07673a4c9a607e9d78c793b35e552803fe_7c90251dc6f7a93f33f0665222f85a07673a4c9a607e9d78c793b35e552803fe.jsonl.gz
sub_40179F
Help user generate meaningful names for variables and functions in the following code snippet.
_BOOL8 __fastcall sub_40179F(const char *a1) { int v2; // [rsp+1Ch] [rbp-4h] v2 = strlen(a1); if ( v2 <= 4 ) return 0LL; return a1[v2 - 4] == 46 && a1[v2 - 3] == 98 && a1[v2 - 2] == 122 && a1[v2 - 1] == 50; } Q:[a1,v2,sub_40179F,]
A:{'a1': 'name', 'v2': 'n', 'sub_40179F': 'endsInBz2'}
f4eebf30a7c322680879e00ece2839c4b82478976d1014587ff04db2d26a36be_f4eebf30a7c322680879e00ece2839c4b82478976d1014587ff04db2d26a36be.jsonl.gz
sub_402078
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 sub_402078() { return 0xFFFFFFFFLL; } Q:[sub_402078,]
A:{'sub_402078': 'spp_endif'}
bf7ae1a4450b359f92e96f59068a71bc49375889282b3e96663c3c09631e7838_bf7ae1a4450b359f92e96f59068a71bc49375889282b3e96663c3c09631e7838.jsonl.gz
sub_427D52
Help user generate meaningful names for variables and functions in the following code snippet.
_QWORD *__fastcall sub_427D52(_QWORD *a1, const char *a2) { size_t v3; // rax _QWORD *v5; // [rsp+8h] [rbp-8h] v5 = a1; if ( !a1 ) return 0LL; while ( *v5 ) { if ( a2 ) { if ( *a2 ) { v3 = strlen(a2); if ( !(unsigned int)sub_451ADF(a2, *v5, v3) ) return v5; } } v5 += 4; } return 0LL; } Q:[a1,a2,v5,sub_427D52,sub_451ADF,]
A:{'a1': 'tab', 'a2': 'gbuf', 'v5': 'taba', 'sub_427D52': 'find_shtab', 'sub_451ADF': 'sim_strncasecmp'}
9340b29f871f1c24affdea51b652008d4258fac4c5216494eec375d6d6d5ad02_9340b29f871f1c24affdea51b652008d4258fac4c5216494eec375d6d6d5ad02.jsonl.gz
sub_404D37
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_404D37(_QWORD *a1, unsigned int a2, unsigned int a3) { *(_DWORD *)(*(_QWORD *)(*a1 + 8LL * (int)a3) + 4LL * (int)a2) = 3; sub_402740((__int64)a1); return sub_404D94(a1, a2, a3); } Q:[a3,a1,a2,sub_404D37,sub_402740,sub_404D94,]
A:{'a3': 'y', 'a1': 'd', 'a2': 'x', 'sub_404D37': 'destruction_shield_4', 'sub_402740': 'get_shield', 'sub_404D94': 'bottom_destruction'}
6002219087d196321ea8324041aac4d5a2d17f85344b3455ac55257c1ab35870_6002219087d196321ea8324041aac4d5a2d17f85344b3455ac55257c1ab35870.jsonl.gz
sub_402BA0
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_402BA0(_DWORD *a1, unsigned int a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, double a7, double a8, double a9, double a10, double a11, double a12, __m128 _XMM6, __int64 a14, __int64 a15, __int64 a16) { unsigned __int64 v19; // rcx __int64 v20; // rdx __int64 v21; // rsi unsigned __int64 v22; // rcx unsigned __int64 v23; // r8 __int64 v24; // rax unsigned int v30; // er12 _DWORD *v32; // rax unsigned int v34; // esi unsigned int v35; // ecx __int64 v36; // r11 unsigned int v37; // edx unsigned int v271; // er11 int v275; // er13 unsigned int i; // eax __int64 v278; // rcx __int64 v279; // rdx __int64 v280; // rax unsigned int v284; // er9 unsigned int v285; // ecx unsigned int v286; // edx __int64 v287; // r15 unsigned int v288; // eax __int64 v292; // rsi __int64 v294; // rcx __int64 v725; // rax unsigned int v726; // edi int v728; // er15 __int64 v736; // rbx int v775; // er13 int v777; // er12 int v778; // ebx int v779; // er11 int v785; // er14 int v786; // edx int v906; // edi unsigned int v907; // er8 int v908; // er10 unsigned int v913; // er9 int v914; // edx int v919; // er13 int v976; // er13 unsigned int v1006; // edx unsigned int v1008; // ecx __int64 v1009; // r12 __int64 v1010; // rax __int16 v1011; // r14 __int16 v1012; // r15 __int64 v1013; // r12 unsigned int v1015; // esi __int64 v1021; // r9 __int64 v1026; // rcx unsigned int v1027; // er11 unsigned int v1032; // ebx int v1034; // edi int v1035; // er10 unsigned int v1037; // er12 int *v1039; // r13 _DWORD *v1040; // rbx __int64 v1041; // rax _DWORD *v1042; // rsi _DWORD *v1043; // rdi __int64 v1044; // rdx __int64 v1045; // rcx _DWORD *v1046; // rax unsigned int v1050; // esi __int64 v1052; // rdx unsigned int v1054; // ecx unsigned int v1056; // er12 unsigned int v1057; // ebx unsigned int v1058; // er11 __int64 result; // rax __int64 v1406; // rsi _DWORD *v1410; // [rsp+28h] [rbp-4A0h] __int64 v1425; // [rsp+A0h] [rbp-428h] __int64 v1427; // [rsp+B0h] [rbp-418h] __int64 v1429; // [rsp+C0h] [rbp-408h] __int64 v1431; // [rsp+D0h] [rbp-3F8h] __int64 v1434; // [rsp+E0h] [rbp-3E8h] unsigned int v1437; // [rsp+F0h] [rbp-3D8h] __int64 v1438; // [rsp+F0h] [rbp-3D8h] unsigned int v1439; // [rsp+100h] [rbp-3C8h] unsigned int v1440; // [rsp+100h] [rbp-3C8h] __int64 v1441; // [rsp+100h] [rbp-3C8h] __int64 v1444; // [rsp+110h] [rbp-3B8h] __int64 v1447; // [rsp+120h] [rbp-3A8h] _DWORD *v1449; // [rsp+130h] [rbp-398h] unsigned int v1451; // [rsp+144h] [rbp-384h] _DWORD *v1452; // [rsp+148h] [rbp-380h] unsigned int v1453; // [rsp+150h] [rbp-378h] int v1457; // [rsp+160h] [rbp-368h] int v1460; // [rsp+170h] [rbp-358h] int v1461; // [rsp+170h] [rbp-358h] int v1464; // [rsp+180h] [rbp-348h] int v1467; // [rsp+190h] [rbp-338h] int v1468; // [rsp+190h] [rbp-338h] __int64 v1470; // [rsp+1A0h] [rbp-328h] __int64 v1473; // [rsp+1B0h] [rbp-318h] __int64 v1474; // [rsp+1B0h] [rbp-318h] __int64 v1477; // [rsp+1C0h] [rbp-308h] __int64 v1478; // [rsp+1C0h] [rbp-308h] __int64 v1481; // [rsp+1D0h] [rbp-2F8h] __int64 v1482; // [rsp+1D0h] [rbp-2F8h] __int64 v1484; // [rsp+1D0h] [rbp-2F8h] __int64 v1486; // [rsp+1E0h] [rbp-2E8h] __int64 v1488; // [rsp+1E0h] [rbp-2E8h] __int64 v1492; // [rsp+200h] [rbp-2C8h] unsigned int v1493; // [rsp+200h] [rbp-2C8h] __int64 v1495; // [rsp+210h] [rbp-2B8h] unsigned int v1497; // [rsp+210h] [rbp-2B8h] _DWORD *v1499; // [rsp+220h] [rbp-2A8h] __int128 v1502; // [rsp+240h] [rbp-288h] __int128 v1503; // [rsp+250h] [rbp-278h] __int128 v1505[3]; // [rsp+290h] [rbp-238h] BYREF int v1506[16]; // [rsp+2C0h] [rbp-208h] __int128 v1508[9]; // [rsp+350h] [rbp-178h] __m256i v1509; // [rsp+3E0h] [rbp-E8h] v19 = (a15 + 31) & 0xFFFFFFFFFFFFFFE0LL; v1449 = a1; v1452 = (_DWORD *)v19; v20 = 4LL * (a2 + 7); v21 = a15 + a16 - v19; if ( v21 < 0 ) goto LABEL_69; v22 = v19 + 31; if ( v21 - v20 < 0 ) goto LABEL_68; v22 = (v20 + v22) & 0xFFFFFFFFFFFFFFE0LL; v1499 = (_DWORD *)v22; v23 = v22; v24 = a15 + a16 - v22; if ( v24 < 0 ) LABEL_69: sub_402380(a1, v21, v20); if ( v24 - v20 < 0 ) LABEL_68: sub_4023A0(a1, v21, v20, v22); a1[a2] = 0; a1[a2 + 1] = 0; a1[a2 + 2] = 0; if ( a2 ) { v1439 = 0; __asm { vmovaps xmm27, cs:xmmword_40D070 vmovaps xmm31, cs:xmmword_40D660 } _RDI = v1452; _R9 = a3; v30 = 0; __asm { vxorps xmm6, xmm6, xmm6 } v32 = a1; do { _R15 = &v32[v30]; v34 = v32[v30 + 1]; v35 = v32[v30 + 2]; v1495 = (unsigned __int16)*_R15; v1492 = (unsigned __int16)v34; v36 = (unsigned __int16)v34; v1486 = (unsigned __int16)v35; v37 = v32[v30 + 3]; _RBX = a4 + 32LL * (unsigned __int16)v35; __asm { vmovaps xmm2, xmmword ptr [rbx+10h] } v1481 = _RBX; v1477 = (unsigned __int16)v37; _RBX = a4 + 32LL * (unsigned __int16)v37; _RSI = HIWORD(v34); __asm { vmovaps xmm8, xmmword ptr [rbx+10h] } v1473 = _RBX; _R14 = a4 + 32 * _RSI; _RCX = HIWORD(v35); __asm { vmovaps xmm5, xmmword ptr [r14+10h] } _R14 = a4 + 32 * _RCX; _RDX = HIWORD(v37); __asm { vmovaps xmm18, xmmword ptr [r14+10h] } _R13 = a4 + 32 * v1495; _R11 = a4 + 32 * v36; __asm { vmovaps xmm9, xmmword ptr [r11+10h] vmovaps xmm1, xmmword ptr [r13+10h] } _RBX = a4 + 32LL * HIWORD(*_R15); _R14 = a4 + 32 * _RDX; __asm { vmovaps xmm4, xmmword ptr [r14+10h] vmovaps xmm0, xmmword ptr [rbx+10h] vunpcklps xmm7, xmm2, xmm8 vunpcklps xmm3, xmm1, xmm9 vunpckhps xmm2, xmm2, xmm8 vunpckhps xmm1, xmm1, xmm9 vmovlhps xmm14, xmm1, xmm2 vunpcklps xmm19, xmm18, xmm4 vmovhlps xmm1, xmm2, xmm1 vunpcklps xmm2, xmm0, xmm5 vmovlhps xmm13, xmm3, xmm7 vmovlhps xmm12, xmm2, xmm19 vunpckhps xmm0, xmm0, xmm5 vmovhlps xmm19, xmm19, xmm2 vunpckhps xmm18, xmm18, xmm4 vmovlhps xmm17, xmm0, xmm18 vmovhlps xmm18, xmm18, xmm0 vmulps xmm0, xmm19, xmm13 vmovhlps xmm3, xmm7, xmm3 vmulps xmm4, xmm17, xmm3 vmulps xmm5, xmm12, xmm14 vfmsub231ps xmm0, xmm12, xmm3 vfmsub231ps xmm4, xmm19, xmm14 vfmsub231ps xmm5, xmm17, xmm13 } _R14 = 16 * v1495; __asm { vmovaps xmm2, xmm0 vmulps xmm0, xmm12, xmm1 } _RSI *= 16LL; _RCX *= 16LL; _RDX *= 16LL; __asm { vfmsub231ps xmm0, xmm18, xmm13 vsubps xmm4, xmm0, xmm4 vmulps xmm0, xmm19, xmm1 vfmsub231ps xmm0, xmm18, xmm3 vsubps xmm16, xmm0, xmm5 vmulps xmm0, xmm17, xmm1 vaddps xmm7, xmm16, xmm16 vmovaps xmm22, xmm16 vmovaps xmm25, xmm16 vmovaps xmm5, xmm0 vfmsub231ps xmm5, xmm18, xmm14 vfnmadd132ps xmm22, xmm27, xmm7 vsubps xmm0, xmm5, xmm2 vmulps xmm2, xmm19, xmm3 vaddps xmm5, xmm4, xmm4 vaddps xmm15, xmm0, xmm0 vmovaps xmm9, xmm0 vfnmadd132ps xmm4, xmm27, xmm5 vfmadd231ps xmm2, xmm12, xmm13 vmovaps xmm8, xmm0 vfnmadd231ps xmm22, xmm0, xmm15 vfmadd231ps xmm2, xmm17, xmm14 vandnps xmm22, xmm31, xmm22 vfmadd231ps xmm2, xmm18, xmm1 vmulps xmm20, xmm2, xmm5 vmulps xmm11, xmm2, xmm7 vmulps xmm2, xmm2, xmm15 vfnmadd132ps xmm15, xmm4, xmm0 vfmadd132ps xmm8, xmm20, xmm7 vfmsub132ps xmm9, xmm11, xmm5 vfmadd132ps xmm25, xmm2, xmm5 vfmadd231ps xmm11, xmm0, xmm5 vfmsub231ps xmm2, xmm16, xmm5 vfmsub132ps xmm0, xmm20, xmm7 vmovaps xmm20, xmmword ptr [r9+r14] vandnps xmm25, xmm31, xmm25 } _R14 = 16 * v1492; __asm { vmovaps xmm28, xmmword ptr [r9+r14] vmovaps xmm10, xmm2 } _R14 = 16 * v1486; __asm { vmovaps xmm2, xmm0 vmovaps xmm0, xmm16 vfnmadd132ps xmm0, xmm4, xmm7 vmovaps xmm7, xmmword ptr [r9+r14] vunpcklps xmm21, xmm20, xmm28 } _R14 = 16 * v1477; __asm { vmovaps xmm23, xmmword ptr [r9+r14] vunpcklps xmm24, xmm7, xmm23 } _R14 = 16LL * HIWORD(*_R15); __asm { vmovaps xmm5, xmmword ptr [r9+r14] vmovaps xmm26, xmmword ptr [r9+rsi] vmovaps xmm16, xmmword ptr [r9+rdx] vmovaps xmm4, xmmword ptr [r9+rcx] vunpckhps xmm20, xmm20, xmm28 vunpckhps xmm7, xmm7, xmm23 vmovlhps xmm28, xmm21, xmm24 vunpcklps xmm23, xmm4, xmm16 vmovhlps xmm24, xmm24, xmm21 vunpckhps xmm4, xmm4, xmm16 vmovlhps xmm21, xmm20, xmm7 vunpcklps xmm7, xmm5, xmm26 vunpckhps xmm5, xmm5, xmm26 vmovlhps xmm16, xmm5, xmm4 vmovlhps xmm26, xmm7, xmm23 vmovaps xmm4, xmm22 vfmadd132ps xmm4, xmm26, xmm28 vmovhlps xmm23, xmm23, xmm7 vandnps xmm5, xmm31, xmm8 vandnps xmm10, xmm31, xmm10 vmovaps xmm8, xmm25 vfmadd231ps xmm4, xmm10, xmm24 vfmadd132ps xmm8, xmm23, xmm28 vandnps xmm9, xmm31, xmm9 vandnps xmm15, xmm31, xmm15 vandnps xmm11, xmm31, xmm11 vmovaps xmm7, xmm9 vfmadd231ps xmm4, xmm11, xmm21 vfmadd231ps xmm8, xmm15, xmm24 vfmadd132ps xmm11, xmm21, xmm26 vfmadd132ps xmm7, xmm16, xmm28 vandnps xmm2, xmm31, xmm2 vandnps xmm0, xmm31, xmm0 vfmadd231ps xmm8, xmm2, xmm21 vfmadd132ps xmm2, xmm11, xmm23 vfmadd231ps xmm7, xmm5, xmm24 vfmadd132ps xmm10, xmm24, xmm26 vmovaps xmm11, xmmword ptr [r11] vmovaps xmm20, xmm4 vfmadd231ps xmm7, xmm0, xmm21 vfmadd132ps xmm0, xmm2, xmm16 vmovaps xmm2, xmmword ptr [r13+0] vsubps xmm11, xmm11, xmmword ptr [r14] vsubps xmm2, xmm2, xmmword ptr [rbx] } _RBX = v1481; __asm { vmovaps xmm4, xmmword ptr [rbx] } _RBX = v1473; __asm { vfmadd132ps xmm22, xmm28, xmm26 vfmadd132ps xmm15, xmm10, xmm23 vsubps xmm4, xmm4, xmmword ptr [r14] vmovaps xmm10, xmmword ptr [rbx] vfmadd132ps xmm25, xmm22, xmm23 vsubps xmm10, xmm10, xmmword ptr [r14] vfmadd132ps xmm5, xmm15, xmm16 vunpcklps xmm15, xmm2, xmm11 vunpcklps xmm21, xmm4, xmm10 vunpckhps xmm2, xmm2, xmm11 vunpckhps xmm4, xmm4, xmm10 vmovlhps xmm2, xmm2, xmm4 vmulps xmm10, xmm2, xmm12 vfmadd132ps xmm9, xmm25, xmm16 vmovlhps xmm16, xmm15, xmm21 vmovhlps xmm15, xmm21, xmm15 vmulps xmm21, xmm16, xmm19 vfmsub231ps xmm10, xmm16, xmm17 vmulps xmm11, xmm15, xmm17 vfmsub231ps xmm21, xmm15, xmm12 vaddps xmm10, xmm10, xmm10 vfmsub231ps xmm11, xmm2, xmm19 vmulps xmm4, xmm10, xmm17 vaddps xmm21, xmm21, xmm21 vaddps xmm11, xmm11, xmm11 vmulps xmm22, xmm21, xmm12 vfmsub231ps xmm4, xmm21, xmm19 vmulps xmm19, xmm11, xmm19 vfmsub132ps xmm17, xmm22, xmm11 vaddps xmm4, xmm4, xmm16 vfmsub132ps xmm12, xmm19, xmm10 vfnmadd231ps xmm4, xmm11, xmm18 vaddps xmm11, xmm17, xmm15 vfnmadd132ps xmm10, xmm11, xmm18 vaddps xmm11, xmm12, xmm2 vmulps xmm12, xmm15, xmm13 vandnps xmm4, xmm31, xmm4 vfnmadd231ps xmm11, xmm21, xmm18 vandnps xmm10, xmm31, xmm10 vsubps xmm8, xmm8, xmm10 vfmsub231ps xmm12, xmm16, xmm3 vsubps xmm4, xmm20, xmm4 vandnps xmm10, xmm31, xmm11 vmulps xmm11, xmm16, xmm14 vsubps xmm7, xmm7, xmm10 vmulps xmm10, xmm2, xmm3 vaddps xmm12, xmm12, xmm12 vminps xmm8, xmm7, xmm8 vfmsub231ps xmm11, xmm2, xmm13 vmulps xmm18, xmm12, xmm13 vfmsub231ps xmm10, xmm15, xmm14 vminps xmm4, xmm8, xmm4 vaddps xmm11, xmm11, xmm11 vcmpeqps xmm8, xmm8, xmm4 vaddps xmm10, xmm10, xmm10 vmulps xmm17, xmm11, xmm14 vcmpeqps xmm7, xmm7, xmm4 vfmsub132ps xmm14, xmm18, xmm10 vfmsub231ps xmm17, xmm12, xmm3 vmulps xmm3, xmm10, xmm3 vsubps xmm16, xmm17, xmm16 vfmsub231ps xmm3, xmm11, xmm13 vsubps xmm13, xmm14, xmm15 vfnmadd132ps xmm10, xmm16, xmm1 vfnmadd132ps xmm11, xmm13, xmm1 vsubps xmm3, xmm3, xmm2 vfnmadd231ps xmm3, xmm12, xmm1 vandnps xmm2, xmm31, xmm11 vsubps xmm2, xmm5, xmm2 vandnps xmm1, xmm31, xmm10 vsubps xmm1, xmm9, xmm1 vandnps xmm3, xmm31, xmm3 vsubps xmm0, xmm0, xmm3 vminps xmm2, xmm0, xmm2 vminps xmm3, xmm2, xmm1 vcmpeqps xmm1, xmm2, xmm3 vcmpeqps xmm0, xmm0, xmm3 vminps xmm5, xmm3, xmm4 vandps xmm1, xmm1, cs:xmmword_40D670 vandps xmm0, xmm0, cs:xmmword_40D670 vcmpeqps xmm4, xmm4, xmm5 vpaddd xmm0, xmm0, xmm1 vandps xmm2, xmm8, cs:xmmword_40D670 vandps xmm1, xmm7, cs:xmmword_40D670 vmovdqa xmm3, xmmword ptr [r15] vpaddd xmm1, xmm1, xmm2 vblendvps xmm0, xmm0, xmm1, xmm4 vcmpltps xmm1, xmm6, xmm5 vpsrld xmm9, xmm3, 10h vpslld xmm10, xmm3, 10h vpor xmm9, xmm9, xmm10 vblendvps xmm4, xmm3, xmm9, xmm4 vmovmskps ebx, xmm1 vmovaps xmmword ptr [rsp+4C8h+var_1C8], xmm5 vmovaps [rsp+4C8h+var_178], xmm0 vmovaps xmmword ptr [rsp+4C8h+var_E8], xmm4 } if ( _EBX ) { v271 = v1439; _EDX = _EBX; do { __asm { tzcnt ecx, edx } _RCX = (unsigned int)_RCX; __asm { vmovss xmm0, dword ptr [rsp+rcx*4+4C8h+var_1C8] } v275 = *((_DWORD *)v1508 + (unsigned int)_RCX); LODWORD(_RCX) = v1509.m256i_i32[(unsigned int)_RCX]; _RSI = v271; __asm { vmovss dword ptr [rdi+rsi*4], xmm0 } ++v271; *(_DWORD *)(v23 + 4 * _RSI) = v275; __asm { blsr edx, edx } v32[_RSI] = _RCX; } while ( v271 ); v1439 += __popcnt(_EBX); } v30 += 4; } while ( a2 > v30 ); for ( i = v1439; i; --i ) { if ( v1449[i - 1] ) { v278 = i; v279 = i + 1; v1440 = i; v280 = i + 2; v1449[v278] = 0; v1449[v279] = 0; v1449[v280] = 0; v1493 = 0; v1452[v278] = 0; v1451 = 0; v1452[v279] = 0; v1453 = 0; v1452[v280] = 0; __asm { vmovaps xmm26, cs:xmmword_40D6B0 vmovaps xmm28, cs:xmmword_40D6C0 vmovaps [rsp+4C8h+var_2E8], xmm27 } do { _RDI = v1493; v284 = v1449[v1493]; v285 = v1449[v1493 + 1]; v286 = v1449[v1493 + 2]; v287 = (unsigned __int16)v284; v288 = v1449[v1493 + 3]; _R8 = a4 + 32LL * (unsigned __int16)v284; v1482 = (unsigned __int16)v285; _R10 = a4 + 32LL * (unsigned __int16)v285; v1478 = (unsigned __int16)v286; _RBX = a4 + 32LL * (unsigned __int16)v286; v292 = HIWORD(v285); v1474 = (unsigned __int16)v288; v1470 = HIWORD(v284); _R11 = a4 + 32 * v292; v294 = HIWORD(v286); _R12 = a4 + 32 * v294; _RDX = HIWORD(v288); _R13 = a4 + 32LL * (unsigned __int16)v288; __asm { vmovaps xmm8, xmmword ptr [r10+10h] vmovaps xmm5, xmmword ptr [rbx+10h] vmovaps xmm18, xmmword ptr [r13+10h] vmovaps xmm3, xmmword ptr [r8+10h] } _R9 = a4 + 32 * v1470; _R14 = 32 * _RDX + a4; __asm { vmovaps xmm7, xmmword ptr [r11+10h] vmovaps xmm6, xmmword ptr [r14+10h] vmovaps xmm1, xmmword ptr [r9+10h] vmovaps xmm2, xmmword ptr [r12+10h] vunpcklps xmm4, xmm3, xmm8 vunpcklps xmm17, xmm5, xmm18 vunpckhps xmm3, xmm3, xmm8 vunpckhps xmm5, xmm5, xmm18 vmovlhps xmm21, xmm4, xmm17 vmovhlps xmm18, xmm5, xmm3 vmovhlps xmm17, xmm17, xmm4 vmovlhps xmm22, xmm3, xmm5 vunpcklps xmm4, xmm2, xmm6 vunpcklps xmm3, xmm1, xmm7 vunpckhps xmm2, xmm2, xmm6 vunpckhps xmm1, xmm1, xmm7 vmovlhps xmm6, xmm1, xmm2 vmovlhps xmm7, xmm3, xmm4 vmovhlps xmm2, xmm2, xmm1 vmulps xmm8, xmm7, xmm18 vmulps xmm1, xmm6, xmm17 vmovhlps xmm4, xmm4, xmm3 vmulps xmm5, xmm7, xmm22 vmulps xmm3, xmm4, xmm21 vfmsub231ps xmm8, xmm2, xmm21 vfmsub231ps xmm1, xmm4, xmm22 vmovaps xmm0, [rsp+4C8h+var_2E8] vfmsub231ps xmm5, xmm6, xmm21 vfmsub231ps xmm3, xmm7, xmm17 vsubps xmm1, xmm8, xmm1 vmulps xmm8, xmm4, xmm18 vmulps xmm4, xmm4, xmm17 } _RAX = 16 * v287; _R15 = a3; __asm { vfmsub231ps xmm8, xmm2, xmm17 vfmadd231ps xmm4, xmm7, xmm21 vsubps xmm5, xmm8, xmm5 vmulps xmm8, xmm6, xmm18 vfmadd132ps xmm6, xmm4, xmm22 vaddps xmm4, xmm5, xmm5 vmovaps xmm7, xmm5 vmovaps xmm15, xmm5 vfmsub231ps xmm8, xmm2, xmm22 vfmadd132ps xmm2, xmm6, xmm18 vfnmadd132ps xmm7, xmm0, xmm4 vsubps xmm3, xmm8, xmm3 vaddps xmm8, xmm1, xmm1 vmulps xmm10, xmm2, xmm4 vaddps xmm6, xmm3, xmm3 vmulps xmm9, xmm2, xmm8 vfnmadd132ps xmm1, xmm0, xmm8 vmulps xmm2, xmm2, xmm6 vmovaps xmm14, xmm3 vmovaps xmm19, xmm3 vfnmadd231ps xmm7, xmm3, xmm6 vfmsub132ps xmm14, xmm10, xmm8 vfnmadd132ps xmm6, xmm1, xmm3 vfmadd132ps xmm15, xmm2, xmm8 vfnmadd231ps xmm1, xmm5, xmm4 vfmsub231ps xmm2, xmm5, xmm8 vfmadd132ps xmm19, xmm9, xmm4 vfmadd132ps xmm8, xmm10, xmm3 vfmsub132ps xmm3, xmm9, xmm4 vmovaps [rsp+4C8h+var_178], xmm7 vmovaps xmm4, xmmword ptr [r15+rax] vmovaps [rsp+4C8h+var_168], xmm15 vmovaps [rsp+4C8h+var_158], xmm14 vmovaps [rsp+4C8h+var_148], xmm2 vmovaps [rsp+4C8h+var_138], xmm6 vmovaps [rsp+4C8h+var_118], xmm8 vmovaps [rsp+4C8h+var_2B8], xmm3 vmovaps [rsp+4C8h+var_108], xmm3 vmovaps [rsp+4C8h+var_F8], xmm1 vmovaps [rsp+4C8h+var_128], xmm19 vmulps xmm0, xmm8, xmm8 } _RAX = 16 * v1482; __asm { vmovaps xmm23, xmmword ptr [r15+rax] vunpcklps xmm11, xmm4, xmm23 } _RAX = 16 * v1478; __asm { vmovaps xmm10, xmmword ptr [r15+rax] vunpckhps xmm4, xmm4, xmm23 } _RAX = 16 * v1474; __asm { vmovaps xmm13, xmmword ptr [r15+rax] vunpcklps xmm16, xmm10, xmm13 } _RAX = 16 * v1470; __asm { vmovaps xmm9, xmmword ptr [r15+rax] } _RAX = 16 * v292; __asm { vmovaps xmm20, xmmword ptr [r15+rax] } _RAX = 16 * v294; __asm { vmovaps xmm5, xmmword ptr [r15+rax] } _RAX = 16 * _RDX; __asm { vmovaps xmm12, xmmword ptr [r15+rax] vunpckhps xmm10, xmm10, xmm13 vmovlhps xmm4, xmm4, xmm10 vmovlhps xmm13, xmm11, xmm16 vunpcklps xmm10, xmm9, xmm20 vmovhlps xmm16, xmm16, xmm11 vunpckhps xmm9, xmm9, xmm20 vunpcklps xmm11, xmm5, xmm12 vunpckhps xmm5, xmm5, xmm12 vmovhlps xmm30, xmm11, xmm10 vmovlhps xmm12, xmm10, xmm11 vmovaps xmm20, xmmword ptr [r13+0] vmovlhps xmm11, xmm9, xmm5 vmovaps xmm10, xmmword ptr [r10] vmovaps xmm5, xmmword ptr [rbx] vmovaps xmm9, xmmword ptr [r8] vsubps xmm10, xmm10, xmmword ptr [r11] vsubps xmm20, xmm20, xmmword ptr [r14] vsubps xmm9, xmm9, xmmword ptr [r9] vsubps xmm5, xmm5, xmmword ptr [r12] } _RAX = v1452; __asm { vunpcklps xmm23, xmm9, xmm10 vunpcklps xmm25, xmm5, xmm20 vmovlhps xmm24, xmm23, xmm25 vunpckhps xmm9, xmm9, xmm10 vunpckhps xmm5, xmm5, xmm20 vmovlhps xmm20, xmm9, xmm5 vmulps xmm9, xmm24, xmm22 vmovhlps xmm23, xmm25, xmm23 vmulps xmm10, xmm20, xmm17 vmulps xmm5, xmm23, xmm21 vmovaps [rsp+4C8h+var_308], xmm0 vfmsub231ps xmm9, xmm20, xmm21 vmovaps xmm3, xmmword ptr [rax+rdi*4] vfmsub231ps xmm10, xmm23, xmm22 vfmsub231ps xmm5, xmm24, xmm17 vmovaps [rsp+4C8h+var_2F8], xmm3 vaddps xmm9, xmm9, xmm9 vaddps xmm10, xmm10, xmm10 vmulps xmm25, xmm9, xmm22 vaddps xmm5, xmm5, xmm5 vmulps xmm27, xmm5, xmm21 vfmsub231ps xmm25, xmm5, xmm17 vmulps xmm17, xmm10, xmm17 vfmsub132ps xmm22, xmm27, xmm10 vmovaps xmm27, xmm0 vfmsub231ps xmm17, xmm9, xmm21 vfmadd231ps xmm27, xmm7, xmm7 vsubps xmm24, xmm25, xmm24 vmovaps xmm25, xmm7 vsubps xmm22, xmm22, xmm23 vsubps xmm20, xmm17, xmm20 vmulps xmm17, xmm2, xmm2 vfnmadd132ps xmm9, xmm22, xmm18 vfnmadd132ps xmm10, xmm24, xmm18 vfnmadd132ps xmm5, xmm20, xmm18 vmulps xmm24, xmm14, xmm14 vaddps xmm29, xmm17, xmm0 vfmadd132ps xmm25, xmm17, xmm7 vmulps xmm18, xmm15, xmm15 vmovaps xmm0, xmm29 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps [rsp+4C8h+var_268], xmm10 vmovaps [rsp+4C8h+var_258], xmm9 vmovaps xmm3, xmm0 vmovaps xmm0, xmm29 vrsqrtps xmm0, xmm0 vaddps xmm20, xmm18, xmm24 vmovaps [rsp+4C8h+var_248], xmm5 vmovaps [rsp+4C8h+var_318], xmm24 vorps xmm29, xmm0, xmm3 vmovaps xmm0, xmm27 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps [rsp+4C8h+var_418], xmm29 vfmadd231ps xmm24, xmm7, xmm7 vmovaps xmm29, xmm0 vmovaps xmm0, xmm27 vrsqrtps xmm0, xmm0 vmovaps xmm22, xmm7 vfmadd132ps xmm22, xmm18, xmm7 vandnps xmm21, xmm31, xmm7 vorps xmm27, xmm0, xmm29 vmovaps xmm0, xmm25 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps [rsp+4C8h+var_428], xmm27 vandnps xmm29, xmm31, xmm2 vmovaps xmm27, xmm0 vmovaps xmm0, xmm25 vrsqrtps xmm0, xmm0 vandnps xmm23, xmm31, xmm15 vorps xmm25, xmm0, xmm27 vmovaps xmm0, xmm20 vmovaps [rsp+4C8h+var_438], xmm25 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps [rsp+4C8h+var_3E8], xmm29 vmovaps xmm25, xmm0 vmovaps xmm0, xmm20 vrsqrtps xmm0, xmm0 vorps xmm20, xmm0, xmm25 vmovaps xmm0, xmm24 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps xmm25, xmm0 vmovaps xmm0, xmm24 vrsqrtps xmm0, xmm0 vorps xmm25, xmm0, xmm25 vmovaps xmm0, xmm22 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps [rsp+4C8h+var_448], xmm25 vmulps xmm25, xmm4, xmm21 vmovaps xmm24, xmm0 vmovaps xmm0, xmm22 vandnps xmm22, xmm31, xmm8 vmulps xmm27, xmm16, xmm22 vrsqrtps xmm0, xmm0 vfmadd231ps xmm25, xmm13, xmm22 vmovaps [rsp+4C8h+var_3F8], xmm22 vfmadd231ps xmm27, xmm4, xmm29 vorps xmm3, xmm0, xmm24 vmulps xmm24, xmm13, xmm29 vmulps xmm29, xmm11, xmm21 vmovaps [rsp+4C8h+var_458], xmm3 vandnps xmm0, xmm31, xmm14 vmulps xmm22, xmm30, xmm0 vfmadd231ps xmm24, xmm16, xmm21 vmovaps xmm3, xmm29 vmulps xmm29, xmm12, xmm23 vfmadd231ps xmm3, xmm12, xmm0 vmovaps [rsp+4C8h+var_408], xmm0 vfmadd231ps xmm22, xmm11, xmm23 vfmadd132ps xmm21, xmm29, xmm30 vmulps xmm29, xmm7, xmm5 vmovaps [rsp+4C8h+var_328], xmm3 vmovaps xmm3, [rsp+4C8h+var_2B8] vmulps xmm20, xmm20, xmm22 vmovaps [rsp+4C8h+var_338], xmm21 vmulps xmm21, xmm8, xmm9 vfmsub132ps xmm8, xmm29, xmm10 vandnps xmm22, xmm31, xmm6 vmovaps [rsp+4C8h+var_3D8], xmm20 vfmsub231ps xmm21, xmm2, xmm5 vmulps xmm2, xmm2, xmm10 vandnps xmm8, xmm31, xmm8 vsubps xmm8, xmm25, xmm8 vandnps xmm25, xmm31, xmm19 vandnps xmm21, xmm31, xmm21 vfmsub231ps xmm2, xmm7, xmm9 vsubps xmm7, xmm27, xmm21 vmovaps xmm21, xmm6 vmovaps [rsp+4C8h+var_358], xmm8 vmovaps [rsp+4C8h+var_348], xmm7 vandnps xmm2, xmm31, xmm2 vsubps xmm2, xmm24, xmm2 vmulps xmm7, xmm19, xmm19 vandnps xmm24, xmm31, xmm3 vmovaps [rsp+4C8h+var_368], xmm2 vmulps xmm2, xmm3, xmm3 vaddps xmm20, xmm17, xmm7 vfmadd231ps xmm17, xmm6, xmm6 vaddps xmm29, xmm18, xmm2 vfmadd231ps xmm18, xmm6, xmm6 vfmadd132ps xmm21, xmm2, xmm6 vmovaps xmm8, xmm18 vmovaps xmm18, xmm6 vfmadd132ps xmm18, xmm7, xmm6 vmovaps xmm0, xmm21 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps xmm27, xmm18 vmovaps xmm18, xmm0 vmovaps xmm0, xmm21 vrsqrtps xmm0, xmm0 vorps xmm21, xmm0, xmm18 vmovaps xmm0, xmm29 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps xmm18, xmm0 vmovaps xmm0, xmm29 vrsqrtps xmm0, xmm0 vmulps xmm29, xmm4, xmm23 vorps xmm18, xmm0, xmm18 vcmpleps xmm0, xmm8, cs:xmmword_40D680 vrsqrtps xmm8, xmm8 vmovaps [rsp+4C8h+var_468], xmm18 vfmadd231ps xmm29, xmm13, xmm24 vorps xmm8, xmm8, xmm0 vmovaps xmm0, xmm27 vmovaps [rsp+4C8h+var_478], xmm8 vcmpleps xmm8, xmm0, cs:xmmword_40D680 vrsqrtps xmm0, xmm0 vmulps xmm27, xmm16, xmm24 vorps xmm18, xmm0, xmm8 vmovaps xmm0, xmm20 vcmpleps xmm8, xmm0, cs:xmmword_40D680 vrsqrtps xmm0, xmm0 vfmadd231ps xmm27, xmm4, xmm22 vorps xmm8, xmm0, xmm8 vmovaps xmm0, xmm17 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps xmm20, xmm0 vmovaps xmm0, xmm17 vrsqrtps xmm0, xmm0 vorps xmm17, xmm0, xmm20 vmulps xmm20, xmm30, xmm25 vmovaps [rsp+4C8h+var_488], xmm17 vmulps xmm17, xmm13, xmm22 vmovaps xmm0, [rsp+4C8h+var_3E8] vfmadd231ps xmm20, xmm11, xmm22 vmulps xmm22, xmm12, xmm22 vfmadd132ps xmm23, xmm17, xmm16 vmulps xmm17, xmm11, xmm0 vmulps xmm18, xmm18, xmm20 vmovaps xmm3, xmm22 vfmadd231ps xmm3, xmm30, xmm0 vmovaps xmm0, [rsp+4C8h+var_2B8] vmovaps xmm20, xmm1 vmulps xmm22, xmm9, xmm0 vfmadd132ps xmm20, xmm7, xmm1 vmovaps [rsp+4C8h+var_3E8], xmm3 vmulps xmm3, xmm15, xmm5 vfmadd231ps xmm17, xmm12, xmm25 vfmsub231ps xmm22, xmm6, xmm5 vmulps xmm6, xmm6, xmm10 vfmsub231ps xmm3, xmm10, xmm0 vmovaps xmm0, [rsp+4C8h+var_308] vandnps xmm22, xmm31, xmm22 vfmsub231ps xmm6, xmm15, xmm9 vsubps xmm22, xmm27, xmm22 vmulps xmm17, xmm8, xmm17 vandnps xmm8, xmm31, xmm1 vmulps xmm22, xmm22, xmm21 vandnps xmm6, xmm31, xmm6 vsubps xmm27, xmm23, xmm6 vmovaps xmm6, [rsp+4C8h+var_318] vandnps xmm3, xmm31, xmm3 vaddps xmm21, xmm7, xmm6 vmovaps xmm7, xmm1 vfmadd132ps xmm7, xmm2, xmm1 vmovaps xmm15, xmm6 vaddps xmm2, xmm2, xmm0 vmovaps xmm6, xmm0 vmovaps xmm0, xmm20 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vfmadd231ps xmm15, xmm1, xmm1 vfmadd231ps xmm6, xmm1, xmm1 vmovaps xmm23, xmm0 vmovaps xmm0, xmm20 vrsqrtps xmm0, xmm0 vsubps xmm3, xmm29, xmm3 vorps xmm20, xmm0, xmm23 vcmpleps xmm0, xmm15, cs:xmmword_40D680 vrsqrtps xmm15, xmm15 vorps xmm15, xmm15, xmm0 vmovaps xmm0, xmm21 vcmpleps xmm0, xmm0, cs:xmmword_40D680 vmovaps xmm23, xmm0 vmovaps xmm0, xmm21 vrsqrtps xmm0, xmm0 vorps xmm23, xmm0, xmm23 vcmpleps xmm0, xmm7, cs:xmmword_40D680 vrsqrtps xmm7, xmm7 vmovaps xmm29, [rsp+4C8h+var_408] vfmadd132ps xmm3, xmm17, [rsp+4C8h+var_468] vorps xmm7, xmm7, xmm0 vcmpleps xmm0, xmm6, cs:xmmword_40D680 vrsqrtps xmm6, xmm6 vorps xmm6, xmm6, xmm0 vcmpleps xmm0, xmm2, cs:xmmword_40D680 vrsqrtps xmm2, xmm2 vorps xmm21, xmm2, xmm0 vmulps xmm2, xmm16, xmm8 vmovaps xmm0, [rsp+4C8h+var_3F8] vfmadd231ps xmm2, xmm4, xmm25 vmulps xmm4, xmm4, xmm29 vfmadd231ps xmm4, xmm13, xmm8 vmulps xmm13, xmm13, xmm25 vmulps xmm25, xmm30, xmm8 vfmadd231ps xmm13, xmm16, xmm29 vfmadd231ps xmm25, xmm11, xmm24 vmulps xmm11, xmm11, xmm0 vmulps xmm7, xmm7, xmm25 vfmadd231ps xmm11, xmm12, xmm8 vmulps xmm8, xmm1, xmm9 vmulps xmm12, xmm12, xmm24 vmulps xmm11, xmm6, xmm11 vfmsub231ps xmm8, xmm19, xmm5 vmulps xmm5, xmm14, xmm5 vmovaps xmm6, [rsp+4C8h+var_418] vfmadd231ps xmm12, xmm30, xmm0 vfmadd231ps xmm11, xmm27, [rsp+4C8h+var_478] vandnps xmm8, xmm31, xmm8 vfmsub132ps xmm1, xmm5, xmm10 vmulps xmm10, xmm19, xmm10 vsubps xmm2, xmm2, xmm8 vmovaps xmm8, [rsp+4C8h+var_428] vmovaps xmm0, [rsp+4C8h+var_338] vmulps xmm2, xmm2, xmm20 vmovaps xmm20, [rsp+4C8h+var_3D8] vfmsub231ps xmm10, xmm14, xmm9 vandnps xmm1, xmm31, xmm1 vfmadd132ps xmm6, xmm20, [rsp+4C8h+var_348] vsubps xmm1, xmm4, xmm1 vfmadd132ps xmm8, xmm18, [rsp+4C8h+var_358] vmovaps xmm14, [rsp+4C8h+var_368] vmulps xmm1, xmm1, xmm15 vmovaps xmm15, [rsp+4C8h+var_2F8] vandnps xmm5, xmm31, xmm10 vsubps xmm13, xmm13, xmm5 vcmpltps xmm5, xmm6, xmm15 vminps xmm6, xmm6, xmm15 vfmadd231ps xmm7, xmm14, [rsp+4C8h+var_438] vxorps xmm4, xmm4, xmm4 vcmpltps xmm9, xmm8, xmm6 vminps xmm8, xmm8, xmm6 vblendvps xmm5, xmm4, xmm4, xmm5 vblendvps xmm6, xmm5, cs:xmmword_40D670, xmm9 vblendvps xmm5, xmm5, xmm4, xmm9 vcmpltps xmm9, xmm7, xmm8 vminps xmm8, xmm7, xmm8 vmovaps xmm7, [rsp+4C8h+var_448] vblendvps xmm6, xmm6, cs:xmmword_40D690, xmm9 vfmadd132ps xmm7, xmm22, [rsp+4C8h+var_328] vblendvps xmm5, xmm5, xmm4, xmm9 vfmadd231ps xmm2, xmm0, [rsp+4C8h+var_458] vmulps xmm12, xmm21, xmm12 vcmpltps xmm9, xmm7, xmm8 vminps xmm7, xmm7, xmm8 vblendvps xmm5, xmm5, cs:xmmword_40D670, xmm9 vcmpltps xmm8, xmm3, xmm7 vminps xmm7, xmm3, xmm7 vblendvps xmm6, xmm6, xmm4, xmm9 vblendvps xmm6, xmm6, cs:xmmword_40D670, xmm8 vblendvps xmm3, xmm5, cs:xmmword_40D670, xmm8 vcmpltps xmm8, xmm11, xmm7 vminps xmm7, xmm11, xmm7 vblendvps xmm5, xmm6, cs:xmmword_40D690, xmm8 vblendvps xmm3, xmm3, cs:xmmword_40D670, xmm8 vcmpltps xmm8, xmm2, xmm7 vminps xmm6, xmm2, xmm7 vblendvps xmm5, xmm5, xmm4, xmm8 vblendvps xmm8, xmm3, cs:xmmword_40D690, xmm8 vmovaps xmm3, [rsp+4C8h+var_3E8] vfmadd231ps xmm1, xmm3, [rsp+4C8h+var_488] vcmpltps xmm7, xmm1, xmm6 vminps xmm6, xmm1, xmm6 vblendvps xmm3, xmm5, cs:xmmword_40D670, xmm7 vmovaps xmm5, xmm23 vfmadd132ps xmm5, xmm12, xmm13 vblendvps xmm1, xmm8, cs:xmmword_40D690, xmm7 vcmpltps xmm7, xmm5, xmm6 vminps xmm5, xmm5, xmm6 vblendvps xmm2, xmm3, cs:xmmword_40D690, xmm7 vblendvps xmm1, xmm1, cs:xmmword_40D690, xmm7 vaddps xmm3, xmm5, cs:xmmword_40D680 vcmpltps xmm4, xmm4, xmm5 vmovaps [rsp+4C8h+var_298], xmm5 vcmpltps xmm3, xmm3, xmm15 vmovmskps eax, xmm4 vmovmskps edx, xmm3 } v1437 = _RDX & (unsigned int)_RAX; v1497 = (unsigned int)_RAX & ~(_DWORD)_RDX; __asm { vmovdqa [rsp+4C8h+var_288], xmm2 vmovdqa [rsp+4C8h+var_278], xmm1 } if ( v1497 ) { __asm { vmovaps xmm8, cs:xmmword_40D700 vmovaps xmm7, cs:xmmword_40D710 vmovaps xmm6, cs:xmmword_40D720 vmovaps xmm30, cs:xmmword_40D730 vmovaps xmm0, [rsp+4C8h+var_2E8] vmovss xmm9, cs:dword_40D6F0 vxorps xmm3, xmm3, xmm3 vxorps xmm4, xmm4, xmm4 } do { _EAX = v1497; __asm { tzcnt edx, eax blsr eax, eax } v1497 = _EAX; v725 = _EDX + v1493; v726 = v1449[v725]; _R9 = _EDX; v728 = v1499[v725]; __asm { vmovss xmm2, dword ptr [rsp+r9*4+4C8h+var_268] } _RSI = _EDX + 4; _RCX = _EDX + 8; _R14 = a3; __asm { vinsertps xmm2, xmm2, dword ptr [rsp+rsi*4+4C8h+var_268], arg_0 } _R8 = 16LL * (unsigned __int16)v726; v1488 = (unsigned __int16)v726; __asm { vmovss xmm12, dword ptr [rsp+rcx*4+4C8h+var_268] } v736 = HIWORD(v726); __asm { vmovaps xmm14, xmmword ptr [r14+r8] } _R8 = _EDX + 12 * v728; _RDI = 16 * v736; __asm { vmovlhps xmm12, xmm2, xmm12 vmovss xmm2, dword ptr [rsp+r8*4+4C8h+var_178] vmovaps xmm1, xmmword ptr [r14+rdi] } _RAX = (unsigned int)(_R8 + 8); __asm { vmovss xmm10, dword ptr [rsp+rax*4+4C8h+var_178] vinsertps xmm2, xmm2, dword ptr [rsp+rdi*4+4C8h+var_178], arg_0 } _R8 = _EDX + 24; __asm { vmovlhps xmm2, xmm2, xmm10 vandnps xmm2, xmm31, xmm2 vshufps xmm11, xmm2, xmm2, 0D8h vshufps xmm10, xmm2, xmm2, 0 vmaxps xmm10, xmm10, xmm11 vmovss xmm11, dword ptr [rsp+r8*4+4C8h+var_178] vcmpleps xmm2, xmm10, xmm2 vshufps xmm10, xmm1, xmm1, 0 } _R8 = _EDX + 28; __asm { vmovmskps eax, xmm2 vmovss xmm2, dword ptr [rsp+r9*4+4C8h+var_178] vshufps xmm13, xmm1, xmm1, 55h ; 'U' vinsertps xmm2, xmm2, dword ptr [rsp+rdi*4+4C8h+var_178], arg_0 vmovlhps xmm2, xmm2, xmm11 vmulps xmm2, xmm2, xmm10 vmovss xmm10, dword ptr [rsp+rsi*4+4C8h+var_178] vmovss xmm11, dword ptr [rsp+r8*4+4C8h+var_178] vinsertps xmm10, xmm10, dword ptr [rsp+rdi*4+4C8h+var_178], arg_0 vmovlhps xmm10, xmm10, xmm11 vshufps xmm11, xmm1, xmm1, 0AAh vmovss xmm1, dword ptr [rsp+rcx*4+4C8h+var_178] } _RDX = _EDX + 32; __asm { vmulps xmm10, xmm10, xmm13 vinsertps xmm1, xmm1, dword ptr [rsp+rsi*4+4C8h+var_178], arg_0 vmovss xmm13, dword ptr [rsp+rdx*4+4C8h+var_178] } v1484 = v736; __asm { vmovlhps xmm1, xmm1, xmm13 vmulps xmm1, xmm1, xmm11 } if ( (_EAX & 4) != 0 ) { v1460 = 0x2000000; v1464 = 50397184; v1467 = 0x1000000; v775 = 50462720; v777 = 0x10000; v778 = 0x20000; v779 = 196608; } else { __asm { vmovaps xmm11, xmm1 } if ( (_EAX & 2) != 0 ) { v1460 = 0x1000000; v1464 = 84148224; v1467 = 0x4000000; __asm { vmovaps xmm1, xmm10 } v775 = 83951616; __asm { vmovaps xmm10, xmm2 } v777 = 0x40000; __asm { vmovaps xmm2, xmm11 } v778 = 0x10000; v779 = 327680; } else { __asm { vmovaps xmm1, xmm2 } v1460 = 0x4000000; __asm { vmovaps xmm2, xmm10 } v1464 = 100794368; v1467 = 0x2000000; __asm { vmovaps xmm10, xmm11 } v775 = 100925440; v777 = 0x20000; v778 = 0x40000; v779 = 393216; } } __asm { vxorps xmm11, xmm12, xmm1 } _ESI = 1; __asm { vmovmskps ecx, xmm12 shlx r8d, esi, r15d vmovmskps edx, xmm11 } v785 = _ER8 & _ECX; v786 = _ER8 & _EDX; if ( !v786 ) __asm { vxorps xmm1, xmm1, xmm31 } __asm { vaddps xmm1, xmm1, xmm12 vunpcklps xmm12, xmm2, xmm10 vunpcklps xmm11, xmm14, xmm1 vunpckhps xmm2, xmm2, xmm10 vunpckhps xmm1, xmm14, xmm1 vmovlhps xmm10, xmm11, xmm12 vmovlhps xmm1, xmm1, xmm2 vmovaps [rsp+4C8h+var_238], xmm10 vshufps xmm11, xmm11, xmm12, 0EEh vmovaps [rsp+4C8h+var_218], xmm1 vmovaps [rsp+4C8h+var_228], xmm11 } _RCX = 4 * ((v728 + 1) % 3u); __asm { vmovaps xmm2, [rsp+rcx*4+4C8h+var_238] } _RCX = 4 * ((v728 + 2) % 3u); __asm { vmovaps xmm1, [rsp+rcx*4+4C8h+var_238] vunpcklps xmm13, xmm2, xmm1 vunpckhps xmm1, xmm2, xmm1 vshufps xmm21, xmm13, xmm1, 5Fh ; '_' vshufps xmm15, xmm1, xmm1, 0 vshufps xmm16, xmm1, xmm1, 22h ; '"' vxorps xmm15, xmm15, xmm28 vmulps xmm16, xmm16, xmm21 vshufps xmm18, xmm13, xmm13, 0AAh vshufps xmm14, xmm1, xmm1, 55h ; 'U' vaddps xmm15, xmm15, xmm18 vxorps xmm14, xmm14, xmm28 vshufps xmm17, xmm13, xmm13, 0FFh vaddps xmm14, xmm14, xmm17 vshufps xmm2, xmm1, xmm1, 0AAh vxorps xmm2, xmm2, xmm26 vaddps xmm15, xmm15, xmm2 vshufps xmm2, xmm1, xmm1, 0FFh vxorps xmm2, xmm2, xmm26 vaddps xmm14, xmm14, xmm2 vshufps xmm12, xmm13, xmm1, 0Ah vshufps xmm2, xmm1, xmm1, 77h ; 'w' vfmsub132ps xmm2, xmm16, xmm12 vshufps xmm12, xmm13, xmm13, 11h vmulps xmm12, xmm12, xmm1 vshufps xmm11, xmm13, xmm13, 0 vxorps xmm20, xmm11, cs:xmmword_40D6A0 vshufps xmm24, xmm2, xmm2, 0 vshufps xmm27, xmm2, xmm2, 55h ; 'U' vshufps xmm21, xmm12, xmm12, 0AAh vshufps xmm2, xmm2, xmm2, 0AAh vxorps xmm21, xmm21, xmm26 vandnps xmm16, xmm31, xmm2 vshufps xmm2, xmm12, xmm12, 0 vxorps xmm2, xmm2, xmm26 vaddps xmm21, xmm21, xmm24 vaddps xmm2, xmm2, xmm27 vmovaps xmmword ptr [rsp+4C8h+var_E8], xmm20 vdivps xmm20, xmm0, xmm1 vshufps xmm23, xmm12, xmm12, 0FFh vshufps xmm12, xmm12, xmm12, 55h ; 'U' vxorps xmm23, xmm23, xmm28 vxorps xmm25, xmm12, xmm28 vaddps xmm23, xmm21, xmm23 vaddps xmm2, xmm2, xmm25 vandnps xmm22, xmm31, xmm14 vmovaps xmm5, xmm22 vshufps xmm10, xmm13, xmm13, 55h ; 'U' vandnps xmm2, xmm31, xmm2 vcmpleps xmm5, xmm5, xmm10 vandnps xmm23, xmm31, xmm23 vmaxps xmm2, xmm2, xmm23 vandnps xmm12, xmm31, xmm15 vmovaps xmm22, xmm5 vcmpleps xmm12, xmm12, xmm11 vmovaps xmm5, xmm16 vcmpleps xmm2, xmm2, xmm5 vxorps xmm19, xmm10, xmm26 vandps xmm12, xmm12, xmm22 vmovaps xmmword ptr [rsp+4C8h+var_A8], xmm19 vmovsldup xmm19, xmm1 vpackssdw xmm16, xmm2, xmm12 vshufps xmm21, xmm2, xmm2, 0D1h vshufps xmm22, xmm12, xmm12, 48h ; 'H' vmovaps xmmword ptr [rsp+4C8h+var_E8+10h], xmm15 vshufps xmm12, xmm12, xmm12, 0EDh vmovshdup xmm15, xmm1 vandps xmm12, xmm12, xmm22 vshufps xmm2, xmm2, xmm2, 8Bh vandps xmm2, xmm2, xmm21 vpackssdw xmm2, xmm2, xmm12 vshufps xmm12, xmm1, xmm1, 0Ah vxorps xmm12, xmm12, xmm28 vaddps xmm18, xmm18, xmm12 vshufps xmm12, xmm1, xmm1, 5Fh ; '_' vxorps xmm12, xmm12, xmm28 vaddps xmm17, xmm17, xmm12 vmovaps xmmword ptr [rsp+4C8h+var_A8+10h], xmm14 vandps xmm14, xmm19, xmm31 vorps xmm14, xmm14, xmm11 vandps xmm11, xmm15, xmm31 vmovsldup xmm21, xmm20 vorps xmm11, xmm11, xmm10 vaddps xmm12, xmm17, xmm11 vsubps xmm10, xmm11, xmm17 vaddps xmm11, xmm18, xmm14 vmovshdup xmm20, xmm20 vsubps xmm14, xmm14, xmm18 vmulps xmm11, xmm11, xmm21 vmulps xmm12, xmm12, xmm20 vmulps xmm14, xmm14, xmm21 vmulps xmm10, xmm10, xmm20 vminps xmm11, xmm11, xmm0 vmovaps xmm20, xmm19 vcmpltps xmm5, xmm12, xmm11 vminps xmm14, xmm14, xmm0 vminps xmm11, xmm12, xmm11 vmovmskps ecx, xmm5 vcmpltps xmm5, xmm10, xmm14 vminps xmm10, xmm10, xmm14 vmovaps xmm14, xmm15 vfnmadd132ps xmm20, xmm18, xmm11 vaddps xmm12, xmm11, xmm10 vfnmadd132ps xmm14, xmm17, xmm11 vfmadd231ps xmm18, xmm19, xmm10 vfmadd231ps xmm17, xmm15, xmm10 vcmpltps xmm12, xmm3, xmm12 vcmpneqps xmm11, xmm11, xmm0 vcmpneqps xmm10, xmm10, xmm0 vmovmskps esi, xmm5 vandps xmm11, xmm11, xmm12 vandps xmm10, xmm10, xmm12 vpackssdw xmm10, xmm11, xmm10 vpandn xmm10, xmm2, xmm10 vpacksswb xmm10, xmm16, xmm10 vpmovmskb edi, xmm10 } v1457 = _EDI; __asm { vmovaps xmmword ptr [rsp+4C8h+var_C8], xmm20 vmovaps xmmword ptr [rsp+4C8h+var_88], xmm14 vmovaps xmmword ptr [rsp+4C8h+var_C8+10h], xmm18 vmovaps xmmword ptr [rsp+4C8h+var_88+10h], xmm17 } if ( v785 ) { v906 = _ER8 | (_ER8 << 8); v907 = _ER8 | 0xFFFF0000; } else { v906 = 0; v907 = -65536; } v908 = 0xFFFF; if ( !v786 ) { _EDX = 1; __asm { shlx eax, edx, eax } v908 = (_EAX << 16) | 0xFFFF; v906 |= (_EAX << 16) | (_EAX << 24); } _EDX = 302003748; __asm { sarx edx, edx, eax } v1506[0] = v907 | _EDX & 7; v1506[1] = v907 | (_EDX >> 8) & 7; v913 = _EDX; v1506[3] = v907 | HIBYTE(_EDX) & 7; v914 = v779; _R11 = 0x1200362424003612LL; __asm { shrx rax, r11, rax } v1506[4] = v908 | v914; v1506[2] = v907 | HIWORD(v913) & 7; v1468 = v906 | v1467; v1506[6] = v908 | v777; __asm { vmovmskps edx, xmm1 } v1506[7] = v908; v1506[5] = v908 | v778; _ESI = _EDX ^ 0xF; v919 = v906 | v775; LODWORD(_R11) = v906 | v1464; v1461 = v1460 | v906; __asm { shrx edi, edx, ebx shrx rdi, rax, rdi } v1506[8] = v919 | _RDI & 0x707; __asm { shrx edi, edx, edi shrx rdi, rax, rdi } v1506[9] = v1468 | _RDI & 0x707; __asm { shrx edi, edx, edi shrx rdi, rax, rdi } v1506[10] = _R11 | _RDI & 0x707; __asm { shrx edx, edx, edi shrx rdx, rax, rdx } v1506[11] = v1461 | _RDX & 0x707; __asm { shrx edx, esi, r12d shrx rdx, rax, rdx } v1506[12] = v919 | _RDX & 0x707; __asm { shrx edx, esi, r9d shrx rdx, rax, rdx } v1506[13] = v1468 | _RDX & 0x707; __asm { shrx edx, esi, edx shrx rdx, rax, rdx } v1506[14] = _R11 | _RDX & 0x707; __asm { shrx esi, esi, edx shrx rax, rax, rdx } v1506[15] = v1461 | _RAX & 0x707; _RAX = (char *)v1505 + 4 * (unsigned int)(4 * v728); __asm { vmovaps xmm11, xmmword ptr [rax] vunpcklps xmm2, xmm11, xmm3 vunpckhps xmm11, xmm11, xmm3 vmovhlps xmm10, xmm2, xmm13 vmovlhps xmm12, xmm13, xmm2 vmovlhps xmm13, xmm1, xmm11 vmovhlps xmm1, xmm11, xmm1 vshufps xmm11, xmm1, xmm1, 12h vshufps xmm2, xmm13, xmm13, 9 vshufps xmm1, xmm1, xmm1, 9 vshufps xmm13, xmm13, xmm13, 12h vmulps xmm1, xmm13, xmm1 vfmsub132ps xmm2, xmm1, xmm11 vmulps xmm1, xmm10, xmm2 vxorps xmm11, xmm2, xmm31 vshufps xmm2, xmm2, xmm2, 0AAh vshufps xmm10, xmm1, xmm1, 0 vshufps xmm13, xmm1, xmm1, 55h ; 'U' vaddps xmm10, xmm10, xmm13 vshufps xmm1, xmm1, xmm1, 0AAh vaddps xmm1, xmm10, xmm1 vmovlhps xmm10, xmm11, xmm1 vdivps xmm1, xmm0, xmm2 vxorps xmm11, xmm11, xmm11 vmulps xmm1, xmm1, xmm10 } if ( v785 ) __asm { vmovaps ymm11, cs:ymmword_40D3E0 } __asm { vinsertf128 ymm1, ymm1, xmm1, 1 vshufps ymm15, ymm1, ymm1, 55h ; 'U' vmulps ymm10, ymm15, [rsp+4C8h+var_A8] vshufps ymm14, ymm1, ymm1, 0 vmulps ymm15, ymm15, [rsp+4C8h+var_88] vshufps ymm1, ymm1, ymm1, 0AAh vshufps xmm2, xmm12, xmm12, 0AAh vfmadd231ps ymm10, ymm14, [rsp+4C8h+var_E8] vinsertf128 ymm2, ymm2, xmm2, 1 vfmadd132ps ymm14, ymm15, [rsp+4C8h+var_C8] vxorps ymm13, ymm11, cs:ymmword_40D400 vaddps ymm10, ymm10, ymm1 vaddps ymm1, ymm1, ymm14 vxorps ymm12, ymm10, ymm11 vsubps ymm12, ymm2, ymm12 vxorps ymm11, ymm1, ymm11 vsubps ymm2, ymm2, ymm11 vfmadd231ps ymm10, ymm12, ymm13 vcmpgt_oqps ymm5, ymm12, ymm4 vmovmskps eax, ymm5 vmovaps [rsp+4C8h+var_68], ymm10 vcmpgt_oqps ymm10, ymm2, ymm4 vfmadd231ps ymm1, ymm13, ymm2 vmovmskps r13d, ymm10 vmovaps [rsp+4C8h+var_1A8], ymm2 vmovaps [rsp+4C8h+var_48], ymm1 vmovaps [rsp+4C8h+var_1C8], ymm12 } v976 = v1457 & (_EAX | (_ER13 << 8)); _RAX = a4 + 32 * v1488; __asm { vmovaps xmm2, xmmword ptr [rax+10h] vaddps xmm1, xmm2, xmm2 vshufps xmm13, xmm2, xmm2, 0DEh vshufps xmm12, xmm2, xmm2, 0E5h vxorps xmm1, xmm1, cs:xmmword_40D6D0 vshufps xmm14, xmm2, xmm2, 0F2h vshufps xmm11, xmm1, xmm1, 0FAh vmulps xmm11, xmm11, xmm13 vshufps xmm10, xmm1, xmm1, 0C1h vshufps xmm13, xmm2, xmm2, 0E9h vfmadd132ps xmm10, xmm11, xmm12 vshufps xmm12, xmm1, xmm1, 0C3h vmulps xmm12, xmm12, xmm14 vshufps xmm11, xmm1, xmm1, 0D8h vaddps xmm10, xmm10, cs:xmmword_40D6E0 vfmadd132ps xmm11, xmm12, xmm13 vshufps xmm13, xmm2, xmm2, 0CAh vshufps xmm12, xmm1, xmm1, 0C4h vshufps xmm2, xmm2, xmm2, 0D3h vshufps xmm1, xmm1, xmm1, 0DDh vmulps xmm1, xmm1, xmm2 vaddps xmm11, xmm11, xmm8 vxorps xmm10, xmm10, xmm9 vxorps xmm11, xmm11, xmm7 vfmadd132ps xmm12, xmm1, xmm13 vmovaps xmm13, xmm10 vaddps xmm12, xmm12, xmm6 vxorps xmm12, xmm12, xmm30 } if ( v728 ) { __asm { vmovaps xmm13, xmm11 } if ( v728 != 1 ) __asm { vmovaps xmm13, xmm12 } } if ( v785 ) __asm { vxorps xmm13, xmm13, xmm31 } v1006 = *(_DWORD *)(_RAX + 12); __asm { vmovaps xmm14, xmmword ptr [rax] } v1008 = *(_DWORD *)(a4 + 32 * v1484 + 12); v1009 = HIWORD(v1006); v1010 = HIWORD(v1008); v1011 = v1006; v1012 = v1008; if ( (unsigned int)v1009 < (unsigned int)v1010 ) { v1012 = v1006; __asm { vxorps xmm13, xmm13, xmm31 } v1009 = (unsigned int)v1010; v1011 = v1008; v1010 = HIWORD(v1006); } v1013 = (v1010 << 48) | (v1009 << 32); if ( v976 ) { _EAX = v976; v1015 = v1453; __asm { vmovss xmm15, cs:dword_40D048 } do { __asm { tzcnt edx, eax vmulps xmm1, xmm11, dword ptr [rsp+r10*4+4C8h+var_E8]{1to4} } _RDX = (unsigned int)_RDX; __asm { vmovss xmm2, dword ptr [rsp+rdx*4+4C8h+var_1C8] vfmadd231ps xmm1, xmm10, dword ptr [rsp+r9*4+4C8h+var_E8]{1to4} } v1021 = v1015++; __asm { vfmadd231ps xmm1, xmm12, dword ptr [rsp+rcx*4+4C8h+var_E8]{1to4} } _RCX = a5 + 32 * v1021; __asm { vmovaps xmmword ptr [rcx+10h], xmm13 vaddps xmm1, xmm1, xmm14 vmovss dword ptr [rcx+1Ch], xmm15 vmovaps xmmword ptr [rcx], xmm1 vmovss dword ptr [rcx+0Ch], xmm2 } _RCX = (_WORD *)(a6 + 4 * v1021); *_RCX = v1011; _RCX[1] = v1012; LODWORD(_RCX) = v1506[(unsigned int)_RDX]; __asm { shrx edx, ecx, r8d shlx ecx, ecx, r8d } v1026 = v1013 | (unsigned int)_RDX | (unsigned int)_RCX; *(_QWORD *)(a14 + 8 * v1021) = v1026; __asm { blsr eax, eax } } while ( v1026 ); v1453 += __popcnt(v976); } } while ( v1497 ); __asm { vmovaps [rsp+4C8h+var_2E8], xmm0 } } if ( v1437 ) { v1027 = v1451; __asm { vmovaps xmm0, [rsp+4C8h+var_2E8] } _EDX = v1437; do { while ( 1 ) { __asm { tzcnt eax, edx } _ESI = v1449[v1493 + (unsigned int)_RAX]; _RAX = (unsigned int)_RAX; v1032 = *(_DWORD *)(a4 + 32LL * (unsigned __int16)_ESI + 12); __asm { vmovss xmm1, dword ptr [rsp+rax*4+4C8h+var_298] } v1034 = *((_DWORD *)&v1502 + (unsigned int)_RAX); v1035 = *((_DWORD *)&v1503 + (unsigned int)_RAX); _RAX = v1452; v1037 = *(_DWORD *)(a4 + 32LL * HIWORD(_ESI) + 12); _RCX = v1027; __asm { vmovss dword ptr [rax+rcx*4], xmm1 } v1039 = &v1499[v1027]; __asm { blsr edx, edx } if ( HIWORD(v1037) >= HIWORD(v1032) ) break; *v1039 = (v1035 << 16) | v1034; ++v1027; v1449[_RCX] = _ESI; if ( !_EDX ) goto LABEL_47; } *v1039 = v1035 | (v1034 << 16); __asm { rorx esi, esi, 10h } ++v1027; v1449[_RCX] = _ESI; } while ( _EDX ); LABEL_47: v1451 += __popcnt(v1437); __asm { vmovaps [rsp+4C8h+var_2E8], xmm0 } } v1493 += 4; } while ( v1440 > v1493 ); if ( v1451 ) { if ( !v1449[v1451 - 1] ) { __asm { vzeroupper } __assert_fail( "!added || pairs[added-1]", "../../nudge.cpp", 0x85Au, "unsigned int nudge::box_box_collide(uint32_t*, unsigned int, nudge::BoxCollider*, nudge::Transform*, nudge" "::Contact*, nudge::BodyPair*, uint64_t*, nudge::Arena)"); } v1040 = v1499; v1041 = v1451; v1042 = &v1449[v1041]; v1043 = &v1499[v1041]; v1044 = v1451 + 1; v1045 = v1451 + 2; v1046 = &v1452[v1041]; __asm { vzeroupper } } else { v1046 = v1452; v1043 = v1499; v1042 = v1449; v1045 = 2LL; v1044 = 1LL; __asm { vzeroupper } v1040 = v1499; } goto LABEL_52; } } } v1042 = v1449; v1046 = v1452; v1043 = v1499; *(_QWORD *)v1449 = 0LL; v1449[2] = 0; v1453 = 0; *(_QWORD *)v1452 = 0LL; v1452[2] = 0; v1451 = 0; v1045 = 2LL; v1044 = 1LL; v1040 = v1499; LABEL_52: *v1042 = 0; v1449[v1044] = 0; v1449[v1045] = 0; *v1043 = 0; v1040[v1044] = 0; v1040[v1045] = 0; *v1046 = 0; v1452[v1044] = 0; v1452[v1045] = 0; if ( v1451 ) { __asm { vmovaps xmm27, cs:xmmword_40D070 } v1410 = v1449; __asm { vmovaps xmm31, cs:xmmword_40D660 vmovaps xmm30, cs:xmmword_40D750 } v1050 = v1453; _RAX = a3; v1052 = a4; _RDI = a5; v1054 = 0; __asm { vmovaps [rsp+4C8h+var_4B8], xmm27 } do { _R14 = v1410; v1056 = v1410[v1054 + 1]; v1057 = v1410[v1054 + 2]; v1058 = v1410[v1054 + 3]; v1441 = (unsigned __int16)v1057; _R15 = v1054; v1438 = (unsigned __int16)v1058; _R13 = v1052 + 32LL * (unsigned __int16)v1058; __asm { vmovaps xmm7, xmmword ptr [r13+10h] } v1447 = LOWORD(v1410[v1054]); v1444 = (unsigned __int16)v1056; v1434 = _R13; _R10 = v1052 + 32 * v1447; _R9 = v1052 + 32LL * (unsigned __int16)v1056; _R8 = v1052 + 32LL * (unsigned __int16)v1057; __asm { shrx r13d, [r14+r15*4], r13d } v1429 = HIWORD(v1056); v1431 = (unsigned int)_R13; v1427 = HIWORD(v1057); v1425 = HIWORD(v1058); __asm { vmovaps xmm9, xmmword ptr [r9+10h] vmovaps xmm2, xmmword ptr [r10+10h] vmovaps xmm1, xmmword ptr [r8+10h] } _R13 = v1052 + 32LL * (unsigned int)_R13; _R12 = v1052 + 32 * v1429; _RBX = v1052 + 32 * v1427; _R11 = v1052 + 32 * v1425; __asm { vmovaps xmm0, xmmword ptr [r13+10h] vmovaps xmm3, xmmword ptr [rbx+10h] vmovaps xmm8, xmmword ptr [r11+10h] vmovaps xmm4, xmmword ptr [r12+10h] vunpcklps xmm5, xmm2, xmm9 vunpcklps xmm6, xmm1, xmm7 vunpckhps xmm2, xmm2, xmm9 vunpckhps xmm1, xmm1, xmm7 vmovlhps xmm7, xmm2, xmm1 vmovlhps xmm9, xmm5, xmm6 vmovhlps xmm1, xmm1, xmm2 vmovhlps xmm6, xmm6, xmm5 vunpcklps xmm2, xmm0, xmm4 vunpcklps xmm5, xmm3, xmm8 vunpckhps xmm4, xmm0, xmm4 vunpckhps xmm0, xmm3, xmm8 vmovlhps xmm3, xmm4, xmm0 vmovlhps xmm8, xmm2, xmm5 vaddps xmm10, xmm7, xmm7 vmovhlps xmm2, xmm5, xmm2 vmovhlps xmm0, xmm0, xmm4 vaddps xmm5, xmm6, xmm6 vaddps xmm4, xmm9, xmm9 vmovaps xmm13, [rsp+4C8h+var_4B8] vmulps xmm12, xmm5, xmm1 vmulps xmm11, xmm4, xmm1 vmulps xmm1, xmm10, xmm1 vmovaps xmm24, xmm4 vmovaps xmm20, xmm13 vfnmadd231ps xmm20, xmm5, xmm6 vmovaps xmm29, xmm4 vfmadd132ps xmm24, xmm1, xmm6 vfmsub231ps xmm1, xmm4, xmm6 vmovaps xmm28, xmm5 vfnmadd231ps xmm20, xmm10, xmm7 vfmsub132ps xmm29, xmm12, xmm7 vfmadd132ps xmm28, xmm11, xmm7 vmovaps xmm27, xmm1 vmovaps xmm1, xmm9 vfnmadd132ps xmm1, xmm13, xmm4 vfmadd132ps xmm4, xmm12, xmm7 vmovaps xmm9, xmm13 } _R14 = v1499; __asm { vmovaps [rsp+4C8h+var_2E8], xmm27 vfnmadd132ps xmm10, xmm1, xmm7 vfmsub132ps xmm7, xmm11, xmm5 vfnmadd132ps xmm5, xmm1, xmm6 vmovaps xmm19, xmm4 vaddps xmm1, xmm8, xmm8 vaddps xmm4, xmm2, xmm2 vmovaps xmm16, xmm7 vmovaps xmm18, xmm5 vaddps xmm5, xmm3, xmm3 vmulps xmm6, xmm1, xmm0 vmulps xmm7, xmm4, xmm0 vmulps xmm0, xmm5, xmm0 vmovaps xmm23, xmm1 vfnmadd231ps xmm9, xmm4, xmm2 vmovaps xmm22, xmm1 vmovaps xmm17, xmm4 vfmadd132ps xmm23, xmm0, xmm2 vmovaps xmm15, xmm0 vmovaps xmm0, xmm8 vfnmadd132ps xmm0, xmm13, xmm1 vfmsub231ps xmm15, xmm1, xmm2 vfnmadd231ps xmm9, xmm5, xmm3 vfmadd132ps xmm1, xmm7, xmm3 vmovaps xmm13, xmm5 vfmsub132ps xmm22, xmm7, xmm3 vfnmadd132ps xmm13, xmm0, xmm3 vfmadd132ps xmm17, xmm6, xmm3 vfmsub132ps xmm3, xmm6, xmm4 vfnmadd132ps xmm4, xmm0, xmm2 vmovdqa64 xmm25, xmmword ptr [r14+r15*4] vmovaps xmm26, xmm10 vmovaps xmm21, xmm1 vpslld xmm0, xmm25, 0Fh vpslld xmm1, xmm25, 1Fh vmovaps xmm12, xmm9 vmovaps xmm6, xmm27 vmovaps xmm9, xmm20 vmovaps xmm14, xmm23 vblendvps xmm10, xmm9, xmm6, xmm1 vmovaps xmm7, xmm29 vblendvps xmm6, xmm14, xmm13, xmm0 vmovaps xmm2, xmm28 vmovaps xmm11, xmm22 vmovaps xmm14, xmm17 vmovaps [rsp+4C8h+var_2B8], xmm3 vmovaps xmm9, xmm24 vmovaps xmm3, xmm26 vpslld xmm5, xmm25, 1Eh vblendvps xmm9, xmm9, xmm3, xmm1 vmovaps [rsp+4C8h+var_2C8], xmm4 vblendvps xmm1, xmm7, xmm2, xmm1 vmovaps xmm3, xmm16 vmovaps xmm7, xmm18 vmovaps [rsp+4C8h+var_2F8], xmm26 vmovaps [rsp+4C8h+var_2D8], xmm29 vmovaps [rsp+4C8h+var_308], xmm28 vmovaps [rsp+4C8h+var_348], xmm12 vblendvps xmm12, xmm12, xmm15, xmm0 vblendvps xmm0, xmm11, xmm14, xmm0 vmovaps xmm11, xmm19 vblendvps xmm10, xmm10, xmm11, xmm5 vblendvps xmm9, xmm9, xmm3, xmm5 vpslld xmm4, xmm25, 0Eh vblendvps xmm5, xmm1, xmm7, xmm5 vmovaps xmm1, xmm21 vblendvps xmm6, xmm6, [rsp+4C8h+var_2B8], xmm4 vblendvps xmm12, xmm12, xmm1, xmm4 vmovaps xmm8, xmmword ptr [r10] vblendvps xmm4, xmm0, [rsp+4C8h+var_2C8], xmm4 } _R10 = v1434; __asm { vmulps xmm2, xmm10, xmm4 vmovaps xmm11, xmmword ptr [r8] vmovaps [rsp+4C8h+var_378], xmm17 vmovaps [rsp+4C8h+var_338], xmm18 vmovaps xmm17, xmmword ptr [r10] vmovaps xmm18, xmmword ptr [r9] vmovaps xmm14, xmmword ptr [r12] vmovaps xmm3, xmmword ptr [r13+0] vmovaps xmm7, xmmword ptr [rbx] vmovaps [rsp+4C8h+var_358], xmm15 vmovaps [rsp+4C8h+var_368], xmm13 vunpcklps xmm15, xmm8, xmm18 vmovaps xmm13, xmmword ptr [r11] vunpckhps xmm8, xmm8, xmm18 vmovaps [rsp+4C8h+var_328], xmm16 vunpcklps xmm16, xmm11, xmm17 vunpckhps xmm11, xmm11, xmm17 vmovlhps xmm26, xmm8, xmm11 vmovhlps xmm11, xmm11, xmm8 vfmsub231ps xmm2, xmm5, xmm12 vmulps xmm0, xmm5, xmm6 vunpcklps xmm8, xmm3, xmm14 vmovaps [rsp+4C8h+var_458], xmm11 vunpcklps xmm11, xmm7, xmm13 vmovhlps xmm29, xmm16, xmm15 vunpckhps xmm3, xmm3, xmm14 vmovlhps xmm14, xmm8, xmm11 vmovhlps xmm8, xmm11, xmm8 vmovaps [rsp+4C8h+var_478], xmm8 vsubps xmm8, xmm8, xmm29 vfmsub231ps xmm0, xmm9, xmm4 vmulps xmm1, xmm9, xmm12 vmulps xmm8, xmm8, xmm2 vmovlhps xmm27, xmm15, xmm16 vunpckhps xmm7, xmm7, xmm13 vmovlhps xmm11, xmm3, xmm7 vmovhlps xmm28, xmm7, xmm3 vsubps xmm7, xmm14, xmm27 vfmsub231ps xmm1, xmm10, xmm6 vfmadd132ps xmm7, xmm8, xmm0 } _R8 = 16 * v1447; __asm { vmovaps xmm17, xmmword ptr [rax+r8] vsubps xmm3, xmm11, xmm26 } _R8 = 16 * v1444; __asm { vmovaps [rsp+4C8h+var_488], xmm11 vmovaps xmm11, xmmword ptr [rax+r8] vfmadd132ps xmm3, xmm7, xmm1 } _R8 = 16 * v1441; __asm { vmovaps xmm8, xmmword ptr [rax+r8] vmovaps [rsp+4C8h+var_318], xmm19 vmovaps [rsp+4C8h+var_398], xmm21 vmovaps [rsp+4C8h+var_498], xmm28 vmovaps [rsp+4C8h+var_448], xmm26 vmovaps [rsp+4C8h+var_468], xmm14 vmovaps [rsp+4C8h+var_3E8], xmm27 vmovaps [rsp+4C8h+var_438], xmm29 } _R8 = 16 * v1438; __asm { vmovaps xmm16, xmmword ptr [rax+r8] vandps xmm3, xmm3, xmm31 } _RBX = 16 * v1427; _R13 = 16 * v1431; _R12 = 16 * v1429; _R11 = 16 * v1425; __asm { vxorps xmm0, xmm0, xmm3 vxorps xmm2, xmm2, xmm3 vxorps xmm1, xmm1, xmm3 vmovaps xmm21, xmmword ptr [rax+r12] vmovaps xmm3, xmmword ptr [rax+rbx] vmovaps xmm15, xmmword ptr [rax+r11] vmovaps xmm7, xmmword ptr [rax+r13] vunpcklps xmm14, xmm8, xmm16 vunpcklps xmm13, xmm17, xmm11 vunpckhps xmm8, xmm8, xmm16 vunpckhps xmm11, xmm17, xmm11 vmovlhps xmm19, xmm13, xmm14 vmulps xmm17, xmm2, [rsp+4C8h+var_328] vmovhlps xmm13, xmm14, xmm13 vmovlhps xmm11, xmm11, xmm8 vunpcklps xmm14, xmm3, xmm15 vunpcklps xmm8, xmm7, xmm21 vmovlhps xmm16, xmm8, xmm14 vunpckhps xmm3, xmm3, xmm15 vunpckhps xmm7, xmm7, xmm21 vmovlhps xmm21, xmm7, xmm3 vmulps xmm15, xmm2, [rsp+4C8h+var_368] vmulps xmm7, xmm2, [rsp+4C8h+var_2B8] vmovaps [rsp+4C8h+var_3B8], xmm16 vmulps xmm16, xmm23, xmm2 vmulps xmm18, xmm2, [rsp+4C8h+var_2F8] vmovaps [rsp+4C8h+var_3A8], xmm19 vmulps xmm19, xmm24, xmm2 vfmadd231ps xmm17, xmm0, [rsp+4C8h+var_318] vfmadd231ps xmm16, xmm0, [rsp+4C8h+var_348] vfmadd231ps xmm15, xmm0, [rsp+4C8h+var_358] vfmadd231ps xmm7, xmm0, [rsp+4C8h+var_398] vfmadd231ps xmm19, xmm20, xmm0 vfmadd231ps xmm18, xmm0, [rsp+4C8h+var_2E8] vfmadd231ps xmm17, xmm1, [rsp+4C8h+var_338] vfmadd231ps xmm16, xmm22, xmm1 vfmadd231ps xmm15, xmm1, [rsp+4C8h+var_378] vfmadd231ps xmm7, xmm1, [rsp+4C8h+var_2C8] vfmadd231ps xmm19, xmm1, [rsp+4C8h+var_2D8] vfmadd231ps xmm18, xmm1, [rsp+4C8h+var_308] vandps xmm17, xmm17, xmm31 vpsrld xmm3, xmm17, 1Dh vandps xmm15, xmm15, xmm31 vmovdqa [rsp+4C8h+var_3C8], xmm3 vandps xmm16, xmm16, xmm31 vandps xmm7, xmm7, xmm31 vpsrlw xmm3, xmm25, 1 vandps xmm18, xmm18, xmm31 vpaddw xmm3, xmm3, cs:xmmword_40D740 vandps xmm19, xmm19, xmm31 vxorps xmm29, xmm16, xmm31 vxorps xmm28, xmm15, xmm31 vxorps xmm26, xmm7, xmm31 vmovhlps xmm14, xmm14, xmm8 vpsrld xmm27, xmm18, 1Eh vpsrld xmm8, xmm19, 1Fh vpsrld xmm29, xmm29, 0Fh vpsrld xmm28, xmm28, 0Eh vpsrld xmm26, xmm26, 0Dh vpaddw xmm3, xmm3, xmm25 vporq xmm8, xmm8, xmm29 vporq xmm25, xmm26, [rsp+4C8h+var_3C8] vporq xmm27, xmm27, xmm28 vporq xmm8, xmm8, xmm27 vporq xmm8, xmm8, xmm25 vpor xmm8, xmm8, xmm3 vxorps xmm13, xmm13, xmm18 vxorps xmm14, xmm14, xmm15 vpandn xmm3, xmm3, xmm8 vpslld xmm8, xmm8, 8 vxorps xmm16, xmm16, [rsp+4C8h+var_3B8] vxorps xmm19, xmm19, [rsp+4C8h+var_3A8] vpor xmm3, xmm3, xmm8 vmulps xmm8, xmm13, [rsp+4C8h+var_2F8] vmulps xmm15, xmm13, [rsp+4C8h+var_308] vmulps xmm18, xmm14, [rsp+4C8h+var_368] vxorps xmm11, xmm11, xmm17 vmulps xmm13, xmm13, [rsp+4C8h+var_2E8] vmulps xmm17, xmm14, [rsp+4C8h+var_358] vfmadd231ps xmm8, xmm24, xmm19 vfmadd231ps xmm18, xmm23, xmm16 vmulps xmm14, xmm14, [rsp+4C8h+var_378] vxorps xmm7, xmm21, xmm7 vfmadd231ps xmm13, xmm20, xmm19 vfmadd231ps xmm8, xmm11, [rsp+4C8h+var_328] vfmadd231ps xmm17, xmm16, [rsp+4C8h+var_348] vfmadd231ps xmm18, xmm7, [rsp+4C8h+var_2B8] vfmadd231ps xmm14, xmm22, xmm16 vfmadd132ps xmm19, xmm15, [rsp+4C8h+var_2D8] vfmadd231ps xmm13, xmm11, [rsp+4C8h+var_318] vfmadd231ps xmm17, xmm7, [rsp+4C8h+var_398] vaddps xmm8, xmm8, [rsp+4C8h+var_438] vsubps xmm18, xmm18, [rsp+4C8h+var_478] vmulps xmm16, xmm9, xmm6 vfmadd132ps xmm7, xmm14, [rsp+4C8h+var_2C8] vaddps xmm22, xmm8, xmm18 vfmadd132ps xmm11, xmm19, [rsp+4C8h+var_338] vaddps xmm13, xmm13, [rsp+4C8h+var_3E8] vsubps xmm17, xmm17, [rsp+4C8h+var_468] vfmadd231ps xmm16, xmm10, xmm12 vmulps xmm21, xmm22, xmm9 vmulps xmm19, xmm9, xmm9 vmulps xmm14, xmm6, xmm6 vmulps xmm22, xmm22, xmm6 vsubps xmm15, xmm7, [rsp+4C8h+var_488] vaddps xmm7, xmm13, xmm17 vaddps xmm11, xmm11, [rsp+4C8h+var_448] vfmadd231ps xmm16, xmm5, xmm4 vfmadd231ps xmm21, xmm7, xmm10 vfmadd231ps xmm19, xmm10, xmm10 vfmadd132ps xmm7, xmm22, xmm12 vfmadd231ps xmm14, xmm12, xmm12 vaddps xmm20, xmm11, xmm15 vsubps xmm11, xmm11, xmm15 vfmadd231ps xmm19, xmm5, xmm5 vfmadd231ps xmm21, xmm20, xmm5 vfmadd231ps xmm14, xmm4, xmm4 vfmadd132ps xmm20, xmm7, xmm4 vmulps xmm7, xmm16, xmm16 vsubps xmm8, xmm8, xmm18 vsubps xmm13, xmm13, xmm17 } _RBX = v1452; _R9 = v1050; __asm { vfmsub231ps xmm7, xmm19, xmm14 vmulps xmm14, xmm14, xmm21 } _R8 = _RDI + 32LL * v1050; __asm { vdivps xmm7, xmm30, xmm7 vfmsub231ps xmm14, xmm16, xmm20 vmulps xmm16, xmm16, xmm21 vfmsub231ps xmm16, xmm19, xmm20 vmulps xmm14, xmm14, xmm7 vmulps xmm7, xmm16, xmm7 vmulps xmm5, xmm14, xmm5 vmulps xmm10, xmm14, xmm10 vmulps xmm9, xmm14, xmm9 vfmadd231ps xmm5, xmm11, xmm30 vfmadd231ps xmm10, xmm13, xmm30 vfmadd231ps xmm9, xmm8, xmm30 vfmadd132ps xmm4, xmm5, xmm7 vmulps xmm5, xmm2, xmm2 vfmadd132ps xmm12, xmm10, xmm7 vfmadd132ps xmm6, xmm9, xmm7 vfmadd231ps xmm5, xmm0, xmm0 vunpcklps xmm8, xmm12, xmm6 vunpckhps xmm6, xmm12, xmm6 vfmadd231ps xmm5, xmm1, xmm1 vrsqrtps xmm5, xmm5 vmulps xmm2, xmm2, xmm5 vmulps xmm0, xmm0, xmm5 vmulps xmm1, xmm1, xmm5 vmovaps xmm5, xmmword ptr [rbx+r15*4] vunpcklps xmm9, xmm4, xmm5 vunpckhps xmm4, xmm4, xmm5 vunpcklps xmm7, xmm1, xmm30 vunpcklps xmm5, xmm0, xmm2 vmovlhps xmm12, xmm8, xmm9 vmovlhps xmm11, xmm5, xmm7 vmovaps xmmword ptr [r8], xmm12 vmovaps xmmword ptr [r8+10h], xmm11 } _R8 = 32LL * (v1050 + 1); __asm { vmovhlps xmm9, xmm9, xmm8 vmovhlps xmm7, xmm7, xmm5 vmovaps xmmword ptr [rdi+r8+10h], xmm7 vmovaps xmmword ptr [rdi+r8], xmm9 vunpckhps xmm0, xmm0, xmm2 vunpckhps xmm1, xmm1, xmm30 } _R8 = _RDI + 32LL * (v1050 + 2); __asm { vmovlhps xmm10, xmm6, xmm4 vmovlhps xmm2, xmm0, xmm1 vmovaps xmmword ptr [r8], xmm10 vmovaps xmmword ptr [r8+10h], xmm2 vmovhlps xmm7, xmm4, xmm6 vmovaps xmm6, [rsp+4C8h+var_458] } _R8 = 32LL * (v1050 + 3); __asm { vmovaps xmm4, [rsp+4C8h+var_498] vmovaps xmmword ptr [rdi+r8], xmm7 vmovhlps xmm7, xmm1, xmm0 vandps xmm0, xmm6, cs:xmmword_40D760 vmovaps xmmword ptr [rdi+r8+10h], xmm7 vpslld xmm1, xmm4, 10h } _RBX = a6; __asm { vorps xmm0, xmm0, xmm1 vmovups xmmword ptr [rbx+r9*4], xmm0 vandps xmm0, xmm4, cs:xmmword_40D770 vpsrld xmm8, xmm6, 10h } _RBX = a14; __asm { vorps xmm0, xmm0, xmm8 } _R8 = 2 * v1050; __asm { vpunpckldq xmm1, xmm3, xmm0 } v1054 += 4; __asm { vpunpckhdq xmm3, xmm3, xmm0 vmovdqu xmmword ptr [rbx+r8*4], xmm1 vmovdqu xmmword ptr [rbx+r8*4+10h], xmm3 } v1050 += 4; } while ( v1451 > v1054 ); result = v1050; v1406 = a6; } else { result = v1453; v1406 = a6; } while ( (_DWORD)result && *(_WORD *)(v1406 + 4LL * (unsigned int)(result - 1)) == *(_WORD *)(v1406 + 4LL * (unsigned int)(result - 1) + 2) ) result = (unsigned int)(result - 1); return result; } Q:[_ER8,sub_402BA0,sub_402380,sub_4023A0,]
A:{'_ER8': '_R8', 'sub_402BA0': 'box_box_collide', 'sub_402380': 'align', 'sub_4023A0': 'allocate'}
7dc7fd77c702ac66e020038977e4c5b256bb046b8e96253a37fa2f33ba09f7ff_7dc7fd77c702ac66e020038977e4c5b256bb046b8e96253a37fa2f33ba09f7ff.jsonl.gz
sub_4132DB
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4132DB(__int64 a1) { return a1; } Q:[a1,sub_4132DB,]
A:{'a1': '__t', 'sub_4132DB': 'ConstExpression'}
09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7_09e593e1a10a4f6cadf5c016cb4c8cfb0a3586515f0619eba999737feb58c9d7.jsonl.gz
sub_441AD8
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_441AD8(int a1, int a2, int a3, char *a4, char *a5, unsigned __int16 a6, int a7, const char *a8) { int v13[2]; // [rsp+30h] [rbp-10h] BYREF unsigned int v14; // [rsp+38h] [rbp-8h] int v15; // [rsp+3Ch] [rbp-4h] v15 = sub_44183D((__int64 *)v13, a7, a8); if ( !v15 ) return 0xFFFFFFFFLL; v14 = sub_46F1C7(a1, a2, off_49CD60, v13[0], v15, a3, a4, a5, a6); sub_462B45(*(_QWORD *)v13, 0LL, 0LL); return v14; } Q:[a3,a4,a1,a2,a5,a6,a7,a8,v13,v14,v15,sub_441AD8,sub_44183D,sub_46F1C7,sub_462B45,]
A:{'a3': '_accept', 'a4': '_reject', 'a1': '_to', 'a2': '_from', 'a5': '_expire', 'a6': '_timeout', 'a7': 'code', 'a8': 'msg', 'v13': '_body', 'v14': '_rc', 'v15': '_size', 'sub_441AD8': 'lsend_smtsmtp_error', 'sub_44183D': 'put_smtsmtp_reply', 'sub_46F1C7': 'event_send', 'sub_462B45': 'mem_free_'}
c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705_c0889e43b9fb99e0a15d5a45e58572120bf2a06ee20b165810a3d68c382cd705.jsonl.gz
sub_448260
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_448260(unsigned __int64 a1, __int64 a2) { __int64 result; // rax ++qword_4F2D00; if ( *(_BYTE *)(((unsigned __int64)(a2 + 8) >> 3) + 0x7FFF8000) != 0 && *(_BYTE *)(((unsigned __int64)(a2 + 8) >> 3) + 0x7FFF8000) <= 3 ) { __asan_report_load4(); } result = *(unsigned int *)(a2 + 8); switch ( (int)result ) { case 1: ++qword_4F2D08; if ( *(_BYTE *)(((unsigned __int64)(a2 + 16) >> 3) + 0x7FFF8000) ) __asan_report_load8(); sub_416BBE(a1, 1, *(_QWORD *)(a2 + 16), (void (__fastcall *)(unsigned __int64, __int64))sub_4405F8); result = ++qword_4F2D40; break; case 2: ++qword_4F2D10; if ( *(_BYTE *)(((unsigned __int64)(a2 + 16) >> 3) + 0x7FFF8000) ) __asan_report_load8(); sub_416BBE(a1, 2, *(_QWORD *)(a2 + 16), (void (__fastcall *)(unsigned __int64, __int64))sub_441DD0); result = ++qword_4F2D48; break; case 3: ++qword_4F2D18; if ( *(_BYTE *)(((unsigned __int64)(a2 + 16) >> 3) + 0x7FFF8000) ) __asan_report_load8(); sub_416BBE(a1, 3, *(_QWORD *)(a2 + 16), (void (__fastcall *)(unsigned __int64, __int64))sub_44364F); result = ++qword_4F2D50; break; case 4: ++qword_4F2D20; if ( *(_BYTE *)(((unsigned __int64)(a2 + 16) >> 3) + 0x7FFF8000) ) __asan_report_load8(); sub_416BBE(a1, 4, *(_QWORD *)(a2 + 16), (void (__fastcall *)(unsigned __int64, __int64))sub_445A1F); result = ++qword_4F2D58; break; case 5: ++qword_4F2D28; if ( *(_BYTE *)(((unsigned __int64)(a2 + 16) >> 3) + 0x7FFF8000) != 0 && *(_BYTE *)(((unsigned __int64)(a2 + 16) >> 3) + 0x7FFF8000) <= 3 ) { __asan_report_load4(); } sub_40E51B(a1, 5, *(_DWORD *)(a2 + 16)); result = ++qword_4F2D60; break; case 6: ++qword_4F2D30; if ( *(_BYTE *)(((unsigned __int64)(a2 + 16) >> 3) + 0x7FFF8000) ) __asan_report_load8(); sub_40ECA9(a1, 6, *(const char **)(a2 + 16)); result = ++qword_4F2D68; break; case 7: ++qword_4F2D38; sub_40ED39(a1, 7, a2 + 16); result = ++qword_4F2D70; break; default: return result; } return result; } Q:[a1,a2,sub_448260,sub_416BBE,sub_4405F8,sub_441DD0,sub_44364F,sub_445A1F,sub_40E51B,sub_40ECA9,sub_40ED39,]
A:{'a1': 'encoder_p', 'a2': 'self_p', 'sub_448260': 'field_names_message_one_of_encode_inner', 'sub_416BBE': 'pbtools_encoder_sub_message_encode_always', 'sub_4405F8': 'field_names_message_camel_case_encode_inner', 'sub_441DD0': 'field_names_message_pascal_case_encode_inner', 'sub_44364F': 'field_names_repeated_message_camel_case_encode_inner', 'sub_445A1F': 'field_names_repeated_message_pascal_case_encode_inner', 'sub_40E51B': 'pbtools_encoder_write_int32_always', 'sub_40ECA9': 'pbtools_encoder_write_string_always', 'sub_40ED39': 'pbtools_encoder_write_bytes_always'}
5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0_5c2a369c2a43bfe06e48866e92fbdc8c356c46190477983799d2e15f105ed3e0.jsonl.gz
sub_453423
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_453423(unsigned int a1, __int64 a2, __int64 a3, unsigned int a4) { return print_color_uint(a1, 6LL, a2, a3, a4); } Q:[a3,a4,a1,a2,sub_453423,]
A:{'a3': 'fmt', 'a4': 'value', 'a1': 't', 'a2': 'key', 'sub_453423': 'print_uint_35'}
1ed30d68b171ebbd278cff671a494e3ed012c4f4786786e13de59417f294cf50_1ed30d68b171ebbd278cff671a494e3ed012c4f4786786e13de59417f294cf50.jsonl.gz
sub_408547
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_408547(__int64 a1, const char *a2) { __int64 i; // [rsp+18h] [rbp-10h] for ( i = *(_QWORD *)(a1 + 24); i; i = *(_QWORD *)(i + 40) ) { if ( *(_BYTE *)i != 1 && !strcmp(*(const char **)(i + 8), a2) ) return i; } return 0LL; } Q:[a1,a2,i,sub_408547,]
A:{'a1': 'node', 'a2': 'nodename', 'i': 'child', 'sub_408547': 'get_subnode'}
2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89_2dd46d844c8e5b273ceef8e2bca5c6351a45086677eac11c21b23dd43f498a89.jsonl.gz
sub_421F23
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_421F23(__int64 a1, int a2, __int64 a3) { __time_t v4; // rax __time_t v6; // [rsp+58h] [rbp-18h] unsigned __int64 v7; // [rsp+60h] [rbp-10h] unsigned int i; // [rsp+6Ch] [rbp-4h] v6 = sub_41596D(1); v7 = a3; for ( i = 0; i <= *(_DWORD *)(a1 + 100) + 1; ++i ) v7 += (unsigned __int16)((*(unsigned __int16 *)(16LL * i + *(_QWORD *)(a1 + 8) + 8) + ((unsigned int)*(_QWORD *)(16LL * i + *(_QWORD *)(a1 + 8)) & 7) + 7) >> 3); if ( v7 > *(_QWORD *)(a1 + 32) ) return 1024LL; sub_41FB22(a1, a2, a3, v7); sub_41D922((_QWORD *)a1, 1u, *(_DWORD *)(a1 + 100) + 1); v4 = sub_41596D(1); ++*(_DWORD *)(a1 + 48); *(_QWORD *)(a1 + 40) += v4 - v6; return 0LL; } Q:[a3,a1,a2,v6,v7,sub_421F23,sub_41596D,sub_41FB22,sub_41D922,]
A:{'a3': 'growing_size', 'a1': 'delta_zone', 'a2': 'growing_index', 'v6': 'start_time', 'v7': 'used_space', 'sub_421F23': 'extend_delta_zone', 'sub_41596D': 'current_time_ns', 'sub_41FB22': 'compute_new_list_offsets', 'sub_41D922': 'rebalance_delta_zone'}
45adb1007db48f04da3208026b4363d2a567caca85fbe65662c5af6a9b034a10_45adb1007db48f04da3208026b4363d2a567caca85fbe65662c5af6a9b034a10.jsonl.gz
sub_405B61
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_405B61(_BYTE *a1) { return 80LL * (int)sub_405963(a1, "rcbsl") + 4256288; } Q:[a1,sub_405B61,sub_405963,]
A:{'a1': 'map_name', 'sub_405B61': 'get_map', 'sub_405963': 'mhsh'}
2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8_2e7195e6bc11902cb1147d429b22ff6f7655de6050b37429b5d7074aaa0727e8.jsonl.gz
sub_44A642
Help user generate meaningful names for variables and functions in the following code snippet.
_QWORD *__fastcall sub_44A642(FILE **a1) { _QWORD *result; // rax _QWORD *v2; // [rsp+10h] [rbp-20h] BYREF void **v3; // [rsp+18h] [rbp-18h] void *ptr; // [rsp+28h] [rbp-8h] v2 = 0LL; v3 = (void **)&v2; ptr = sub_422FD7("val", "1"); *((_QWORD *)ptr + 520) = 0LL; *v3 = ptr; v3 = (void **)((char *)ptr + 4160); sub_4227C2(*a1, "c:showSerName", (__int64)&v2); while ( 1 ) { result = v2; if ( !v2 ) break; ptr = v2; v2 = (_QWORD *)v2[520]; if ( !v2 ) v3 = (void **)&v2; free(ptr); } return result; } Q:[a1,v2,ptr,sub_44A642,sub_422FD7,sub_4227C2,]
A:{'a1': 'self', 'v2': 'attributes', 'ptr': 'attribute', 'sub_44A642': '_chart_write_show_ser_name', 'sub_422FD7': 'lxw_new_attribute_str', 'sub_4227C2': 'lxw_xml_empty_tag'}
1a6c7be4c8f4ac17ca22f40c652905e02ccba3226ffbe155987b45786be90c4f_1a6c7be4c8f4ac17ca22f40c652905e02ccba3226ffbe155987b45786be90c4f.jsonl.gz
sub_407C51
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_407C51(__int64 a1, __int64 a2, unsigned __int8 a3) { float v3; // xmm0_4 __int64 result; // rax __int64 v5; // [rsp+1Ch] [rbp-18h] int v6; // [rsp+24h] [rbp-10h] __int16 v7; // [rsp+28h] [rbp-Ch] char v8; // [rsp+2Bh] [rbp-9h] double v9; // [rsp+2Ch] [rbp-8h] switch ( *(_QWORD *)(a1 + 8 * (a3 + 32LL)) ) { case 0LL: v5 = *(_QWORD *)(8 * (a3 + 12LL) + a1); *(_QWORD *)(8 * (a3 + 12LL) + a1) = 0LL; *(float *)(8 * (a3 + 12LL) + a1) = (float)(int)v5; break; case 1LL: v6 = *(_DWORD *)(8 * (a3 + 12LL) + a1); *(_QWORD *)(8 * (a3 + 12LL) + a1) = 0LL; *(float *)(8 * (a3 + 12LL) + a1) = (float)v6; break; case 2LL: v7 = *(_WORD *)(8 * (a3 + 12LL) + a1); *(_QWORD *)(8 * (a3 + 12LL) + a1) = 0LL; *(float *)(8 * (a3 + 12LL) + a1) = (float)v7; break; case 3LL: v8 = *(_BYTE *)(8 * (a3 + 12LL) + a1); *(_QWORD *)(8 * (a3 + 12LL) + a1) = 0LL; *(float *)(8 * (a3 + 12LL) + a1) = (float)v8; break; case 4LL: v9 = *(double *)(8 * (a3 + 12LL) + a1); *(_QWORD *)(8 * (a3 + 12LL) + a1) = 0LL; v3 = v9; *(float *)(8 * (a3 + 12LL) + a1) = v3; break; default: break; } result = a1; *(_QWORD *)(a1 + 8 * (a3 + 32LL)) = 5LL; return result; } Q:[a3,a1,a2,v5,v6,v7,v8,v9,sub_407C51,]
A:{'a3': 'reg1', 'a1': 'bcr', 'a2': 'op', 'v5': 'value_2', 'v6': 'value_1', 'v7': 'value_0', 'v8': 'value', 'v9': 'value_3', 'sub_407C51': 'exec_op_conv_flt32_reg'}
ca4e1294fb3261432fc2c4cf27f3351e7d422fe073d7c13b05ca1bba4d12013b_ca4e1294fb3261432fc2c4cf27f3351e7d422fe073d7c13b05ca1bba4d12013b.jsonl.gz
sub_401270
Help user generate meaningful names for variables and functions in the following code snippet.
double *__fastcall sub_401270(int a1) { double *v2; // [rsp+10h] [rbp-20h] int i; // [rsp+1Ch] [rbp-14h] v2 = (double *)malloc(8LL * a1); for ( i = 0; i < a1; ++i ) v2[i] = drand48(); return v2; } Q:[a1,v2,sub_401270,]
A:{'a1': 'n', 'v2': 'array', 'sub_401270': 'gen_array'}
b96d14afe5a309f3d2768451909eadc66db3a51f9332c796791f24616961688b_b96d14afe5a309f3d2768451909eadc66db3a51f9332c796791f24616961688b.jsonl.gz
sub_4469EE
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_4469EE(int a1, __int64 a2) { __int64 v2; // rdi __int64 v4; // [rsp+0h] [rbp-20h] __int64 v6; // [rsp+18h] [rbp-8h] v4 = a2; v6 = sub_453C50(qword_488338) & 0xFFFFFFFFFFFFLL | 0x7FFD000000000000LL; sub_45F560(v6); v2 = (v6 & 0xFFFFFFFFFFFFLL) + 56; sub_45CA2C(v2); while ( a1 ) { a2 = *(_QWORD *)(8LL * a1 - 8 + v4); v2 = (v6 & 0xFFFFFFFFFFFFLL) + 56; sub_45CEE9(v2, a2, 0xFFFC000000000001LL); --a1; } return sub_45F5A9(v2, a2); } Q:[a1,a2,v2,v6,sub_4469EE,sub_453C50,sub_45F560,sub_45CA2C,sub_45CEE9,sub_45F5A9,]
A:{'a1': 'argc', 'a2': 'argv', 'v2': 'argc', 'v6': 'outSet', 'sub_4469EE': 'krk_set_of', 'sub_453C50': 'krk_newInstance', 'sub_45F560': 'krk_push', 'sub_45CA2C': 'krk_initTable', 'sub_45CEE9': 'krk_tableSet', 'sub_45F5A9': 'krk_pop'}
18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5_18ff9bd9c1637b628af63c86f48edfbee6b6b7371ac92f808a17f2cbb8eb4fe5.jsonl.gz
sub_413129
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 sub_413129() { werase(stdscr); return sub_412E8E(); } Q:[sub_413129,sub_412E8E,]
A:{'sub_413129': 'build_logicboard_view', 'sub_412E8E': 'logicboard_entermode'}
68eece29edec86fe51cb9da2a304caeab06c82737e887e77284167164d508312_68eece29edec86fe51cb9da2a304caeab06c82737e887e77284167164d508312.jsonl.gz
sub_439EA0
Help user generate meaningful names for variables and functions in the following code snippet.
void __fastcall sub_439EA0(__int64 a1, unsigned __int8 a2, const void **a3, int *a4) { unsigned __int8 *v6; // rax int v7; // edi unsigned __int8 v8; // al _BYTE *v9; // rdi __int64 v10; // rax signed __int64 v11; // rsi __int64 v12; // r9 __int64 v13; // rsi __int64 v14; // rdi __int64 v15; // rdx __int64 v16; // rax unsigned __int8 v17; // [rsp+Ch] [rbp-4Ch] BYREF char v18[8]; // [rsp+18h] [rbp-40h] BYREF void *v19; // [rsp+20h] [rbp-38h] BYREF _BYTE *v20; // [rsp+28h] [rbp-30h] v6 = *(unsigned __int8 **)a4; v7 = *a4; v17 = a2; if ( a4[2] == v7 || (v8 = *v6, v8 <= 0xFu) ) { sub_42F1E0((__int64 *)&v19, a1, 1, 1, 0); if ( v20 == v19 ) std::__throw_out_of_range_fmt("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)"); sub_42E020((__int64)v18, 28, *(_BYTE *)v19, v17); sub_43AE20(a1, v18); v9 = v19; v10 = 0LL; v11 = v20 - (_BYTE *)v19; v12 = (unsigned int)((_DWORD)v20 - (_DWORD)v19 - 1); if ( (int)v20 - (int)v19 > 0 ) { while ( 1 ) { if ( v11 == v10 ) std::__throw_out_of_range_fmt("vector::_M_range_check: __n (which is %zu) >= this->size() (which is %zu)"); *(_DWORD *)(a1 + 72) &= ~(1 << v9[v10]); if ( v12 == v10 ) break; ++v10; } goto LABEL_9; } if ( v19 ) { LABEL_9: operator delete(v9); goto LABEL_10; } } else { sub_42E020((__int64)&v19, 28, v8, v17); sub_43AE20(a1, &v19); } LABEL_10: v13 = *(_QWORD *)(a1 + 168); if ( !v13 ) { v13 = a1 + 160; LABEL_21: v19 = &v17; v13 = sub_439A80((_QWORD *)(a1 + 152), v13, (unsigned __int8 **)&v19); goto LABEL_22; } v14 = a1 + 160; while ( 1 ) { v15 = *(_QWORD *)(v13 + 16); v16 = *(_QWORD *)(v13 + 24); if ( *(_BYTE *)(v13 + 32) >= v17 ) break; LABEL_15: if ( !v16 ) { v13 = v14; goto LABEL_19; } v13 = v16; } while ( v15 ) { v14 = v13; v13 = v15; v15 = *(_QWORD *)(v15 + 16); v16 = *(_QWORD *)(v13 + 24); if ( *(_BYTE *)(v13 + 32) < v17 ) goto LABEL_15; } LABEL_19: if ( a1 + 160 == v13 || v17 < *(_BYTE *)(v13 + 32) ) goto LABEL_21; LABEL_22: sub_42DBC0((char **)(v13 + 40), a3); } Q:[a1,sub_439EA0,sub_42F1E0,sub_42E020,sub_43AE20,sub_439A80,sub_42DBC0,]
A:{'a1': 'this', 'sub_439EA0': 'sbox_setup', 'sub_42F1E0': 'allocateRegInternal', 'sub_42E020': 'reg2', 'sub_43AE20': 'emplace_back', 'sub_439A80': 'tuple', 'sub_42DBC0': '_ZNSt6vectorIhSaIhEEaSERKS1_.isra.0_7'}
aca603cc862edf1898e7a520c9d8bafeeb02de6b33abebd635f496a424f65b3e_aca603cc862edf1898e7a520c9d8bafeeb02de6b33abebd635f496a424f65b3e.jsonl.gz
sub_404168
Help user generate meaningful names for variables and functions in the following code snippet.
_QWORD *__fastcall sub_404168(_QWORD *a1, __int64 a2) { _QWORD *result; // rax sub_404150(a1); *a1 = off_4053C8; result = a1; a1[1] = a2; return result; } Q:[a1,sub_404168,sub_404150,]
A:{'a1': 'this', 'sub_404168': 'SimStream', 'sub_404150': 'PStream'}
18917713e82c5fce645d42be38d8e80443df17c0e69996d2ab1d5c3d91271aa1_18917713e82c5fce645d42be38d8e80443df17c0e69996d2ab1d5c3d91271aa1.jsonl.gz
sub_4018E7
Help user generate meaningful names for variables and functions in the following code snippet.
void __fastcall sub_4018E7(unsigned __int8 *a1, size_t a2) { char v2[24]; // [rsp+20h] [rbp-30h] BYREF void *s; // [rsp+38h] [rbp-18h] size_t n; // [rsp+40h] [rbp-10h] int j; // [rsp+48h] [rbp-8h] int i; // [rsp+4Ch] [rbp-4h] printw("Test: %p and %d\n", a1, a2); switch ( *a1 ) { case 8u: case 9u: n = a2 - 1; s = malloc(a2); memset(s, 0, a2); memcpy(s, a1 + 2, a2 - 1); ba2str(); printw("addr=%s name=%s\n", v2, (const char *)s); free(s); break; case 1u: printw("Flag type: len=%d\n", a2); for ( i = 1; a2 > i; ++i ) printw("\tFlag data: 0x%0X\n", a1[i]); break; case 0xFF: printw("Manufacture specific type: len=%d\n", a2); for ( j = 1; a2 > j; ++j ) printw("\tData: 0x%0X\n", a1[j]); break; default: printw("Unknown type: type=%X\n", *a1); break; } } Q:[a1,a2,v2,s,n,j,sub_4018E7,]
A:{'a1': 'data', 'a2': 'data_len', 'v2': 'addr', 's': 'name', 'n': 'name_len', 'j': 'i_0', 'sub_4018E7': 'process_data'}
8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2_8e89f9502949c1a463a3dd08a58c3c7a60591689c0f4de603abd6f5993935ae2.jsonl.gz
sub_439171
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_439171(__int64 a1, unsigned int a2) { __int64 result; // rax unsigned int v3; // eax unsigned int v4; // [rsp+10h] [rbp-10h] __int64 v5; // [rsp+18h] [rbp-8h] v5 = sub_44728F(24LL); if ( !v5 ) return 0xFFFFFFFFLL; *(_QWORD *)(v5 + 8) = *(_QWORD *)(a1 + 16); *(_DWORD *)(v5 + 16) = *(_DWORD *)(a1 + 24); *(_QWORD *)v5 = 0LL; v3 = *(_DWORD *)(a1 + 28); if ( a2 >= v3 ) v3 = a2; v4 = v3; *(_QWORD *)(a1 + 16) = sub_44728F(v3); if ( *(_QWORD *)(a1 + 16) ) { *(_DWORD *)(a1 + 28) = v4; *(_DWORD *)(a1 + 24) = 0; if ( *(_QWORD *)(a1 + 8) ) **(_QWORD **)(a1 + 8) = v5; else *(_QWORD *)a1 = v5; *(_QWORD *)(a1 + 8) = v5; result = 0LL; } else { sub_44734C(v5); result = 0xFFFFFFFFLL; } return result; } Q:[a1,a2,v3,v4,v5,sub_439171,sub_44728F,sub_44734C,]
A:{'a1': 'pk', 'a2': 'sz', 'v3': 'result', 'v4': 'newcap', 'v5': 'entry', 'sub_439171': 'pack_resize', 'sub_44728F': 'cf_malloc', 'sub_44734C': 'cf_free'}
fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602_fa27d0bacf06ce93b14fd9cba32c0c5a7d20e024d2a5f59104dc1d7405bb9602.jsonl.gz
sub_44D86A
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_44D86A(__int64 a1) { __int64 result; // rax result = a1; qword_47A1A0 = a1; return result; } Q:[a1,sub_44D86A,]
A:{'a1': 'cb', 'sub_44D86A': 'pg_logging_set_pre_callback'}
92ba70718f06e827d9a717d0136680f8af85a2b0fe3ef4153be1eb80b8c49ffe_92ba70718f06e827d9a717d0136680f8af85a2b0fe3ef4153be1eb80b8c49ffe.jsonl.gz
sub_405630
Help user generate meaningful names for variables and functions in the following code snippet.
const char *__fastcall sub_405630(__int64 *a1) { const char *result; // rax if ( !a1 ) return "Dwarf_Error is NULL"; result = "Dwarf_Error value out of range"; if ( *a1 <= 299 ) result = off_42B1A0[*a1]; return result; } Q:[a1,sub_405630,]
A:{'a1': 'error', 'sub_405630': 'dwarf_errmsg'}
7219b0ef569734ba548000b39f891b63e71d053f533c94257503597f308a3fd2_7219b0ef569734ba548000b39f891b63e71d053f533c94257503597f308a3fd2.jsonl.gz
sub_45BB7F
Help user generate meaningful names for variables and functions in the following code snippet.
__int64 __fastcall sub_45BB7F(_DWORD *a1, _DWORD *a2, _DWORD *a3) { *a1 = *a2 - *a3; a1[1] = a2[1] - a3[1]; a1[2] = a2[2] - a3[2]; a1[3] = a2[3] - a3[3]; a1[4] = a2[4] - a3[4]; a1[5] = a2[5] - a3[5]; a1[6] = a2[6] - a3[6]; a1[7] = a2[7] - a3[7]; a1[8] = a2[8] - a3[8]; return 0LL; } Q:[a3,a1,a2,sub_45BB7F,]
A:{'a3': 'b', 'a1': 'r', 'a2': 'a', 'sub_45BB7F': 'sp_256_sub_9'}