//
// CCScrollLayerExt::updateIndicators from 0x14004b180 to 0x14004b3a5 (549 bytes)
//
// 2 xrefs:
// > CCScrollLayerExt::CCScrollLayerExt @ 0x14004ad0d
// > ??> @ 0x14090fdd0
//
// 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 11:25:33 +0000
//
__int64 __fastcall CCScrollLayerExt::updateIndicators(__int64 a1)
{
const struct cocos2d::CCSize *v2; // rax
const struct cocos2d::CCSize *v3; // rax
__int64 result; // rax
__int64 v5; // rax
float v6; // xmm6_4
const struct cocos2d::CCPoint *v7; // rax
float v8; // xmm6_4
float v9; // xmm6_4
const struct cocos2d::CCPoint *v10; // rax
float v11; // xmm1_4
float v12; // [rsp+20h] [rbp-20h] BYREF
_BYTE v13[4]; // [rsp+28h] [rbp-18h] BYREF
float v14; // [rsp+2Ch] [rbp-14h]
float v15; // [rsp+50h] [rbp+10h] BYREF
float v16; // [rsp+54h] [rbp+14h]
float v17; // [rsp+60h] [rbp+20h] BYREF
float v18; // [rsp+64h] [rbp+24h]
float v19; // [rsp+68h] [rbp+28h] BYREF
float v20; // [rsp+6Ch] [rbp+2Ch]
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 464) + 336LL))(
*(_QWORD *)(a1 + 464),
*(unsigned __int8 *)(a1 + 489));
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 456) + 336LL))(
*(_QWORD *)(a1 + 456),
*(unsigned __int8 *)(a1 + 490));
v2 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 320LL))(*(_QWORD *)(a1 + 480));
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v19, v2);
v3 = (const struct cocos2d::CCSize *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 320LL))(a1);
result = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, v3);
if ( *(_BYTE *)(a1 + 490) )
{
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, 4.0, (float)(v16 * v16) / v20);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 456) + 312LL))(*(_QWORD *)(a1 + 456), &v17);
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 200LL))(*(_QWORD *)(a1 + 480));
v6 = (float)((float)(*(float *)(v5 + 4) - v16) * v18) / v16;
v7 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 456) + 200LL))(*(_QWORD *)(a1 + 456));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v12, (float)(v16 - v6) - v18 * 0.5);
result = (*(__int64 (__fastcall **)(_QWORD, _BYTE *))(**(_QWORD **)(a1 + 456) + 184LL))(*(_QWORD *)(a1 + 456), v13);
}
if ( *(_BYTE *)(a1 + 489) )
{
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, (float)(v15 * v15) / v19, 4.0);
(*(void (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 464) + 312LL))(*(_QWORD *)(a1 + 464), &v17);
v8 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 480) + 200LL))(*(_QWORD *)(a1 + 480));
v9 = (float)((float)(v8 - v15) * v17) / v15;
v10 = (const struct cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 464) + 200LL))(*(_QWORD *)(a1 + 464));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, v10);
v11 = v15 * 0.5 - v9 - v17 * 0.5;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v12, v11, v14);
return (*(__int64 (__fastcall **)(_QWORD, float *))(**(_QWORD **)(a1 + 464) + 184LL))(*(_QWORD *)(a1 + 464), &v12);
}
return result;
}