//
// sub_1001B3158 from 0x1001b3158 to 0x1001b3270 (280 bytes)
//
// 3 xrefs:
// > SetupTriggerPopup::createCustomEasingControls @ 0x1001b2e60
// > sub_1001B3270 @ 0x1001b3300
// > sub_1004C4DE4 @ 0x1004c4e5c
//
// 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:00:09 +0000
//
double __fastcall sub_1001B3158(_QWORD *a1, int a2, int a3)
{
float v6; // s0
_BOOL8 v7; // x22
__int64 v8; // x0
__int64 v9; // x23
__int64 v10; // x0
float v11; // s0
__int64 v12; // x0
double result; // d0
__int64 v14; // x20
__int64 v15; // x0
v6 = (*(float (__fastcall **)(_QWORD *))(*a1 + 1464LL))(a1);
if ( sub_10004BBD8((int)v6) )
{
LABEL_2:
v7 = 1;
goto LABEL_11;
}
v8 = a1[86];
if ( v8 && (unsigned int)sub_1002E757C(v8) )
{
if ( (unsigned int)sub_1002E757C(a1[86]) )
{
v9 = 0;
do
{
v10 = sub_1002E75A0(a1[86], v9);
v11 = sub_1001B09B0(v10, a2, v10).n128_f32[0];
v7 = sub_10004BBD8((int)v11);
if ( !v7 )
break;
v9 = (unsigned int)(v9 + 1);
}
while ( (unsigned int)v9 < (unsigned int)sub_1002E757C(a1[86]) );
goto LABEL_11;
}
goto LABEL_2;
}
v7 = 0;
LABEL_11:
v12 = cocos2d::CCDictionary::objectForKey_1(a1[119], a3);
if ( v12 )
{
v14 = v12;
(*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v12 + 344LL))(v12, v7);
v15 = a1[121];
if ( v7 )
cocos2d::CCDictionary::removeObjectForKey_1(v15, *(unsigned int *)(v14 + 8));
else
*(_QWORD *)&result = cocos2d::CCDictionary::setObject_1(v15, v14, *(unsigned int *)(v14 + 8)).n128_u64[0];
}
return result;
}