// // drawArrow from 0x369fe8 to 0x36a1fa (530 bytes) // // 3 xrefs: // > drawTrace @ 0x377f52 // > drawTrace @ 0x37826a // > drawTrace @ 0x37874c // // 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 // float __fastcall drawArrow( cocos2d::CCDrawNode *a1, const cocos2d::CCPoint *a2, const cocos2d::CCPoint *a3, float a4, const cocos2d::ccColor4F a5) { float result; // r0 float v10; // s17 float v11; // s14 float v12; // s17 float v13; // s16 float v14; // s18 float v15; // [sp+1Ch] [bp-50h] BYREF float v16; // [sp+20h] [bp-4Ch] cocos2d::CCPoint v17; // [sp+24h] [bp-48h] BYREF cocos2d::CCPoint v18; // [sp+2Ch] [bp-40h] BYREF cocos2d::CCPoint v19; // [sp+34h] [bp-38h] BYREF cocos2d::CCPoint v20; // [sp+3Ch] [bp-30h] BYREF cocos2d::CCPoint v21; // [sp+44h] [bp-28h] BYREF _BYTE v22[8]; // [sp+4Ch] [bp-20h] BYREF _BYTE v23[8]; // [sp+54h] [bp-18h] BYREF _BYTE v24[8]; // [sp+5Ch] [bp-10h] BYREF cocos2d::CCPoint::operator-(&v15, a3, a2); result = sqrtf((float)(v16 * v16) + (float)(v15 * v15)); v10 = result; if ( result >= 0.001 ) { cocos2d::CCPoint::CCPoint(&v17, v15 / result, v16 / result); cocos2d::CCPoint::CCPoint(&v18, COERCE_FLOAT(LODWORD(v17.y) ^ 0x80000000), v17.x); v11 = dbl_AC5CF8; if ( !byte_AC5D00 && v10 > 1000.0 ) { v12 = v10 / 1000.0; if ( v12 > 10.0 ) v12 = 10.0; v13 = fmod(dbl_AC5D08, v12) / v12; v11 = 1.0 - v13; } v14 = 1.0 - v11; cocos2d::CCPoint::CCPoint( &v19, (float)((float)(1.0 - v11) * a3->x) + (float)(v11 * a2->x), (float)((float)(1.0 - v11) * a3->y) + (float)(v11 * a2->y)); cocos2d::CCPoint::operator*(v22, &v17, LODWORD(a4)); cocos2d::CCPoint::operator*(v23, &v18, a4 * 0.5); cocos2d::CCPoint::operator+(v24, v22, v23); cocos2d::CCPoint::operator-(&v20, &v19, v24); cocos2d::CCPoint::operator*(v22, &v17, LODWORD(a4)); cocos2d::CCPoint::operator*(v23, &v18, a4 * 0.5); cocos2d::CCPoint::operator-(v24, v22, v23); cocos2d::CCPoint::operator-(&v21, &v19, v24); cocos2d::CCDrawNode::drawSegment(a1, a2, a3, 1.0, &a5); if ( (float)(1.0 - v11) >= 0.05 ) { if ( v14 <= 0.95 ) { LABEL_11: cocos2d::CCDrawNode::drawSegment(a1, &v19, &v20, 1.0, &a5); LODWORD(result) = cocos2d::CCDrawNode::drawSegment(a1, &v19, &v21, 1.0, &a5); return result; } v14 = 1.0 - v14; } a5.a = a5.a * (float)(v14 / 0.05); goto LABEL_11; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source