//
// sub_140274600 from 0x140274600 to 0x14027469c (156 bytes)
//
// 29 xrefs:
// > GJBaseGameLayer::applyRemap @ 0x140323224
// > GJBaseGameLayer::applyRemap @ 0x140323300
// > GJBaseGameLayer::applyRemap @ 0x1403233d5
// > GJBaseGameLayer::applyRemap @ 0x1403234b0
// > GJBaseGameLayer::applyRemap @ 0x14032358d
// > GJBaseGameLayer::applyRemap @ 0x140323c92
// > GJBaseGameLayer::applyRemap @ 0x140323cb6
// > GJBaseGameLayer::applyRemap @ 0x140323d2a
// > GJBaseGameLayer::applyRemap @ 0x140323e00
// > GJBaseGameLayer::applyRemap @ 0x1403242a2
// > GJBaseGameLayer::applyRemap @ 0x1403242ca
// > GJBaseGameLayer::applyRemap @ 0x14032430e
// > GJBaseGameLayer::applyRemap @ 0x140324335
// > GJBaseGameLayer::applyRemap @ 0x14032437d
// > GJBaseGameLayer::applyRemap @ 0x1403243a1
// > GJBaseGameLayer::applyRemap @ 0x1403243ec
// > GJBaseGameLayer::applyRemap @ 0x140324410
// > GJBaseGameLayer::applyRemap @ 0x140324454
// > GJBaseGameLayer::applyRemap @ 0x140324478
// > GJBaseGameLayer::applyRemap @ 0x14032453b
// > GJBaseGameLayer::applyRemap @ 0x14032455f
// > GJBaseGameLayer::applyRemap @ 0x1403245a4
// > GJBaseGameLayer::applyRemap @ 0x1403245cc
// > GJBaseGameLayer::applyRemap @ 0x140324616
// > GJBaseGameLayer::applyRemap @ 0x14032463a
// > GJBaseGameLayer::applyRemap @ 0x14032467f
// > GJBaseGameLayer::applyRemap @ 0x1403246a3
// > GJBaseGameLayer::applyRemap @ 0x1403246e8
// > GJBaseGameLayer::applyRemap @ 0x140324710
//
// 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
//
_QWORD *__fastcall sub_140274600(_QWORD *a1, _QWORD *a2, unsigned __int8 *a3)
{
__int64 *v4; // rdx
__int64 v5; // rax
__int64 v6; // rdx
v4 = (__int64 *)(a1[3]
+ 16
* (a1[6]
& (0x100000001B3LL
* (a3[3]
^ (0x100000001B3LL
* (a3[2] ^ (0x100000001B3LL * (a3[1] ^ (0x100000001B3LL * (*a3 ^ 0xCBF29CE484222325uLL))))))))));
v5 = v4[1];
if ( v5 == a1[1] )
{
LABEL_8:
v5 = 0;
goto LABEL_9;
}
v6 = *v4;
if ( *(_DWORD *)a3 != *(_DWORD *)(v5 + 16) )
{
while ( v5 != v6 )
{
v5 = *(_QWORD *)(v5 + 8);
if ( *(_DWORD *)a3 == *(_DWORD *)(v5 + 16) )
{
if ( !v5 )
v5 = a1[1];
*a2 = v5;
return a2;
}
}
goto LABEL_8;
}
LABEL_9:
if ( !v5 )
v5 = a1[1];
*a2 = v5;
return a2;
}