//
// cocos2d::extension::CCControlStepper::updateLayoutUsingTouchLocation from 0x18000b650 to 0x18000b749 (249 bytes)
//
// 4 xrefs:
// > cocos2d::extension::CCControlStepper::ccTouchBegan @ 0x18000b7d2
// > cocos2d::extension::CCControlStepper::ccTouchMoved @ 0x18000b8aa
// > ??> @ 0x180032408
// > ??> @ 0x18004bbb8
//
// 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:15:37 +0000
//
__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) + 320LL))(*(_QWORD *)(a1 + 472)) > *a2
&& *(double *)(a1 + 504) > *(double *)(a1 + 520) )
{
*(_DWORD *)(a1 + 548) = 0;
v4 = &unk_180025A24;
LABEL_8:
(**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 472) + 320LL))(*(_QWORD *)(a1 + 472) + 320LL, v4);
v6 = &unk_180025A20;
return (**(__int64 (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 480) + 320LL))(
*(_QWORD *)(a1 + 480) + 320LL,
v6);
}
if ( *a2 < *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 472) + 320LL))(*(_QWORD *)(a1 + 472))
|| *(double *)(a1 + 528) <= *(double *)(a1 + 504) )
{
*(_DWORD *)(a1 + 548) = 2;
v4 = &unk_180025A20;
goto LABEL_8;
}
v5 = (void (__fastcall ***)(_QWORD, void *))(*(_QWORD *)(a1 + 472) + 320LL);
*(_DWORD *)(a1 + 548) = 1;
(**v5)(v5, &unk_180025A20);
v6 = &unk_180025A24;
return (**(__int64 (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 480) + 320LL))(
*(_QWORD *)(a1 + 480) + 320LL,
v6);
}