// // MapSelectLayer::getConstrainedMapPos from 0x63f498 to 0x63f570 (216 bytes) // // 2 xrefs: // > MapSelectLayer::update @ 0x640542 // > MapSelectLayer::ccTouchMoved @ 0x640646 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:55:27 +0000 // cocos2d::CCDirector *__fastcall MapSelectLayer::getConstrainedMapPos(cocos2d::CCDirector *a1, int a2, float *a3) { float v6; // r0 float v7; // s14 float v8; // s15 float v9; // s11 float v10; // s15 float v11; // s12 float v13[2]; // [sp+4h] [bp-10h] BYREF cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v13); v6 = (*(float (__fastcall **)(_DWORD))(**(_DWORD **)(a2 + 316) + 84))(*(_DWORD *)(a2 + 316)); v7 = v13[1] + (float)(v6 * -1500.0); v8 = *a3; if ( *a3 > 0.0 ) v9 = 0.0; else v9 = *a3; if ( (float)(v13[0] + (float)(v6 * -3600.0)) >= v9 ) { v8 = v13[0] + (float)(v6 * -3600.0); } else if ( v8 > 0.0 ) { v8 = 0.0; } *a3 = v8; v10 = a3[1]; if ( v10 > 0.0 ) v11 = 0.0; else v11 = a3[1]; if ( v7 >= v11 ) { v10 = v7; } else if ( v10 > 0.0 ) { v10 = 0.0; } a3[1] = v10; cocos2d::CCPoint::CCPoint(a1, (const cocos2d::CCPoint *)a3); return a1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source