//
// sub_1008DD720 from 0x1008dd720 to 0x1008dd834 (276 bytes)
//
// 2 xrefs:
// > sub_1008DCDF0 @ 0x1008dd4c1
// > sub_1008DD540 @ 0x1008dd5d2
//
// 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:37:44 +0000
//
__int64 __fastcall sub_1008DD720(__int64 a1)
{
__int64 result; // rax
int *v3; // rdi
float v4; // xmm0_4
__int64 v5; // rax
__int64 v6; // rax
__int64 v7; // rbx
__int64 v8; // rdi
__int64 Thumb; // rax
_DWORD v10[3]; // [rsp+0h] [rbp-Ch] BYREF
v10[0] = HIDWORD(result);
v3 = *(int **)(a1 + 1016);
if ( !v3 )
return result;
if ( *(_DWORD *)(a1 + 1028) != 30 )
{
v4 = (*(float (__fastcall **)(int *))(*(_QWORD *)v3 + 1464LL))(v3);
if ( !GameToolbox::isRateEasing((int)v4) )
goto LABEL_4;
LABEL_6:
BYTE2(v10[0]) = -1;
LOWORD(v10[0]) = -1;
goto LABEL_7;
}
if ( GameToolbox::isRateEasing(v3[204]) )
goto LABEL_6;
LABEL_4:
BYTE2(v10[0]) = -81;
LOWORD(v10[0]) = -20561;
LABEL_7:
v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 824), *(int *)(a1 + 1032));
if ( v5 )
(*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v5 + 1072LL))(v5, v10);
v6 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 760), *(int *)(a1 + 1032));
if ( v6 )
CCTextInputNode::setLabelNormalColor(v6, (BYTE2(v10[0]) << 16) | LOWORD(v10[0]));
result = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 768), *(int *)(a1 + 1032));
if ( result )
{
v7 = result;
v8 = *(_QWORD *)(result + 424);
if ( v8 )
(*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v8 + 960LL))(v8, v10);
result = Slider::getThumb(v7);
if ( result )
{
Thumb = Slider::getThumb(v7);
return (*(__int64 (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)Thumb + 960LL))(Thumb, v10);
}
}
return result;
}