//
// sub_1003E0A70 from 0x1003e0a70 to 0x1003e0b1d (173 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b3c708
//
// 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 12:29:45 +0000
//
__int64 __fastcall sub_1003E0A70(__int64 a1, __m128 a2, __int64 a3, __int64 a4)
{
__int64 v4; // rbx
__int64 v5; // rax
const char *v6; // rsi
__int64 v7; // rax
_mm_storel_ps((double *)(a1 + 48), a2);
*(_QWORD *)(a1 + 56) = a4;
*(_BYTE *)(a1 + 64) = 1;
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 40) + 1072LL))(*(_QWORD *)(a1 + 40));
v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
v6 = "GJ_hsv2Btn_001.png";
if ( *(float *)(a1 + 48) == *(float *)&xmmword_100BE3760
&& *(float *)(a1 + 52) == *((float *)&xmmword_100BE3760 + 1)
&& *(float *)(a1 + 56) == *((float *)&xmmword_100BE3760 + 2)
&& *(_BYTE *)(a1 + 60) == BYTE12(xmmword_100BE3760) )
{
v6 = "GJ_hsv2Btn_001.png";
if ( *(_BYTE *)(a1 + 61) == BYTE13(xmmword_100BE3760) )
v6 = "GJ_hsvBtn_001.png";
}
v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v6);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 1160LL))(v4, v7);
}