// // EditorUI::scaleObjects from 0xc03590 to 0xc03918 (904 bytes) // // 4 xrefs: // > EditorUI::scaleXChanged @ 0xc039c8 // > EditorUI::scaleYChanged @ 0xc03a88 // > EditorUI::scaleXYChanged @ 0xc03b74 // > @ 0xb93f8 // // This function is hookable on this platform (idp: arm, 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 13:03:50 +0000 // __int64 __fastcall EditorUI::scaleObjects( __int64 a1, cocos2d::CCArray *this, cocos2d::CCPoint *a3, int a4, unsigned __int8 a5, int a6, int a7, int a8, float a9, float a10, char a11) { unsigned int v14; // w22 int i; // w27 __int64 v19; // x23 __int64 v20; // x25 float v21; // s3 float v22; // s1 float v23; // s0 float v24; // s0 unsigned int v25; // w23 float *v26; // x28 __int64 v27; // x0 float v28; // s11 float v29; // s12 float v30; // s10 __int64 v31; // x0 long double v32; // q0 __int64 v34; // x0 long double v35; // q0 __int64 v36; // [xsp+B0h] [xbp+B0h] BYREF __int64 v37; // [xsp+B8h] [xbp+B8h] BYREF __int64 v38; // [xsp+C0h] [xbp+C0h] BYREF v14 = 0; for ( i = a5; v14 < (unsigned int)cocos2d::CCArray::count(this); ++v14 ) { v19 = cocos2d::CCArray::objectAtIndex(this, v14); LODWORD(v38) = *(_DWORD *)(v19 + 916); v20 = std::unordered_map::operator[](a1 + 464, (int *)&v38); if ( *(_BYTE *)(a1 + 691) ) { v21 = 4.0; v22 = 0.25; } else { if ( GameObject::isTrigger((GameObject *)v19) ) v21 = 4.0; else v21 = 2.0; v22 = 0.5; } if ( a4 == 2 ) goto LABEL_9; v23 = (float)(int)llroundf((float)(a9 * *(float *)(v20 + 8)) * 100.0) / 100.0; if ( v22 > v23 || v21 < v23 || (float)(v23 * *(float *)(v19 + 1312)) == *(float *)(v19 + 1152) ) return _stack_chk_guard; if ( a4 != 1 ) { LABEL_9: v24 = (float)(int)llroundf((float)(a10 * *(float *)(v20 + 12)) * 100.0) / 100.0; if ( v22 > v24 || v21 < v24 || (float)(v24 * *(float *)(v19 + 1316)) == *(float *)(v19 + 1156) ) return _stack_chk_guard; } } if ( (unsigned __int8)cocos2d::CCPoint::equals(a3, (const cocos2d::CCPoint *)&unk_155EAE0) ) { EditorUI::getGroupCenter((cocos2d::CCPoint *)&v38, this, 0); cocos2d::CCPoint::operator=(a3, &v38); } v25 = 0; if ( (unsigned int)cocos2d::CCArray::count(this) ) { while ( 1 ) { v26 = (float *)cocos2d::CCArray::objectAtIndex(this, v25); *(float *)&v38 = v26[229]; v27 = std::unordered_map::operator[](a1 + 464, (int *)&v38); v28 = *(float *)(v27 + 8); v29 = v26[328]; v30 = (float)(*(float *)(v27 + 12) * v26[329]) * a10; v31 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v26 + 192LL))(v26); cocos2d::CCPoint::operator-(&v36, v31, a3, v32); if ( a4 == 2 ) break; *(float *)&v36 = *(float *)&v36 * (float)((float)((float)(v28 * v29) * a9) / v26[288]); if ( a4 != 1 ) { *((float *)&v36 + 1) = *((float *)&v36 + 1) * (float)(v30 / v26[289]); cocos2d::CCPoint::operator+(&v37, a3); GameObject::updateCustomScaleX((GameObject *)v26, (float)(v28 * v29) * a9); goto LABEL_19; } cocos2d::CCPoint::operator+(&v37, a3); GameObject::updateCustomScaleX((GameObject *)v26, (float)(v28 * v29) * a9); if ( !i ) { LABEL_27: ++v25; v34 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)v26 + 192LL))(v26); cocos2d::CCPoint::operator-(&v38, &v37, v34, v35); EditorUI::moveObject(a1, (__int64)v26); goto LABEL_21; } LABEL_20: ++v25; LABEL_21: if ( v25 >= (unsigned int)cocos2d::CCArray::count(this) ) return _stack_chk_guard; } *((float *)&v36 + 1) = *((float *)&v36 + 1) * (float)(v30 / v26[289]); cocos2d::CCPoint::operator+(&v37, a3); LABEL_19: GameObject::updateCustomScaleY((GameObject *)v26, v30); if ( !i ) goto LABEL_27; goto LABEL_20; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source