// // canDrawLine from 0x3734de to 0x37358c (174 bytes) // // 7 xrefs: // > processTrace @ 0x37967e // > processTrace @ 0x379718 // > processTrace @ 0x379762 // > processTrace @ 0x37991c // > processTrace @ 0x3799da // > processTrace @ 0x379a36 // > processTrace @ 0x379da0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // int __fastcall canDrawLine(int a1, int a2, _DWORD *a3) { __int64 v4; // r0 unsigned int v5; // r10 __int64 v6; // r6 _QWORD **v7; // r3 unsigned int v8; // r9 _QWORD *v9; // r4 _QWORD *v10; // r5 int v11; // r8 int v12; // r0 LODWORD(v4) = makeDrawKey(a1, a2); v5 = a3[1]; v6 = v4; v7 = *(_QWORD ***)(*a3 + 4 * ((unsigned int)v4 % v5)); v8 = (unsigned int)v4 % v5; if ( !v7 ) goto LABEL_15; v9 = *v7; if ( !*v7 ) goto LABEL_13; v10 = *v7; v11 = 0; do { if ( v4 == v10[1] ) { ++v11; } else if ( v11 ) { return 0; } v10 = *(_QWORD **)v10; } while ( v10 && *((_DWORD *)v10 + 2) % v5 == v8 ); if ( v11 ) return 0; LABEL_13: while ( v4 != v9[1] ) { if ( !*(_DWORD *)v9 ) goto LABEL_15; v7 = (_QWORD **)v9; if ( *(_DWORD *)(*(_DWORD *)v9 + 8) % v5 != v8 ) goto LABEL_15; v9 = *(_QWORD **)v9; } if ( !*v7 ) { LABEL_15: v12 = operator new(0x10u); *(_DWORD *)v12 = 0; *(_QWORD *)(v12 + 8) = v6; std::_Hashtable,std::__detail::_Identity,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits>::_M_insert_unique_node( (int)a3, v8, v6, (_DWORD *)v12); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source