//
// cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation from 0x18000bb40 to 0x18000bc39 (249 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCControlStepper::ccTouchBegan @ 0x18000bcc2
// > cocos2d::extension::CCControlStepper::ccTouchMoved @ 0x18000bd9a
// > ??> @ 0x18002fdf8
// > ??> @ 0x180049cf0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation(__int64 a1, float *a2)
{
void *v4; // rdx
void (__fastcall ***v5)(_QWORD, void *); // rcx
void *v6; // rdx
if ( *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 304LL))(*(_QWORD *)(a1 + 472)) > *a2
&& *(double *)(a1 + 504) > *(double *)(a1 + 520) )
{
*(_DWORD *)(a1 + 548) = 0;
v4 = &unk_1800234B4;
LABEL_8:
(**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 472) + 320LL))(*(_QWORD *)(a1 + 472) + 320LL, v4);
v6 = &unk_1800234B0;
return (**(__int64 (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 480) + 320LL))(
*(_QWORD *)(a1 + 480) + 320LL,
v6);
}
if ( *a2 < *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 304LL))(*(_QWORD *)(a1 + 472))
|| *(double *)(a1 + 528) <= *(double *)(a1 + 504) )
{
*(_DWORD *)(a1 + 548) = 2;
v4 = &unk_1800234B0;
goto LABEL_8;
}
v5 = (void (__fastcall ***)(_QWORD, void *))(*(_QWORD *)(a1 + 472) + 320LL);
*(_DWORD *)(a1 + 548) = 1;
(**v5)(v5, &unk_1800234B0);
v6 = &unk_1800234B4;
return (**(__int64 (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 480) + 320LL))(
*(_QWORD *)(a1 + 480) + 320LL,
v6);
}