//
// sub_10046178C from 0x10046178c to 0x100461958 (460 bytes)
//
// 2 xrefs:
// > GJPathSprite::updateState @ 0x10045f2a0
// > GJPathPage::playUnlockAnimation @ 0x100461108
//
// This function is hookable on this platform (idp: arm, 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:05:30 +0000
//
void __fastcall sub_10046178C(__int64 a1)
{
void *v2; // x0
char *CString; // x0
char *v4; // x1
float *v5; // x20
unsigned int v6; // w8
float v7; // s0
float v8; // s0
void *v9; // x20
double v10; // d0
float32x2_t v11; // [xsp+10h] [xbp-50h] BYREF
float32x2_t v12; // [xsp+18h] [xbp-48h] BYREF
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
char v14; // [xsp+37h] [xbp-29h]
void *v15[2]; // [xsp+38h] [xbp-28h] BYREF
char v16; // [xsp+4Fh] [xbp-11h]
v2 = sub_1003065B0("pathIcon_%02d_001.png", *(_DWORD *)(a1 + 596));
CString = (char *)cocos2d::CCString::getCString((__int64)v2);
sub_100009900(v15, CString);
*(_BYTE *)(a1 + 559) = 1;
if ( v16 >= 0 )
v4 = (char *)v15;
else
v4 = (char *)v15[0];
sub_100009900(__p, v4);
v5 = (float *)CCSpriteGrayscale::createWithSpriteFrameName((__int64 *)__p);
if ( v14 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64, float *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 0xFFFFFFFFLL);
cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&unk_1009F7640, __p);
(*(void (__fastcall **)(float *, void **))(*(_QWORD *)v5 + 184LL))(v5, __p);
v6 = *(_DWORD *)(a1 + 596) - 3;
v7 = 3.0;
if ( v6 < 6 )
v7 = flt_10076F12C[v6];
v8 = CCSpriteWithHue::setEvenLuminance(v5, v7);
memset(__p, 40, 3);
(*(void (__fastcall **)(float *, void **, float))(*(_QWORD *)v5 + 960LL))(v5, __p, v8);
v9 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_lockGray_001.png");
(*(void (__fastcall **)(__int64, void *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v9, 1);
cocos2d::CCNode::convertToNodeSpace(a1, (__int64)&unk_1009F7640, &v12);
sub_1000262BC((float *)&v11, 0.0, 0.0);
*(float32x2_t *)&v10 = sub_100026318(&v12, &v11, (float32x2_t *)__p);
(*(void (__fastcall **)(void *, void **, double))(*(_QWORD *)v9 + 184LL))(v9, __p, v10);
(*(void (__fastcall **)(void *, float))(*(_QWORD *)v9 + 160LL))(v9, 1.0);
BYTE2(__p[0]) = -56;
LOWORD(__p[0]) = -14136;
(*(void (__fastcall **)(void *, void **))(*(_QWORD *)v9 + 960LL))(v9, __p);
if ( v16 < 0 )
operator delete(v15[0]);
}