//
// sub_855CBC from 0x855cbc to 0x855d1c (96 bytes)
//
// 105 xrefs:
// > sub_855D1C @ 0x855d48
// > GJBaseGameLayer::restoreRemap @ 0x85b99c
// > GJBaseGameLayer::restoreRemap @ 0x85b9d4
// > GJBaseGameLayer::restoreRemap @ 0x85ba0c
// > GJBaseGameLayer::restoreRemap @ 0x85ba44
// > GJBaseGameLayer::restoreRemap @ 0x85ba7c
// > GJBaseGameLayer::restoreRemap @ 0x85bab4
// > GJBaseGameLayer::restoreRemap @ 0x85bb24
// > GJBaseGameLayer::restoreRemap @ 0x85bba4
// > GJBaseGameLayer::restoreRemap @ 0x85bbdc
// > GJBaseGameLayer::restoreRemap @ 0x85bc14
// > GJBaseGameLayer::restoreRemap @ 0x85bc4c
// > GJBaseGameLayer::restoreRemap @ 0x85bc84
// > GJBaseGameLayer::restoreRemap @ 0x85bcd8
// > GJBaseGameLayer::restoreRemap @ 0x85bd10
// > GJBaseGameLayer::restoreRemap @ 0x85bd48
// > GJBaseGameLayer::restoreRemap @ 0x85bd80
// > GJBaseGameLayer::restoreRemap @ 0x85bdb8
// > GJBaseGameLayer::restoreRemap @ 0x85be08
// > GJBaseGameLayer::restoreRemap @ 0x85be40
// > GJBaseGameLayer::restoreRemap @ 0x85be78
// > GJBaseGameLayer::restoreRemap @ 0x85beb0
// > GJBaseGameLayer::restoreRemap @ 0x85beec
// > GJBaseGameLayer::restoreRemap @ 0x85bf24
// > GJBaseGameLayer::restoreRemap @ 0x85bf5c
// > GJBaseGameLayer::restoreRemap @ 0x85bf94
// > GJBaseGameLayer::restoreRemap @ 0x85bfcc
// > GJBaseGameLayer::restoreRemap @ 0x85c010
// > GJBaseGameLayer::restoreRemap @ 0x85c048
// > GJBaseGameLayer::restoreRemap @ 0x85c080
// > GJBaseGameLayer::restoreRemap @ 0x85c0e8
// > GJBaseGameLayer::restoreRemap @ 0x85c120
// > GJBaseGameLayer::restoreRemap @ 0x85c15c
// > GJBaseGameLayer::restoreRemap @ 0x85c194
// > GJBaseGameLayer::restoreRemap @ 0x85c1cc
// > GJBaseGameLayer::applyRemap @ 0x885480
// > GJBaseGameLayer::applyRemap @ 0x8854ac
// > GJBaseGameLayer::applyRemap @ 0x8854d8
// > GJBaseGameLayer::applyRemap @ 0x885504
// > GJBaseGameLayer::applyRemap @ 0x885530
// > GJBaseGameLayer::applyRemap @ 0x885560
// > GJBaseGameLayer::applyRemap @ 0x88558c
// > GJBaseGameLayer::applyRemap @ 0x8855bc
// > GJBaseGameLayer::applyRemap @ 0x8855e8
// > GJBaseGameLayer::applyRemap @ 0x885618
// > GJBaseGameLayer::applyRemap @ 0x885644
// > GJBaseGameLayer::applyRemap @ 0x885674
// > GJBaseGameLayer::applyRemap @ 0x8856dc
// > GJBaseGameLayer::applyRemap @ 0x88570c
// > GJBaseGameLayer::applyRemap @ 0x885778
// > GJBaseGameLayer::applyRemap @ 0x8857b0
// > GJBaseGameLayer::applyRemap @ 0x8857e0
// > GJBaseGameLayer::applyRemap @ 0x885818
// > GJBaseGameLayer::applyRemap @ 0x885848
// > GJBaseGameLayer::applyRemap @ 0x885880
// > GJBaseGameLayer::applyRemap @ 0x8858b0
// > GJBaseGameLayer::applyRemap @ 0x8858e0
// > GJBaseGameLayer::applyRemap @ 0x88596c
// > GJBaseGameLayer::applyRemap @ 0x8859a4
// > GJBaseGameLayer::applyRemap @ 0x8859d4
// > GJBaseGameLayer::applyRemap @ 0x885a0c
// > GJBaseGameLayer::applyRemap @ 0x885a3c
// > GJBaseGameLayer::applyRemap @ 0x885a74
// > GJBaseGameLayer::applyRemap @ 0x885aa4
// > GJBaseGameLayer::applyRemap @ 0x885adc
// > GJBaseGameLayer::applyRemap @ 0x885b0c
// > GJBaseGameLayer::applyRemap @ 0x885b3c
// > GJBaseGameLayer::applyRemap @ 0x885b84
// > GJBaseGameLayer::applyRemap @ 0x885bbc
// > GJBaseGameLayer::applyRemap @ 0x885bec
// > GJBaseGameLayer::applyRemap @ 0x885c24
// > GJBaseGameLayer::applyRemap @ 0x885c54
// > GJBaseGameLayer::applyRemap @ 0x885c8c
// > GJBaseGameLayer::applyRemap @ 0x885cbc
// > GJBaseGameLayer::applyRemap @ 0x885cf4
// > GJBaseGameLayer::applyRemap @ 0x885d24
// > GJBaseGameLayer::applyRemap @ 0x885d54
// > GJBaseGameLayer::applyRemap @ 0x885e5c
// > GJBaseGameLayer::applyRemap @ 0x885e94
// > GJBaseGameLayer::applyRemap @ 0x885ec4
// > GJBaseGameLayer::applyRemap @ 0x885ef4
// > GJBaseGameLayer::applyRemap @ 0x885f28
// > GJBaseGameLayer::applyRemap @ 0x885f60
// > GJBaseGameLayer::applyRemap @ 0x885f90
// > GJBaseGameLayer::applyRemap @ 0x885fc8
// > GJBaseGameLayer::applyRemap @ 0x885ff8
// > GJBaseGameLayer::applyRemap @ 0x886030
// > GJBaseGameLayer::applyRemap @ 0x886060
// > GJBaseGameLayer::applyRemap @ 0x886098
// > GJBaseGameLayer::applyRemap @ 0x8860c8
// > GJBaseGameLayer::applyRemap @ 0x8860f8
// > GJBaseGameLayer::applyRemap @ 0x88613c
// > GJBaseGameLayer::applyRemap @ 0x886174
// > GJBaseGameLayer::applyRemap @ 0x8861a4
// > GJBaseGameLayer::applyRemap @ 0x8861dc
// > GJBaseGameLayer::applyRemap @ 0x886214
// > GJBaseGameLayer::applyRemap @ 0x886244
// > GJBaseGameLayer::applyRemap @ 0x886280
// > GJBaseGameLayer::applyRemap @ 0x8862b8
// > GJBaseGameLayer::applyRemap @ 0x8862e8
// > GJBaseGameLayer::applyRemap @ 0x886320
// > GJBaseGameLayer::applyRemap @ 0x886350
// > GJBaseGameLayer::applyRemap @ 0x886380
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x88dc5c
// > GJBaseGameLayer::processActivatedAudioTriggers @ 0x88dd38
//
// 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
//
_QWORD *__fastcall sub_855CBC(_QWORD *a1, __int64 a2, int *a3)
{
_QWORD *v3; // x7
_QWORD *v4; // x4
int v5; // w8
int v6; // w6
__int64 v7; // x2
v3 = *(_QWORD **)(*a1 + 8 * a2);
if ( !v3 )
return nullptr;
v4 = (_QWORD *)*v3;
v5 = *a3;
v6 = *(_DWORD *)(*v3 + 8LL);
while ( v5 != v6 )
{
v7 = *v4;
v3 = v4;
v4 = (_QWORD *)v7;
if ( v7 )
{
v6 = *(_DWORD *)(v7 + 8);
if ( a2 == (unsigned __int64)v6 % a1[1] )
continue;
}
return nullptr;
}
return v3;
}