//
// sub_18000C1C0 from 0x18000c1c0 to 0x18000c502 (834 bytes)
//
// 7 xrefs:
// > sub_18000BC20 @ 0x18000bf51
// > sub_18000BFC0 @ 0x18000bfe1
// > cocos2d::extension::CCControlSwitch::setOn @ 0x18000ca17
// > cocos2d::extension::CCControlSwitch::setOn @ 0x18000cacd
// > cocos2d::extension::CCControlSwitch::ccTouchBegan @ 0x18000cbfc
// > cocos2d::extension::CCControlSwitch::ccTouchMoved @ 0x18000ccce
// > ??> @ 0x18004bc24
//
// 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:38 +0000
//
void __fastcall sub_18000C1C0(__int64 a1)
{
__int64 v1; // rbx
__int64 v3; // rax
__int64 *v4; // r14
float *v5; // rdi
__int64 v6; // rsi
__int64 v7; // rax
__int64 v8; // rax
__int64 v9; // rdi
float *v10; // rsi
__int64 v11; // rax
__int64 *v12; // r14
float *v13; // rbx
__int64 v14; // rbp
__int64 v15; // rax
__int64 v16; // rax
__int64 v17; // rbx
__int64 v18; // rax
__int64 *v19; // r14
float *v20; // rdi
__int64 v21; // rsi
__int64 v22; // rax
__int64 v23; // rax
__int64 v24; // rdi
float *v25; // rsi
__int64 v26; // rax
__int64 *v27; // r14
float *v28; // rbx
__int64 v29; // rbp
__int64 v30; // rax
__int64 v31; // rax
__int64 v32; // rdi
float *v33; // rbp
__int64 v34; // rax
__int64 *v35; // r14
float *v36; // rbx
__int64 v37; // rsi
__int64 v38; // rax
__int64 v39; // rax
__int64 v40; // rdi
float *v41; // rbx
__int64 v42; // rax
cocos2d::CCRenderTexture *v43; // rbx
__int64 v44; // rcx
__int64 v45; // rcx
__int64 v46; // rax
__int64 v47; // rbx
__int64 v48; // rax
char v49; // [rsp+60h] [rbp+8h] BYREF
char v50; // [rsp+68h] [rbp+10h] BYREF
v1 = *(_QWORD *)(a1 + 640);
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 320LL))(v1);
v4 = *(__int64 **)(a1 + 640);
v5 = (float *)v3;
v6 = *v4;
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v1 + 320LL))(v1);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v49,
(float)(*v5 * 0.5) + *(float *)(a1 + 608),
*(float *)(v7 + 4) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v6 + 184))(v4, v8);
v9 = *(_QWORD *)(a1 + 648);
v10 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 640) + 320LL))(*(_QWORD *)(a1 + 640));
v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 320LL))(*(_QWORD *)(a1 + 648));
v12 = *(__int64 **)(a1 + 648);
v13 = (float *)v11;
v14 = *v12;
v15 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 320LL))(v9);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)&v49,
(float)((float)(*v13 * 0.5) + *v10) + *(float *)(a1 + 608),
*(float *)(v15 + 4) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v14 + 184))(v12, v16);
v17 = *(_QWORD *)(a1 + 624);
v18 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 640) + 320LL))(*(_QWORD *)(a1 + 640));
v19 = *(__int64 **)(a1 + 656);
v20 = (float *)v18;
v21 = *v19;
v22 = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)v17 + 136LL))(v17, &v49);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v50, *(float *)(a1 + 608) + *v20, *(float *)(v22 + 4) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v21 + 184))(v19, v23);
if ( *(_QWORD *)(a1 + 664) )
{
v24 = *(_QWORD *)(a1 + 640);
v25 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 656) + 320LL))(*(_QWORD *)(a1 + 656));
v26 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 640) + 200LL))(*(_QWORD *)(a1 + 640));
v27 = *(__int64 **)(a1 + 664);
v28 = (float *)v26;
v29 = *v27;
v30 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v24 + 320LL))(v24);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, *v28 - (float)(*v25 / 6.0), *(float *)(v30 + 4) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v29 + 184))(v27, v31);
}
if ( *(_QWORD *)(a1 + 672) )
{
v32 = *(_QWORD *)(a1 + 648);
v33 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 200LL))(v32);
v34 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 656) + 320LL))(*(_QWORD *)(a1 + 656));
v35 = *(__int64 **)(a1 + 672);
v36 = (float *)v34;
v37 = *v35;
v38 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v32 + 320LL))(v32);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v49, (float)(*v36 / 6.0) + *v33, *(float *)(v38 + 4) * 0.5);
(*(void (__fastcall **)(__int64 *, __int64))(v37 + 184))(v35, v39);
}
v40 = *(_QWORD *)(a1 + 624);
v41 = (float *)(*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)v40 + 136LL))(v40, &v49);
v42 = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)v40 + 136LL))(v40, &v50);
v43 = cocos2d::CCRenderTexture::create((int)*v41, (int)*(float *)(v42 + 4));
cocos2d::CCRenderTexture::begin(v43);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 640) + 744LL))(*(_QWORD *)(a1 + 640));
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 744LL))(*(_QWORD *)(a1 + 648));
v44 = *(_QWORD *)(a1 + 664);
if ( v44 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v44 + 744LL))(v44);
v45 = *(_QWORD *)(a1 + 672);
if ( v45 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v45 + 744LL))(v45);
cocos2d::CCRenderTexture::end(v43);
v46 = (*(__int64 (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)v43 + 888LL))(v43);
v47 = *(_QWORD *)(a1 + 344);
v48 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(v46 + 344) + 16LL))(v46 + 344);
(*(void (__fastcall **)(__int64, __int64))(v47 + 24))(a1 + 344, v48);
cocos2d::CCSprite::setFlipY((cocos2d::CCSprite *)a1, 1);
}