// // getRotateCommandAngleDelta from 0x594b38 to 0x594c92 (346 bytes) // // 2 xrefs: // > GJBaseGameLayer::triggerRotateCommand @ 0x5a264a // > GJBaseGameLayer::processDynamicObjectActions @ 0x5ad872 // // 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:53:08 +0000 // int __fastcall getRotateCommandAngleDelta( int a1, int a2, int a3, int a4, GameObject *a5, GameObject *a6, GameObject *a7, GameObject *a8) { int v12; // r0 float v13; // r2 float v14; // s16 float v15; // s15 _BYTE v17[8]; // [sp+24h] [bp-28h] BYREF float v18[2]; // [sp+2Ch] [bp-20h] BYREF _BYTE v19[8]; // [sp+34h] [bp-18h] BYREF _BYTE v20[8]; // [sp+3Ch] [bp-10h] BYREF (*(void (__fastcall **)(_BYTE *))(*(_DWORD *)a2 + 680))(v17); (*(void (__fastcall **)(float *, int))(*(_DWORD *)a4 + 680))(v18, a4); (*(void (__fastcall **)(_BYTE *, int))(*(_DWORD *)a3 + 680))(v19, a3); if ( a2 == a3 ) { *(float *)&v12 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)a2 + 184))(a2)); } else { cocos2d::CCPoint::operator-(v20, v19, v17); if ( cocos2d::CCPoint::getLength((cocos2d::CCPoint *)v20) >= 0.01 ) { v14 = 90.0 - (float)(cocos2d::CCPoint::getAngle((cocos2d::CCPoint *)v20) * 57.296); goto LABEL_7; } *(float *)&v12 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)a3 + 184))(a3)); } v14 = *(float *)&v12; LABEL_7: if ( a2 == a4 ) goto LABEL_12; if ( !*(_BYTE *)(a1 + 1328) ) { v15 = COERCE_FLOAT((*(int (__fastcall **)(int))(*(_DWORD *)a4 + 184))(a4)); return GJBaseGameLayer::convertToClosestDirection( COERCE_GJBASEGAMELAYER_((float)(v15 - v14) + *(float *)(a1 + 1380)), 180.0, v13); } applyPositionLimits(v18, a5, a6, a7, a8); cocos2d::CCPoint::operator-(v20, v18, v17); if ( cocos2d::CCPoint::getLength((cocos2d::CCPoint *)v20) < 0.01 ) { LABEL_12: v15 = 0.0; return GJBaseGameLayer::convertToClosestDirection( COERCE_GJBASEGAMELAYER_((float)(v15 - v14) + *(float *)(a1 + 1380)), 180.0, v13); } v15 = 90.0 - (float)(cocos2d::CCPoint::getAngle((cocos2d::CCPoint *)v20) * 57.296); return GJBaseGameLayer::convertToClosestDirection( COERCE_GJBASEGAMELAYER_((float)(v15 - v14) + *(float *)(a1 + 1380)), 180.0, v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source