//
// EditorUI::zoomGameLayer from 0x387610 to 0x38766c (92 bytes)
//
// 3 xrefs:
// > EditorUI::zoomIn @ 0x387672
// > EditorUI::zoomOut @ 0x387678
// > EditorUI::scrollWheel @ 0x3876da
//
// 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
//
void EditorUI::zoomGameLayer(EditorUI *a1, bool a2)
{
_BOOL4 v3; // r5
float v4; // r0
float v5; // s15
v3 = a2;
v4 = COERCE_FLOAT(((int (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer));
if ( v3 )
v5 = v4 + 0.1;
else
v5 = v4 - 0.1;
if ( v5 > 4.0 )
{
v5 = 4.0;
}
else if ( v5 < 0.1 )
{
v5 = 0.1;
}
EditorUI::updateZoom(a1, v5);
}