//
// sub_1403BF900 from 0x1403bf900 to 0x1403bf91d (29 bytes)
//
// 10 xrefs:
// > GJSpecialColorSelect::init @ 0x1403bf164
// > GJSpecialColorSelect::init @ 0x1403bf17b
// > GJSpecialColorSelect::init @ 0x1403bf351
// > GJSpecialColorSelect::init @ 0x1403bf368
// > GJSpecialColorSelect::init @ 0x1403bf37f
// > GJSpecialColorSelect::init @ 0x1403bf396
// > GJSpecialColorSelect::init @ 0x1403bf3ad
// > GJSpecialColorSelect::init @ 0x1403bf3c4
// > GJSpecialColorSelect::init @ 0x1403bf3db
// > GJSpecialColorSelect::init @ 0x1403bf3f2
//
// 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:31:28 +0000
//
char *__fastcall sub_1403BF900(_QWORD *a1, _DWORD *a2)
{
_BYTE *v3; // rdx
char *result; // rax
v3 = (_BYTE *)a1[1];
if ( v3 == (_BYTE *)a1[2] )
return sub_140076310(a1, v3, a2);
result = (char *)(unsigned int)*a2;
*(_DWORD *)v3 = (_DWORD)result;
a1[1] += 4LL;
return result;
}