//
// sub_140274940 from 0x140274940 to 0x140274996 (86 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::applyRemap @ 0x140323d05
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:28:55 +0000
//
__int64 __fastcall sub_140274940(_QWORD *a1, _DWORD *a2, __int64 a3)
{
__int64 v4; // rdx
__int64 v5; // r8
__int64 *v6; // rdx
__int64 v7; // rax
__int64 v8; // rdx
v4 = a3 & a1[6];
v5 = a1[1];
v6 = (__int64 *)(a1[3] + 16 * v4);
v7 = v6[1];
if ( v7 == v5 )
{
LABEL_8:
v7 = 0;
goto LABEL_9;
}
v8 = *v6;
if ( *a2 != *(_DWORD *)(v7 + 16) )
{
while ( v7 != v8 )
{
v7 = *(_QWORD *)(v7 + 8);
if ( *a2 == *(_DWORD *)(v7 + 16) )
{
if ( v7 )
return v7;
return v5;
}
}
goto LABEL_8;
}
LABEL_9:
if ( v7 )
return v7;
return v5;
}