// // GJRotationControl::onApplyAngle from 0x6edf78 to 0x6ee0c4 (332 bytes) // // 1 xrefs: // > GJRotationControl::applyFocusedInput @ 0x6ee0e8 // // 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:57:33 +0000 // int __fastcall GJRotationControl::onApplyAngle(int this, cocos2d::CCObject *a2) { int v2; // r4 int v3; // r1 char *v4; // r0 double v5; // d7 float v6; // s16 float v7; // r0 float v8; // s17 float v9; // s16 int v10; // r0 unsigned __int8 v11; // [sp+0h] [bp-10h] BYREF char v12; // [sp+1h] [bp-Fh] BYREF int v13; // [sp+4h] [bp-Ch] char *v14; // [sp+8h] [bp-8h] v2 = this; v3 = *(_DWORD *)(this + 356); if ( v3 ) { CCTextInputNode::getString((CCTextInputNode *)&v11, v3); if ( (v11 & 1) != 0 ) { if ( !v13 ) goto LABEL_6; v4 = v14; } else { if ( !(v11 >> 1) ) { LABEL_6: (*(void (__fastcall **)(_DWORD, _DWORD, int))(**(_DWORD **)(v2 + 356) + 580))( *(_DWORD *)(v2 + 356), 0, v11 << 31); GJRotationControl::updateAngleInput(v2, *(const char **)(v2 + 340)); return std::string::~string((int)&v11); } v4 = &v12; } v5 = atof(v4); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v2 + 356) + 580))(*(_DWORD *)(v2 + 356), 0); v6 = v5; v7 = fmodf(v6, 360.0); v8 = v7; if ( v7 <= 180.0 ) { if ( v7 <= -180.0 ) v8 = v7 + 360.0; } else { v8 = v7 - 360.0; } v9 = v8 - *(float *)(v2 + 340); if ( v9 <= 180.0 ) { if ( v9 <= -180.0 ) v9 = v9 + 360.0; } else { v9 = v9 - 360.0; } if ( v9 != 0.0 ) { v10 = *(_DWORD *)(v2 + 380); if ( v10 ) { (*(void (__fastcall **)(int))(*(_DWORD *)v10 + 4))(v10); (***(void (__fastcall ****)(_DWORD, float, _DWORD))(v2 + 380))( *(_DWORD *)(v2 + 380), COERCE_FLOAT(LODWORD(v9)), *(unsigned __int8 *)(v2 + 352)); (*(void (__fastcall **)(_DWORD))(**(_DWORD **)(v2 + 380) + 8))(*(_DWORD *)(v2 + 380)); } } GJRotationControl::setAngle((GJRotationControl *)v2, v8); return std::string::~string((int)&v11); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source