// // EditorUI::constrainGameLayerPosition from 0x100009010 to 0x100009200 (496 bytes) // // 6 xrefs: // > EditorUI::init @ 0x1000067e1 // > EditorUI::sliderChanged @ 0x100007c8f // > EditorUI::constrainGameLayerPosition_1 @ 0x10000dbd0 // > EditorUI::moveGamelayer @ 0x10000e89e // > EditorUI::centerCameraOnObject @ 0x1000104bd // > EditorUI::updateZoom @ 0x1000121b8 // // 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:18:48 +0000 // __int64 __fastcall EditorUI::constrainGameLayerPosition(__int64 a1, float a2, float a3) { __int64 v4; // rax __int64 v5; // rdi __int64 v6; // rax float v7; // xmm0_4 __int64 v8; // r15 __int64 v9; // rdi __int64 v10; // rax double v11; // xmm0_8 __int64 v12; // rax __int64 v13; // r15 float v14; // xmm1_4 _BYTE v16[8]; // [rsp+8h] [rbp-68h] BYREF unsigned __int64 v17; // [rsp+10h] [rbp-60h] BYREF unsigned __int64 v18; // [rsp+18h] [rbp-58h] BYREF unsigned __int64 v19; // [rsp+20h] [rbp-50h] BYREF unsigned __int64 v20; // [rsp+28h] [rbp-48h] BYREF float v21; // [rsp+34h] [rbp-3Ch] unsigned __int64 v22; // [rsp+38h] [rbp-38h] BYREF float v23; // [rsp+44h] [rbp-2Ch] v23 = a3; v21 = a2; v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL)); sub_1002782D0(&v20, v4); v5 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL); (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &qword_100BE0DD8); v6 = cocos2d::CCDirector::sharedDirector(v5, &qword_100BE0DD8); v7 = sub_100479760(v6); sub_100278250(&v17, v7, *(float *)(a1 + 852)); v8 = *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL); sub_100278250(&v22, (float)(v21 * 30.0) + -30.0, (float)(v23 * 30.0) + 90.0); cocos2d::CCNode::convertToWorldSpace(&v18, v8, &v22); cocos2d::CCNode::convertToNodeSpace(&v22, *(_QWORD *)(a1 + 1440), &v18); sub_100278300(&v18, &v22); v9 = cocos2d::CCDirector::sharedDirector(&v18, &v22); v23 = sub_100479770(v9); v10 = cocos2d::CCDirector::sharedDirector(v9, &v22); v11 = sub_100479740(v10); sub_100278250(&v22, v23, *(float *)&v11); v12 = *(_QWORD *)(a1 + 1440); v13 = *(_QWORD *)(v12 + 3920); if ( *(_BYTE *)(*(_QWORD *)(v12 + 3272) + 453LL) ) v14 = 30120.0; else v14 = 2520.0; sub_100278250(v16, 240030.0, v14); cocos2d::CCNode::convertToWorldSpace(&v19, v13, v16); cocos2d::CCNode::convertToNodeSpace(v16, *(_QWORD *)(a1 + 1440), &v19); sub_100278300(&v19, v16); _mm_storel_ps( (double *)&v20, _mm_max_ps(_mm_sub_ps((__m128)v22, (__m128)v19), _mm_min_ps(_mm_sub_ps((__m128)v17, (__m128)v18), (__m128)v20))); return (*(__int64 (__fastcall **)(_QWORD, unsigned __int64 *))(**(_QWORD **)(*(_QWORD *)(a1 + 1440) + 3920LL) + 184LL))( *(_QWORD *)(*(_QWORD *)(a1 + 1440) + 3920LL), &v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source